Skip to content

fix e2e prometheus, operator-group, 4.11 errors#719

Merged
openshift-merge-robot merged 4 commits into
openshift:masterfrom
PratikMahajan:fix-e2e-prom-err
Aug 19, 2022
Merged

fix e2e prometheus, operator-group, 4.11 errors#719
openshift-merge-robot merged 4 commits into
openshift:masterfrom
PratikMahajan:fix-e2e-prom-err

Conversation

@PratikMahajan
Copy link
Copy Markdown
Contributor

No description provided.

@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 29, 2022
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 29, 2022
@PratikMahajan PratikMahajan changed the title [WIP] Fix e2e prom err Fix e2e prom err Aug 5, 2022
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 5, 2022
@PratikMahajan
Copy link
Copy Markdown
Contributor Author

/retest

@PratikMahajan PratikMahajan changed the title Fix e2e prom err [wip] Fix e2e prom err Aug 17, 2022
@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 17, 2022
PratikMahajan and others added 2 commits August 18, 2022 11:08
the prometheus secret based token will no longer exist from
OCP 4.11 onwards. To get the prometheus token, we need to
create the secret manually to get the token. this commit
creates the prometheus robot secret which we then use to
get the prometheus token.
update service operator had a breaking change where the policy engine
URI was changed. this resulted in two different URIs for tests on
4.10 and 4.11 clusters.
this changes makes sure we're getting the URI set by the operator,
so same script can work for different versions of Update Service
Operator
@PratikMahajan PratikMahajan changed the title [wip] Fix e2e prom err fix e2e prometheus, operator-group, 4.11 errors Aug 18, 2022
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 18, 2022
@PratikMahajan
Copy link
Copy Markdown
Contributor Author

/retest
imagepullbackoff for operator

@PratikMahajan
Copy link
Copy Markdown
Contributor Author

/retest
cluster creation failure

Comment thread hack/e2e.sh Outdated
# Expose services
PE_URL=$(oc get route e2e-policy-engine-route -o jsonpath='{.spec.host}')
export GRAPH_URL="https://${PE_URL}/api/upgrades_info/graph"
PE_URL=$(oc -n "${NAMESPACE}" get -o jsonpath='{.status.policyEngineURI}' updateservice "e2e")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could be a race here, if the controller hasn't populated the property yet. From our docs:

Use the following command to obtain a policy engine route:

$ while sleep 1; do POLICY_ENGINE_GRAPH_URI="$(oc -n "${NAMESPACE}" get -o jsonpath='{.status.policyEngineURI}/api/upgrades_info/v1/graph{"\n"}' updateservice "${NAME}")"; SCHEME="${POLICY_ENGINE_GRAPH_URI%%:*}"; if test "${SCHEME}" = http -o "${SCHEME}" = https; then break; fi; done

You might need to poll until the command succeeds.

Copy link
Copy Markdown
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 19, 2022
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 19, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: PratikMahajan, wking

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [PratikMahajan,wking]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Aug 19, 2022

@PratikMahajan: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 346a469 into openshift:master Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants