This fixes the "end" (unwind) phase of the deepsea task so it unmounts OSD data
partitions only if they exist and are block devices (umount on a non-existent
partition can cause bogus test failure).
Signed-off-by: Nathan Cutler <ncutler@suse.com>
.format(_remote.hostname))
_remote.run(args=[
'sudo', 'sh', '-c',
- 'umount /dev/vdb2 ; umount /dev/vdc2'
+ 'for f in vdb2 vdc2 ; do test -b /dev/$f && umount /dev/$f || true ; done'
])
super(DeepSea, self).end()