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

CRD Upgrade Check fails with lots of "unknown change, refusing to determine that change is safe"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • None
    • 4.18, 4.19
    • OLM
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Rejected
    • Ivysaur OLM Sprint 269
    • 1
    • Done
    • Bug Fix
    • Hide
      * Before this release, cluster extension updates sometimes failed with the following error from the `CRDUpgradeCheck` resource: "unknown change, refusing to determine that change is safe". This error occurred due to the way that {olmv1} calculated the difference between version schemas. This update fixes the issue. link:https://issues.redhat.com/browse/OCPBUGS-53019[OCPBUGS-53019]
      Show
      * Before this release, cluster extension updates sometimes failed with the following error from the `CRDUpgradeCheck` resource: "unknown change, refusing to determine that change is safe". This error occurred due to the way that {olmv1} calculated the difference between version schemas. This update fixes the issue. link: https://issues.redhat.com/browse/OCPBUGS-53019 [ OCPBUGS-53019 ]
    • None
    • None
    • None
    • None

      I installed argocd-operator 0.6.0 successfully, and then tried an upgrade to 0.7.0. I expected the upgrade to succeed, but I got the following error message in the ClusterExtension's Progressing condition.

      validating upgrade for CRD "applicationsets.argoproj.io" failed: CustomResourceDefinition applicationsets.argoproj.io failed upgrade safety validation. "ChangeValidator" validation failed: version "v1alpha1", field "^.spec.generators" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].clusterDecisionResource.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].clusters.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].git.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].list.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].clusterDecisionResource.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].clusters.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].git.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].list.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].pullRequest.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.generators[*].scmProvider.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].matrix.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].clusterDecisionResource.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].clusters.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].git.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].list.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].pullRequest.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.generators[*].scmProvider.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].merge.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].pullRequest.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.generators[*].scmProvider.template.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.template.spec.sources" has unknown change, refusing to determine that change is safe
      validating upgrade for CRD "applications.argoproj.io" failed: CustomResourceDefinition applications.argoproj.io failed upgrade safety validation. "ChangeValidator" validation failed: version "v1alpha1", field "^.operation.sync.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.spec.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.status.history" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.status.history[*].sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.status.operationState.operation.sync.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.status.operationState.syncResult.sources" has unknown change, refusing to determine that change is safe
      version "v1alpha1", field "^.status.sync.comparedTo.sources" has unknown change, refusing to determine that change is safe

              jlanford@redhat.com Joe Lanford
              rh-ee-cchantse Catherine Chan-Tse
              None
              None
              Jian Zhang Jian Zhang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: