From: Georgios Kyratsas Date: Wed, 13 May 2020 11:29:35 +0000 (+0200) Subject: qa/tasks/cephadm: Add support for raw disks X-Git-Tag: v16.1.0~2310^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F34900%2Fhead;p=ceph.git qa/tasks/cephadm: Add support for raw disks Currently tests on raw disks are failing due to stripping '/dev/' from device name. (ie https://tracker.ceph.com/issues/45383#change-165721) Signed-off-by: Georgios Kyratsas --- diff --git a/qa/tasks/cephadm.py b/qa/tasks/cephadm.py index 1d6247b35dd6..af542c454907 100644 --- a/qa/tasks/cephadm.py +++ b/qa/tasks/cephadm.py @@ -595,7 +595,10 @@ def ceph_osds(ctx, config): devs = devs_by_remote[remote] assert devs ## FIXME ## dev = devs.pop() - short_dev = dev.replace('/dev/', '') + if all(_ in dev for _ in ('lv', 'vg')): + short_dev = dev.replace('/dev/', '') + else: + short_dev = dev log.info('Deploying %s on %s with %s...' % ( osd, remote.shortname, dev)) _shell(ctx, cluster_name, remote, [