]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa: fix cluster creation failure in test_nfs.py
authordparmar18 <dparmar@redhat.com>
Mon, 13 Feb 2023 14:32:06 +0000 (20:02 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Fri, 31 Mar 2023 08:21:26 +0000 (13:51 +0530)
commit9b592bbd18907c128a9dab154254f52848fb792f
treee5cd084e5d43bfb8e881104718c87b3e75258df1
parent52aa0bde0962c712fdb942ad6f72cbf66b50bb5a
qa: fix cluster creation failure in test_nfs.py

Also adds a function _nfs_complete_cmd() that returns process obj so that stdout/stderr
can be used for evaluation(_nfs_cmd() uses raw_cluster_cmd() that returns just stdout
and it became difficult to time cluster creation errors in _test_create_cluster()).

It takes sometime to update the cluster data, therefore running the command set
(check nfs server status -> nfs cluster create test -> check cluster status) in
a loop (max six iteration with sleep of 5 secs at each iteration) fixes the issue.

Fixes: https://tracker.ceph.com/issues/58744
Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
(cherry picked from commit 7cb3e58ecba037d21d76e417ee352a997fd028f0)
qa/tasks/cephfs/test_nfs.py