Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-13365

activation label is added to the managed cls restore when setting user defined labels

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • ACM 2.12.0
    • Business Continuity
    • Moderate
    • None

      Description of problem:

       

      related to https://issues.redhat.com/browse/ACM-12973

       

      When the user sets a OrLabelSelector or a LabelSelector on the acm restore resource,

      these labels are set on all velero restore resources.

      The issue is that the label object is shared by all restore resources so when a new label is added to one restore, it shows up in all 

      For a passive restore, the activation label is set on the creds and generic restores. It ends up on the managed cls restore as well

       

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

      How reproducible:

      Always when user sets a OrLabelSelector or a LabelSelector on the acm restore resource

      Steps to Reproduce:

      1. Create an ORLabelSelector on the acm restore resource
      2. Set the acm restore using 

      apiVersion: cluster.open-cluster-management.io/v1beta1
      kind: Restore
      metadata:
        name: restore-acm-passive-sync
        namespace: open-cluster-management-backup
      spec:
        syncRestoreWithNewBackups: true # restore again when new backups are available
        restoreSyncInterval: 10m # check for new backups every 10 minutes
        cleanupBeforeRestore: CleanupRestored 
        veleroManagedClustersBackupName: latest
        veleroCredentialsBackupName: skip
        veleroResourcesBackupName: skip

      1. Activation resources label is set on the generic and creds restore, so that only activation credentials and generic resources are restored. 
         

      Actual results:

      Issue: the label is also shared by the managed cls restore so then no managed clusters are restored ( since none have the activation label )

      Expected results:

      The activation label should not be set on the managed cls restore 

      Additional info:

            vbirsan@redhat.com Valentina Birsan
            vbirsan@redhat.com Valentina Birsan
            Thuy Nguyen Thuy Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: