Open nagendra202 opened 3 months ago
I ran this test case locally and attached execution logs here. Test_execution_log.txt
Latest update on this issue after merging other PRs related to NSFS:
Script fails at getting the status of the "newly created bucket" https://github.com/red-hat-storage/ocs-ci/blob/master/tests/conftest.py#L5964
`
01:38:32 - MainThread - /Users/nnagendravaraprasadreddy/project/ocs-ci/ocs_ci/ocs/resources/objectbucket.py - INFO - s3-bucket-d055a442fcb446b9ac726ee01d1047 status is NO_RESOURCES 01:38:32 - MainThread - /Users/nnagendravaraprasadreddy/project/ocs-ci/ocs_ci/ocs/resources/objectbucket.py - INFO - s3-bucket-d055a442fcb446b9ac726ee01d1047 is unhealthy. Rechecking. 01:38:32 - MainThread - /Users/nnagendravaraprasadreddy/project/ocs-ci/ocs_ci/ocs/resources/objectbucket.py - ERROR - s3-bucket-d055a442fcb446b9ac726ee01d1047 did not reach a healthy state within 180 seconds. 01:38:32 - MainThread - ocs_ci.utility.utils - INFO - Executing command: oc --kubeconfig /Users/nnagendravaraprasadreddy/cnv_bm/new/auth/kubeconfig -n openshift-storage get obc s3-bucket-d055a442fcb446b9ac726ee01d1047 -n openshift-storage -o yaml 01:38:34 - MainThread - ocs_ci.utility.utils - WARNING - Command stderr: Error from server (NotFound): objectbucketclaims.objectbucket.io "s3-bucket-d055a442fcb446b9ac726ee01d1047" not found
01:38:34 - MainThread - ocs_ci.ocs.ocp - WARNING - Failed to get resource: s3-bucket-d055a442fcb446b9ac726ee01d1047 of kind: obc, selector: None, Error: Error during execution of command: oc --kubeconfig /Users/nnagendravaraprasadreddy/cnv_bm/new/auth/kubeconfig -n openshift-storage get obc s3-bucket-d055a442fcb446b9ac726ee01d1047 -n openshift-storage -o yaml. Error is Error from server (NotFound): objectbucketclaims.objectbucket.io "s3-bucket-d055a442fcb446b9ac726ee01d1047" not found
`
manually verified: Bucket creation is success in the cluster. Tested it manually by writing data to the buckets created by automation. It worked.
Yet to debug more on it to identify the problem in the script, why it is failing to get the correct status of the bucket.
Test case is failing because of the error
E ocs_ci.ocs.exceptions.CommandFailed: Error during execution of command: oc --kubeconfig /Users/nnagendravaraprasadreddy/cnv_bm/new/auth/kubeconfig -n openshift-storage get obc s3-bucket-53ce38f4fc094362ac3501f1a8a6ac -n openshift-storage -o yaml. E Error is Error from server (NotFound): objectbucketclaims.objectbucket.io "s3-bucket-53ce38f4fc094362ac3501f1a8a6ac" not found
ocs_ci/utility/utils.py:704: CommandFail
The below teardown issue expected because of the above failure in test case execution. Observed a failure in teardown of tests/cross_functional/system_test/test_nsfs_system.py
ERROR at teardown of TestNSFSSystem.test_nsfs __
tests/cross_functional/conftest.py:513: IndexError