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

Upgrade: subs policy becomes compliant if an invalid channel was specified in the sub or an invalid operator was specified in subs channel

XMLWordPrintable

    • Moderate
    • Rejected
    • Unspecified
    • Release Note
    • Hide
      03/16: this should not gate 4.13 but should be release noted
      Rel Note for Telco: Yes
      Show
      03/16: this should not gate 4.13 but should be release noted Rel Note for Telco: Yes

      This bug was initially created as a copy of Bug #2054407

      I am copying this bug because:
      Use this BZ to track the effort remaining from Bug2054407 that depends on the implementation of https://github.com/operator-framework/operator-lifecycle-manager/issues/2730

      Description of problem:
      If an invalid subs channel is specified in subs policy used by upgrade, CGU will indicate a successful upgrade right after policy is enforced, because there is no change in state (AtLatestKnown).

      conditions/ResolutionFailed should be taken into account as well.

      • message: 'constraints not satisfiable: no operators found in channel 4.12 of
        package sriov-network-operator in the catalog referenced by subscription sriov-network-operator-subscription,
        subscription sriov-network-operator-subscription exists'
        reason: ConstraintsNotSatisfiable
        status: "True"
        type: ResolutionFailed

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

      How reproducible:
      100%

      Steps to Reproduce:
      1. Update any operator subscriptions channel to an invalid channel in PGT.
      2. Trigger upgrade with subscriptions policy.
      3. Monitor CGU status and policy status

      Actual results:

      • CGU indicates successful upgrade and subscriptions policy becomes compliant right away.

      Expected results:

      • subscriptions policy stays nonCompliant with conditions/ResolutionFailed field checked.

      Additional info:

            angwang@redhat.com Angie Wang
            angwang@redhat.com Angie Wang
            Joshua Clark Joshua Clark
            Emily O'Neill Emily O'Neill
            Red Hat Employee
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: