mirror of
https://github.com/ceph/ceph
synced 2024-12-26 13:33:57 +00:00
Merge pull request #14229 from ceph/wip-systemd
qa: Add reboot case for systemd test
This commit is contained in:
commit
574049a90b
@ -1 +0,0 @@
|
||||
../../../../distros/all/centos.yaml
|
@ -1,2 +0,0 @@
|
||||
os_type: ubuntu
|
||||
os_version: "16.04"
|
1
qa/suites/smoke/systemd/distros/centos_latest.yaml
Symbolic link
1
qa/suites/smoke/systemd/distros/centos_latest.yaml
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../distros/supported/centos_latest.yaml
|
1
qa/suites/smoke/systemd/distros/ubuntu_latest.yaml
Symbolic link
1
qa/suites/smoke/systemd/distros/ubuntu_latest.yaml
Symbolic link
@ -0,0 +1 @@
|
||||
../../../../distros/supported/ubuntu_latest.yaml
|
@ -8,6 +8,7 @@ import time
|
||||
|
||||
from cStringIO import StringIO
|
||||
from teuthology.orchestra import run
|
||||
from teuthology.misc import reconnect, get_first_mon, wait_until_healthy
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
@ -124,4 +125,18 @@ def task(ctx, config):
|
||||
log.info("Failed to stop ceph mds service")
|
||||
remote.run(args=['sudo', 'systemctl', 'start', mds_name])
|
||||
time.sleep(4)
|
||||
|
||||
# reboot all nodes and verify the systemd units restart
|
||||
# workunit that runs would fail if any of the systemd unit doesnt start
|
||||
ctx.cluster.run(args='sudo reboot', wait=False, check_status=False)
|
||||
# avoid immediate reconnect
|
||||
time.sleep(120)
|
||||
reconnect(ctx, 480) # reconnect all nodes
|
||||
# for debug info
|
||||
ctx.cluster.run(args=['sudo', 'ps', '-eaf', run.Raw('|'),
|
||||
'grep', 'ceph'])
|
||||
# wait for HEALTH_OK
|
||||
mon = get_first_mon(ctx, config)
|
||||
(mon_remote,) = ctx.cluster.only(mon).remotes.iterkeys()
|
||||
wait_until_healthy(ctx, mon_remote)
|
||||
yield
|
||||
|
Loading…
Reference in New Issue
Block a user