feat[yaml]: Included litmusbook for deployment of minio

Signed-off-by: somesh kumar<EMAIL_ADDRESS>
What this PR does / why we need it:
Included litmusbook for provisioning and deprovisioning of minio
Special notes for your reviewer:
logs for minio deployment with deploy_count=4
PLAY [localhost] ***************************************************************
2019-12-05T07:19:18.694434 (delta: 0.119082)         elapsed: 0.119082 ********
===============================================================================

TASK [Gathering Facts] *********************************************************
2019-12-05T07:19:18.718845 (delta: 0.024321)         elapsed: 0.143493 ********
ok: [<IP_ADDRESS>]

TASK [include_tasks] ***********************************************************
2019-12-05T07:19:34.785171 (delta: 16.06627)         elapsed: 16.209819 *******
included: /utils/fcm/create_testname.yml for <IP_ADDRESS>

TASK [Record test instance/run ID] *********************************************
2019-12-05T07:19:34.958857 (delta: 0.173602)         elapsed: 16.383505 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Construct testname appended with runID] **********************************
2019-12-05T07:19:35.110386 (delta: 0.151456)         elapsed: 16.535034 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T07:19:35.269427 (delta: 0.158952)         elapsed: 16.694075 *******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T07:19:35.495120 (delta: 0.225586)         elapsed: 16.919768 *******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "2bf332f35fd0895e0cf297de6da4decc3aec5d86", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a887782fae455881048e40d3063c9155", "mode": "0644", "owner": "root", "size": 417, "src": "/root/.ansible/tmp/ansible-tmp-1575530375.61-24187228883096/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:19:36.746435 (delta: 1.251181)         elapsed: 18.171083 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.492344", "end": "2019-12-05 07:19:38.820693", "rc": 0, "start": "2019-12-05 07:19:37.328349", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: in-progress  \n    result: none ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: in-progress  ", "    result: none "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:19:38.912032 (delta: 2.165524)         elapsed: 20.33668 ********
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 15, "name": "minio-deployment", "resourceVersion": "847701", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "in-progress", "result": "none"}}}}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T07:19:40.730077 (delta: 1.817972)         elapsed: 22.154725 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:19:40.863333 (delta: 0.133175)         elapsed: 22.287981 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:19:40.959403 (delta: 0.095989)         elapsed: 22.384051 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check whether the provider storageclass is applied] **********************
2019-12-05T07:19:41.068271 (delta: 0.108781)         elapsed: 22.492919 *******
ok: [<IP_ADDRESS>] => {"changed": false, "failed_when_result": false, "resources": [{"apiVersion": "storage.k8s.io/v1", "kind": "StorageClass", "metadata": {"creationTimestamp": "2019-12-05T05:08:57Z", "name": "openebs-nfs", "resourceVersion": "754822", "selfLink": "/apis/storage.k8s.io/v1/storageclasses/openebs-nfs", "uid": "f2e33118-6227-45d8-a681-31d8f319bcdb"}, "parameters": {"mountOptions": "vers=4.1"}, "provisioner": "openebs.io/nfs", "reclaimPolicy": "Delete", "volumeBindingMode": "Immediate"}]}

TASK [include_tasks] ***********************************************************
2019-12-05T07:19:42.899577 (delta: 1.831229)         elapsed: 24.324225 *******
included: /utils/k8s/create_ns.yml for <IP_ADDRESS>

TASK [Obtain list of existing namespaces] **************************************
2019-12-05T07:19:43.144355 (delta: 0.244697)         elapsed: 24.569003 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl get ns --no-headers -o custom-columns=:metadata.name", "delta": "0:00:01.932685", "end": "2019-12-05 07:19:45.460596", "rc": 0, "start": "2019-12-05 07:19:43.527911", "stderr": "", "stderr_lines": [], "stdout": "app-nfs-ns\napp-nfsv4-ns\napp-scale\napp-scale-jiva\napp-wordpress-ns\nbusybox\nbusybox-csi\nbusybox-jiva-snap\nbusybox-snap\ncas-performance\ncert-manager\ndefault\ne2e\nfio\nfio-jiva\njiva-openebs-ns\njiva-replica-scaleup\nkommander\nkube-node-lease\nkube-public\nkube-system\nkubeaddons\nlitmus\nlogging\nmemleak-jiva\nopenebs\npost-rebuild\ntarget-delay\ntarget-loss", "stdout_lines": ["app-nfs-ns", "app-nfsv4-ns", "app-scale", "app-scale-jiva", "app-wordpress-ns", "busybox", "busybox-csi", "busybox-jiva-snap", "busybox-snap", "cas-performance", "cert-manager", "default", "e2e", "fio", "fio-jiva", "jiva-openebs-ns", "jiva-replica-scaleup", "kommander", "kube-node-lease", "kube-public", "kube-system", "kubeaddons", "litmus", "logging", "memleak-jiva", "openebs", "post-rebuild", "target-delay", "target-loss"]}

TASK [Create test specific namespace.] *****************************************
2019-12-05T07:19:45.618333 (delta: 2.473891)         elapsed: 27.042981 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl create ns app-minio-ns", "delta": "0:00:01.748662", "end": "2019-12-05 07:19:47.747641", "rc": 0, "start": "2019-12-05 07:19:45.998979", "stderr": "", "stderr_lines": [], "stdout": "namespace/app-minio-ns created", "stdout_lines": ["namespace/app-minio-ns created"]}

TASK [include_tasks] ***********************************************************
2019-12-05T07:19:47.923912 (delta: 2.30548)         elapsed: 29.34856 *********
included: /utils/k8s/status_testns.yml for <IP_ADDRESS>

TASK [Checking the status  of test specific namespace.] ************************
2019-12-05T07:19:48.235519 (delta: 0.31148)         elapsed: 29.660167 ********
ok: [<IP_ADDRESS>] => {"attempts": 1, "changed": false, "resources": [{"apiVersion": "v1", "kind": "Namespace", "metadata": {"creationTimestamp": "2019-12-05T07:19:47Z", "name": "app-minio-ns", "resourceVersion": "847794", "selfLink": "/api/v1/namespaces/app-minio-ns", "uid": "abd3e2d8-dd74-42d7-bea3-02163b1e9462"}, "spec": {"finalizers": ["kubernetes"]}, "status": {"phase": "Active"}}]}

TASK [Get the application label values from env] *******************************
2019-12-05T07:19:49.882690 (delta: 1.647042)         elapsed: 31.307338 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio"}, "changed": false}

TASK [Replace the application label placeholder in service spec] ***************
2019-12-05T07:19:50.283785 (delta: 0.401004)         elapsed: 31.708433 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the storage capacity placeholder] ********************************
2019-12-05T07:19:50.977800 (delta: 0.693924)         elapsed: 32.402448 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the storage class placeholder] ***********************************
2019-12-05T07:19:51.413853 (delta: 0.435973)         elapsed: 32.838501 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC name placeholder] ****************************************
2019-12-05T07:19:51.933350 (delta: 0.51942)         elapsed: 33.357998 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Applying the pvc] ********************************************************
2019-12-05T07:19:52.408542 (delta: 0.475095)         elapsed: 33.83319 ********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-pvc.yml -n app-minio-ns", "delta": "0:00:02.227588", "end": "2019-12-05 07:19:54.959748", "rc": 0, "start": "2019-12-05 07:19:52.732160", "stderr": "", "stderr_lines": [], "stdout": "service/minio-service created\npersistentvolumeclaim/minio-pv-claim created", "stdout_lines": ["service/minio-service created", "persistentvolumeclaim/minio-pv-claim created"]}

TASK [Checking the status of PVC] **********************************************
2019-12-05T07:19:55.113839 (delta: 2.705193)         elapsed: 36.538487 *******
changed: [<IP_ADDRESS>] => {"attempts": 1, "changed": true, "cmd": "kubectl get pvc minio-pv-claim -n app-minio-ns -o jsonpath='{.status.phase}'", "delta": "0:00:01.839732", "end": "2019-12-05 07:19:57.415007", "rc": 0, "start": "2019-12-05 07:19:55.575275", "stderr": "", "stderr_lines": [], "stdout": "Bound", "stdout_lines": ["Bound"]}

