From c866123017a1defac249bebe76cc7bbaddf3cf67 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 9 Aug 2017 08:20:33 -0400 Subject: [PATCH] ceph-volume: lvm activate should not ignore exit status codes Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index e1bb12b331157..1f0de1717c53c 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -28,13 +28,13 @@ def activate_filestore(lvs): # mount the osd source = osd_lv.lv_path destination = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id) - process.call(['sudo', 'mount', '-v', source, destination]) + process.run(['sudo', 'mount', '-v', source, destination]) # ensure that the symlink for the journal is there if not os.path.exists(osd_journal): source = osd_journal destination = '/var/lib/ceph/osd/%s-%s/journal' % (conf.cluster, osd_id) - process.call(['sudo', 'ln', '-s', source, destination]) + process.run(['sudo', 'ln', '-s', source, destination]) # make sure that the journal has proper permissions system.chown(osd_journal) -- 2.39.5