Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-76478

HCP cluster upgrade to 4.22 from 4.21 failed when with parameter --disable-cluster-capabilities=openshift-samples,Insights

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.21.0, 4.22.0
    • HyperShift
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • x86_64
    • Production
    • None
    • Rejected
    • None
    • In Progress
    • Bug Fix
    • Hide
      This update corrects the route labeling logic for HCP router infrastructure, preventing the creation of an additional loadbalancer service. This change allows the upgrade from 4.18 to 4.19 to proceed without being blocked by additional loadbalancer service creation.
      Show
      This update corrects the route labeling logic for HCP router infrastructure, preventing the creation of an additional loadbalancer service. This change allows the upgrade from 4.18 to 4.19 to proceed without being blocked by additional loadbalancer service creation.
    • None
    • None
    • None
    • None

      Description of problem:

      When install the HCP with parameter --disable-cluster-capabilities=openshift-samples,Insights , after triggering an upgrade for a HCP cluster from 4.21 to 4.22, the upgrade failed with error. 
      
      
          

      Version-Release number of selected component (if applicable):

      upgrade from 4.21 to 4.22
      
          

      How reproducible:

      2 attempts out of 2 (100%)
      
          

      Steps to Reproduce:

          1. Install the hcp 4.21 with --disable-cluster-capabilities=openshift-samples,Insights; 
          2. start the upgrade to 4.22. 
          3. upgrade plocked
          

      Actual results:

          

      Expected results:

      upgrade completes
      
          

      Additional info:

      The is the Ai from must-gather : 
      我昨天trigger了 upgrade, 的确失败了, 但是没有找你和你类似的错误, 这是ai 分析我的must-gagther :
      ● Root Cause Identified  The OCP cluster upgrade is blocked due to ClusterVersion overrides. Here's what I found:  Primary Issue  In cluster-scoped-resources/config.openshift.io/clusterversions.yaml:158-162:  - type: Upgradeable
          status: "False"
          message: "Disabling ownership via cluster version overrides prevents upgrades. 
                    Please remove overrides before continuing."
          reason: ClusterVersionOverridesSet  The Override  The ClusterVersion spec contains an override that prevents upgrades (clusterversions.yaml:107-112):  spec:
          overrides:
          - group: config.openshift.io
            kind: ClusterImagePolicy
            name: openshift
            namespace: ""
            unmanaged: true  This override marks the ClusterImagePolicy/openshift resource as unmanaged by CVO, which blocks all cluster upgrades as a safety mechanism.  Evidence from Logs  The cluster-version-operator logs confirm this repeatedly:  I0209 10:51:48.135233 upgradeable.go:91] Upgradeability condition failed
        (type='UpgradeableClusterVersionOverrides' reason='ClusterVersionOverridesSet'
        message='Disabling ownership via cluster version overrides prevents upgrades.
        Please remove overrides before continuing.')  Resolution  To fix this and allow upgrades:  1. Remove the ClusterVersion override:
        oc patch clusterversion version --type=json -p '[{"op":"remove","path":"/spec/overrides"}]'
        2. Verify the cluster becomes upgradeable:
        oc get clusterversion -o jsonpath='{.items[0].status.conditions[?(@.type=="Upgradeable")]}'  Additional Context  - Current cluster version: 4.21.1
        - All cluster operators are healthy (Available=True, Degraded=False)
        - The cluster is otherwise stable - the upgrade is only blocked by the override
      

              Unassigned Unassigned
              yinzhou@redhat.com Ying Zhou
              None
              Antoni Segura Puimedon
              Ying Zhou Ying Zhou
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: