Web UI cannot create CEPH monitor when multiple pulbic nets are defined

Whatever

Active Member
Nov 19, 2012
267
13
38
According to CEPH docs (https://docs.ceph.com/docs/master/rados/configuration/network-config-ref/#id1) several public nets could be defined (useful in case of rdb mirroring when slave CEPH cluster is located in separate location or/and monitors need to be created on different network interfaces/addresses)

Code:
public_network = 10.10.10.0/24, 10.71.200.0/24

However when trying to create mon from Web UI I get an error:

Code:
command '/sbin/ip address show to '10.10.10.0/24, 10.71.200.0/24' up' failed: exit code 1 (500)


Could anyone suggest how to properly create mon in such setup?
Thanks in advance
 

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
4,617
443
88
Could anyone suggest how to properly create mon in such setup?
This seems not to be handled, yet.

Try on the CLI, pveceph mon create -mon-address <IP>.
 

kifeo

Member
Oct 28, 2019
91
3
13
38
Hello,

I'm in the same situation, the CLI command gives :
root@proxmox1:~# pveceph osd create /dev/nvme0n1
Error: any valid prefix is expected rather than "192.168.1.10/24, 10.0.5.0/24".
command '/sbin/ip address show to '192.168.1.10/24, 10.0.5.0/24' up' failed: exit code 1

any other hint for a workaround ?
 

kifeo

Member
Oct 28, 2019
91
3
13
38
OK, I could workaround the situation by creating the VLAN interface in the other network 192.168.1.0/24.
I removed the 10.0.5.0/24 entry in the ceph.conf

Thanks !
 

Alwin

Proxmox Staff Member
Staff member
Aug 1, 2017
4,617
443
88
If you are on Ceph Nautilus, the mon_host line needs to exist, then you may remove the public_network to let Ceph auto-detect the networks. But you will need to test, if this work for a service restart.
 

kifeo

Member
Oct 28, 2019
91
3
13
38
Hi, me again.
Is the patch available in a certain pve version ?
I'm in 6.3-3 and the issue is still present.

EDIT: Looking at the code it seems it is only for mon, and not osd ?
 
Last edited:

kifeo

Member
Oct 28, 2019
91
3
13
38
Hello,
I wanted also to create a monitor with the command 'pveceph mon create -mon-address 10.0.15.12'

I still have the issue in 6.3-6

Code:
Error: any valid prefix is expected rather than "192.168.1.10/24, 10.0.10.0/24".
command '/sbin/ip address show to '192.168.1.10/24, 10.0.10.0/24' up' failed: exit code 1

I thought the fix #2422 did fix it for the monitors ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!