microceph icon indicating copy to clipboard operation
microceph copied to clipboard

Trying to change network binds after bootstrap does not seem to work

Open gustavosr98 opened this issue 8 months ago • 3 comments

Issue report

Trying to change network binds after bootstrap does not seem to work

What version of MicroCeph are you using ?

quincy/stable (0+git.4a608fc)

What happens (observed behaviour) ?

# ip a 
[..]
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:16:3e:30:33:01 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.99/24 metric 100 brd 192.168.10.255 scope global dynamic enp5s0
       valid_lft 572785sec preferred_lft 572785sec
    inet 10.5.0.3/16 scope global enp5s0
       valid_lft forever preferred_lft forever
# microceph bootstrap

# sudo ceph config generate-minimal-conf
[global]
	fsid = d2b14f41-10a0-44e2-96a8-a1f10171e5b9
	mon_host = [v2:192.168.10.99:3300/0,v1:192.168.10.99:6789/0]

Now I followed this to change the network bind to another one https://canonical-microceph.readthedocs-hosted.com/en/quincy-stable/how-to/configure-network-keys/

# sudo microceph cluster config set public_network 10.5.0.0/16
# sudo microceph cluster config set cluster_network 10.5.0.0/16
# sudo snap restart microceph
2024-05-31T00:06:40Z INFO Waiting for "snap.microceph.mds.service" to stop.
2024-05-31T00:06:42Z INFO Waiting for "snap.microceph.osd.service" to stop.
2024-05-31T00:06:47Z INFO Waiting for "snap.microceph.rgw.service" to stop.
Restarted.

But it still binds to the old network

# sudo ceph config generate-minimal-conf
[global]
	fsid = d2b14f41-10a0-44e2-96a8-a1f10171e5b9
	mon_host = [v2:192.168.10.99:3300/0,v1:192.168.10.99:6789/0]

What were you expecting to happen ?

I was expecting to be able to change the network configuration binding after having bootstrapped a ceph cluster to migrate from one network to another

gustavosr98 avatar May 31 '24 00:05 gustavosr98