Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install: Fix dash-to-hyhen for 04_kube_rbac_proxy_config.yaml prefix #3837

Conversation

wking
Copy link
Member

@wking wking commented Aug 3, 2023

The outgoing filename is from the manifest's creation in c02a9d2 (#3537), but it failed to match the
0000_<runlevel>_<dash-separated-component>_<manifest_filename> template
. This confused the cluster-version operator (CVO) about the intended runlevel, although with nothing else at level 80, that was not a problem. And it also resulted in it sorting before the other machine-config manifests, when the 04_... suggests it was intended to sort after 0000_80_machine-config-operator_03_rbac.yaml and such, although that also does not seem to have caused any problems. So no noticeable changes from this rename, but it will tidy things up a bit, and allow future CVOs to fail more aggressively on other filenames that diverge from the parseable template.

Generated with:

$ rename 's/0000_80-/0000_80_/' install/0000_80-machine-config-operator_04_kube_rbac_proxy_config.yaml
$ git add -A install

The outgoing filename is from the manifest's creation in c02a9d2
(add support for operator metrics, 2023-01-25, openshift#3537), but it failed
to match the
0000_<runlevel>_<dash-separated-component>_<manifest_filename>
template [1].  This confused the cluster-version operator (CVO) about
the intended runlevel, although with nothing else at level 80, that
was not a problem.  And it also resulted in it sorting before the
other machine-config manifests, when the 04_... suggests it was
intended to sort after 0000_80_machine-config-operator_03_rbac.yaml
and such, although that also does not seem to have caused any
problems.  So no noticeable changes from this rename, but it will tidy
things up a bit, and allow future CVOs to fail more aggressively on
other filenames that diverge from the parseable template.

Generated with:

  $ rename 's/0000_80-/0000_80_/' install/0000_80-machine-config-operator_04_kube_rbac_proxy_config.yaml
  $ git add -A install

[1]: https://github.com/openshift/enhancements/blob/cafeb5c3cba7f8c9e261b2aabffa92e34dd76be6/dev-guide/cluster-version-operator/dev/operators.md#what-is-the-order-that-resources-get-createdupdated-in
@wking
Copy link
Member Author

wking commented Aug 3, 2023

HyperShift:

error: timed out waiting for the condition on clusterversions/version
2023-08-03 20:24:33+00:00 Clusteroperators not yet ready
NAME      VERSION   AVAILABLE   PROGRESSING   SINCE   STATUS
version             False       True          22m     Unable to apply 4.13.0-0.nightly-2023-08-03-105759: the cluster operator console is not available

Digging into gathered artifacts:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_machine-config-operator/3837/pull-ci-openshift-machine-config-operator-master-e2e-hypershift/1687187241517977600/artifacts/e2e-hypershift/dump-management-cluster/artifacts/hypershift-dump.tar | tar xOz hostedcluster-b1ef24f485273f324ff4-mgmt/cluster-scoped-resources/config.openshift.io/clusteroperators/console.yaml | yaml2json | jq -r '.status.conditions[] | .lastTransitionTime + " " + .type + "=" + .status + " " + .reason + ": " + .message'
2023-08-03T20:22:44Z Degraded=False AsExpected: RouteHealthDegraded: failed to GET route (https://console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com): Get "https://console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com": dial tcp: lookup console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com on 172.29.0.10:53: no such host
2023-08-03T20:09:34Z Progressing=False AsExpected: All is well
2023-08-03T20:09:31Z Available=False RouteHealth_FailedGet: RouteHealthAvailable: failed to GET route (https://console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com): Get "https://console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com": dial tcp: lookup console-openshift-console.apps.b1ef24f485273f324ff4-mgmt.ci.hypershift.devcluster.openshift.com on 172.29.0.10:53: no such host
2023-08-03T20:22:39Z Upgradeable=True AsExpected: All is well

I'm having a hard time imagining a way that could be related to the change I'm making.

/retest

Copy link
Contributor

@yuqi-zhang yuqi-zhang 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 4, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 4, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking, yuqi-zhang

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

The pull request process is described here

Needs approval from an approver in each of these files:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 4, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD a41f5af and 2 for PR HEAD 39bb3aa in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 5, 2023

@wking: all tests passed!

Full PR test history. Your PR dashboard.

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 0405975 into openshift:master Aug 5, 2023
13 checks passed
@wking wking deleted the parseable-manifest-for-kube-rbac-proxy-ConfigMap branch August 5, 2023 22:28
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.

None yet

4 participants