Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-21367

[2126537] HCO upgrade (4.10.z->4.11) should not be blocked if no knmstate policy is applied

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • CLOSED
    • Release Notes
    • Hide
      Updating to OpenShift Virtualization 4.11 from version 4.10 is blocked until you install the standalone Kubernetes NMState Operator. This occurs even if your cluster configuration does not use any nmstate resources. (BZ#2126537)

      As a workaround: [Please click Known issues to see the steps and images in the online release notes.]
      https://bugzilla.redhat.com/show_bug.cgi?id=2126537
      https://docs.openshift.com/container-platform/4.11/virt/virt-4-11-release-notes.html#virt-4-11-known-issues
      Show
      Updating to OpenShift Virtualization 4.11 from version 4.10 is blocked until you install the standalone Kubernetes NMState Operator. This occurs even if your cluster configuration does not use any nmstate resources. (BZ#2126537) As a workaround: [Please click Known issues to see the steps and images in the online release notes.] https://bugzilla.redhat.com/show_bug.cgi?id=2126537 https://docs.openshift.com/container-platform/4.11/virt/virt-4-11-release-notes.html#virt-4-11-known-issues
    • Known Issue
    • Done
    • ---
    • ---
    • High
    • None

      Description of problem:
      Until CNv 4.10, knmstate was installed as part of CNV.
      Starting from CNV 4.11, knmstate is installed as a standalone operator, and CNV does not depend on knmstate anymore (unless user explicitly wish to install and use knmstate).
      Upgrading CNV 4.10->4.11 should be blocked if knmstate is currently used (i.e. if there are NodeNetworkConfigurationPolicy's applied), and standalone knmstate is not yet installed. Currently - the upgrade is blocked even if there is no policy applied.

      Version-Release number of selected component (if applicable):
      OCP 4.11.0
      CNV 4.10.5
      knmstate v4.10.5-1
      HCO v4.10.5-1
      cluster-network-addons-operator v4.10.5-1

      How reproducible:
      100%

      Steps to Reproduce:
      1.
      On a cluster with OCP 4.11 and CNV 4.10.z (z>=2) - make sure there is no NodeNetworkConfigurationPolicy (NNCP):
      $ oc get nncp
      No resources found

      2.
      Make sure standalone knmstate is not installed:
      $ oc get ns | grep nmstate
      $

      3.
      Check the Upgradeable status of HCO:
      $ oc get hco -n openshift-cnv kubevirt-hyperconverged -ojsonpath=

      {.status.conditions}

      | jq
      [
      ...

      { "lastTransitionTime": "2022-09-13T14:54:19Z", "message": "NetworkAddonsConfig is not upgradeable: NMState deployment is not supported by CNAO anymore, please install Kubernetes NMState Operator", "observedGeneration": 2, "reason": "NetworkAddonsConfigNotUpgradeable", "status": "False", "type": "Upgradeable" }

      ]

      <BUG>
      Upgradeable should be "True"

              ellorent Felix Enrique Llorente Pastora
              ysegev@redhat.com Yossi Segev
              Yossi Segev Yossi Segev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: