raise RuntimeError('could not find %s with uuid %s' % (device_type, device_uuid))
-def activate_bluestore(lvs, no_systemd=False, no_tmpfs=False):
+def activate_bluestore(lvs, no_systemd=False):
# find the osd
osd_lv = lvs.get(lv_tags={'ceph.type': 'block'})
if not osd_lv:
osd_path = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id)
if not system.path_is_mounted(osd_path):
# mkdir -p and mount as tmpfs
- prepare_utils.create_osd_path(osd_id, tmpfs=(not no_tmpfs))
+ prepare_utils.create_osd_path(osd_id, tmpfs=True)
# XXX This needs to be removed once ceph-bluestore-tool can deal with
# symlinks that exist in the osd dir
for link_name in ['block', 'block.db', 'block.wal']:
logger.info('found a journal associated with the OSD, assuming filestore')
return activate_filestore(lvs, no_systemd=args.no_systemd)
logger.info('unable to find a journal associated with the OSD, assuming bluestore')
- return activate_bluestore(lvs,
- no_systemd=args.no_systemd,
- no_tmpfs=args.no_tmpfs)
+ return activate_bluestore(lvs, no_systemd=args.no_systemd)
if args.bluestore:
- activate_bluestore(lvs,
- no_systemd=args.no_systemd,
- no_tmpfs=args.no_tmpfs)
+ activate_bluestore(lvs, no_systemd=args.no_systemd)
elif args.filestore:
activate_filestore(lvs, no_systemd=args.no_systemd)
action='store_true',
help='Skip creating and enabling systemd units and starting OSD services',
)
- parser.add_argument(
- '--no-tmpfs',
- dest='no_tmpfs',
- action='store_true',
- help='Do not create a tmpfs for the OSD directory',
- )
if len(self.argv) == 0:
print(sub_command_help)
return