Bug 2139886 - [RFE] Adding the crush_location label to monitors with Cephadm. Required for Stretched RHCS
Summary: [RFE] Adding the crush_location label to monitors with Cephadm. Required for ...
Keywords:
Status: CLOSED DUPLICATE of bug 2016889
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 6.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: 6.1
Assignee: Adam King
QA Contact: Manasa
Anjana Suparna Sriram
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-03 17:58 UTC by daniel parkes
Modified: 2022-11-07 03:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-07 03:34:11 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-5555 0 None None None 2022-11-03 18:04:24 UTC

Description daniel parkes 2022-11-03 17:58:54 UTC
Description of problem:

When deploying RHCS in stretched mode, the monitors need to have a crush location label to identify the site there are in, for example:

$ ceph mon dump | grep location
0: [v2:10.70.56.157:3300/0,v1:10.70.56.157:6789/0] mon.ceph-0; crush_location {datacenter=DC1}
1: [v2:10.70.56.125:3300/0,v1:10.70.56.125:6789/0] mon.ceph-1; crush_location {datacenter=DC1}
2: [v2:10.70.56.175:3300/0,v1:10.70.56.175:6789/0] mon.ceph-3; crush_location {datacenter=DC2}
3: [v2:10.70.56.228:3300/0,v1:10.70.56.228:6789/0] mon.ceph-4; crush_location {datacenter=DC2}
4: [v2:10.70.56.111:3300/0,v1:10.70.56.111:6789/0] mon.ceph-6; crush_location {datacenter=DC3}

We currently add these labels using ceph commands as a day 2 operation:

$ ceph mon set_location ceph1 datacenter=DC1

Also, when replacing monitors with Ceph in stretched mode, you need to have the location label in place, or the Monitor will refuse to start:

$ ceph orch daemon add mon ceph03

In the monitor logs, you get the following entries:

cluster [INF] ceph03 attempted to join from ceph03 [v2:192.168.1.207:3300/0,v1:192.168.1.207:6789/0]; but lacks a crush_location for stretch mode

We are currently working around this by updating the monmap with the new monitor:

$ ceph mon add ceph03 192.168.1.207 datacenter=DC3
$ ceph orch daemon add mon ceph03

But this is not ideal, and it would be great if we could pass the crush_location label to the monitor with cephadm.

I would mention that monitor crush_location is a label the monitors use. It's not related to the OSD crush map, so I would plan to add this feature for the monitors independently from the location spec we use for the service_type: host, as they could be completely different values.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 RHEL Program Management 2022-11-03 17:59:03 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 2 Pawan 2022-11-07 03:34:11 UTC

*** This bug has been marked as a duplicate of bug 2016889 ***


Note You need to log in before you can comment on or make changes to this bug.