mayadata-io / oep-e2e

Plan tests and run them for OpenEBS Enterprise Platform
Apache License 2.0
6 stars 10 forks source link

"TCID-LOCALPV-SELECTED-DEVICE-CREATE" fails in rancher pipeline #835

Closed gprasath closed 4 years ago

gprasath commented 4 years ago

The test script has to be updated with the test case type value in the respective litmus experiment. https://github.com/openebs/e2e-tests/blob/master/experiments/functional/localpv/localpv-provisioning-selected-device/run_litmus_test.yml

Based on this value, a certain block will be executed. As this value is not set, several tasks are getting skipped and it fails with the below error.

2020-08-03T07:20:36.978813 (delta: 0.318812)         elapsed: 6.436978 ******** 
changed: [127.0.0.1] => {"changed": true, "cmd": "kubectl create ns \"localpv-selected-device\"", "delta": "0:00:01.223169", "end": "2020-08-03 07:20:38.342387", "failed_when_result": false, "rc": 0, "start": "2020-08-03 07:20:37.119218", "stderr": "", "stderr_lines": [], "stdout": "namespace/localpv-selected-device created", "stdout_lines": ["namespace/localpv-selected-device created"]}
TASK [Obtain the list of nodes] ************************************************
2020-08-03T07:20:38.383711 (delta: 1.40485)         elapsed: 7.841876 ********* 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Getting the Unclaimed block-device from each node] ***********************
2020-08-03T07:20:38.420442 (delta: 0.03669)         elapsed: 7.878607 ********* 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Label the selected block devices] ****************************************
2020-08-03T07:20:38.457629 (delta: 0.037125)         elapsed: 7.915794 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Deploying application] ***************************************************
2020-08-03T07:20:38.493232 (delta: 0.035555)         elapsed: 7.951397 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check if the PVC is bound] ***********************************************
2020-08-03T07:20:38.526156 (delta: 0.032876)         elapsed: 7.984321 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check if the application is running] *************************************
2020-08-03T07:20:38.559482 (delta: 0.033272)         elapsed: 8.017647 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Obtain the list of nodes] ************************************************
2020-08-03T07:20:38.592988 (delta: 0.033466)         elapsed: 8.051153 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Getting the Unclaimed block-device from each node] ***********************
2020-08-03T07:20:38.632618 (delta: 0.039577)         elapsed: 8.090783 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Deploying application] ***************************************************
2020-08-03T07:20:38.668034 (delta: 0.035359)         elapsed: 8.126199 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Get the application pod name] ********************************************
2020-08-03T07:20:38.701740 (delta: 0.03366)         elapsed: 8.159905 ********* 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check the application pod status] ****************************************
2020-08-03T07:20:38.736353 (delta: 0.034572)         elapsed: 8.194518 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check if the PVC is in pending state] ************************************
2020-08-03T07:20:38.767842 (delta: 0.031438)         elapsed: 8.226007 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Label the selected block devices] ****************************************
2020-08-03T07:20:38.798878 (delta: 0.030996)         elapsed: 8.257043 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check if the PVC is in Bound state] **************************************
2020-08-03T07:20:38.832013 (delta: 0.033095)         elapsed: 8.290178 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Check if the application is running] *************************************
2020-08-03T07:20:38.865594 (delta: 0.033539)         elapsed: 8.323759 ******** 
skipping: [127.0.0.1] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [Getting PV name from PVC] ************************************************
2020-08-03T07:20:38.898518 (delta: 0.032883)         elapsed: 8.356683 ******** 
fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "kubectl get pvc localpv-selected-device-pvc -n localpv-selected-device --no-headers -o custom-columns=:.spec.volumeName", "delta": "0:00:01.258837", "end": "2020-08-03 07:20:40.306877", "failed_when_result": true, "msg": "non-zero return code", "rc": 1, "start": "2020-08-03 07:20:39.048040", "stderr": "Error from server (NotFound): persistentvolumeclaims \"localpv-selected-device-pvc\" not found", "stderr_lines": ["Error from server (NotFound): persistentvolumeclaims \"localpv-selected-device-pvc\" not found"], "stdout": "", "stdout_lines": []}
w3aman commented 4 years ago

Looks like this PR already has the fix for this issue. need to merge it. Should not fail after that https://github.com/mayadata-io/oep-e2e-rancher/pull/58/files

w3aman commented 4 years ago

/closed