Project

General

Profile

Actions

Feature #53562

open

cephadm doesn't support osd crush_location_hook

Added by Sebastian Wagner over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
cephadm
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

crush_location_hook is a path to an executable that is executed in order to update the current OSD's crush location. Executed like so:

$crush_location_hook --cluster {cluster-name} --id {ID} --type {daemon-type}

and prints out the current crush locations.

Workarounds:


Related issues 1 (1 open0 closed)

Related to Orchestrator - Feature #48247: cephadm: RGW rgw_ldap_secretNew

Actions
Actions #1

Updated by Sebastian Wagner over 2 years ago

Actions #2

Updated by Wyllys Ingersoll over 1 year ago

Is anyone looking into this issue?

We have a non-orchestrated cluster with a complicated crush map where we rely on a custom crush_location_hook to put things in the right place in the event that the host reboots or an OSD has to be restarted. We really want to migrate to an orchestrated cluster but this one issue is a roadblock for now.

One workaround is to put the crush hook in a common location such as /etc/ceph, but then set the 'crush_location_hook' path in the config db to prefix with "/rootfs", ex:

ceph config set osd crush_location_hook /rootfs/etc/ceph/crushhook.sh

This seems to work since the containers running the osds have access to the hosts root through the /rootfs path internally.
Worst case, this should be clearly documented somewhere.

Actions

Also available in: Atom PDF