TASK [include_tasks] ***********************************************************
2019-12-05T07:19:57.545795 (delta: 2.431837)         elapsed: 38.970443 *******
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=0)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=1)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=2)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=3)

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:19:57.929524 (delta: 0.383644)         elapsed: 39.354172 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-0.yml", "delta": "0:00:01.268912", "end": "2019-12-05 07:19:59.505507", "rc": 0, "start": "2019-12-05 07:19:58.236595", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:19:59.601269 (delta: 1.671624)         elapsed: 41.025917 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-0"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:19:59.788394 (delta: 0.18703)         elapsed: 41.213042 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:20:00.249897 (delta: 0.461414)         elapsed: 41.674545 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:20:00.681461 (delta: 0.431488)         elapsed: 42.106109 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:20:01.141168 (delta: 0.459629)         elapsed: 42.565816 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-0.yml", "delta": "0:00:01.339439", "end": "2019-12-05 07:20:02.794549", "rc": 0, "start": "2019-12-05 07:20:01.455110", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-0\nspec:\n  selector:\n    matchLabels: \n      name: minio-0\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-0\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-0", "spec:", "  selector:", "    matchLabels: ", "      name: minio-0", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-0", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:20:02.911161 (delta: 1.76979)         elapsed: 44.335809 ********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-0.yml -n app-minio-ns", "delta": "0:00:02.159533", "end": "2019-12-05 07:20:05.378770", "rc": 0, "start": "2019-12-05 07:20:03.219237", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-0 created", "stdout_lines": ["deployment.apps/minio-deployment-0 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T07:20:05.501513 (delta: 2.590223)         elapsed: 46.926161 *******
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-0\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.566337", "end": "2019-12-05 07:20:39.469972", "rc": 0, "start": "2019-12-05 07:20:37.903635", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:20:39.625360 (delta: 34.123769)         elapsed: 81.050008 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:20:39.813665 (delta: 0.188208)         elapsed: 81.238313 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:20:39.995951 (delta: 0.182183)         elapsed: 81.420599 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-1.yml", "delta": "0:00:01.352474", "end": "2019-12-05 07:20:41.799003", "rc": 0, "start": "2019-12-05 07:20:40.446529", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:20:41.913435 (delta: 1.917381)         elapsed: 83.338083 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-1"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:20:42.120285 (delta: 0.206778)         elapsed: 83.544933 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:20:42.569731 (delta: 0.449364)         elapsed: 83.994379 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:20:43.130954 (delta: 0.561127)         elapsed: 84.555602 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:20:43.615030 (delta: 0.483977)         elapsed: 85.039678 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-1.yml", "delta": "0:00:01.428345", "end": "2019-12-05 07:20:45.371498", "rc": 0, "start": "2019-12-05 07:20:43.943153", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-1\nspec:\n  selector:\n    matchLabels: \n      name: minio-1\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-1\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-1", "spec:", "  selector:", "    matchLabels: ", "      name: minio-1", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-1", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:20:45.499219 (delta: 1.884089)         elapsed: 86.923867 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-1.yml -n app-minio-ns", "delta": "0:00:01.973289", "end": "2019-12-05 07:20:47.838882", "rc": 0, "start": "2019-12-05 07:20:45.865593", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-1 created", "stdout_lines": ["deployment.apps/minio-deployment-1 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T07:20:47.988697 (delta: 2.489376)         elapsed: 89.413345 *******
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-1\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.639314", "end": "2019-12-05 07:21:21.981930", "rc": 0, "start": "2019-12-05 07:21:20.342616", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:21:22.108318 (delta: 34.11952)         elapsed: 123.532966 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:21:22.257855 (delta: 0.149462)         elapsed: 123.682503 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:21:22.393722 (delta: 0.135786)         elapsed: 123.81837 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-2.yml", "delta": "0:00:01.396857", "end": "2019-12-05 07:21:24.106830", "rc": 0, "start": "2019-12-05 07:21:22.709973", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:21:24.215253 (delta: 1.821453)         elapsed: 125.639901 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-2"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:21:24.443133 (delta: 0.22777)         elapsed: 125.867781 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:21:24.959397 (delta: 0.516126)         elapsed: 126.384045 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:21:25.493121 (delta: 0.533625)         elapsed: 126.917769 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:21:26.072121 (delta: 0.578867)         elapsed: 127.496769 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-2.yml", "delta": "0:00:01.464642", "end": "2019-12-05 07:21:27.889363", "rc": 0, "start": "2019-12-05 07:21:26.424721", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-2\nspec:\n  selector:\n    matchLabels: \n      name: minio-2\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-2\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-2", "spec:", "  selector:", "    matchLabels: ", "      name: minio-2", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-2", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:21:28.008611 (delta: 1.936382)         elapsed: 129.433259 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-2.yml -n app-minio-ns", "delta": "0:00:01.788734", "end": "2019-12-05 07:21:30.138875", "rc": 0, "start": "2019-12-05 07:21:28.350141", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-2 created", "stdout_lines": ["deployment.apps/minio-deployment-2 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T07:21:30.246934 (delta: 2.23823)         elapsed: 131.671582 *******
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-2\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.687670", "end": "2019-12-05 07:22:04.244981", "rc": 0, "start": "2019-12-05 07:22:02.557311", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:22:04.346996 (delta: 34.099983)         elapsed: 165.771644 *****
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:22:04.482551 (delta: 0.135481)         elapsed: 165.907199 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:22:04.634569 (delta: 0.151939)         elapsed: 166.059217 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-3.yml", "delta": "0:00:01.474653", "end": "2019-12-05 07:22:06.475673", "rc": 0, "start": "2019-12-05 07:22:05.001020", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:22:06.593055 (delta: 1.958389)         elapsed: 168.017703 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-3"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:22:06.765347 (delta: 0.172194)         elapsed: 168.189995 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:22:07.227547 (delta: 0.462125)         elapsed: 168.652195 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:22:07.705284 (delta: 0.477652)         elapsed: 169.129932 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:22:08.388246 (delta: 0.682878)         elapsed: 169.812894 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-3.yml", "delta": "0:00:01.393325", "end": "2019-12-05 07:22:10.143641", "rc": 0, "start": "2019-12-05 07:22:08.750316", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-3\nspec:\n  selector:\n    matchLabels: \n      name: minio-3\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-3\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-3", "spec:", "  selector:", "    matchLabels: ", "      name: minio-3", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-3", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:22:10.241914 (delta: 1.853575)         elapsed: 171.666562 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-3.yml -n app-minio-ns", "delta": "0:00:01.881074", "end": "2019-12-05 07:22:12.469865", "rc": 0, "start": "2019-12-05 07:22:10.588791", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-3 created", "stdout_lines": ["deployment.apps/minio-deployment-3 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T07:22:12.598248 (delta: 2.356255)         elapsed: 174.022896 ******
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-3\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.750143", "end": "2019-12-05 07:22:47.630530", "rc": 0, "start": "2019-12-05 07:22:45.880387", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:22:47.771944 (delta: 35.173611)         elapsed: 209.196592 *****
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:22:47.918430 (delta: 0.146404)         elapsed: 209.343078 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [delete the pvc] **********************************************************
2019-12-05T07:22:48.102214 (delta: 0.183665)         elapsed: 209.526862 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [check if the cloned pvc is deleted] **************************************
2019-12-05T07:22:48.250880 (delta: 0.148568)         elapsed: 209.675528 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Delete the service] ******************************************************
2019-12-05T07:22:48.401200 (delta: 0.150239)         elapsed: 209.825848 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the service is deleted successfully] ****************************
2019-12-05T07:22:48.528696 (delta: 0.127418)         elapsed: 209.953344 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Delete the namespace.] ***************************************************
2019-12-05T07:22:48.655386 (delta: 0.126607)         elapsed: 210.080034 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the namespace is deleted successfully] **************************
2019-12-05T07:22:48.775141 (delta: 0.119668)         elapsed: 210.199789 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [set_fact] ****************************************************************
2019-12-05T07:22:48.917943 (delta: 0.142663)         elapsed: 210.342591 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"flag": "Pass"}, "changed": false}

