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

Unable to get ClusterVersion error while upgrading 4.11 to 4.12

    • Low
    • None
    • 3
    • OTA 228, OTA 229
    • 2
    • False
    • Hide

      None

      Show
      None

      while upgrading openshift from 4.11 to 4.12, there is a temporary error condition visible in the cli as well as in cvo pod

      $ oc adm upgrade
      info: An upgrade is in progress. Working towards 4.12.0-ec.3: 703 of 830 done (84% complete), waiting up to 40 minutes on machine-config
      
      Upgradeable=False
      
        Reason: UnableToGetClusterVersion
        Message: Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found.
       
      

      cvo log:

      E0915 21:43:12.739847       1 upgradeable.go:312] Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found.
      

      How reproducible:

      3 of 3
      

      Steps to Reproduce:

      1. upgrade 4.11 to 4.12
      2. observe oc adm upgrade output, as well as cvo log
      

            [OCPBUGS-1443] Unable to get ClusterVersion error while upgrading 4.11 to 4.12

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: OpenShift Container Platform 4.13.0 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-2023:1326

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: OpenShift Container Platform 4.13.0 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-2023:1326

            pre-merge verified with cluster bot
            captured all cvo logs pre and during upgrade
            captured all changes in "oc adm upgrade" during upgrade
            no "Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found" in either oc output or cvo log
            passed verification will move to verified once merged.

            Evgeni Vakhonin added a comment - pre-merge verified with cluster bot captured all cvo logs pre and during upgrade captured all changes in "oc adm upgrade" during upgrade no " Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found " in either oc output or cvo log passed verification will move to verified once merged.

            Petr Muller added a comment -

            evakhoni@redhat.com thanks, will check that out, more context always helps!

            Petr Muller added a comment - evakhoni@redhat.com thanks, will check that out, more context always helps!

            Petr Muller added a comment - - edited

            I'm seeing these errors on CVO startup even outside upgrade, simply after installing 4.11.13:

            $ grep 'Unable to get ClusterVersion' cvo-log-ci-ln-qwmgtr2-76ef8.log 
            213:E1108 14:58:26.514402       1 upgradeable.go:305] Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found.
            215:E1108 14:58:28.810071       1 upgradeable.go:305] Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found.
            

            I did not manage to reproduce the error propagating to the CLI output during an upgrade, will try a bit harder. Looking at the submitted logs, it seems that the occurrences are always right after CVO startup - maybe local caches are not populated yet?

            Petr Muller added a comment - - edited I'm seeing these errors on CVO startup even outside upgrade, simply after installing 4.11.13: $ grep 'Unable to get ClusterVersion' cvo-log-ci-ln-qwmgtr2-76ef8.log 213:E1108 14:58:26.514402 1 upgradeable.go:305] Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found. 215:E1108 14:58:28.810071 1 upgradeable.go:305] Unable to get ClusterVersion, err=clusterversion.config.openshift.io "version" not found. I did not manage to reproduce the error propagating to the CLI output during an upgrade, will try a bit harder. Looking at the submitted logs, it seems that the occurrences are always right after CVO startup - maybe local caches are not populated yet?

              afri@afri.cz Petr Muller
              evakhoni@redhat.com Evgeni Vakhonin
              Evgeni Vakhonin Evgeni Vakhonin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: