From: Pere Diaz Bou Date: Mon, 29 Nov 2021 12:05:38 +0000 (+0100) Subject: cephadm/box: revert ceph_volume X-Git-Tag: v17.1.0~148^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e8de91e782908da36c6f0435a4db50fc1a007b78;p=ceph.git cephadm/box: revert ceph_volume Signed-off-by: Pere Diaz Bou --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py index fba659b8328b3..05f83383f0ea1 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/common.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/common.py @@ -123,12 +123,6 @@ bluestore_args = { 'type': int, 'default': 1, }, - '--no-tmpfs': { - 'action': 'store_true', - 'dest': 'no_tmpfs', - 'help': ('Disable tmpfs osd data directory with bluestore.' - 'Useful if you want to run lvm preprare from cephadm'), - }, } filestore_args = { diff --git a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py index 6567c78d9f5ec..2f715fdba122c 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py @@ -81,7 +81,7 @@ def prepare_filestore(device, journal, secrets, tags, osd_id, fsid): ) -def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid, tmpfs=True): +def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid): """ :param block: The name of the logical volume for the bluestore data :param wal: a regular/plain disk or logical volume, to be used for block.wal @@ -104,7 +104,7 @@ def prepare_bluestore(block, wal, db, secrets, tags, osd_id, fsid, tmpfs=True): db = prepare_dmcrypt(key, db, 'db', tags) # create the directory - prepare_utils.create_osd_path(osd_id, tmpfs=tmpfs) + prepare_utils.create_osd_path(osd_id, tmpfs=True) # symlink the block prepare_utils.link_block(block, osd_id) # get the latest monmap @@ -384,8 +384,6 @@ class Prepare(object): tags['ceph.type'] = 'block' block_lv.set_tags(tags) - tmpfs = not self.args.no_tmpfs - prepare_bluestore( block_lv.lv_path, wal_device, @@ -394,7 +392,6 @@ class Prepare(object): tags, self.osd_id, osd_fsid, - tmpfs=tmpfs ) def main(self):