inconsitent monitors between ceph.conf and storage.cfg

dirks

Member
Feb 6, 2016
26
17
23
43
Hi,

when changing the ceph monitors via the web gui in our proxmox cluster I noticed that the settings in /etc/pve/storage.cfg did not update, while the ones in /etc/pve/ceph.cfg did.

This led to the situation that VMs could not be started (and migrated online) anymore, as the -drive parameter in the kvm call contained the old ceph monitors instead of the new ones, e.g.

Code:
 -drive file=rbd:rbd/vm-109-disk-1:mon_host=172.18.117.66;172.18.117.67:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/idivceph0.keyring,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on

instead of

Code:
 -drive file=rbd:rbd/vm-109-disk-1:mon_host=172.18.117.68;172.18.117.69;172.18.117.93:id=admin:auth_supported=cephx:keyring=/etc/pve/priv/ceph/idivceph0.keyring,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on

Updating storage.cfg with the changed monhosts did remediate the situation. This occurred on proxmox 4.4 with ceph hammer. Is this a general bug or does it indicate a problem with our cluster?
 
Is this a general bug or does it indicate a problem with our cluster?
this is normal behaviour. if you have monitors in you storage.cfg you have to update this to reflect any changes

in pve5.x we have a special 'pve-managed' format if no monitors at all are configured, then we take the information from the local ceph cluster to resolve to the monitors
 
Thanks for the prompt reply.

in pve5.x we have a special 'pve-managed' format if no monitors at all are configured, then we take the information from the local ceph cluster to resolve to the monitors

I will keep that in mind for the upgrade next year. :)
 

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!