Bug 2078902 - [DOC] Document how to configure multiple public networks to the cluster [NEEDINFO]
Summary: [DOC] Document how to configure multiple public networks to the cluster
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Documentation
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 5.3z4
Assignee: Rivka Pollack
QA Contact: Sayalee
Ranjini M N
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-26 13:04 UTC by Pawan
Modified: 2023-07-20 04:25 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-20 04:25:49 UTC
Embargoed:
rpollack: needinfo? (adking)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-4174 0 None None None 2022-04-26 13:14:58 UTC

Comment 2 Redouane Kachach Elhichou 2022-04-26 14:40:33 UTC
=== 1. Bootstrap a ceph cluster.

In order to bootstrap a ceph cluster configured with multiple public networks the user has to:
1.1) prepare a ceph.conf file that contains a global section public_network for example:

[global]
public_network = 10.40.0.0/24, 10.41.0.0/24, 10.42.0.0/24

Note: At least one of the provided public networks must be configured on the current host (used for bootstrap)


1.2) bootstrap the cluster by providing this configuration file as input (using the -c argument) + any additional arguments the user wants to provide during the bootstrap:

cephadm --image <image-url> bootstrap --mon-ip <monitor-ip> -c <path-to-ceph-conf>


==== 2. Add new hosts to the subnets.

In order to add new hosts, the user has to follow the guide from:

https://docs.ceph.com/en/pacific/cephadm/host-management/#cephadm-adding-hosts

Note: the host being add must be reachable from whatever host the active mgr is running on

=== 3. Add add the networks as config for the public network param.

In a running cluster, public_network parameter could be changed by using the following cephadm command:

ceph config set mgr public_network "subnet_1,subnet_2, ..." (comma separated list of nets in subnet/mask format:10.42.0.0/24 i.e)

In case the new public networks are only available from certain hosts (and we want to move monitors to them) then the user has
to use a valid mon spec to specify the new placement.

Comment 22 Redouane Kachach Elhichou 2023-06-14 12:37:37 UTC
@riv


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