Description of problem: Heketi add entries for bricks in /etc/fstab when volumes are created. Not all entries get cleaned up when volumes are deleted. Version-Release number of selected component (if applicable): 1.0.0 How reproducible: Always Steps to Reproduce: 1. Run heketi server client[1] 2. Once the cluster is created, create volume: ./heketi-cli volume create -size=100 3. Delete the volume Actual results: When volumes are created: # # /etc/fstab # Created by anaconda on Wed Oct 14 08:18:47 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=2d981ce7-cc53-46a6-b142-fbd3d8d16606 / xfs defaults 0 0 UUID=daafea2b-5b53-442e-9430-9c7accf842d7 swap swap defaults 0 0 /dev/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2762a2653f50e3fc7de12ebf8ddbd727 /var/lib/heketi/mounts/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2762a2653f50e3fc7de12ebf8ddbd727 xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_69fefd71c36d3c7e7df93e44a858e182/brick_1b1cf52d36509f7642b931dcccb432ec /var/lib/heketi/mounts/vg_69fefd71c36d3c7e7df93e44a858e182/brick_1b1cf52d36509f7642b931dcccb432ec xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_69fefd71c36d3c7e7df93e44a858e182/brick_eedd01c169dc77f42c2facff9028a962 /var/lib/heketi/mounts/vg_69fefd71c36d3c7e7df93e44a858e182/brick_eedd01c169dc77f42c2facff9028a962 xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_3896ab24f862ab38bcf1572b117edd36 /var/lib/heketi/mounts/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_3896ab24f862ab38bcf1572b117edd36 xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_69fefd71c36d3c7e7df93e44a858e182/brick_bfa4a481d86b72e39322dcbb49b99a9b /var/lib/heketi/mounts/vg_69fefd71c36d3c7e7df93e44a858e182/brick_bfa4a481d86b72e39322dcbb49b99a9b xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2f7ad1030eece297098e05567de30018 /var/lib/heketi/mounts/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2f7ad1030eece297098e05567de30018 xfs rw,inode64,noatime,nouuid 1 2 After volume deletion: # cat /etc/fstab # # /etc/fstab # Created by anaconda on Wed Oct 14 08:18:47 2015 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=2d981ce7-cc53-46a6-b142-fbd3d8d16606 / xfs defaults 0 0 UUID=daafea2b-5b53-442e-9430-9c7accf842d7 swap swap defaults 0 0 /dev/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_3896ab24f862ab38bcf1572b117edd36 /var/lib/heketi/mounts/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_3896ab24f862ab38bcf1572b117edd36 xfs rw,inode64,noatime,nouuid 1 2 /dev/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2f7ad1030eece297098e05567de30018 /var/lib/heketi/mounts/vg_4fe481713c890d3419b56a62f0a5e2d7/brick_2f7ad1030eece297098e05567de30018 xfs rw,inode64,noatime,nouuid 1 2 Additional info: [1] config file: { "clusters": [ { "nodes": [ { "node": { "hostnames": { "manage": [ "rhshdp03.lab.eng.blr.redhat.com" ], "storage": [ "rhshdp03.lab.eng.blr.redhat.com" ] }, "zone": 0 }, "devices": [ "/dev/vdb", "/dev/vdc" ] }, { "node": { "hostnames": { "manage": [ "rhshdp04.lab.eng.blr.redhat.com" ], "storage": [ "rhshdp04.lab.eng.blr.redhat.com" ] }, "zone": 0 }, "devices": [ "/dev/vdb", "/dev/vdc" ] } ] } ] }
Fix has been created and submitted upstream: https://github.com/heketi/heketi/issues/211
Should the state be changed to POST or MODIFIED?
Merged: https://github.com/heketi/heketi/pull/214
Verified on heketi-1.0.1-1.el7rhgs.x86_64
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-0193.html