Bug #3253
closed
ceph-disk-activate: support clusters not named "ceph"
Added by Anonymous over 11 years ago.
Updated over 6 years ago.
Description
When activating an osd data disk, read mount options from ceph.conf, mount the disk, read the cluster uuid, find the right config file, read mount options from that; if they differ, unmount & remount with the new options; only then proceed.
- Tracker changed from Bug to Feature
- Translation missing: en.field_position set to 232
- Translation missing: en.field_position deleted (
262)
- Translation missing: en.field_position set to 55
- Translation missing: en.field_position deleted (
55)
- Translation missing: en.field_position set to 43
- Target version set to v0.60
- Status changed from New to Resolved
- Project changed from devops to Ceph
- Status changed from Resolved to New
- Target version deleted (
v0.60)
The function `mount_activate` still has this hard coded, and it references this ticket.
def mount_activate(
dev,
activate_key_template,
init,
dmcrypt,
dmcrypt_key_dir,
reactivate=False,
):
if dmcrypt:
part_uuid = get_partition_uuid(dev)
dev = dmcrypt_map(dev, dmcrypt_key_dir)
try:
fstype = detect_fstype(dev=dev)
except (subprocess.CalledProcessError,
TruncatedLineError,
TooManyLinesError) as e:
raise FilesystemTypeError(
'device {dev}'.format(dev=dev),
e,
)
# TODO always using mount options from cluster=ceph for
# now; see http://tracker.newdream.net/issues/3253
mount_options = get_mount_options(cluster='ceph', fs_type=fstype)
path = mount(dev=dev, fstype=fstype, options=mount_options)
- Tracker changed from Feature to Bug
- Status changed from New to In Progress
- Assignee set to Loïc Dachary
- Regression set to No
- Severity set to 3 - minor
- Backport set to luminous,jewel
- Status changed from In Progress to Fix Under Review
- Assignee deleted (
Loïc Dachary)
- Status changed from Fix Under Review to Won't Fix
Also available in: Atom
PDF