Skip to content

[CNF-5643] bump api version to add new capability#941

Merged
openshift-merge-robot merged 4 commits intoopenshift:masterfrom
qJkee:CNF-5643-bump-new-api
Jun 21, 2023
Merged

[CNF-5643] bump api version to add new capability#941
openshift-merge-robot merged 4 commits intoopenshift:masterfrom
qJkee:CNF-5643-bump-new-api

Conversation

@qJkee
Copy link
Copy Markdown
Contributor

@qJkee qJkee commented Jun 20, 2023

This PR updates the version of openshift/api to bring a new capability name.

Also, I've fixed linter warnings which started to appear after the linter version bump

@openshift-ci openshift-ci Bot requested review from DavidHurta and petr-muller June 20, 2023 12:51
@qJkee qJkee force-pushed the CNF-5643-bump-new-api branch 2 times, most recently from 63d9cc4 to 27c459d Compare June 20, 2023 13:17
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 20, 2023
@qJkee qJkee force-pushed the CNF-5643-bump-new-api branch from 27c459d to 43746fa Compare June 20, 2023 18:18
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 20, 2023
qJkee added 4 commits June 20, 2023 14:26
go get -u github.com/openshift/library-go
go mod tidy
go mod vendor
git add -A go.* vendor
After vendor bump it's needed to modify function according new API
update tests with new capabilities brought by
new version of openshift/api package
fix linter warinings after linter update
@qJkee qJkee force-pushed the CNF-5643-bump-new-api branch from 43746fa to 8913d38 Compare June 20, 2023 18:27
@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Jun 20, 2023

/cc @wking @LalatenduMohanty

@openshift-ci openshift-ci Bot requested review from LalatenduMohanty and wking June 20, 2023 18:28
@wking
Copy link
Copy Markdown
Member

wking commented Jun 20, 2023

/retest required

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 20, 2023

@wking: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

  • /test e2e-agnostic-operator
  • /test e2e-agnostic-ovn
  • /test e2e-agnostic-ovn-upgrade-into-change
  • /test e2e-agnostic-ovn-upgrade-out-of-change
  • /test gofmt
  • /test images
  • /test lint
  • /test unit

Use /test all to run all jobs.

Details

In response to this:

/retest required

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.

@wking
Copy link
Copy Markdown
Member

wking commented Jun 20, 2023

/retest-required

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Jun 21, 2023

/retest

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Jun 21, 2023

/test e2e-agnostic-ovn

@qJkee
Copy link
Copy Markdown
Contributor Author

qJkee commented Jun 21, 2023

/retest

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.

upgrade-out-of-change has the expected enum issue for capability-adding pulls:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_cluster-version-operator/941/pull-ci-openshift-cluster-version-operator-master-e2e-agnostic-ovn-upgrade-out-of-change/1671502401497993216/artifacts/e2e-agnostic-ovn-upgrade-out-of-change/gather-extra/artifacts/pods/openshift-cluster-version_cluster-version-operator-7fd84b7b99-8b2qk_cluster-version-operator.log | grep 'ClusterVersion.config.openshift.io "version" is invalid' | tail -n1
I0621 16:45:41.154360       1 cvo.go:601] Error handling openshift-cluster-version/version: ClusterVersion.config.openshift.io "version" is invalid: status.capabilities.enabledCapabilities[3]: Unsupported value: "MachineAPI": supported values: "openshift-samples", "baremetal", "marketplace", "Console", "Insights", "Storage", "CSISnapshot", "NodeTuning"

/override ci/prow/e2e-agnostic-ovn-upgrade-out-of-change
/lgtm

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

openshift-ci Bot commented Jun 21, 2023

@wking: Overrode contexts on behalf of wking: ci/prow/e2e-agnostic-ovn-upgrade-out-of-change

Details

In response to this:

upgrade-out-of-change has the expected enum issue for capability-adding pulls:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_cluster-version-operator/941/pull-ci-openshift-cluster-version-operator-master-e2e-agnostic-ovn-upgrade-out-of-change/1671502401497993216/artifacts/e2e-agnostic-ovn-upgrade-out-of-change/gather-extra/artifacts/pods/openshift-cluster-version_cluster-version-operator-7fd84b7b99-8b2qk_cluster-version-operator.log | grep 'ClusterVersion.config.openshift.io "version" is invalid' | tail -n1
I0621 16:45:41.154360       1 cvo.go:601] Error handling openshift-cluster-version/version: ClusterVersion.config.openshift.io "version" is invalid: status.capabilities.enabledCapabilities[3]: Unsupported value: "MachineAPI": supported values: "openshift-samples", "baremetal", "marketplace", "Console", "Insights", "Storage", "CSISnapshot", "NodeTuning"

/override ci/prow/e2e-agnostic-ovn-upgrade-out-of-change
/lgtm

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.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 21, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qJkee, 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:

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 Jun 21, 2023
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 21, 2023

@qJkee: 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 cdce77d into openshift:master Jun 21, 2023
wking added a commit to wking/openshift-release that referenced this pull request Oct 4, 2023
…y-4.14-upgrade-from-stable-4.13: Restore cross-minor rollbacks

We'd dropped the last of these in 856aab2
(ci-operator/config/openshift/release/openshift-release-master__ci-4.11-upgrade-from-stable-4.10:
Drop failing rollback jobs, 2022-10-11, openshift#33005) and 5e746a7
(ci-operator/config/openshift/release: Drop cross-minor rollback jobs,
2023-06-07, openshift#39897).  There's now renewed interest in how these sorts
of rollbacks look, so I'm reviving them for recent releases.  I expect
the issues with these rollbacks will at least include issues with the
cluster-version operator losing the ability to write to ClusterVersion
as the older CRD's enum rejects the capabilities added in the new
release:

  openshift/api $ git diff origin/release-4.13..origin/release-4.14 -- config/v1/types_cluster_version.go | grep kubebuilder:validation:Enum
  -// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning
  +// +kubebuilder:validation:Enum=openshift-samples;baremetal;marketplace;Console;Insights;Storage;CSISnapshot;NodeTuning;MachineAPI;Build;DeploymentConfig;ImageRegistry
  -// +kubebuilder:validation:Enum=None;v4.11;v4.12;v4.13;vCurrent
  +// +kubebuilder:validation:Enum=None;v4.11;v4.12;v4.13;v4.14;vCurrent

So a cluster updating from 4.13 to 4.14 will enable (possibly
implicitly) MachineAPI and other newly-labeled-in-4.14 capabilities.
And then when the 4.13 ClusterVersion CRD is pushed during the
rollback, those values become illegal, and the Kubernetes API server
will reject the cluster-version operators attempts to write
ClusterVersion status with errors complaining about the unrecognised
MachineAPI and other capability string [1]:

  $ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_cluster-version-operator/941/pull-ci-openshift-cluster-version-operator-master-e2e-agnostic-ovn-upgrade-out-of-change/1671502401497993216/artifacts/e2e-agnostic-ovn-upgrade-out-of-change/gather-extra/artifacts/pods/openshift-cluster-version_cluster-version-operator-7fd84b7b99-8b2qk_cluster-version-operator.log | grep 'ClusterVersion.config.openshift.io "version" is invalid' | tail -n1
  I0621 16:45:41.154360       1 cvo.go:601] Error handling openshift-cluster-version/version: ClusterVersion.config.openshift.io "version" is invalid: status.capabilities.enabledCapabilities[3]: Unsupported value: "MachineAPI": supported values: "openshift-samples", "baremetal", "marketplace", "Console", "Insights", "Storage", "CSISnapshot", "NodeTuning"

[1]: openshift/cluster-version-operator#941 (review)
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