GlusterFS volumes not unmounted when disabled or deleted

hybrid512

Renowned Member
Jun 6, 2013
76
4
73
Hi,

Another nasty bug with storages, if I declare a glusterfs storage on my cluster, this storage is automatically mounted in /mnt/pve/<volume name> on every nodes which is great but ... when I disable or delete this volume, the volume stays mounted and I must unmount it by hand on every nodes which can be painful when you have dozens of them ...

Code:
proxmox-ve: 4.2-54 (running kernel: 4.4.10-1-pve)
pve-manager: 4.2-15 (running version: 4.2-15/6669ad2c)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.4.8-1-pve: 4.4.8-52
pve-kernel-4.4.10-1-pve: 4.4.10-54
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 1.0-1
pve-cluster: 4.0-42
qemu-server: 4.0-81
pve-firmware: 1.1-8
libpve-common-perl: 4.0-68
libpve-access-control: 4.0-16
libpve-storage-perl: 4.0-55
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.5-19
pve-container: 1.0-68
pve-firewall: 2.0-29
pve-ha-manager: 1.0-32
ksm-control-daemon: 1.2-1
glusterfs-client: 3.6.9-2
lxc-pve: 1.1.5-7
lxcfs: 2.0.0-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve9~jessie
ceph: 0.94.7-1~bpo80+1
 
Also, when a volume is deleted or disabled, it would be great to remove the mount point in /mnt/pve in order to keep things clean.
 
Lol this is still a problem. I removed a gluster storage config. Tried to readd it:

Code:
create storage failed: error during cfs-locked 'file-storage_cfg' operation: mkdir /mnt/pve/glusterfs: File exists at /usr/share/perl5/PVE/Storage/GlusterfsPlugin.pm line 303. (500)

Then noticed on the pm nodes that /mnt/pve/glusterfs still exists. umount /mnt/pve/glusterfs fixed it on each node.