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

Whatever

Renowned Member
Nov 19, 2012
383
58
93
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
 
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>.
 
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 ?
 
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 !
 
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.
 
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:
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 ?
 
```
root@pve03:~# pveceph osd create /dev/sdf
Error: any valid prefix is expected rather than "10.10.10.10/24 10.10.0.100/24".
command '/sbin/ip address show to '10.10.1.10/24 10.10.0.100/24' up' failed: exit code 1

```
Same in GUI.
 
Hi,
```
root@pve03:~# pveceph osd create /dev/sdf
Error: any valid prefix is expected rather than "10.10.10.10/24 10.10.0.100/24".
command '/sbin/ip address show to '10.10.1.10/24 10.10.0.100/24' up' failed: exit code 1

```
Same in GUI.
do you maybe have multiple entries for the cluster_network in the Ceph configuration? That is currently not properly supported in Proxmox VE, only having multiple entries for public_network is. Feel free to open a bug report so we can keep track of the issue: https://bugzilla.proxmox.com/
 

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 yours easily in our online shop.

Buy now!