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

Clean stage always failed when migrating conflicted or non-existed configmap/secret

XMLWordPrintable

    • GH Train-29
    • Important
    • Approved
    • None

      Description of problem:

      $ oc get mcm -n mgh acmqe-migration-q99r5n -oyaml
      apiVersion: global-hub.open-cluster-management.io/v1alpha1
      kind: ManagedClusterMigration
      metadata:
        creationTimestamp: "2025-06-17T07:31:39Z"
        finalizers:
        - global-hub.open-cluster-management.io/migration-cleanup
        generation: 1
        name: acmqe-migration-q99r5n
        namespace: mgh
        resourceVersion: "1276517"
        uid: d5fc078e-f341-40cb-bd92-3301aef2d8c2
      spec:
        includedManagedClusters:
        - clc-iks-980-stupz-iks
        includedResources:
        - configmap/default/non-existed-cm
        - secret/default/non-existed-secret
        to: local-cluster
      status:
        conditions:
        - lastTransitionTime: "2025-06-17T07:31:39Z"
          message: Migration resources have been validated
          reason: ResourceValidated
          status: "True"
          type: ResourceValidated
        - lastTransitionTime: "2025-06-17T07:31:44Z"
          message: All source and target hubs have been successfully initialized
          reason: ResourceInitialized
          status: "True"
          type: ResourceInitialized
        - lastTransitionTime: "2025-06-17T07:31:44Z"
          message: 'deploying source hub acmqe-hoh-auto-2bp6vj error: failed to get configmap
            default/non-existed-cm: configmaps "non-existed-cm" not found'
          reason: Timeout
          status: "False"
          type: ResourceDeployed
        - lastTransitionTime: "2025-06-17T07:37:12Z"
          message: cleanup timeout.  You may need to manually remove the annotation (global-hub.open-cluster-management.io/migrating)
            from the managed clusters.
          reason: Timeout
          status: "False"
          type: ResourceCleaned
        phase: Failed 

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

      How reproducible:

      Steps to Reproduce:

      1.  
      2.  
      3. ...

      Actual results:

      Expected results:

      Additional info:

              rh-ee-myan Meng Yan
              yahliu@redhat.com Yaheng Liu
              Hui Chen Hui Chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: