vmware-archive / vsphere-storage-for-docker

vSphere Storage for Docker
https://vmware.github.io/vsphere-storage-for-docker
Apache License 2.0
251 stars 95 forks source link

Allow create calls to be idempotent in the VDVS plugin #1985

Closed govint closed 6 years ago

govint commented 6 years ago

Updated the ESX service and plugin to allow create to succeed if the volume already exists. Tested with UCP 2.2.4. Remove of volume is not working owing to a docker side issue where the labels of the nodes in the swarm are different and hence the remove doesn't work. All discussion of the docker side issue is in https://github.com/moby/moby/issues/35334.

Volume inspect is at present not supported in UCP.

Extended a basic test to check for idempotency of create.