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 <gkyratsas@suse.com>
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, [