update to ue ceph-disk prepare instead of ceph-disk-prepare

This commit is contained in:
Chris MacNaughton 2016-01-08 14:03:51 -05:00
parent 5ee0b4d9ae
commit d6b354ca17
4 changed files with 8 additions and 6 deletions

View File

@ -91,7 +91,7 @@ hook to wait for all three nodes to come up, and then write their addresses
to ceph.conf in the "mon host" parameter. After we initialize the monitor
cluster a quorum forms quickly, and OSD bringup proceeds.
The osds use so-called "OSD hotplugging". **ceph-disk-prepare** is used to
The osds use so-called "OSD hotplugging". **ceph-disk prepare** is used to
create the filesystems with a special GPT partition type. *udev* is set up
to mount such filesystems and start the osd daemons as their storage becomes
visible to the system (or after `udevadm trigger`).

View File

@ -9,5 +9,6 @@ include:
- ceph
- payload.execd
- contrib.openstack.alternatives
- contrib.openstack.utils
- contrib.network.ip
- contrib.charmsupport

View File

@ -8,4 +8,4 @@ stop on runlevel [!2345]
task
instance $DEVNAME
exec /usr/sbin/ceph-disk-activate --mount -- "$DEVNAME"
exec /usr/sbin/ceph-disk activate --mount -- "$DEVNAME"

View File

@ -131,10 +131,10 @@ def start_osds(devices):
# Scan for ceph block devices
rescan_osd_devices()
if cmp_pkgrevno('ceph', "0.56.6") >= 0:
# Use ceph-disk-activate for directory based OSD's
# Use ceph-disk activate for directory based OSD's
for dev_or_path in devices:
if os.path.exists(dev_or_path) and os.path.isdir(dev_or_path):
subprocess.check_call(['ceph-disk-activate', dev_or_path])
subprocess.check_call(['ceph-disk', 'activate', dev_or_path])
def rescan_osd_devices():
@ -367,7 +367,7 @@ def osdize_dev(dev, osd_format, osd_journal, reformat_osd=False,
return
status_set('maintenance', 'Initializing device {}'.format(dev))
cmd = ['ceph-disk-prepare']
cmd = ['ceph-disk', 'prepare']
# Later versions of ceph support more options
if cmp_pkgrevno('ceph', '0.48.3') >= 0:
if osd_format:
@ -407,7 +407,8 @@ def osdize_dir(path):
mkdir(path)
cmd = [
'ceph-disk-prepare',
'ceph-disk',
'prepare',
'--data-dir',
path
]