Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Cannot mount new volume after another volume plugin is deleted #1726

Closed
luomiao opened this issue Aug 9, 2017 · 3 comments
Closed

Cannot mount new volume after another volume plugin is deleted #1726

luomiao opened this issue Aug 9, 2017 · 3 comments
Labels

Comments

@luomiao
Copy link
Contributor

luomiao commented Aug 9, 2017

How to reproduce:

  1. Install vsphere volume plugin:
    docker plugin install --grant-all-permissions --alias vsphere vmware/docker-volume-vsphere:latest

  2. Install another volume plugin:
    docker plugin install --grant-all-permissions --alias netapp netapp/ndvp-plugin:17.07

  3. Disable and rm the second volume plugin:

docker plugin disable netapp
docker plugin rm netapp
  1. Create and use a volume:
docker volume create --driver=vsphere testVol
docker run --rm -it -v testVol:/mnt/myvol busybox

will give error:

docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:54: mounting \\\"/var/lib/docker/plugins/9e81f4468bc4c45e080e59f4fa1d3e6c0d9bd530e100b033d06b56f638ab90c9/rootfs/mnt/vmdk/testVol@vsanDatastore\\\" to rootfs \\\"/var/lib/docker/aufs/mnt/3111832daba9576dd7c81cfc6e0dcca0b162488d6a7567dadba36ce5224a3fa2\\\" at \\\"/mnt/myvol\\\" caused \\\"stat /var/lib/docker/plugins/9e81f4468bc4c45e080e59f4fa1d3e6c0d9bd530e100b033d06b56f638ab90c9/rootfs/mnt/vmdk/testVol@vsanDatastore: no such file or directory\\\"\"".
ERRO[0002] error getting events from daemon: context canceled

Error is gone when vsphere plugin is re-installed.

@luomiao luomiao added the P2 label Aug 9, 2017
@govint
Copy link
Contributor

govint commented Aug 9, 2017

@luomiao can you also upload plugin logs. The error, seems to say that the source volume location doesn't exist. Plugin should have mounted on that path.

Docker issue 33378 may be related - plugin looses propagated mount and hence docker can't see the plugin mounted volume.

@govint
Copy link
Contributor

govint commented Aug 9, 2017

Related issue is fixed in docker in 17.06.0 RC2 tracker #2.

@luomiao
Copy link
Contributor Author

luomiao commented Aug 9, 2017

@govint
Thank you for the information!
Updated to 17.06.0-ce and problem seems resolved.

@luomiao luomiao closed this as completed Aug 9, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants