Bug 2062022

Summary: cluster.open-cluster-management.io/backup-cluster of velero schedules should populate the corresponding hub clusterID
Product: Red Hat Advanced Cluster Management for Kubernetes Reporter: Thuy Nguyen <thnguyen>
Component: DR4HubAssignee: Sahar Ebrahimi <sahare>
Status: CLOSED ERRATA QA Contact: Thuy Nguyen <thnguyen>
Severity: high Docs Contact:
Priority: unspecified    
Version: rhacm-2.5Flags: bot-tracker-sync: rhacm-2.5+
Target Milestone: ---   
Target Release: rhacm-2.5   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-09 02:09:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thuy Nguyen 2022-03-08 22:42:32 UTC
Description of problem: cluster.open-cluster-management.io/backup-cluster of velero schedules should populate the corresponding hub clusterID


Version-Release number of selected component (if applicable):
- ACM 2.5.0-DOWNSTREAM-2022-03-03-03-15-27 (Final S3)
- MCE 2.0.0-DOWNANDBACK-2022-03-04-19-35-38


How reproducible:


Steps to Reproduce:
1. ACM/MCH/MCE is running
2. RH OADP installed ok with valid DPA/backupstorage created
3. Create backupschedule

Actual results:
cluster.open-cluster-management.io/backup-cluster of velero schedules populate the metadata.uid of clusterversion object

Expected results:
cluster.open-cluster-management.io/backup-cluster of velero schedules should populate the spec.clusterID of clusterversion object

Additional info:

oc get bsch -n openshift-adp
NAME           PHASE     MESSAGE
schedule-acm   Enabled   Velero schedules are enabled


oc get schedules.velero -n openshift-adp
NAME                               AGE
acm-credentials-cluster-schedule   6m41s
acm-credentials-hive-schedule      6m41s
acm-credentials-schedule           6m41s
acm-managed-clusters-schedule      6m41s
acm-resources-generic-schedule     6m41s
acm-resources-schedule             6m41s


oc get schedules.velero -n openshift-adp acm-managed-clusters-schedule -oyaml | grep labels: -A5
  labels:
    cluster.open-cluster-management.io/backup-cluster: a49530db-dc0b-41a4-b12b-5a2dac4835cc
    cluster.open-cluster-management.io/backup-schedule-name: schedule-acm
    cluster.open-cluster-management.io/backup-schedule-type: managedClusters
  name: acm-managed-clusters-schedule
  namespace: openshift-adp


oc get clusterversion version -oyaml
apiVersion: config.openshift.io/v1
kind: ClusterVersion
metadata:
  creationTimestamp: "2022-01-10T15:54:03Z"
  generation: 3
  name: version
  resourceVersion: "172287955"
  uid: a49530db-dc0b-41a4-b12b-5a2dac4835cc
spec:
  channel: stable-4.9
  clusterID: a8c8e296-d991-4649-9fda-d2730ba2348f
  desiredUpdate:
    image: quay.io/openshift-release-dev/ocp-release@sha256:b9ede044950f73730f00415a6fe8eb1b5afac34def872292fd0f9392c9b483f1
    version: 4.9.18
status:
...

Comment 1 bot-tracker-sync 2022-03-15 15:39:12 UTC
G2Bsync 1068018894 comment 
 thuyn-581 Tue, 15 Mar 2022 13:57:19 UTC 
 G2Bsync -
Validated on ACM 2.5.0-DOWNSTREAM-2022-03-14-13-03-46.

Comment 4 errata-xmlrpc 2022-06-09 02:09:24 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 (Important: Red Hat Advanced Cluster Management 2.5 security updates, images, 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:4956