TASK [include_tasks] ***********************************************************
2019-12-05T07:22:49.110782 (delta: 0.192749)         elapsed: 210.53543 *******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T07:22:49.428734 (delta: 0.317784)         elapsed: 210.853382 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:22:49.608870 (delta: 0.180007)         elapsed: 211.033518 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:22:49.765449 (delta: 0.156452)         elapsed: 211.190097 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T07:22:49.916408 (delta: 0.150834)         elapsed: 211.341056 ******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "4cbb1ca916b83e2015659a0b63f04bf25e478212", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a7d337d3c8093afc0c2c2ed82f6f5f21", "mode": "0644", "owner": "root", "size": 415, "src": "/root/.ansible/tmp/ansible-tmp-1575530570.04-176622525198374/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:22:53.699671 (delta: 3.783162)         elapsed: 215.124319 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.397950", "end": "2019-12-05 07:22:55.411108", "rc": 0, "start": "2019-12-05 07:22:54.013158", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: completed  \n    result: Pass ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: completed  ", "    result: Pass "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:22:55.561079 (delta: 1.861326)         elapsed: 216.985727 ******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 16, "name": "minio-deployment", "resourceVersion": "850136", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "completed", "result": "Pass"}}}}

PLAY RECAP *********************************************************************
<IP_ADDRESS>                  : ok=60   changed=42   unreachable=0    failed=0

2019-12-05T07:22:57.219953 (delta: 1.658783)         elapsed: 218.644601 ******
===============================================================================

logs for deprovision of minio with deploy_count=4
PLAY [localhost] ***************************************************************
2019-12-05T07:25:15.422442 (delta: 0.091397)         elapsed: 0.091397 ********
===============================================================================

TASK [Gathering Facts] *********************************************************
2019-12-05T07:25:15.442602 (delta: 0.020079)         elapsed: 0.111557 ********
ok: [<IP_ADDRESS>]

TASK [include_tasks] ***********************************************************
2019-12-05T07:25:30.758221 (delta: 15.315572)         elapsed: 15.427176 ******
included: /utils/fcm/create_testname.yml for <IP_ADDRESS>

TASK [Record test instance/run ID] *********************************************
2019-12-05T07:25:30.924391 (delta: 0.166108)         elapsed: 15.593346 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Construct testname appended with runID] **********************************
2019-12-05T07:25:31.047417 (delta: 0.122936)         elapsed: 15.716372 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T07:25:31.204219 (delta: 0.156711)         elapsed: 15.873174 *******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T07:25:31.416757 (delta: 0.212448)         elapsed: 16.085712 *******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "2bf332f35fd0895e0cf297de6da4decc3aec5d86", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a887782fae455881048e40d3063c9155", "mode": "0644", "owner": "root", "size": 417, "src": "/root/.ansible/tmp/ansible-tmp-1575530731.49-247611715982090/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:25:32.556740 (delta: 1.139907)         elapsed: 17.225695 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.430467", "end": "2019-12-05 07:25:34.600860", "rc": 0, "start": "2019-12-05 07:25:33.170393", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: in-progress  \n    result: none ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: in-progress  ", "    result: none "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:25:34.699656 (delta: 2.142837)         elapsed: 19.368611 *******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 17, "name": "minio-deployment", "resourceVersion": "852025", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "in-progress", "result": "none"}}}}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T07:25:36.648270 (delta: 1.948539)         elapsed: 21.317225 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:25:36.811363 (delta: 0.162995)         elapsed: 21.480318 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:25:36.918147 (delta: 0.106682)         elapsed: 21.587102 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check whether the provider storageclass is applied] **********************
2019-12-05T07:25:37.022967 (delta: 0.104719)         elapsed: 21.691922 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T07:25:37.160922 (delta: 0.137868)         elapsed: 21.829877 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Get the application label values from env] *******************************
2019-12-05T07:25:37.281207 (delta: 0.120181)         elapsed: 21.950162 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Replace the application label placeholder in service spec] ***************
2019-12-05T07:25:37.426347 (delta: 0.145048)         elapsed: 22.095302 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Replace the storage capacity placeholder] ********************************
2019-12-05T07:25:37.591359 (delta: 0.164898)         elapsed: 22.260314 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Replace the storage class placeholder] ***********************************
2019-12-05T07:25:37.759773 (delta: 0.16829)         elapsed: 22.428728 ********
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Replace the PVC name placeholder] ****************************************
2019-12-05T07:25:37.924236 (delta: 0.164347)         elapsed: 22.593191 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Applying the pvc] ********************************************************
2019-12-05T07:25:38.108995 (delta: 0.184644)         elapsed: 22.77795 ********
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Checking the status of PVC] **********************************************
2019-12-05T07:25:38.271021 (delta: 0.161923)         elapsed: 22.939976 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T07:25:38.425304 (delta: 0.154169)         elapsed: 23.094259 *******
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=0)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=1)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=2)
included: /apps/minio/deployers/minio_prerequisite.yml for <IP_ADDRESS> => (item=3)

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:25:38.831674 (delta: 0.406228)         elapsed: 23.500629 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-0.yml", "delta": "0:00:01.330259", "end": "2019-12-05 07:25:40.542914", "rc": 0, "start": "2019-12-05 07:25:39.212655", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:25:40.660897 (delta: 1.829139)         elapsed: 25.329852 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-0"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:25:40.878780 (delta: 0.217816)         elapsed: 25.547735 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:25:41.543468 (delta: 0.66458)         elapsed: 26.212423 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:25:42.029896 (delta: 0.486318)         elapsed: 26.698851 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:25:42.525513 (delta: 0.495536)         elapsed: 27.194468 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-0.yml", "delta": "0:00:01.484029", "end": "2019-12-05 07:25:44.333721", "rc": 0, "start": "2019-12-05 07:25:42.849692", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-0\nspec:\n  selector:\n    matchLabels: \n      name: minio-0\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-0\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-0", "spec:", "  selector:", "    matchLabels: ", "      name: minio-0", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-0", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:25:44.438976 (delta: 1.913278)         elapsed: 29.107931 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T07:25:44.570321 (delta: 0.131272)         elapsed: 29.239276 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:25:44.734127 (delta: 0.163707)         elapsed: 29.403082 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-0.yml -n app-minio-ns", "delta": "0:00:01.977494", "end": "2019-12-05 07:25:47.215270", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:25:45.237776", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-0\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-0\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:25:47.454920 (delta: 2.720637)         elapsed: 32.123875 *******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get po -n app-minio-ns -l \"name=minio-0\" --no-headers", "delta": "0:00:01.543046", "end": "2019-12-05 07:26:21.381727", "rc": 0, "start": "2019-12-05 07:26:19.838681", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:26:21.497151 (delta: 34.042159)         elapsed: 66.166106 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-1.yml", "delta": "0:00:01.345410", "end": "2019-12-05 07:26:23.166851", "rc": 0, "start": "2019-12-05 07:26:21.821441", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:26:23.270843 (delta: 1.773615)         elapsed: 67.939798 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-1"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:26:23.454181 (delta: 0.183243)         elapsed: 68.123136 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:26:23.888006 (delta: 0.433728)         elapsed: 68.556961 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:26:24.401499 (delta: 0.513384)         elapsed: 69.070454 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:26:24.784506 (delta: 0.382877)         elapsed: 69.453461 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-1.yml", "delta": "0:00:01.373954", "end": "2019-12-05 07:26:26.508699", "rc": 0, "start": "2019-12-05 07:26:25.134745", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-1\nspec:\n  selector:\n    matchLabels: \n      name: minio-1\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-1\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-1", "spec:", "  selector:", "    matchLabels: ", "      name: minio-1", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-1", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:26:26.615213 (delta: 1.830593)         elapsed: 71.284168 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T07:26:26.755967 (delta: 0.140676)         elapsed: 71.424922 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:26:26.901804 (delta: 0.145734)         elapsed: 71.570759 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-1.yml -n app-minio-ns", "delta": "0:00:01.637557", "end": "2019-12-05 07:26:28.901035", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:26:27.263478", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-1\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-1\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:26:29.034658 (delta: 2.132765)         elapsed: 73.703613 *******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get po -n app-minio-ns -l \"name=minio-1\" --no-headers", "delta": "0:00:01.556564", "end": "2019-12-05 07:27:02.880890", "rc": 0, "start": "2019-12-05 07:27:01.324326", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:27:03.081918 (delta: 34.047161)         elapsed: 107.750873 *****
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-2.yml", "delta": "0:00:01.463018", "end": "2019-12-05 07:27:04.885751", "rc": 0, "start": "2019-12-05 07:27:03.422733", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:27:04.990938 (delta: 1.908942)         elapsed: 109.659893 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-2"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:27:05.188241 (delta: 0.197215)         elapsed: 109.857196 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:27:05.633141 (delta: 0.444815)         elapsed: 110.302096 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:27:06.082067 (delta: 0.448841)         elapsed: 110.751022 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:27:06.520793 (delta: 0.438633)         elapsed: 111.189748 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-2.yml", "delta": "0:00:01.328742", "end": "2019-12-05 07:27:08.246308", "rc": 0, "start": "2019-12-05 07:27:06.917566", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-2\nspec:\n  selector:\n    matchLabels: \n      name: minio-2\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-2\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-2", "spec:", "  selector:", "    matchLabels: ", "      name: minio-2", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-2", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:27:08.346311 (delta: 1.825407)         elapsed: 113.015266 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T07:27:08.517136 (delta: 0.170736)         elapsed: 113.186091 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:27:08.701962 (delta: 0.184745)         elapsed: 113.370917 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-2.yml -n app-minio-ns", "delta": "0:00:01.606053", "end": "2019-12-05 07:27:10.677184", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:27:09.071131", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-2\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-2\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:27:10.784191 (delta: 2.082156)         elapsed: 115.453146 ******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get po -n app-minio-ns -l \"name=minio-2\" --no-headers", "delta": "0:00:01.587549", "end": "2019-12-05 07:27:44.684449", "rc": 0, "start": "2019-12-05 07:27:43.096900", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T07:27:44.850866 (delta: 34.066604)         elapsed: 149.519821 *****
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-3.yml", "delta": "0:00:01.378094", "end": "2019-12-05 07:27:46.609414", "rc": 0, "start": "2019-12-05 07:27:45.231320", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T07:27:46.716304 (delta: 1.865303)         elapsed: 151.385259 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-3"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T07:27:46.902898 (delta: 0.186505)         elapsed: 151.571853 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T07:27:47.392898 (delta: 0.489923)         elapsed: 152.061853 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T07:27:47.978013 (delta: 0.585017)         elapsed: 152.646968 ******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T07:27:48.410613 (delta: 0.432513)         elapsed: 153.079568 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-3.yml", "delta": "0:00:01.503853", "end": "2019-12-05 07:27:50.298108", "rc": 0, "start": "2019-12-05 07:27:48.794255", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-3\nspec:\n  selector:\n    matchLabels: \n      name: minio-3\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-3\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-3", "spec:", "  selector:", "    matchLabels: ", "      name: minio-3", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-3", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T07:27:50.421891 (delta: 2.011202)         elapsed: 155.090846 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T07:27:50.541454 (delta: 0.119458)         elapsed: 155.210409 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T07:27:50.675683 (delta: 0.13411)         elapsed: 155.344638 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-3.yml -n app-minio-ns", "delta": "0:00:01.630541", "end": "2019-12-05 07:27:52.670107", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:27:51.039566", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-3\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-3\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T07:27:52.801056 (delta: 2.125259)         elapsed: 157.470011 ******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get po -n app-minio-ns -l \"name=minio-3\" --no-headers", "delta": "0:00:01.571917", "end": "2019-12-05 07:28:26.713607", "rc": 0, "start": "2019-12-05 07:28:25.141690", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [delete the pvc] **********************************************************
2019-12-05T07:28:26.829045 (delta: 34.027904)         elapsed: 191.498 ********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete pvc minio-pv-claim -n app-minio-ns", "delta": "0:00:01.578639", "end": "2019-12-05 07:28:28.722684", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:28:27.144045", "stderr": "", "stderr_lines": [], "stdout": "persistentvolumeclaim \"minio-pv-claim\" deleted", "stdout_lines": ["persistentvolumeclaim \"minio-pv-claim\" deleted"]}

TASK [check if the cloned pvc is deleted] **************************************
2019-12-05T07:28:28.878819 (delta: 2.049673)         elapsed: 193.547774 ******
changed: [<IP_ADDRESS>] => {"attempts": 1, "changed": true, "cmd": "kubectl get pvc -n app-minio-ns", "delta": "0:00:02.570539", "end": "2019-12-05 07:28:31.935359", "rc": 0, "start": "2019-12-05 07:28:29.364820", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [Delete the service] ******************************************************
2019-12-05T07:28:32.082527 (delta: 3.203583)         elapsed: 196.751482 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete service minio-service -n app-minio-ns", "delta": "0:00:01.610303", "end": "2019-12-05 07:28:34.150744", "failed_when_result": false, "rc": 0, "start": "2019-12-05 07:28:32.540441", "stderr": "", "stderr_lines": [], "stdout": "service \"minio-service\" deleted", "stdout_lines": ["service \"minio-service\" deleted"]}

TASK [Check if the service is deleted successfully] ****************************
2019-12-05T07:28:34.278774 (delta: 2.196092)         elapsed: 198.947729 ******
changed: [<IP_ADDRESS>] => {"attempts": 1, "changed": true, "cmd": "kubectl get service -n app-minio-ns -l \"name=minio-3\" --no-headers", "delta": "0:00:01.561230", "end": "2019-12-05 07:28:36.200877", "rc": 0, "start": "2019-12-05 07:28:34.639647", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [Delete the namespace.] ***************************************************
2019-12-05T07:28:36.304858 (delta: 2.026)         elapsed: 200.973813 *********
changed: [<IP_ADDRESS>] => {"changed": true, "method": "delete", "result": {"apiVersion": "v1", "kind": "Namespace", "metadata": {"creationTimestamp": "2019-12-05T07:19:47Z", "deletionTimestamp": "2019-12-05T07:28:37Z", "name": "app-minio-ns", "resourceVersion": "854203", "selfLink": "/api/v1/namespaces/app-minio-ns", "uid": "abd3e2d8-dd74-42d7-bea3-02163b1e9462"}, "spec": {"finalizers": ["kubernetes"]}, "status": {"phase": "Terminating"}}}

TASK [Check if the namespace is deleted successfully] **************************
2019-12-05T07:28:37.835473 (delta: 1.530539)         elapsed: 202.504428 ******
FAILED - RETRYING: Check if the namespace is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get ns", "delta": "0:00:01.691407", "end": "2019-12-05 07:29:11.911477", "rc": 0, "start": "2019-12-05 07:29:10.220070", "stderr": "", "stderr_lines": [], "stdout": "NAME                   STATUS   AGE\napp-nfs-ns             Active   140m\napp-nfsv4-ns           Active   21h\napp-scale              Active   4h18m\napp-scale-jiva         Active   7h22m\napp-wordpress-ns       Active   20h\nbusybox                Active   20h\nbusybox-csi            Active   20h\nbusybox-jiva-snap      Active   20h\nbusybox-snap           Active   20h\ncas-performance        Active   7h20m\ncert-manager           Active   16d\ndefault                Active   16d\ne2e                    Active   21h\nfio                    Active   20h\nfio-jiva               Active   20h\njiva-openebs-ns        Active   7h22m\njiva-replica-scaleup   Active   7h22m\nkommander              Active   16d\nkube-node-lease        Active   16d\nkube-public            Active   16d\nkube-system            Active   16d\nkubeaddons             Active   16d\nlitmus                 Active   21h\nlogging                Active   21h\nmemleak-jiva           Active   20h\nopenebs                Active   21h\npost-rebuild           Active   20h\ntarget-delay           Active   20h\ntarget-loss            Active   20h", "stdout_lines": ["NAME                   STATUS   AGE", "app-nfs-ns             Active   140m", "app-nfsv4-ns           Active   21h", "app-scale              Active   4h18m", "app-scale-jiva         Active   7h22m", "app-wordpress-ns       Active   20h", "busybox                Active   20h", "busybox-csi            Active   20h", "busybox-jiva-snap      Active   20h", "busybox-snap           Active   20h", "cas-performance        Active   7h20m", "cert-manager           Active   16d", "default                Active   16d", "e2e                    Active   21h", "fio                    Active   20h", "fio-jiva               Active   20h", "jiva-openebs-ns        Active   7h22m", "jiva-replica-scaleup   Active   7h22m", "kommander              Active   16d", "kube-node-lease        Active   16d", "kube-public            Active   16d", "kube-system            Active   16d", "kubeaddons             Active   16d", "litmus                 Active   21h", "logging                Active   21h", "memleak-jiva           Active   20h", "openebs                Active   21h", "post-rebuild           Active   20h", "target-delay           Active   20h", "target-loss            Active   20h"]}

TASK [set_fact] ****************************************************************
2019-12-05T07:29:12.055902 (delta: 34.220298)         elapsed: 236.724857 *****
ok: [<IP_ADDRESS>] => {"ansible_facts": {"flag": "Pass"}, "changed": false}

TASK [include_tasks] ***********************************************************
2019-12-05T07:29:12.267140 (delta: 0.211166)         elapsed: 236.936095 ******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T07:29:12.558183 (delta: 0.290949)         elapsed: 237.227138 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:29:12.664467 (delta: 0.106184)         elapsed: 237.333422 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:29:12.765660 (delta: 0.10091)         elapsed: 237.434615 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T07:29:12.870307 (delta: 0.104555)         elapsed: 237.539262 ******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "4cbb1ca916b83e2015659a0b63f04bf25e478212", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a7d337d3c8093afc0c2c2ed82f6f5f21", "mode": "0644", "owner": "root", "size": 415, "src": "/root/.ansible/tmp/ansible-tmp-1575530952.95-70762590584999/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T07:29:16.449289 (delta: 3.578911)         elapsed: 241.118244 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.326556", "end": "2019-12-05 07:29:18.109902", "rc": 0, "start": "2019-12-05 07:29:16.783346", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: completed  \n    result: Pass ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: completed  ", "    result: Pass "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T07:29:18.207319 (delta: 1.757936)         elapsed: 242.876274 ******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 18, "name": "minio-deployment", "resourceVersion": "854744", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "completed", "result": "Pass"}}}}

