Closed ashahi1 closed 7 years ago
@ashahi1 I guess you have tried on vDVS 0.16 version .. can you please add those detail for the reference?
Thanks!
I tried the same steps mentioned in original description with vDVS 0.16 version and I was NOT able to create volume if I pass datastore name as vsandatastore rather than vsanDatastore.
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create -d vsphere --name test4@vsandatastore
Error response from daemon: create test4@vsandatastore: VolumeDriver.Create: Invalid datastore 'vsandatastore'.
Known datastores: sharedVmfs-0, sharedVmfs-1, local.2-0, local.2-1, local.2-2, vsanDatastore.
Default datastore: _VM_DS
root@sc-rdops-vm02-dhcp-52-237:~#
Regression issue.
Actually, the code is designed to match the datastore name as a case insensitive string and working as observed. Closing as won't-fix.
Testbed had a vsan datastore named - vsanDatastore
vsandatastore
. Even though we do not have any volume namedvsandatastore
, volume creation succeeded.So step 3 can be confusing to the user as even though the setup does not have a volume named vsandatastore, volumes creation succeeds.
So user is passing datastore name as vsandatastore whereas volume is getting created on vsanDatastore.
Logs have been attached at the end.
Detailed steps and their output are as follows:
[root@sc2-rdops-vm03-dhcp-106-33:~] esxcli storage guestvol volume ls Volume Datastore VMGroup Capacity Used Filesystem Policy Disk Format Attached-to Access Attach-as Created By Created Date
testX1 vsanDatastore _DEFAULT 100MB 80MB ext4 [VSAN default] thin detached read-write independent_persistent ubuntu-VM0.2 Fri Sep 29 19:03:55 2017 [root@sc2-rdops-vm03-dhcp-106-33:~]
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create -d vsphere --name testX2@vsandatastore testX2@vsandatastore root@sc-rdops-vm02-dhcp-52-237:~#
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls DRIVER VOLUME NAME vsphere:latest testX1@vsanDatastore vsphere:latest testX2@vsanDatastore <<<<<<<<<< root@sc-rdops-vm02-dhcp-52-237:~#
[root@sc2-rdops-vm03-dhcp-106-33:~] esxcli storage guestvol volume ls Volume Datastore VMGroup Capacity Used Filesystem Policy Disk Format Attached-to Access Attach-as Created By Created Date
testX1 vsanDatastore _DEFAULT 100MB 80MB ext4 [VSAN default] thin detached read-write independent_persistent ubuntu-VM0.2 Fri Sep 29 19:03:55 2017 testX2 vsanDatastore _DEFAULT 100MB 80MB ext4 [VSAN default] thin detached read-write independent_persistent ubuntu-VM0.2 Fri Sep 29 19:04:22 2017 [root@sc2-rdops-vm03-dhcp-106-33:~]