qa: fix broken ceph.restart marking of OSDs down

Sage noticed `osd down` was not being performed. Bug was that the role
format had changed so splitting no longer worked correctly.

Fixes: https://tracker.ceph.com/issues/40773
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2019-08-21 21:13:37 -07:00
parent aba296aab8
commit 73c7d14eab
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -1634,14 +1634,10 @@ def restart(ctx, config):
ctx.daemons.get_daemon(type_, id_, cluster).restart()
clusters.add(cluster)
for cluster in clusters:
manager = ctx.managers[cluster]
for dmon in daemons:
if '.' in dmon:
dm_parts = dmon.split('.')
if dm_parts[1].isdigit():
if dm_parts[0] == 'osd':
manager.mark_down_osd(int(dm_parts[1]))
for role in daemons:
cluster, type_, id_ = teuthology.split_role(role)
if type_ == 'osd':
ctx.managers[cluster].mark_down_osd(id_)
if config.get('wait-for-healthy', True):
for cluster in clusters: