Bug 2070891 - Cv condition ImplicitlyEnabledCapabilities doesn’t complain about the disabled capabilities which is previously enabled
Summary: Cv condition ImplicitlyEnabledCapabilities doesn’t complain about the disable...
Keywords:
Status: CLOSED DUPLICATE of bug 2070887
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Over the Air Updates
QA Contact: Yang Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-01 10:06 UTC by Yang Yang
Modified: 2022-05-06 12:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-01 13:31:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yang Yang 2022-04-01 10:06:47 UTC
Description of problem:

Disabling previously enabled cap by removing spec.capabilities.additionalEnabledCapabilities, cv condition ImplicitlyEnabledCapabilities doesn’t complain about the change.

$ oc get clusterversion -oyaml
apiVersion: v1
items:
- apiVersion: config.openshift.io/v1
  kind: ClusterVersion
  metadata:
    creationTimestamp: "2022-04-01T08:50:01Z"
    generation: 3
    name: version
    resourceVersion: "31704"
    uid: d64ba7f4-2e1e-45d3-bfa0-1ba28c4a726d
  spec:
    capabilities:
      baselineCapabilitySet: None
    channel: stable-4.11
    clusterID: 7ed605ca-954b-4a10-a209-2ed602e7e19e
  status:
    availableUpdates: null
    capabilities:
      enabledCapabilities:
      - marketplace
      knownCapabilities:
      - baremetal
      - marketplace
      - openshift-samples
    conditions:
    - lastTransitionTime: "2022-04-01T08:50:04Z"
      message: 'Unable to retrieve available updates: currently reconciling cluster
        version 4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest not found
        in the "stable-4.11" channel'
      reason: VersionNotFound
      status: "False"
      type: RetrievedUpdates
    - lastTransitionTime: "2022-04-01T08:50:04Z"
      message: Capabilities match configured spec
      reason: AsExpected
      status: "False"
      type: ImplicitlyEnabledCapabilities
    - lastTransitionTime: "2022-04-01T08:50:04Z"
      message: Payload loaded version="4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest"
        image="registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4"
      reason: PayloadLoaded
      status: "True"
      type: ReleaseAccepted
    - lastTransitionTime: "2022-04-01T09:15:42Z"
      message: Done applying 4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest
      status: "True"
      type: Available
    - lastTransitionTime: "2022-04-01T09:14:27Z"
      status: "False"
      type: Failing
    - lastTransitionTime: "2022-04-01T09:15:42Z"
      message: Cluster version is 4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest
      status: "False"
      type: Progressing
    desired:
      image: registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4
      version: 4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest
    history:
    - completionTime: "2022-04-01T09:15:42Z"
      image: registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4
      startedTime: "2022-04-01T08:50:04Z"
      state: Completed
      verified: false
      version: 4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest
    observedGeneration: 2
    versionHash: Q_qcbW4ZuAs=
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""

The ImplicitlyEnabledCaps is always nil.

$ grep ImplicitlyEnabledCaps cvo.log
I0401 09:27:12.640861       1 status.go:171] Synchronizing status errs=field.ErrorList(nil) status=&cvo.SyncWorkerStatus{Generation:3, Failure:error(nil), Done:570, Total:784, Completed:0, Reconciling:true, Initial:false, VersionHash:"Q_qcbW4ZuAs=", LastProgress:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), Actual:v1.Release{Version:"4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest", Image:"registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4", URL:"", Channels:[]string(nil)}, Verified:false, loadPayloadStatus:cvo.LoadPayloadStatus{Step:"PayloadLoaded", Message:"Payload loaded version=\"4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest\" image=\"registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4\"", Failure:error(nil), Release:v1.Release{Version:"4.11.0-0.ci.test-2022-04-01-025354-ci-ln-2ydg80t-latest", Image:"registry.build01.ci.openshift.org/ci-ln-2ydg80t/release@sha256:77bf803cfc45670f8bf7a5c08fce7de247c7c40f10c43f2c1ae51458d294bfc4", URL:"", Channels:[]string(nil)}, Verified:false, LastTransitionTime:time.Time{wall:0xc089ce7ce6114037, ext:976922616390, loc:(*time.Location)(0x2c58160)}}, CapabilitiesStatus:cvo.CapabilityStatus{Status:v1.ClusterVersionCapabilitiesStatus{EnabledCapabilities:[]v1.ClusterVersionCapability{"marketplace"}, KnownCapabilities:[]v1.ClusterVersionCapability{"baremetal", "marketplace", "openshift-samples"}}, ImplicitlyEnabledCaps:[]v1.ClusterVersionCapability(nil)}}


Version-Release number of selected component (if applicable):
The payload was built from cvo#754 by using cluster-bot
build openshift/cluster-version-operator#754

How reproducible:
1/1

Steps to Reproduce:
1.Install a cluster with the cap set:
spec:
    capabilities:
      additionalEnabledCapabilities:
      - marketplace
      baselineCapabilitySet: None

2.Remove additionalEnabledCapabilities:
 spec:
    capabilities:
      baselineCapabilitySet: None


Actual results:
CV condition ImplicitlyEnabledCapabilities doesn’t complain about the change

Expected results:
CV condition ImplicitlyEnabledCapabilities complains about the change


Additional info:

Comment 2 Lalatendu Mohanty 2022-04-01 13:31:21 UTC

*** This bug has been marked as a duplicate of bug 2070887 ***


Note You need to log in before you can comment on or make changes to this bug.