Project

General

Profile

Actions

Bug #61330

closed

public_network is set as 'mon' instead of global while bootsraping via cephadm

Added by Redouane Kachach Elhichou 11 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
reef, quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

There's no option to set public network as global(both for mon and osds) while bootsraping ceph cluster with cephadm. Right now, after the ceph bootsraping process public_network is set to mon only but not for osds.


Related issues 3 (0 open3 closed)

Copied to Orchestrator - Backport #61543: quincy: public_network is set as 'mon' instead of global while bootsraping via cephadmResolvedAdam KingActions
Copied to Orchestrator - Backport #61544: pacific: public_network is set as 'mon' instead of global while bootsraping via cephadmResolvedAdam KingActions
Copied to Orchestrator - Backport #61545: reef: public_network is set as 'mon' instead of global while bootsraping via cephadmResolvedAdam KingActions
Actions #1

Updated by Redouane Kachach Elhichou 11 months ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 51660
Actions #2

Updated by Redouane Kachach Elhichou 11 months ago

Description of problem:

We don't have any option too make sure public network is set as global(both for mon and osds) while bootsraping ceph cluster with cephadm. After the ceph bootsraping process public_network is generally set for mon only but not for osds.

~~
[root@ceph-1 ceph-exec]# ceph config dump | grep -i public_network
mon advanced public_network 192.168.xx.yy/27 *
~~

- osds were only listening to cluster_network

~~
[root@ceph-1 ceph-exec]# netstat -tulpn | grep ceph
tcp 0 0 192.168.aa.bb:6827 0.0.0.0:* LISTEN 6879/ceph-osd
tcp 0 0 0.0.0.0:6828 0.0.0.0:* LISTEN 6879/ceph-osd
tcp 0 0 0.0.0.0:6829 0.0.0.0:* LISTEN 6879/ceph-osd
tcp 0 0 192.168.aa.bb:6830 0.0.0.0:* LISTEN 6879/ceph-osd
tcp 0 0 192.168.aa.bb:6831 0.0.0.0:* LISTEN 6879/ceph-osd
tcp 0 0 0.0.0.0:6832 0.0.0.0:* LISTEN 6911/ceph-osd
tcp 0 0 0.0.0.0:6800 0.0.0.0:* LISTEN 6680/ceph-osd
tcp 0 0 0.0.0.0:6833 0.0.0.0:* LISTEN 6911/ceph-osd
~~

This will create issue when we integrate the external ceph with OpenStack environment as client(nova,cinder,glance etc) will not be able to connect to osd via public_network.

To Overcome this issue we have to update the ceph config and set public_network to global.

~~~
  1. ceph config set global public_network 192.168.xx.yy/27
  2. ceph orch daemon reconfig mon.host
  3. ceph orch daemon reconfig osd.host
    ~~~

~~
[root@ceph-1 ceph-exec]# ceph config dump | grep -i public_network
global advanced public_network 192.168.xx.yy/27
[root@ceph-1 ceph-exec]# netstat -nltp | grep -i ceph
tcp 0 0 192.168.aa.bb:6800 0.0.0.0:
LISTEN 2250215/ceph-osd
tcp 0 0 192.168.xx.yy:6800 0.0.0.0:* LISTEN 2250215/ceph-osd
tcp 0 0 192.168.aa.bb:6801 0.0.0.0:* LISTEN 2250215/ceph-osd
tcp 0 0 192.168.xx.yy:6801 0.0.0.0:* LISTEN 2250215/ceph-osd
tcp 0 0 192.168.aa.bb:6802 0.0.0.0:* LISTEN 2250215/ceph-osd
tcp 0 0 192.168.xx.yy:6802 0.0.0.0:* LISTEN 2250215/ceph-osd
tcp 0 0 192.168.aa.bb:6803 0.0.0.0:* LISTEN 2250215/ceph-osd
~~

Actions #3

Updated by Adam King 11 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to reef, quincy, pacific
Actions #4

Updated by Backport Bot 11 months ago

  • Copied to Backport #61543: quincy: public_network is set as 'mon' instead of global while bootsraping via cephadm added
Actions #5

Updated by Backport Bot 11 months ago

  • Copied to Backport #61544: pacific: public_network is set as 'mon' instead of global while bootsraping via cephadm added
Actions #6

Updated by Backport Bot 11 months ago

  • Copied to Backport #61545: reef: public_network is set as 'mon' instead of global while bootsraping via cephadm added
Actions #7

Updated by Backport Bot 11 months ago

  • Tags set to backport_processed
Actions #8

Updated by Adam King about 2 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF