Bug 2103703 - Automatic version upgrade triggered for oadp operator installed by cluster-backup-chart
Summary: Automatic version upgrade triggered for oadp operator installed by cluster-ba...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: DR4Hub
Version: rhacm-2.6
Hardware: x86_64
OS: Unspecified
unspecified
medium
Target Milestone: ---
: rhacm-2.6
Assignee: vbirsan
QA Contact: Thuy Nguyen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-07-04 14:44 UTC by Thuy Nguyen
Modified: 2022-09-06 22:34 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-06 22:33:25 UTC
Target Upstream Version:
Embargoed:
cbynum: rhacm-2.6+
cbynum: rhacm-2.6.z+


Attachments (Terms of Use)
installed operators (276.89 KB, image/png)
2022-07-04 14:44 UTC, Thuy Nguyen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 24016 0 None None None 2022-07-04 18:23:37 UTC
Red Hat Product Errata RHSA-2022:6370 0 None None None 2022-09-06 22:34:29 UTC

Description Thuy Nguyen 2022-07-04 14:44:06 UTC
Created attachment 1894517 [details]
installed operators

Description of problem: Automatic update triggered for oadp operator installed by cluster-backup-chart


Version-Release number of selected component (if applicable):
ACM 2.6.0-DOWNSTREAM-2022-07-02-02-33-25

How reproducible:


Steps to Reproduce:
1. Install ACM hub + enable cluster backup
2. The oadp v1.0.2 is installed by default by cluster-backup-chart

Actual results:
Automatic version upgrade triggered for oadp operator since the newer version of oadp exists in operator hub (v1.0.3), yet the upgrade halted due to constraints not satisfiable

Expected results:


Additional info:

```
# oc get sub -n open-cluster-management-backup
NAME                                PACKAGE                SOURCE             CHANNEL
redhat-oadp-operator-subscription   redhat-oadp-operator   redhat-operators   stable-1.0

# oc get csv -n open-cluster-management-backup
NAME                   DISPLAY         VERSION   REPLACES               PHASE
oadp-operator.v1.0.2   OADP Operator   1.0.2                            Replacing
oadp-operator.v1.0.3   OADP Operator   1.0.3     oadp-operator.v1.0.2   Pending

# oc get sub -n open-cluster-management-backup redhat-oadp-operator-subscriptio -oyaml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  annotations:
    helm.sh/hook: pre-install
    helm.sh/hook-weight: "-1"
    helm.sh/resource-policy: delete
  creationTimestamp: "2022-07-04T14:20:34Z"
  generation: 1
  labels:
    operators.coreos.com/redhat-oadp-operator.open-cluster-management-backup: ""
  name: redhat-oadp-operator-subscription
  namespace: open-cluster-management-backup
  ownerReferences:
  - apiVersion: apps.open-cluster-management.io/v1
    blockOwnerDeletion: true
    controller: true
    kind: HelmRelease
    name: cluster-backup-chart-450b9
    uid: f935599d-6366-4f50-b86c-b270da9492b9
  resourceVersion: "11895160"
  uid: 5a6cb025-80ad-4c5a-b945-43abc4b86c84
spec:
  channel: stable-1.0
  config:
    resources: {}
    tolerations:
    - effect: NoSchedule
      key: node-role.kubernetes.io/infra
      operator: Exists
  installPlanApproval: Automatic
  name: redhat-oadp-operator
  source: redhat-operators
  sourceNamespace: openshift-marketplace
  startingCSV: oadp-operator.v1.0.2
status:
  catalogHealth:
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: brew-acm-iib
      namespace: openshift-marketplace
      resourceVersion: "11810835"
      uid: 3efb1b34-b19e-4aca-bb1a-b1522bd48b7c
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: brew-mce-iib
      namespace: openshift-marketplace
      resourceVersion: "11815942"
      uid: 3469315e-994b-4f7a-a5b4-f8b6870ae011
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: certified-operators
      namespace: openshift-marketplace
      resourceVersion: "11830189"
      uid: c3398b90-698c-4963-a1ca-f401e063622f
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: community-operators
      namespace: openshift-marketplace
      resourceVersion: "11832908"
      uid: fce4e82b-4667-419a-9bc8-1065ed546844
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: redhat-marketplace
      namespace: openshift-marketplace
      resourceVersion: "11830266"
      uid: d8cb1a99-7eb1-4d19-a253-5ea034e4af3b
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  - catalogSourceRef:
      apiVersion: operators.coreos.com/v1alpha1
      kind: CatalogSource
      name: redhat-operators
      namespace: openshift-marketplace
      resourceVersion: "11832906"
      uid: e328a6f4-288b-48fd-8ff8-7145137e348d
    healthy: true
    lastUpdated: "2022-07-04T14:20:34Z"
  conditions:
  - lastTransitionTime: "2022-07-04T14:20:34Z"
    message: all available catalogsources are healthy
    reason: AllCatalogSourcesHealthy
    status: "False"
    type: CatalogSourcesUnhealthy
  - message: 'constraints not satisfiable: clusterserviceversion oadp-operator.v1.0.2
      exists and is not referenced by a subscription, @existing/open-cluster-management-backup//oadp-operator.v1.0.3
      and @existing/open-cluster-management-backup//oadp-operator.v1.0.2 originate
      from package redhat-oadp-operator, subscription redhat-oadp-operator-subscription
      requires @existing/open-cluster-management-backup//oadp-operator.v1.0.3, subscription
      redhat-oadp-operator-subscription exists'
    reason: ConstraintsNotSatisfiable
    status: "True"
    type: ResolutionFailed
  currentCSV: oadp-operator.v1.0.3
  installPlanGeneration: 3
  installPlanRef:
    apiVersion: operators.coreos.com/v1alpha1
    kind: InstallPlan
    name: install-v26ng
    namespace: open-cluster-management-backup
    resourceVersion: "11840873"
    uid: 9c7e557a-b16b-4393-ad25-5f30d225c5f7
  installedCSV: oadp-operator.v1.0.3
  installplan:
    apiVersion: operators.coreos.com/v1alpha1
    kind: InstallPlan
    name: install-v26ng
    uuid: 9c7e557a-b16b-4393-ad25-5f30d225c5f7
  lastUpdated: "2022-07-04T14:42:24Z"
  state: AtLatestKnown
```

Comment 3 errata-xmlrpc 2022-09-06 22:33:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Advanced Cluster Management 2.6.0 security updates and bug fixes), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:6370


Note You need to log in before you can comment on or make changes to this bug.