]> git-server-git.apps.pok.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:12:47 +0000 (13:42 +0530)
commit352a472912d3160de7621bf2de54204a7dd36f80
tree801c1af893e875031e3a48299beb915ac275aa1a
parent3e2381fe28212dc2d2c3f97a7dbc96a6694feef7
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