From: Alfredo Deza Date: Wed, 9 Aug 2017 12:20:33 +0000 (-0400) Subject: ceph-volume: lvm activate should not ignore exit status codes X-Git-Tag: v13.0.0~173^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c866123017a1defac249bebe76cc7bbaddf3cf67;p=ceph.git ceph-volume: lvm activate should not ignore exit status codes Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index e1bb12b33115..1f0de1717c53 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)