-
Notifications
You must be signed in to change notification settings - Fork 95
Volume unmount failed after docker restart #1724
Comments
This is essentially due to the logic of reading volume name from /proc/mounts after restart. |
@ashahi1 @venilnoronha @pshahzeb - does this need to get verified with the Windows plugin also? Are we running the e2e tests with Windows plugin? Some of the fixes tend to be in common code and we need to ensure nothing gets broken on the Windows side |
Reading /proc/mounts with names with spaces is mighty confusing for the plugin, here the pl;ugin (when it alone is restarted) believes there are two volumes while they are actually one. 2017-08-10 07:01:25.077849205 +0000 UTC [INFO] Found 1 running or paused containers These are the same volume 2017-08-10 07:01:36.835291072 +0000 UTC [INFO] Volume name=snapvol 4@sharedVmfs-0 count=1 mounted=false device='' |
snapvol 4@sharedVmfs-0 was reported to us by docker, snapvol\0404@sharedVmfs-0 is the one we read from /proc/mounts.
As of today, windows plugin is planned as tech preview. But sometime soon this needs to be fixed for windows plugin as well. @ashahi1 @venilnoronha could you please confirm the behavior of such a case on windows env? What's the fix for this issue? |
This seems to be a problem on the Windows plugin too. Creation / mounting of a volume with spaces in the name works perfectly fine; however, the Also, Docker doesn't support spaces in volume names in their |
Yes, the escape sequence is replaced with a ' ' in the PR #1736. Looks like for Windows the PowerShell script would need tweaking. @venilnoronha will you be able to handle the scripting I'm not familiar with the Windows equivalent of mounted FS and how thats retrieved. |
Setup: Datastore name had spaces e.g. DS name: 'shared Vmfs - (10)'
Test steps:
Logs have been attached at the end.
Test steps and their output are as follows:
Logs:
docker.txt
docker-volume-vsphere.txt
vmdk_ops.1.txt
vmdk_ops.txt
The text was updated successfully, but these errors were encountered: