Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-24730

openstack-operator: field is immutable when upgrading from 0.4 -> main (FR5)

XMLWordPrintable

    • RHOS Upgrades 2025 Sprint 19
    • 1
    • Important

      To Reproduce Steps to reproduce the behavior:

      1. Install openstack-operator from FR4
      2. Upgrade to openstack-operator FR5 via OLM (without uninstalling first).

      The CSV and Installplan will hang with the following CSV error:

       

        Normal   RequirementsUnknown     2m10s                 operator-lifecycle-manager  requirements not yet checked
        Normal   RequirementsNotMet      2m10s                 operator-lifecycle-manager  one or more requirements couldn't be found
        Normal   NeedsReinstall          101s (x10 over 2m8s)  operator-lifecycle-manager  installing: missing deployment with name=openstack-operator-controller-operator
        Normal   AllRequirementsMet      100s (x10 over 2m9s)  operator-lifecycle-manager  all requirements found, attempting install
        Warning  InstallComponentFailed  99s (x10 over 2m9s)   operator-lifecycle-manager  install strategy failed: Deployment.apps "openstack-operator-controller-operator" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string

      {"app.kubernetes.io/name":"openstack-operator-controller-operator", "control-plane":"controller-manager", "openstack.org/operator-name":"openstack-init"}

      , MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable

       

      The issue seems to be related to the operator-sdk upgrade where we added and renamed some of the Deployment labels.

       

              dprince@redhat.com Dan Prince
              dprince@redhat.com Dan Prince
              rhos-dfg-upgrades
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: