]> 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>
Thu, 30 Mar 2023 13:59:15 +0000 (19:29 +0530)
commit7cb3e58ecba037d21d76e417ee352a997fd028f0
treea5e0ef14f7f86a271e1820aa7daf74083c70c991
parentafaf251d212044367d8abc4843de2ff98c86616c
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>
qa/tasks/cephfs/test_nfs.py