[SOLVED] Ceph mon create error "value does not look like a valid CIDR network (500)"

drenikqi

New Member
May 2, 2023
3
0
1
When I try to create a new monitor in the proxmox GUI it throws the error "value does not look like a valid CIDR network (500)". The same error appears from the terminal too with the command
Code:
pveceph mon create --mon-address x.x.x.x
and
Code:
pveceph mon create
.
pveversion -v output:
Code:
proxmox-ve: 7.4-1 (running kernel: 5.15.39-3-pve)
pve-manager: 7.4-3 (running version: 7.4-3/9002ab8a)
pve-kernel-5.15: 7.4-1
pve-kernel-5.4: 6.4-19
pve-kernel-5.15.104-1-pve: 5.15.104-2
pve-kernel-5.15.39-3-pve: 5.15.39-3
pve-kernel-5.4.195-1-pve: 5.4.195-1
pve-kernel-5.4.189-1-pve: 5.4.189-1
pve-kernel-5.4.143-1-pve: 5.4.143-1
ceph: 15.2.17-pve1
ceph-fuse: 15.2.17-pve1
corosync: 3.1.7-pve1
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown: residual config
ifupdown2: 3.1.0-1+pmx3
libjs-extjs: 7.0.0-1
libknet1: 1.24-pve2
libproxmox-acme-perl: 1.4.4
libproxmox-backup-qemu0: 1.3.1-1
libproxmox-rs-perl: 0.2.1
libpve-access-control: 7.4-2
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.3-4
libpve-guest-common-perl: 4.2-4
libpve-http-server-perl: 4.2-3
libpve-rs-perl: 0.7.5
libpve-storage-perl: 7.4-2
libqb0: 1.0.5-1
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 5.0.2-2
lxcfs: 5.0.3-pve1
novnc-pve: 1.4.0-1
proxmox-backup-client: 2.4.1-1
proxmox-backup-file-restore: 2.4.1-1
proxmox-kernel-helper: 7.4-1
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.3-1
proxmox-offline-mirror-helper: 0.5.1-1
proxmox-widget-toolkit: 3.6.5
pve-cluster: 7.3-3
pve-container: 4.4-3
pve-docs: 7.4-2
pve-edk2-firmware: 3.20230228-2
pve-firewall: 4.3-1
pve-firmware: 3.6-4
pve-ha-manager: 3.6.0
pve-i18n: 2.12-1
pve-qemu-kvm: 7.2.0-8
pve-xtermjs: 4.16.0-1
pve-zsync: 2.2.3
qemu-server: 7.4-3
smartmontools: 7.2-pve3
spiceterm: 3.2-2
swtpm: 0.8.0~bpo11+3
vncterm: 1.7-1
zfsutils-linux: 2.1.9-pve1
 
An IP in CIDR notation expects the subnet mask as well, for example: 192.168.0.1/24 for a 255.255.255.0
 
An IP in CIDR notation expects the subnet mask as well, for example: 192.168.0.1/24 for a 255.255.255.0
Sorry I forgot to mention that I tried with and without the subnet mask but the results are the same for both.
 
Can you post the command with the actual values you used?
 
Due to security purposes (public network), I cannot post the command with the actual values. The IP Address and subnet were correct and valid, but it was not working for some reason. I managed to create the monitor manually with these commands:

Code:
ceph mon getmap -o /tmp/monmap
sudo -u ceph ceph-mon --cluster ceph --mkfs -i <node-name> --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring
systemctl start ceph-mon@<node-name>.service

and adding the new mon to /etc/ceph/ceph.conf