PLAY RECAP *********************************************************************
<IP_ADDRESS>                  : ok=53   changed=40   unreachable=0    failed=0

2019-12-05T07:29:19.663917 (delta: 1.456518)         elapsed: 244.332872 ******
===============================================================================

logs for provisioning the minio with deploy_count=2 and pvc acces_mode=ReadWriteMany
PLAY [localhost] ***************************************************************
2019-12-05T10:42:48.851306 (delta: 0.084595)         elapsed: 0.084595 ********
===============================================================================

TASK [Gathering Facts] *********************************************************
2019-12-05T10:42:48.870401 (delta: 0.019022)         elapsed: 0.10369 *********
ok: [<IP_ADDRESS>]

TASK [include_tasks] ***********************************************************
2019-12-05T10:43:04.440513 (delta: 15.570064)         elapsed: 15.673802 ******
included: /utils/fcm/create_testname.yml for <IP_ADDRESS>

TASK [Record test instance/run ID] *********************************************
2019-12-05T10:43:04.643426 (delta: 0.202809)         elapsed: 15.876715 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Construct testname appended with runID] **********************************
2019-12-05T10:43:04.763824 (delta: 0.1203)         elapsed: 15.997113 *********
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T10:43:04.889582 (delta: 0.125668)         elapsed: 16.122871 *******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T10:43:05.109094 (delta: 0.219419)         elapsed: 16.342383 *******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "2bf332f35fd0895e0cf297de6da4decc3aec5d86", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a887782fae455881048e40d3063c9155", "mode": "0644", "owner": "root", "size": 417, "src": "/root/.ansible/tmp/ansible-tmp-1575542585.19-185089906095253/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:43:06.361407 (delta: 1.252191)         elapsed: 17.594696 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.318314", "end": "2019-12-05 10:43:08.310477", "rc": 0, "start": "2019-12-05 10:43:06.992163", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: in-progress  \n    result: none ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: in-progress  ", "    result: none "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:43:08.424502 (delta: 2.063008)         elapsed: 19.657791 *******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 27, "name": "minio-deployment", "resourceVersion": "992303", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "in-progress", "result": "none"}}}}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T10:43:10.266603 (delta: 1.841994)         elapsed: 21.499892 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:43:10.377991 (delta: 0.111281)         elapsed: 21.61128 ********
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:43:10.507458 (delta: 0.129342)         elapsed: 21.740747 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Get the application label values from env] *******************************
2019-12-05T10:43:10.625643 (delta: 0.118075)         elapsed: 21.858932 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio"}, "changed": false}

TASK [Replace the application label placeholder in service spec] ***************
2019-12-05T10:43:10.800652 (delta: 0.174895)         elapsed: 22.033941 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "3 replacements made"}

TASK [Replace the storage capacity placeholder] ********************************
2019-12-05T10:43:11.531501 (delta: 0.730756)         elapsed: 22.76479 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the storage class placeholder] ***********************************
2019-12-05T10:43:11.919660 (delta: 0.388054)         elapsed: 23.152949 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC name placeholder] ****************************************
2019-12-05T10:43:12.365821 (delta: 0.446045)         elapsed: 23.59911 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC access method placeholder] *******************************
2019-12-05T10:43:12.749586 (delta: 0.383679)         elapsed: 23.982875 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T10:43:13.250449 (delta: 0.500776)         elapsed: 24.483738 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Check whether the provider storageclass is applied] **********************
2019-12-05T10:43:13.715226 (delta: 0.464658)         elapsed: 24.948515 *******
ok: [<IP_ADDRESS>] => {"changed": false, "failed_when_result": false, "resources": [{"apiVersion": "storage.k8s.io/v1", "kind": "StorageClass", "metadata": {"creationTimestamp": "2019-12-05T05:08:57Z", "name": "openebs-nfs", "resourceVersion": "754822", "selfLink": "/apis/storage.k8s.io/v1/storageclasses/openebs-nfs", "uid": "f2e33118-6227-45d8-a681-31d8f319bcdb"}, "parameters": {"mountOptions": "vers=4.1"}, "provisioner": "openebs.io/nfs", "reclaimPolicy": "Delete", "volumeBindingMode": "Immediate"}]}

TASK [include_tasks] ***********************************************************
2019-12-05T10:43:15.605462 (delta: 1.89012)         elapsed: 26.838751 ********
included: /utils/k8s/create_ns.yml for <IP_ADDRESS>

TASK [Obtain list of existing namespaces] **************************************
2019-12-05T10:43:15.821407 (delta: 0.215854)         elapsed: 27.054696 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl get ns --no-headers -o custom-columns=:metadata.name", "delta": "0:00:01.919136", "end": "2019-12-05 10:43:18.099121", "rc": 0, "start": "2019-12-05 10:43:16.179985", "stderr": "", "stderr_lines": [], "stdout": "app-nfs-ns\napp-nfsv4-ns\napp-scale\napp-scale-jiva\napp-wordpress-ns\nbusybox\nbusybox-csi\nbusybox-jiva-snap\nbusybox-snap\ncas-performance\ncert-manager\ndefault\ne2e\nfio\nfio-jiva\njiva-openebs-ns\njiva-replica-scaleup\nkommander\nkube-node-lease\nkube-public\nkube-system\nkubeaddons\nlitmus\nlogging\nmemleak-jiva\nopenebs\npost-rebuild\ntarget-delay\ntarget-loss", "stdout_lines": ["app-nfs-ns", "app-nfsv4-ns", "app-scale", "app-scale-jiva", "app-wordpress-ns", "busybox", "busybox-csi", "busybox-jiva-snap", "busybox-snap", "cas-performance", "cert-manager", "default", "e2e", "fio", "fio-jiva", "jiva-openebs-ns", "jiva-replica-scaleup", "kommander", "kube-node-lease", "kube-public", "kube-system", "kubeaddons", "litmus", "logging", "memleak-jiva", "openebs", "post-rebuild", "target-delay", "target-loss"]}

TASK [Create test specific namespace.] *****************************************
2019-12-05T10:43:18.230392 (delta: 2.408882)         elapsed: 29.463681 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl create ns app-minio-ns", "delta": "0:00:01.674628", "end": "2019-12-05 10:43:20.299555", "rc": 0, "start": "2019-12-05 10:43:18.624927", "stderr": "", "stderr_lines": [], "stdout": "namespace/app-minio-ns created", "stdout_lines": ["namespace/app-minio-ns created"]}

TASK [include_tasks] ***********************************************************
2019-12-05T10:43:20.421178 (delta: 2.190676)         elapsed: 31.654467 *******
included: /utils/k8s/status_testns.yml for <IP_ADDRESS>

TASK [Checking the status  of test specific namespace.] ************************
2019-12-05T10:43:20.614155 (delta: 0.192859)         elapsed: 31.847444 *******
ok: [<IP_ADDRESS>] => {"attempts": 1, "changed": false, "resources": [{"apiVersion": "v1", "kind": "Namespace", "metadata": {"creationTimestamp": "2019-12-05T10:43:20Z", "name": "app-minio-ns", "resourceVersion": "992436", "selfLink": "/api/v1/namespaces/app-minio-ns", "uid": "6b6a2d6f-b524-4d87-a345-5fbfc804407f"}, "spec": {"finalizers": ["kubernetes"]}, "status": {"phase": "Active"}}]}

TASK [Applying the pvc] ********************************************************
2019-12-05T10:43:22.195280 (delta: 1.58098)         elapsed: 33.428569 ********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-pvc.yml -n app-minio-ns", "delta": "0:00:02.096121", "end": "2019-12-05 10:43:24.641296", "failed_when_result": false, "rc": 0, "start": "2019-12-05 10:43:22.545175", "stderr": "", "stderr_lines": [], "stdout": "service/minio-service created\npersistentvolumeclaim/minio-pv-claim created", "stdout_lines": ["service/minio-service created", "persistentvolumeclaim/minio-pv-claim created"]}

TASK [Checking the status of PVC] **********************************************
2019-12-05T10:43:24.848599 (delta: 2.653229)         elapsed: 36.081888 *******
changed: [<IP_ADDRESS>] => {"attempts": 1, "changed": true, "cmd": "kubectl get pvc minio-pv-claim -n app-minio-ns -o jsonpath='{.status.phase}'", "delta": "0:00:01.635140", "end": "2019-12-05 10:43:26.903494", "rc": 0, "start": "2019-12-05 10:43:25.268354", "stderr": "", "stderr_lines": [], "stdout": "Bound", "stdout_lines": ["Bound"]}

TASK [include_tasks] ***********************************************************
2019-12-05T10:43:27.021275 (delta: 2.172551)         elapsed: 38.254564 *******
included: /apps/minio/deployers/minio_prerequisites.yml for <IP_ADDRESS> => (item=0)
included: /apps/minio/deployers/minio_prerequisites.yml for <IP_ADDRESS> => (item=1)

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T10:43:27.306695 (delta: 0.2853)         elapsed: 38.539984 *********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-0.yml", "delta": "0:00:01.437400", "end": "2019-12-05 10:43:29.034648", "rc": 0, "start": "2019-12-05 10:43:27.597248", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T10:43:29.127012 (delta: 1.820225)         elapsed: 40.360301 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-0"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T10:43:29.287155 (delta: 0.160052)         elapsed: 40.520444 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T10:43:29.762286 (delta: 0.475011)         elapsed: 40.995575 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T10:43:30.182388 (delta: 0.419914)         elapsed: 41.415677 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-0.yml", "delta": "0:00:01.489838", "end": "2019-12-05 10:43:32.004487", "rc": 0, "start": "2019-12-05 10:43:30.514649", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-0\nspec:\n  selector:\n    matchLabels: \n      name: minio-0\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-0\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        livenessProbe:\n          exec:\n            command: \n            - /bin/sh\n            - -c\n            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;\n          initialDelaySeconds: 5\n          periodSeconds: 5\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-0", "spec:", "  selector:", "    matchLabels: ", "      name: minio-0", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-0", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        livenessProbe:", "          exec:", "            command: ", "            - /bin/sh", "            - -c", "            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;", "          initialDelaySeconds: 5", "          periodSeconds: 5", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T10:43:32.124514 (delta: 1.942001)         elapsed: 43.357803 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-0.yml -n app-minio-ns", "delta": "0:00:01.991194", "end": "2019-12-05 10:43:34.484631", "failed_when_result": false, "rc": 0, "start": "2019-12-05 10:43:32.493437", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-0 created", "stdout_lines": ["deployment.apps/minio-deployment-0 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T10:43:34.630861 (delta: 2.506226)         elapsed: 45.86415 ********
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-0\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.781282", "end": "2019-12-05 10:44:08.865112", "rc": 0, "start": "2019-12-05 10:44:07.083830", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T10:44:09.021024 (delta: 34.390047)         elapsed: 80.254313 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T10:44:09.172659 (delta: 0.151532)         elapsed: 80.405948 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T10:44:09.319590 (delta: 0.146816)         elapsed: 80.552879 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-1.yml", "delta": "0:00:01.390455", "end": "2019-12-05 10:44:11.128574", "rc": 0, "start": "2019-12-05 10:44:09.738119", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T10:44:11.221261 (delta: 1.901579)         elapsed: 82.45455 ********
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-1"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T10:44:11.470532 (delta: 0.249187)         elapsed: 82.703821 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T10:44:11.981638 (delta: 0.510991)         elapsed: 83.214927 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T10:44:12.460208 (delta: 0.478461)         elapsed: 83.693497 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-1.yml", "delta": "0:00:01.449908", "end": "2019-12-05 10:44:14.208935", "rc": 0, "start": "2019-12-05 10:44:12.759027", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-1\nspec:\n  selector:\n    matchLabels: \n      name: minio-1\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-1\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        livenessProbe:\n          exec:\n            command: \n            - /bin/sh\n            - -c\n            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;\n          initialDelaySeconds: 5\n          periodSeconds: 5\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-1", "spec:", "  selector:", "    matchLabels: ", "      name: minio-1", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-1", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        livenessProbe:", "          exec:", "            command: ", "            - /bin/sh", "            - -c", "            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;", "          initialDelaySeconds: 5", "          periodSeconds: 5", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T10:44:14.308215 (delta: 1.847886)         elapsed: 85.541504 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl apply -f minio-1.yml -n app-minio-ns", "delta": "0:00:02.069026", "end": "2019-12-05 10:44:16.725270", "failed_when_result": false, "rc": 0, "start": "2019-12-05 10:44:14.656244", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps/minio-deployment-1 created", "stdout_lines": ["deployment.apps/minio-deployment-1 created"]}

TASK [Check the pod status] ****************************************************
2019-12-05T10:44:16.903582 (delta: 2.595253)         elapsed: 88.136871 *******
FAILED - RETRYING: Check the pod status (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-1\" --no-headers -o custom-columns=:status.phase", "delta": "0:00:01.656922", "end": "2019-12-05 10:44:51.858672", "rc": 0, "start": "2019-12-05 10:44:50.201750", "stderr": "", "stderr_lines": [], "stdout": "Running", "stdout_lines": ["Running"]}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T10:44:52.039144 (delta: 35.135449)         elapsed: 123.272433 *****
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T10:44:52.178204 (delta: 0.138945)         elapsed: 123.411493 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the PVC and service] ********************************************
2019-12-05T10:44:52.307612 (delta: 0.129307)         elapsed: 123.540901 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [check if the pvc is deleted successfully] ********************************
2019-12-05T10:44:52.442162 (delta: 0.134438)         elapsed: 123.675451 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the service is deleted successfully] ****************************
2019-12-05T10:44:52.550140 (delta: 0.107864)         elapsed: 123.783429 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Delete the namespace.] ***************************************************
2019-12-05T10:44:52.695499 (delta: 0.145248)         elapsed: 123.928788 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check if the namespace is deleted successfully] **************************
2019-12-05T10:44:52.857583 (delta: 0.161984)         elapsed: 124.090872 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [set_fact] ****************************************************************
2019-12-05T10:44:53.046386 (delta: 0.188656)         elapsed: 124.279675 ******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"flag": "Pass"}, "changed": false}

TASK [include_tasks] ***********************************************************
2019-12-05T10:44:53.204006 (delta: 0.157504)         elapsed: 124.437295 ******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T10:44:53.404682 (delta: 0.200565)         elapsed: 124.637971 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:44:53.536985 (delta: 0.132181)         elapsed: 124.770274 ******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:44:53.652721 (delta: 0.115613)         elapsed: 124.88601 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T10:44:53.764215 (delta: 0.111403)         elapsed: 124.997504 ******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "4cbb1ca916b83e2015659a0b63f04bf25e478212", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a7d337d3c8093afc0c2c2ed82f6f5f21", "mode": "0644", "owner": "root", "size": 415, "src": "/root/.ansible/tmp/ansible-tmp-1575542693.87-100769521730309/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:44:57.376177 (delta: 3.611857)         elapsed: 128.609466 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.412604", "end": "2019-12-05 10:44:59.081704", "rc": 0, "start": "2019-12-05 10:44:57.669100", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: completed  \n    result: Pass ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: completed  ", "    result: Pass "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:44:59.202987 (delta: 1.826703)         elapsed: 130.436276 ******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 28, "name": "minio-deployment", "resourceVersion": "993712", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "completed", "result": "Pass"}}}}

PLAY RECAP *********************************************************************
<IP_ADDRESS>                  : ok=42   changed=28   unreachable=0    failed=0

2019-12-05T10:45:00.799811 (delta: 1.596732)         elapsed: 132.0331 ********
===============================================================================

logs for deprovisioning the minio with deploy_count=2 and pvc acces_mode=ReadWriteMany
PLAY [localhost] ***************************************************************
2019-12-05T10:48:06.102080 (delta: 0.111843)         elapsed: 0.111843 ********
===============================================================================

TASK [Gathering Facts] *********************************************************
2019-12-05T10:48:06.123677 (delta: 0.021503)         elapsed: 0.13344 *********
ok: [<IP_ADDRESS>]

TASK [include_tasks] ***********************************************************
2019-12-05T10:48:21.641271 (delta: 15.517543)         elapsed: 15.651034 ******
included: /utils/fcm/create_testname.yml for <IP_ADDRESS>

TASK [Record test instance/run ID] *********************************************
2019-12-05T10:48:21.826369 (delta: 0.184999)         elapsed: 15.836132 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Construct testname appended with runID] **********************************
2019-12-05T10:48:21.953178 (delta: 0.126702)         elapsed: 15.962941 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T10:48:22.090020 (delta: 0.136739)         elapsed: 16.099783 *******
included: /utils/fcm/update_litmus_result_resource.yml for <IP_ADDRESS>

TASK [Generate the litmus result CR to reflect SOT (Start of Test)] ************
2019-12-05T10:48:22.322711 (delta: 0.232585)         elapsed: 16.332474 *******
changed: [<IP_ADDRESS>] => {"changed": true, "checksum": "2bf332f35fd0895e0cf297de6da4decc3aec5d86", "dest": "./litmus-result.yaml", "gid": 0, "group": "root", "md5sum": "a887782fae455881048e40d3063c9155", "mode": "0644", "owner": "root", "size": 417, "src": "/root/.ansible/tmp/ansible-tmp-1575542902.39-107490711116500/source", "state": "file", "uid": 0}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:48:23.562792 (delta: 1.239994)         elapsed: 17.572555 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat litmus-result.yaml", "delta": "0:00:01.463219", "end": "2019-12-05 10:48:25.581696", "rc": 0, "start": "2019-12-05 10:48:24.118477", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: litmus.io/v1alpha1\nkind: LitmusResult\nmetadata:\n\n  # name of the litmus testcase\n  name: minio-deployment \nspec:\n\n  # holds information on the testcase\n  testMetadata:\n    app:  \n    chaostype:  \n\n  # holds the state of testcase,  manually updated by json merge patch\n  # result is the useful value today, but anticipate phase use in future \n  testStatus: \n    phase: in-progress  \n    result: none ", "stdout_lines": ["---", "apiVersion: litmus.io/v1alpha1", "kind: LitmusResult", "metadata:", "", "  # name of the litmus testcase", "  name: minio-deployment ", "spec:", "", "  # holds information on the testcase", "  testMetadata:", "    app:  ", "    chaostype:  ", "", "  # holds the state of testcase,  manually updated by json merge patch", "  # result is the useful value today, but anticipate phase use in future ", "  testStatus: ", "    phase: in-progress  ", "    result: none "]}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:48:25.679941 (delta: 2.117067)         elapsed: 19.689704 *******
changed: [<IP_ADDRESS>] => {"changed": true, "failed_when_result": false, "method": "patch", "result": {"apiVersion": "litmus.io/v1alpha1", "kind": "LitmusResult", "metadata": {"creationTimestamp": "2019-12-05T05:15:27Z", "generation": 29, "name": "minio-deployment", "resourceVersion": "996211", "selfLink": "/apis/litmus.io/v1alpha1/litmusresults/minio-deployment", "uid": "4170eb24-d231-4628-8fe1-cd13fcf286bd"}, "spec": {"testMetadata": {}, "testStatus": {"phase": "in-progress", "result": "none"}}}}

TASK [Generate the litmus result CR to reflect EOT (End of Test)] **************
2019-12-05T10:48:27.528782 (delta: 1.848768)         elapsed: 21.538545 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Analyze the cr yaml] *****************************************************
2019-12-05T10:48:27.621401 (delta: 0.092538)         elapsed: 21.631164 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Apply the litmus result CR] **********************************************
2019-12-05T10:48:27.728863 (delta: 0.107355)         elapsed: 21.738626 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Get the application label values from env] *******************************
2019-12-05T10:48:27.840633 (delta: 0.111658)         elapsed: 21.850396 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio"}, "changed": false}

TASK [Replace the application label placeholder in service spec] ***************
2019-12-05T10:48:28.096749 (delta: 0.256018)         elapsed: 22.106512 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "3 replacements made"}

TASK [Replace the storage capacity placeholder] ********************************
2019-12-05T10:48:28.880249 (delta: 0.783332)         elapsed: 22.890012 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the storage class placeholder] ***********************************
2019-12-05T10:48:29.364361 (delta: 0.484039)         elapsed: 23.374124 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC name placeholder] ****************************************
2019-12-05T10:48:29.792751 (delta: 0.428314)         elapsed: 23.802514 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC access method placeholder] *******************************
2019-12-05T10:48:30.199942 (delta: 0.407104)         elapsed: 24.209705 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Replace the PVC name placeholder with PVC created earlier] ***************
2019-12-05T10:48:30.686648 (delta: 0.486621)         elapsed: 24.696411 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [Check whether the provider storageclass is applied] **********************
2019-12-05T10:48:31.191733 (delta: 0.504994)         elapsed: 25.201496 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T10:48:31.293103 (delta: 0.101285)         elapsed: 25.302866 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Applying the pvc] ********************************************************
2019-12-05T10:48:31.426065 (delta: 0.132859)         elapsed: 25.435828 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Checking the status of PVC] **********************************************
2019-12-05T10:48:31.543820 (delta: 0.117649)         elapsed: 25.553583 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [include_tasks] ***********************************************************
2019-12-05T10:48:31.654146 (delta: 0.110211)         elapsed: 25.663909 *******
included: /apps/minio/deployers/minio_prerequisites.yml for <IP_ADDRESS> => (item=0)
included: /apps/minio/deployers/minio_prerequisites.yml for <IP_ADDRESS> => (item=1)

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T10:48:31.960259 (delta: 0.305975)         elapsed: 25.970022 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-0.yml", "delta": "0:00:01.458009", "end": "2019-12-05 10:48:33.787926", "rc": 0, "start": "2019-12-05 10:48:32.329917", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T10:48:33.894857 (delta: 1.934489)         elapsed: 27.90462 ********
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-0"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T10:48:34.064341 (delta: 0.169382)         elapsed: 28.074104 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T10:48:34.463500 (delta: 0.39907)         elapsed: 28.473263 ********
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T10:48:34.937156 (delta: 0.473541)         elapsed: 28.946919 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-0.yml", "delta": "0:00:01.471792", "end": "2019-12-05 10:48:36.739694", "rc": 0, "start": "2019-12-05 10:48:35.267902", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-0\nspec:\n  selector:\n    matchLabels: \n      name: minio-0\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-0\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        livenessProbe:\n          exec:\n            command: \n            - /bin/sh\n            - -c\n            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;\n          initialDelaySeconds: 5\n          periodSeconds: 5\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-0", "spec:", "  selector:", "    matchLabels: ", "      name: minio-0", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-0", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        livenessProbe:", "          exec:", "            command: ", "            - /bin/sh", "            - -c", "            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;", "          initialDelaySeconds: 5", "          periodSeconds: 5", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T10:48:36.879832 (delta: 1.942557)         elapsed: 30.889595 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T10:48:37.005696 (delta: 0.125774)         elapsed: 31.015459 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T10:48:37.132666 (delta: 0.12687)         elapsed: 31.142429 ********
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-0.yml -n app-minio-ns", "delta": "0:00:01.902917", "end": "2019-12-05 10:48:39.324063", "failed_when_result": false, "rc": 0, "start": "2019-12-05 10:48:37.421146", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-0\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-0\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T10:48:39.431408 (delta: 2.298636)         elapsed: 33.441171 *******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).
changed: [<IP_ADDRESS>] => {"attempts": 2, "changed": true, "cmd": "kubectl get pods -n app-minio-ns -l \"name=minio-0\" --no-headers", "delta": "0:00:01.585116", "end": "2019-12-05 10:49:13.165289", "rc": 0, "start": "2019-12-05 10:49:11.580173", "stderr": "No resources found.", "stderr_lines": ["No resources found."], "stdout": "", "stdout_lines": []}

TASK [copy the deployment spec to modify the specific values] ******************
2019-12-05T10:49:13.281420 (delta: 33.849913)         elapsed: 67.291183 ******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cp minio.yml minio-1.yml", "delta": "0:00:01.292664", "end": "2019-12-05 10:49:14.883471", "rc": 0, "start": "2019-12-05 10:49:13.590807", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

TASK [Get the application label values from env] *******************************
2019-12-05T10:49:14.990599 (delta: 1.709091)         elapsed: 69.000362 *******
ok: [<IP_ADDRESS>] => {"ansible_facts": {"app_lkey": "name", "app_lvalue": "minio-1"}, "changed": false}

TASK [Replace the application label placeholder in deployment spec] ************
2019-12-05T10:49:15.164081 (delta: 0.173393)         elapsed: 69.173844 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "2 replacements made"}

TASK [modify the Deployment name appended with number generated earlier] *******
2019-12-05T10:49:15.594238 (delta: 0.430061)         elapsed: 69.604001 *******
changed: [<IP_ADDRESS>] => {"changed": true, "msg": "1 replacements made"}

TASK [print the specific spec] *************************************************
2019-12-05T10:49:15.992684 (delta: 0.398364)         elapsed: 70.002447 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "cat minio-1.yml", "delta": "0:00:01.360195", "end": "2019-12-05 10:49:17.715033", "rc": 0, "start": "2019-12-05 10:49:16.354838", "stderr": "", "stderr_lines": [], "stdout": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n  name: minio-deployment-1\nspec:\n  selector:\n    matchLabels: \n      name: minio-1\n  strategy:\n    type: Recreate\n  template:\n    metadata:\n      labels:\n        # Label is used as selector in the service.\n        name: minio-1\n    spec:\n      # Refer to the PVC created earlier\n      volumes:\n      - name: data-vol\n        persistentVolumeClaim:\n          # Name of the PVC created earlier\n                claimName: minio-pv-claim\n      containers:\n      - name: minio\n        # Pulls the default Minio image from Docker Hub\n        image: minio/minio\n        args:\n        - server\n        - /storage1\n        livenessProbe:\n          exec:\n            command: \n            - /bin/sh\n            - -c\n            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;\n          initialDelaySeconds: 5\n          periodSeconds: 5\n        env:\n        # Minio access key and secret key\n        - name: MINIO_ACCESS_KEY\n          value: \"minio\"\n        - name: MINIO_SECRET_KEY\n          value: \"minio123\"\n        ports:\n        - containerPort: 9000\n        # Mount the volume into the pod\n        volumeMounts:\n        - name: data-vol # must match the volume name, above\n          mountPath: \"/storage1\"", "stdout_lines": ["---", "apiVersion: apps/v1", "kind: Deployment", "metadata:", "  name: minio-deployment-1", "spec:", "  selector:", "    matchLabels: ", "      name: minio-1", "  strategy:", "    type: Recreate", "  template:", "    metadata:", "      labels:", "        # Label is used as selector in the service.", "        name: minio-1", "    spec:", "      # Refer to the PVC created earlier", "      volumes:", "      - name: data-vol", "        persistentVolumeClaim:", "          # Name of the PVC created earlier", "                claimName: minio-pv-claim", "      containers:", "      - name: minio", "        # Pulls the default Minio image from Docker Hub", "        image: minio/minio", "        args:", "        - server", "        - /storage1", "        livenessProbe:", "          exec:", "            command: ", "            - /bin/sh", "            - -c", "            - touch /storage1/healthy; sleep 2; rm -rf /storage1/healthy;", "          initialDelaySeconds: 5", "          periodSeconds: 5", "        env:", "        # Minio access key and secret key", "        - name: MINIO_ACCESS_KEY", "          value: \"minio\"", "        - name: MINIO_SECRET_KEY", "          value: \"minio123\"", "        ports:", "        - containerPort: 9000", "        # Mount the volume into the pod", "        volumeMounts:", "        - name: data-vol # must match the volume name, above", "          mountPath: \"/storage1\""]}

TASK [Applying the deployment spec] ********************************************
2019-12-05T10:49:17.830430 (delta: 1.837662)         elapsed: 71.840193 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Check the pod status] ****************************************************
2019-12-05T10:49:17.993745 (delta: 0.163193)         elapsed: 72.003508 *******
skipping: [<IP_ADDRESS>] => {"changed": false, "skip_reason": "Conditional result was False"}

TASK [Deleting the deployment with spec] ***************************************
2019-12-05T10:49:18.144149 (delta: 0.150302)         elapsed: 72.153912 *******
changed: [<IP_ADDRESS>] => {"changed": true, "cmd": "kubectl delete -f minio-1.yml -n app-minio-ns", "delta": "0:00:01.588298", "end": "2019-12-05 10:49:20.065614", "failed_when_result": false, "rc": 0, "start": "2019-12-05 10:49:18.477316", "stderr": "", "stderr_lines": [], "stdout": "deployment.apps \"minio-deployment-1\" deleted", "stdout_lines": ["deployment.apps \"minio-deployment-1\" deleted"]}

TASK [Check if the pod is deleted successfully] ********************************
2019-12-05T10:49:20.193453 (delta: 2.049167)         elapsed: 74.203216 *******
FAILED - RETRYING: Check if the pod is deleted successfully (15 retries left).