Bug 2075647
Summary: | 'oc adm upgrade ...' POSTs ClusterVersion, clobbering any unrecognized spec properties | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | W. Trevor King <wking> |
Component: | oc | Assignee: | W. Trevor King <wking> |
oc sub component: | oc | QA Contact: | Evgeni Vakhonin <evakhoni> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | high | CC: | aos-bugs, mfojtik, travi, yanyang |
Version: | 4.1.z | ||
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 11:07:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2077332 |
Description
W. Trevor King
2022-04-14 19:00:42 UTC
reproduced on Client Version: 4.11.0-0.nightly-2022-04-16-163450 $ oc get clusterversions.config.openshift.io version -ojson | jq -r '"spec", .spec, "status caps", .status.capabilities' spec { "capabilities": { "additionalEnabledCapabilities": [ "marketplace" ], "baselineCapabilitySet": "None" }, "channel": "stable-4.11", "clusterID": "4da7abd2-2237-4e8b-9a58-ab3ba99d34b6", "upstream": "https://amd64.ocp.releases.ci.openshift.org/graph" } status caps { "enabledCapabilities": [ "marketplace" ], "knownCapabilities": [ "baremetal", "marketplace", "openshift-samples" ] } $ oc adm upgrade --allow-explicit-upgrade --force --to-image=registry.ci.openshift.org/ocprelease@sha256:96e0eb4aa27b39553ca01a4614105c6e980503ad1cdc584cf7a06a792c831391 $ oc get clusterversions.config.openshift.io version -ojson | jq -r '"spec", .spec, "status caps", .status.capabilities' spec { "channel": "stable-4.11", "clusterID": "4da7abd2-2237-4e8b-9a58-ab3ba99d34b6", "desiredUpdate": { "force": true, "image": "registry.ci.openshift.org/ocp/release@sha256:96e0eb4aa27b39553ca01a4614105c6e980503ad1cdc584cf7a06a792c831391", "version": "" }, "upstream": "https://amd64.ocp.releases.ci.openshift.org/graph" } status caps { "enabledCapabilities": [ "baremetal", "marketplace", "openshift-samples" ], "knownCapabilities": [ "baremetal", "marketplace", "openshift-samples" ] } .spec.capabilities dropped by oc client, resulting in unwanted enabledCapabilities verifying on Client Version: 4.11.0-0.nightly-2022-04-20-002931 $ oc get clusterversions.config.openshift.io version -ojson | jq -r '"spec", .spec, "status caps", .status.capabilities' spec { "capabilities": { "additionalEnabledCapabilities": [ "marketplace" ], "baselineCapabilitySet": "None" }, "channel": "stable-4.11", "clusterID": "cad19f59-08b8-4391-bf4b-eb071b4cc1f2" } status caps { "enabledCapabilities": [ "marketplace" ], "knownCapabilities": [ "baremetal", "marketplace", "openshift-samples" ] } $ oc adm upgrade --allow-explicit-upgrade --force --to-image=registry.ci.openshift.org/ocprelease@sha256:e385a786f122c6c0e8848ecb9901f510676438f17af8a5c4c206807a9bc0bf28 warning: The requested upgrade image is not one of the available updates.You have used --allow-explicit-upgrade for the update to proceed anyway warning: --force overrides cluster verification of your supplied release image and waives any update precondition failures. Updating to release image registry.ci.openshift.org/ocprelease@sha256:e385a786f122c6c0e8848ecb9901f510676438f17af8a5c4c206807a9bc0bf28 $ oc get clusterversions.config.openshift.io version -ojson | jq -r '"spec", .spec, "status caps", .status.capabilities' spec { "capabilities": { "additionalEnabledCapabilities": [ "marketplace" ], "baselineCapabilitySet": "None" }, "channel": "stable-4.11", "clusterID": "cad19f59-08b8-4391-bf4b-eb071b4cc1f2", "desiredUpdate": { "force": true, "image": "registry.ci.openshift.org/ocprelease@sha256:e385a786f122c6c0e8848ecb9901f510676438f17af8a5c4c206807a9bc0bf28", "version": "" } } status caps { "enabledCapabilities": [ "marketplace" ], "knownCapabilities": [ "baremetal", "marketplace", "openshift-samples" ] } so far so good! no spec dropped, no unwanted caps installed! Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:5069 |