hpe-storage / python-hpedockerplugin

HPE Native Docker Plugin
Apache License 2.0
36 stars 64 forks source link

Fix for mount from multiple hosts #690

Closed imran-ansari closed 5 years ago

imran-ansari commented 5 years ago

Earlier mount ID list was getting overwritten when the same share would be mounted on a new host.

imran-ansari commented 5 years ago

Steps followed to test the fix:

  1. Create share TestShare from host1
  2. Mount share TestShare on host1
  3. Mount share TestShare again on host1
  4. Verify mount entry present on the host1 using the command mount | grep TestShare
  5. Mount share TestShare on host2
  6. Verify mount entry present on the host2 using the command mount | grep TestShare
  7. Create files and directories on share TestShare from host1
  8. Verify the created files and directories are visible on TestShare from host2
  9. Unmount share from host1 from both the containers
  10. Verify mount entry is removed from host1 mount | grep TestShare
  11. Unmount share from host2
  12. Verify mount entry is removed from host2 mount | grep TestShare
  13. Remove share

Step no. 10 is where the entry would remain on the host which this PR fixes.