This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
Allow for a null VC uuid for a VM to allow the plugin to be used on standalone hosts. #1997
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modified ESX service to allow vc uuid to be zero length string in cases where user has a standalone ESX host with no VC.
Test:
docker volume create -d vsphere vc_vol_1
vc_vol_1
docker volume inspect vc_vol_1
[
{
"Driver": "vsphere",
"Labels": {},
"Mountpoint": "/mnt/vmdk/vc_vol_1/",
"Name": "vc_vol_1",
"Options": {},
"Scope": "global",
"Status": {
"access": "read-write",
"attach-as": "independent_persistent",
"capacity": {
"allocated": "13MB",
"size": "100MB"
},
"clone-from": "None",
"created": "Tue Nov 21 13:02:21 2017",
"created by VM": "master-VM0.0",
"datastore": "sharedVmfs-0",
"diskformat": "thin",
"fstype": "ext4",
"status": "detached"
}
}
]
docker run --rm -it -v vc_vol_1:/mnt centos
Unable to find image 'centos:latest' locally
latest: Pulling from library/centos
d9aaf4d82f24: Pull complete
Digest: sha256:4565fe2dd7f4770e825d4bd9c761a81b26e49cc9e3c9631c58cfc3188be9505a
Status: Downloaded newer image for centos:latest
exit
docker volume rm vc_vol_1
vc_vol_1