Skip to content

Revert "OCPNODE-3611: manifests.rhel/0000_90_openshift-cluster-image-policy: Drop TechPreviewNoUpgrade limitation"#83

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
wking:revert-82-default-feature-set-openshift-ClusterImagePolicy
Aug 28, 2025
Merged

Revert "OCPNODE-3611: manifests.rhel/0000_90_openshift-cluster-image-policy: Drop TechPreviewNoUpgrade limitation"#83
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
wking:revert-82-default-feature-set-openshift-ClusterImagePolicy

Conversation

@wking
Copy link
Member

@wking wking commented Aug 28, 2025

Reverts #82

This was tripping up CI by causing a new MachineConfigPool rollout late in the update. For example, this run, had:

  1. 0:55:22 UTC, rendered-master-5d3ab69b0a03bc70fa37249f040c06b4 MachineConfig created to push out the version bump.

  2. 1:19:15 (and 1:19:20?) UTC, OperatorVersionChanged Events claimed the machine-config ClusterOperator finished its transition.

  3. 1:19:47 UTC, ClusterVersion claimed the update completed.

  4. 1:19:49 UTC, rendered-master-975808f8abad8954df577f74c6809db3 MachineConfig created.

  5. CI fails with:

    : [sig-arch][Feature:ClusterUpgrade] Cluster should remain functional during upgrade [Disruptive] [Serial]	1h14m13s
    {  fail [github.com/openshift/origin/test/e2e/upgrade/upgrade.go:187]: during upgrade to registry.build11.ci.openshift.org/ci-op-cy2jcwgs/release@sha256:8cf00e640f46548e76028aa258ddddaaad987edb39e8399fc791b305321b4877: the "master" pool should be updated before the CVO reports available at the new version}
    

Confirming that the difference between those MachineConfig is the openshift ClusterImagePolicy:

$ diff -U3 <(curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-upgrade-fips/1960838341934977024/artifacts/e2e-aws-ovn-upgrade-fips/gather-extra/artifacts/inspect/cluster-scoped-resources/machineconfiguration.openshift.io/machineconfigs/rendered-master-5d3ab69b0a03bc70fa37249f040c06b4.yaml | yaml2json | jq -r '.spec.config.storage.files[] | select(.path == "/etc/containers/policy.json").contents.source | split(",")[-1]' | python3 -c 'import urllib.parse, sys; print(urllib.parse.unquote(sys.stdin.read()))') <(curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-upgrade-fips/1960838341934977024/artifacts/e2e-aws-ovn-upgrade-fips/gather-extra/artifacts/inspect/cluster-scoped-resources/machineconfiguration.openshift.io/machineconfigs/rendered-master-975808f8abad8954df577f74c6809db3.yaml | yaml2json | jq -r '.spec.config.storage.files[] | select(.path == "/etc/containers/policy.json").contents.source | split(",")[-1] | @base64d')
--- /dev/fd/63  2025-08-28 00:44:33.542232745 -0700
+++ /dev/fd/62  2025-08-28 00:44:33.547232745 -0700
@@ -1,15 +1,38 @@
 {
-    "default": [
+  "default": [
+    {
+      "type": "insecureAcceptAnything"
+    }
+  ],
+  "transports": {
+    "atomic": {
+      "quay.io/openshift-release-dev/ocp-release": [
         {
...

…policy: Drop TechPreviewNoUpgrade limitation"
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 28, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Aug 28, 2025

@wking: This pull request references OCPNODE-3611 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

Details

In response to this:

Reverts #82

This was tripping up CI by causing a new MachineConfigPool rollout late in the update. For example, this run, had:

  1. 0:55:22 UTC, rendered-master-5d3ab69b0a03bc70fa37249f040c06b4 MachineConfig created to push out the version bump.

  2. 1:19:15 (and 1:19:20?) UTC, OperatorVersionChanged Events claimed the machine-config ClusterOperator finished its transition.

  3. 1:19:47 UTC, ClusterVersion claimed the update completed.

  4. 1:19:49 UTC, rendered-master-975808f8abad8954df577f74c6809db3 MachineConfig created.

  5. CI fails with:

    : [sig-arch][Feature:ClusterUpgrade] Cluster should remain functional during upgrade [Disruptive] [Serial]	1h14m13s
    {  fail [github.com/openshift/origin/test/e2e/upgrade/upgrade.go:187]: during upgrade to registry.build11.ci.openshift.org/ci-op-cy2jcwgs/release@sha256:8cf00e640f46548e76028aa258ddddaaad987edb39e8399fc791b305321b4877: the "master" pool should be updated before the CVO reports available at the new version}
    

Confirming that the difference between those MachineConfig is the openshift ClusterImagePolicy:

$ diff -U3 <(curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-upgrade-fips/1960838341934977024/artifacts/e2e-aws-ovn-upgrade-fips/gather-extra/artifacts/inspect/cluster-scoped-resources/machineconfiguration.openshift.io/machineconfigs/rendered-master-5d3ab69b0a03bc70fa37249f040c06b4.yaml | yaml2json | jq -r '.spec.config.storage.files[] | select(.path == "/etc/containers/policy.json").contents.source | split(",")[-1]' | python3 -c 'import urllib.parse, sys; print(urllib.parse.unquote(sys.stdin.read()))') <(curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-nightly-4.20-e2e-aws-ovn-upgrade-fips/1960838341934977024/artifacts/e2e-aws-ovn-upgrade-fips/gather-extra/artifacts/inspect/cluster-scoped-resources/machineconfiguration.openshift.io/machineconfigs/rendered-master-975808f8abad8954df577f74c6809db3.yaml | yaml2json | jq -r '.spec.config.storage.files[] | select(.path == "/etc/containers/policy.json").contents.source | split(",")[-1] | @base64d')
--- /dev/fd/63  2025-08-28 00:44:33.542232745 -0700
+++ /dev/fd/62  2025-08-28 00:44:33.547232745 -0700
@@ -1,15 +1,38 @@
{
-    "default": [
+  "default": [
+    {
+      "type": "insecureAcceptAnything"
+    }
+  ],
+  "transports": {
+    "atomic": {
+      "quay.io/openshift-release-dev/ocp-release": [
        {
...

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from jupierce and sdodson August 28, 2025 08:07
@stbenjam
Copy link
Member

/lgtm
/label approved

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2025
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 28, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: stbenjam, wking
Once this PR has been reviewed and has the lgtm label, please assign sdodson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2025
@stbenjam
Copy link
Member

This is HEAD of the repo, we can safely force it in

/override ci/prow/e2e-aws
/override ci/prow/e2e-aws-upgrade
/override ci/prow/okd-scos-e2e-aws-ovn

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 28, 2025

@stbenjam: Overrode contexts on behalf of stbenjam: ci/prow/e2e-aws, ci/prow/e2e-aws-upgrade, ci/prow/okd-scos-e2e-aws-ovn

Details

In response to this:

This is HEAD of the repo, we can safely force it in

/override ci/prow/e2e-aws
/override ci/prow/e2e-aws-upgrade
/override ci/prow/okd-scos-e2e-aws-ovn

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-sigs/prow repository.

@stbenjam
Copy link
Member

/label approved

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2025
@stbenjam
Copy link
Member

/label acknowledge-critical-fixes-only

@openshift-ci openshift-ci bot added the acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. label Aug 28, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit c40e7b9 into openshift:main Aug 28, 2025
6 checks passed
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 28, 2025

@wking: 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-sigs/prow repository. I understand the commands that are listed here.

@wking wking deleted the revert-82-default-feature-set-openshift-ClusterImagePolicy branch August 28, 2025 15:00
wking added a commit to wking/cluster-update-keys that referenced this pull request Nov 19, 2025
…-openshift-cip""

This reverts commit 7a5dcee.

This one has taken us some time:

* 2025-08-27, 94f7582, openshift#82 was our first attempt at enabling the
  ClusterImagePolicy.
* ...but it tripped up the origin test suite, so it was reverted in
  2025-08-28, c40e7b9, openshift#83.
* Qi then hardened the test suite with openshift/origin@d3af51e4acb
  (not fail upgrade checks if all nodes are ready, 2025-09-29,
  openshift/origin#30318) and openshift/origin@2fd0d8e242 (Upgrade
  test add 2min grace period allow non-drain updates to complete,
  2025-11-12, openshift/origin#30480).
* With the tougher CI in place, we tried a second time with
  2025-11-17, 1f89a67, openshift#85.
* ...but still tripped up origin, with runs like [1] taking 2.25m
  (more than the 2m grace period):

    I1119 17:26:21.890667 1511 upgrade.go:629] Waiting on pools to be upgraded
    I1119 17:26:21.939178 1511 upgrade.go:792] Pool master is still reporting (Updated: false, Updating: true, Degraded: false)
    I1119 17:26:21.939259 1511 upgrade.go:666] Invariant violation detected: master pool requires update but nodes not ready. Waiting up to 2m0s for non-draining updates to complete
    I1119 17:26:31.984116 1511 upgrade.go:792] Pool master is still reporting (Updated: false, Updating: true, Degraded: false)
    ...
    I1119 17:28:21.981438 1511 upgrade.go:792] Pool master is still reporting (Updated: false, Updating: true, Degraded: false)
    I1119 17:28:21.981514 1511 upgrade.go:673] Invariant violation detected: the "master" pool should be updated before the CVO reports available at the new version

  and:

    $ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/logs/periodic-ci-openshift-release-master-ci-4.21-upgrade-from-stable-4.20-e2e-gcp-ovn-rt-upgrade/1991158541779472384/artifacts/e2e-gcp-ovn-rt-upgrade/gather-extra/artifacts/inspect/cluster-scoped-resources/machineconfiguration.openshift.io/machineconfigpools/master.yaml | yaml2json | jq -r '.status.conditions[] | select(.type == "Updating") | .lastTransitionTime + " " + .status'
    2025-11-19T17:28:36Z False

  28:36 - 26:21 = 135s = 2.25m, which overshot the 2m grace period.
  The second attempt was reverted in 7a5dcee, openshift#87.

* Qi then hardened the test suite further with
  openshift/origin@c17e560263 (Update grace period for cluster upgrade
  to 10 minutes, 2025-11-19, #openshift/origin#30506).
* This commit is taking a third attempt at enabling the
  ClusterImagePolicy.

[1]: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-ci-4.21-upgrade-from-stable-4.20-e2e-gcp-ovn-rt-upgrade/1991158541779472384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acknowledge-critical-fixes-only Indicates if the issuer of the label is OK with the policy. approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. 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