REVIEW: https://review.gluster.org/19897 (glusterd: Fix to set enable-shared-storage option) posted (#1) for review on master by Sanju Rakonde
Description of problem: ======================= Consider a entry scenario where shared volume is enabled and mounted on all nodes of trusted servers. Now if any glusterd is down and shared volume is disabled, it returns success and any subsequent enable/disable blame it exists/non-exist respectively. [root@dhcp41-226 ~]# gluster volume set all cluster.enable-shared-storage enable volume set: failed: Shared storage volume(gluster_shared_storage) already exists. [root@dhcp41-226 ~]# gluster volume set all cluster.enable-shared-storage disable Disabling cluster.enable-shared-storage will delete the shared storage volume(gluster_shared_storage), which is used by snapshot scheduler, geo-replication and NFS-Ganesha. Do you still want to continue? (y/n) y volume set: failed: Shared storage volume does not exist. Please enable shared storage for creating shared storage volume. [root@dhcp41-226 ~]# gluster volume set all cluster.enable-shared-storage enable volume set: failed: Shared storage volume(gluster_shared_storage) already exists. [root@dhcp41-226 ~]# gluster volume set all cluster.enable-shared-storage disable Disabling cluster.enable-shared-storage will delete the shared storage volume(gluster_shared_storage), which is used by snapshot scheduler, geo-replication and NFS-Ganesha. Do you still want to continue? (y/n) y volume set: failed: Shared storage volume does not exist. Please enable shared storage for creating shared storage volume. [root@dhcp41-226 ~]# No force option is available to come out of this dead loop. volume Stop/Start force also did not help. Workaround: [root@dhcp41-226 ~]# gluster volume stop gluster_shared_storage force Stopping the shared storage volume(gluster_shared_storage), will affect features like snapshot scheduler, geo-replication and NFS-Ganesha. Do you still want to continue? (y/n) y volume stop: gluster_shared_storage: success [root@dhcp41-226 ~]# gluster volume delete gluster_shared_storage Deleting the shared storage volume(gluster_shared_storage), will affect features like snapshot scheduler, geo-replication and NFS-Ganesha. Do you still want to continue? (y/n) y volume delete: gluster_shared_storage: success [root@dhcp41-226 ~]# gluster volume set all cluster.enable-shared-storage enable volume set: success [root@dhcp41-226 ~]# at https://review.gluster.org/19897 we have decided to not fix this issue as it is breaking some existing functionalities. So, I'm closing this bug as won't fix. Thanks, Sanju