A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vmware/docker-volume-vsphere/issues/1346 below:

Code error when moving VM (in _DEFAULT) with volumes attached to other vmgroup. · Issue #1346 · vmware-archive/vsphere-storage-for-docker · GitHub

Was testing the vmgroup E2E tests and had a VM with a volume left attached on it (in _DEFAULT). Ran the test and got below error.

1.Same DS is associated with multiple vmgroups (test1 and test2)
/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup ls
Uuid Name Description Default_datastore VM_list

11111111-1111-1111-1111-111111111111 _DEFAULT This is a default vmgroup _VM_DS
b07d8676-2cff-4d11-b612-58cd9c3dc2fd test1 datastore1
c7006ef6-8eaa-4f43-be5c-2b4b9ec36e7c test2 datastore1

  1. VM 2 is in the default and has a container running on it.
    $ docker run -it --volume-driver=vsphere -v Test_Vol50@bigone:/vol1 --name ub ubuntu
    root@6f48cce8c9a0:/#

  2. Try moving the VM to test1 vmgroup
    /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup vm add --name=test1 --vm-list 2
    Traceback (most recent call last):
    File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 1414, in
    main()
    File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 61, in main
    args.func(args)
    File "/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py", line 999, in tenant_vm_add
    return operation_fail(error_info.msg)

This doesn't happen if say VM 2 is already in test1 and has a container running. If VM 2 is moved to test2 then the move is handled correctly by failing.

/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup ls
Uuid Name Description Default_datastore VM_list

11111111-1111-1111-1111-111111111111 _DEFAULT This is a default vmgroup _VM_DS
b07d8676-2cff-4d11-b612-58cd9c3dc2fd test1 datastore1 2 <--- VM 2 is in test1 and has a container running
c7006ef6-8eaa-4f43-be5c-2b4b9ec36e7c test2 datastore1

Try moving VM 2 to test2,

/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py vmgroup vm add --name=test2 --vm-list 2
VM '2' has already been associated with tenant 'test1', can't add it <--------- works fine.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4