]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/tasks/cephadm_cases/test_cli: fix test_daemon_restart
authorSage Weil <sage@newdream.net>
Thu, 25 Nov 2021 14:10:28 +0000 (08:10 -0600)
committerSage Weil <sage@newdream.net>
Mon, 29 Nov 2021 16:24:20 +0000 (10:24 -0600)
commit9ae989482719bf890232061cf90b8677a788c25c
tree3d07fccd91330b008cd9e88bdf71541aa8d30f72
parent0f9ed11e6727bf4fccef4a0481cd9391f27d3cff
qa/tasks/cephadm_cases/test_cli: fix test_daemon_restart

We cannot schedule a daemon start if there is another daemon action
with a higher priority (including stop) scheduled.  However,
that state isn't cleared until *after* the osd goes down, the
systemctl command returns, and mgr/cephadm gets around to updating
the inventory scheduled_daemon_action state.

Semi-fix: (1) wait for the orch status to change, and then (2)
wait a few more seconds after that.

Signed-off-by: Sage Weil <sage@newdream.net>
qa/tasks/cephadm_cases/test_cli.py