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.
1. Make sure you only see _DEFAULT tenant
2. Create a volume.
3. Rename the _DEFAULT tenant.
4. Again try creating a volume.
Operation failed - Error response from daemon: create TestVol2: VolumeDriver.Create: VM ubuntu-VM0.3 does not belong to any vm-group
Steps and their output are as follows:
Only default tenant is present
[root@sc-rdops-vm16-dhcp-235-79:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid Name Description Default_datastore VM_list
------------------------------------ -------- -------------------------- ----------------- -------
11111111-1111-1111-1111-111111111111 _DEFAULT This is a default vm-group
Created a volume
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create --driver=vsphere --name=TestVol1 -o size=400mb
TestVol1
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls
DRIVER VOLUME NAME
vsphere TestVol1@sharedVmfs-0
root@sc-rdops-vm02-dhcp-52-237:~#
[root@sc-rdops-vm16-dhcp-235-79:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py volume ls
Volume Datastore VM-Group Capacity Used Filesystem Policy Disk Format Attached-to Access Attach-as Created By Created Date
-------- ------------ -------- -------- ---- ---------- ------ ----------- ----------- ---------- ---------------------- ------------ ------------------------
TestVol1 sharedVmfs-0 _DEFAULT 400MB 23MB ext4 N/A thin detached read-write independent_persistent ubuntu-VM0.3 Mon Mar 27 01:58:09 2017
[root@sc-rdops-vm16-dhcp-235-79:~]
Renamed the _DEFAULT tenant
[root@sc-rdops-vm16-dhcp-235-79:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group update --name=_DEFAULT --description="Renaming default tenant to vm-group1" --new-name=new-vm-group1
vm-group modify succeeded
[root@sc-rdops-vm16-dhcp-235-79:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vm-group ls
Uuid Name Description Default_datastore VM_list
------------------------------------ ------------- ------------------------------------ ----------------- -------
11111111-1111-1111-1111-111111111111 new-vm-group1 Renaming default tenant to vm-group1
[root@sc-rdops-vm16-dhcp-235-79:~]
Tried creating another volume but failed.
root@sc-rdops-vm02-dhcp-52-237:~# docker volume ls
list vsphere: VolumeDriver.List: VM ubuntu-VM0.3 does not belong to any vm-group
DRIVER VOLUME NAME
vsphere TestVol1
root@sc-rdops-vm02-dhcp-52-237:~# docker volume create --driver=vsphere --name=TestVol2 -o size=400mb
Error response from daemon: create TestVol2: VolumeDriver.Create: VM ubuntu-VM0.3 does not belong to any vm-group
root@sc-rdops-vm02-dhcp-52-237:~#
Tried this out and the issue doesn't repro if the vm-group rename is done back and forth (_DEFAULT to new name and then back). The error was reported once and when the vm-group name is changed back and forth the issue doesn't repro thereafter,
$ docker volume create --driver=vsphere --name=TestVol2 -o size=400mb
Error response from daemon: create TestVol2: VolumeDriver.Create: VM 2 does not belong to any vm-group
Steps:
Steps and their output are as follows:
Logs:
docker-volume-vsphere.txt
vmdk_ops.txt
The text was updated successfully, but these errors were encountered: