Bug 2089834

Summary: [MetroDR] show to specify initial crush location of a host instead of manually tweaking CRUSH hierarchy later
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Martin Bukatovic <mbukatov>
Component: documentationAssignee: Olive Lakra <olakra>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Bukatovic <mbukatov>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: asriram, hnallurv, mmuench, ocs-bugs, odf-bz-bot, olakra
Target Milestone: ---   
Target Release: ODF 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-09 12:47:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2089188, 2089534, 2089535    
Bug Blocks:    

Description Martin Bukatovic 2022-05-24 14:17:29 UTC
Describe the issue
==================

Steps to configure stretched ceph cluster could be simplified further if we
use feature of ceph orchestrator to set initial crush location of a host.

So instead of manual setup of crush buckets for 2 zones/datacenters, done via
set of `ceph osd crush add-bucket` and `ceph osd crush move` commands, we could
specify the crush location in cluster service configuration yaml file directly.

Describe the task you were trying to accomplish
===============================================

Deploy a stretched ceph cluster for MetroDR.

Suggestions for improvement
===========================

In example of cluster service config file, show how to specify location of a
host so that it's not necessary to create zone/datacenter buckets and move
hosts there manually after initial cluster setup.

Document URL
============

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.10/html/configuring_openshift_data_foundation_for_metro-dr_with_advanced_cluster_management/configuring-rhcs-stretch-cluster_rhodf

Chapter/Section Number and Title
================================

Section 3.5. Cluster bootstrapping with Cephadm
Chapter 4. Configuring Red Hat Ceph Storage stretch cluster

Product Version
===============

ODF 4.10

Environment Details
===================

MetroDR with ACM: deployment with stretched RHCS cluster.

Any other versions of this document that also needs this update
===============================================================

This text was introduced in 4.10, and should be fixed at least in 4.11.

Additional information
======================

See also:

- https://docs.ceph.com/en/latest/cephadm/host-management/?#setting-the-initial-crush-location-of-host
- BZ 2089188 (ceph doc BZ for the same feature)
- Note that this assumes that BZ 2089534 and BZ 2089535 are addressed first.

Comment 6 Martin Bukatovic 2022-07-08 13:36:28 UTC
Looking at the current draft from stage (commit ef84b6f):

The text mentions cluster spec yaml file with datacenter location labels, so that cluster bucket structure will be created during deployment, without any need for reconfiguration.