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

The CRD field type changes prevent operator updates in OLMv1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.21
    • 4.19
    • OLM
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      The update of the AMQ Broker Operator from version 7.12.2-opr-1 to version 7.12.3-opr-1 in OLMv1 fails because it is detected a field type change.
          

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

      4.19
          

      How reproducible:

      Always.
          

      Steps to Reproduce:

          1. Create a ClusterExtension CR with sourceType Catalog, packageName amq-broker-rhel8 and version: 7.12.2-opr-1
          2. Update the version of the ClusterExtension CR to 7.12.3-opr-1
          3. Watch the ClusterExtension conditions.
          

      Actual results:

      validating upgrade for CRD "activemqartemises.broker.amq.io" failed: CustomResourceDefinition activemqartemises.broker.amq.io failed upgrade safety validation. "ServedVersionValidator" validation failed: version upgrade "v2alpha3" to "v2alpha5", field "^.spec.addressSettings.addressSetting[*].redeliveryDelayMultiplier": type changed from "integer" to "number" version "v2alpha3", field "^.spec.addressSettings.addressSetting[*].redeliveryDelayMultiplier" has unknown change, refusing to determine that change is safe calculating schema diff between CRD versions "v2alpha3" and "v1beta1" version upgrade "v2alpha4" to "v2alpha5", field "^.spec.addressSettings.addressSetting[*].redeliveryDelayMultiplier": type changed from "integer" to "number" version "v2alpha4", field "^.spec.addressSettings.addressSetting[*].redeliveryDelayMultiplier" has unknown change, refusing to determine that change is safe calculating schema diff between CRD versions "v2alpha4" and "v1beta1" calculating schema diff between CRD versions "v2alpha5" and "v1beta1" for resolved bundle "amq-broker-operator.v7.12.3-opr-1-0.1741884937.p" with version "7.12.3-opr-1+0.1741884937.p"    

      Expected results:

      No issues.
          

      Additional info:

      https://redhat-internal.slack.com/archives/C3VS0LV41/p1753267871800429
          

              jlanford@redhat.com Joe Lanford
              dbruscin Domenico Francesco Bruscino
              None
              None
              Xia Zhao Xia Zhao
              None
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: