Uploaded image for project: 'OpenShift Migration Toolkit for Containers'
  1. OpenShift Migration Toolkit for Containers
  2. MIG-1661

Performing StorageClass conversion triggers the scale-down of all aplications of the namespace

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • MTC 1.8.7
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • Customer Escalated

      Environment:

      While running a StorageClass conversion was noticed that if there's more than one application running, then MTC scales down all the applications on the cutover phase, even those noninvolved in the migration. 

            [MIG-1661] Performing StorageClass conversion triggers the scale-down of all aplications of the namespace

            Reproducer:
            a) Two statefulset applications running on the same namespace:

            $ oc get statefulset --show-labels -n papagayo
            NAME        READY   AGE   LABELS
            test-mig1   1/1     24s   app=test-mig1
            test-mig2   1/1     21s   app=test-mig2 
            $ oc get pod -o wide --show-labels -n papagayo
            NAME          READY   STATUS    RESTARTS   AGE   IP             NODE                                     NOMINATED NODE   READINESS GATES   LABELS
            test-mig1-0   1/1     Running   0          48s   10.130.3.149   lperezbe-cluster1-kc5g4-worker-0-qgpfw   <none>           <none>            app=test-mig1,apps.kubernetes.io/pod-index=0,controller-revision-hash=test-mig1-6758bd6fb7,statefulset.kubernetes.io/pod-name=test-mig1-0
            test-mig2-0   1/1     Running   0          45s   10.131.2.218   lperezbe-cluster1-kc5g4-worker-0-nwnkv   <none>           <none>            app=test-mig2,apps.kubernetes.io/pod-index=0,controller-revision-hash=test-mig2-78fd469d54,statefulset.kubernetes.io/pod-name=test-mig2-0 

            b) Running Storageclass conversion just for the PVC of a single application:

            c) Executing Cutover triggers that both  go down:


            Even if the test-mig2 app was not involved in this migration

            $ oc get pod -w -n papagayo
            NAME          READY   STATUS    RESTARTS   AGE
            test-mig1-0   1/1     Running   0          3m52s
            test-mig2-0   1/1     Running   0          3m49s
            test-mig1-0   1/1     Terminating   0          4m9s
            test-mig2-0   1/1     Terminating   0          4m6s
            test-mig1-0   0/1     Terminating   0          4m39s
            test-mig2-0   0/1     Terminating   0          4m36s
            test-mig2-0   0/1     Terminating   0          4m36s
            test-mig2-0   0/1     Terminating   0          4m36s
            test-mig2-0   0/1     Terminating   0          4m36s
            test-mig1-0   0/1     Terminating   0          4m39s
            test-mig1-0   0/1     Terminating   0          4m39s
            test-mig1-0   0/1     Terminating   0          4m39s
            rsync-server   0/2     Pending       0          0s
            rsync-server   0/2     Pending       0          1s
            rsync-server   0/2     Pending       0          1s
            rsync-server   0/2     ContainerCreating   0          1s
            rsync-server   0/2     ContainerCreating   0          5s
            rsync-server   2/2     Running             0          5s
            rsync-s7j8l    0/2     Pending             0          0s
            rsync-s7j8l    0/2     Pending             0          0s
            rsync-s7j8l    0/2     Pending             0          0s
            rsync-s7j8l    0/2     ContainerCreating   0          0s
            rsync-s7j8l    0/2     ContainerCreating   0          11s
            rsync-s7j8l    1/2     NotReady            0          12s
            rsync-s7j8l    0/2     Completed           0          13s
            rsync-s7j8l    0/2     Completed           0          14s
            rsync-s7j8l    0/2     Completed           0          15s
            rsync-s7j8l    0/2     Completed           0          19s
            rsync-s7j8l    0/2     Terminating         0          19s
            rsync-s7j8l    0/2     Terminating         0          19s
            rsync-server   2/2     Terminating         0          25s
            rsync-server   0/2     Terminating         0          26s
            rsync-server   0/2     Terminating         0          27s
            rsync-server   0/2     Terminating         0          27s
            rsync-server   0/2     Terminating         0          27s
            test-mig1-0    0/1     Pending             0          0s
            test-mig1-0    0/1     Pending             0          0s
            test-mig1-0    0/1     Pending             0          0s
            test-mig1-0    0/1     ContainerCreating   0          0s
            test-mig2-0    0/1     Pending             0          0s
            test-mig2-0    0/1     Pending             0          1s
            test-mig2-0    0/1     Pending             0          1s
            test-mig2-0    0/1     ContainerCreating   0          1s
            test-mig1-0    0/1     ContainerCreating   0          6s
            test-mig1-0    1/1     Running             0          8s
            test-mig2-0    0/1     ContainerCreating   0          9s
            test-mig2-0    1/1     Running             0          10s
             

            Luis Perez Besa added a comment - Reproducer: a) Two statefulset applications running on the same namespace: $ oc get statefulset --show-labels -n papagayo NAME        READY   AGE   LABELS test-mig1   1/1     24s   app=test-mig1 test-mig2   1/1     21s   app=test-mig2 $ oc get pod -o wide --show-labels -n papagayo NAME          READY   STATUS    RESTARTS   AGE   IP             NODE                                     NOMINATED NODE   READINESS GATES   LABELS test-mig1-0   1/1     Running   0          48s   10.130.3.149   lperezbe-cluster1-kc5g4-worker-0-qgpfw   <none>           <none>            app=test-mig1,apps.kubernetes.io/pod-index=0,controller-revision-hash=test-mig1-6758bd6fb7,statefulset.kubernetes.io/pod-name=test-mig1-0 test-mig2-0   1/1     Running   0          45s   10.131.2.218   lperezbe-cluster1-kc5g4-worker-0-nwnkv   <none>           <none>            app=test-mig2,apps.kubernetes.io/pod-index=0,controller-revision-hash=test-mig2-78fd469d54,statefulset.kubernetes.io/pod-name=test-mig2-0 b) Running Storageclass conversion just for the PVC of a single application: c) Executing Cutover triggers that both  go down: Even if the test-mig2 app was not involved in this migration $ oc get pod -w -n papagayo NAME          READY   STATUS    RESTARTS   AGE test-mig1-0   1/1     Running   0          3m52s test-mig2-0   1/1     Running   0          3m49s test-mig1-0   1/1     Terminating   0          4m9s test-mig2-0   1/1     Terminating   0          4m6s test-mig1-0   0/1     Terminating   0          4m39s test-mig2-0   0/1     Terminating   0          4m36s test-mig2-0   0/1     Terminating   0          4m36s test-mig2-0   0/1     Terminating   0          4m36s test-mig2-0   0/1     Terminating   0          4m36s test-mig1-0   0/1     Terminating   0          4m39s test-mig1-0   0/1     Terminating   0          4m39s test-mig1-0   0/1     Terminating   0          4m39s rsync-server   0/2     Pending       0          0s rsync-server   0/2     Pending       0          1s rsync-server   0/2     Pending       0          1s rsync-server   0/2     ContainerCreating   0          1s rsync-server   0/2     ContainerCreating   0          5s rsync-server   2/2     Running             0          5s rsync-s7j8l    0/2     Pending             0          0s rsync-s7j8l    0/2     Pending             0          0s rsync-s7j8l    0/2     Pending             0          0s rsync-s7j8l    0/2     ContainerCreating   0          0s rsync-s7j8l    0/2     ContainerCreating   0          11s rsync-s7j8l    1/2     NotReady            0          12s rsync-s7j8l    0/2     Completed           0          13s rsync-s7j8l    0/2     Completed           0          14s rsync-s7j8l    0/2     Completed           0          15s rsync-s7j8l    0/2     Completed           0          19s rsync-s7j8l    0/2     Terminating         0          19s rsync-s7j8l    0/2     Terminating         0          19s rsync-server   2/2     Terminating         0          25s rsync-server   0/2     Terminating         0          26s rsync-server   0/2     Terminating         0          27s rsync-server   0/2     Terminating         0          27s rsync-server   0/2     Terminating         0          27s test-mig1-0    0/1     Pending             0          0s test-mig1-0    0/1     Pending             0          0s test-mig1-0    0/1     Pending             0          0s test-mig1-0    0/1     ContainerCreating   0          0s test-mig2-0    0/1     Pending             0          0s test-mig2-0    0/1     Pending             0          1s test-mig2-0    0/1     Pending             0          1s test-mig2-0    0/1     ContainerCreating   0          1s test-mig1-0    0/1     ContainerCreating   0          6s test-mig1-0    1/1     Running             0          8s test-mig2-0    0/1     ContainerCreating   0          9s test-mig2-0    1/1     Running             0          10s

              rhn-engineering-dymurray Dylan Murray
              rhn-support-lperezbe Luis Perez Besa
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: