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

Application related ManifestWork is not deleted, when Application is deleted by openshift-gitops on PlacementDecision changes

XMLWordPrintable

    • Quality / Stability / Reliability
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Workload Mgmt Train 27 - 1, Workload Mgmt Train 27 - 2
    • Important
    • None

      Description of problem:

      On a hub cluster, openshift-gitops is setup based on the push model (where ACM creates the Application on the ManagedCluster using ManifestWork).

      An ApplicationSet (named: app-busybox-cephfs-1) is initially placed on ManagedCluster rackm14, later the PlacementDecision (app-busybox-cephfs-1-placement-decision-1) is updated to deploy the Application to rackm03.

      What is noted is as follows:

      • The Application resource for rackm03 exists (app-busybox-cephfs-1-rackm03)
      • There is no Application resource for rackm14
      • The application ManifestWork for both ManagedClusters exist
          - app-busybox-cephfs-1-rackm03-fe0ac (namespace: rackm03)
          - app-busybox-cephfs-1-rackm14-48b8c (namespace: rackm14)

      The ManifestWork app-busybox-cephfs-1-rackm14-48b8c was expected to be cleaned up as a result of the Application resource not being present for the same ManagedCluster.

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

      ACM 2.13 on OCP 4.18

      How reproducible:

      Happened once, but similar instances have been seen in the past (quite one off)

      Steps to Reproduce:

      1. Create an ApplicationSet with gitops setup in the push model
      2. Set it up such that it is initially placed only on one ManagedCluster
      3. Switch the placement decision for the related Placement for the AppSet to another cluster
      4. Ensure original cluster does not have the required Application (or ensure on the hub that the ManifestWork for the Application on the older cluster namespace is deleted)
      5. Repeat a few time, with some wait in between for the Application to be rolled out fully, and it is possible that the issue may appear

      Actual results:

      Application (and its ManifestWork) is not removed from a cluster where it was orginally placed (by a PlacementDecision)

      Expected results:

      Application (and its ManifestWork) should be garbage collected if its PlacementDecision changes

      Additional info:

      As this was observed in the ODF-DR testing environment, one point of note is that the Placement for the ApplicationSet is reconciled by ODF-DR controllers and not ACM controllers.

      Additional notes:

              xiangli@redhat.com Xiangjing Li
              srangana@redhat.com Shyam Ranganathan
              Yupeng Chang Yupeng Chang
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: