You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.
Admin cli output listing the newly created volume:
[root@sc-rdops-vm01-dhcp-2-37:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py ls
Volume Datastore Created By VM Created Attached To VM (name/uuid) Policy Capacity Used Disk Format Filesystem Type Access Attach As
-------- ------------ ------------- ------------------------ -------------------------- ------ -------- ---- ----------- --------------- --------- ----------
Vol100MB sharedVmfs-0 ubuntu-VM1.3 Mon Mar 6 21:51:21 2017 ubuntu-VM0.3 N/A 100MB 13MB thin ext4 read-only persistent
Tried changing the access attribute for volume to "read-write" but unsuccesful.
[root@sc-rdops-vm01-dhcp-2-37:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py set --volume=Vol100MB@sharedVmfs-0 --options="access=read-write"
Failed to update access=read-write for Vol100MB@sharedVmfs-0.
vmdk_ops.log:
03/06/17 22:03:38 77393 [MainThread] [WARNING] Volume Vol100MB not found.
03/06/17 22:05:46 77424 [MainThread] [INFO ] Connecting to the local Service Instance as 'dcui'
03/06/17 22:06:11 77431 [MainThread] [WARNING] Volume Vol100MB not found.
03/06/17 22:06:30 77436 [MainThread] [WARNING] Invalid datastore 'None'.
03/06/17 22:10:39 77459 [MainThread] [WARNING] Volume Vol100MB not found.
The root cause of this bug is "vmdkops_admin set" is not aware of the exist of tenant. With the multi-tenency feature, it is possible that two volumes with the same name created on the same datastore since there two volumes may created by different tenant. So " "vmdkops_admin set" need to have a new flag to specify the tenant name which own the volume.
With #964, "tenant ls" command will add a new column "tenant". CI test for "set command" was written before multi-tenancy. And it just create VMDK in the "/vmfs/volumes/dockervol" directory.
Test steps:
Logs are attached at the end.
Respective commands and their outputs are as follows:
Created a volume with access mode set to "read-only"
Admin cli output listing the newly created volume:
Tried changing the access attribute for volume to "read-write" but unsuccesful.
vmdk_ops.log:
Logs:
vmdk_ops.txt
docker-volume-vsphere.txt
The text was updated successfully, but these errors were encountered: