vcd-cli icon indicating copy to clipboard operation
vcd-cli copied to clipboard

vcd-cli/pyvcloud does not support pagination for 'pvdc migrate-vms'

Open chaitanya118 opened this issue 3 years ago • 0 comments

Describe the bug

The command: http://vmware.github.io/vcd-cli/vcd_pvdc_migrate-vms Usecase: customer has large number of VMs in a resource pool ~300 The query pyvcloud makes is with a limit 25. We need to implement pagination to get all available vms or wild-card to select a group of vms.

Reproduction steps

1.Make sure there are atleast 30 vms in pvdc on single resource pool
2.Make a query api for the vms on the resource pool with limit 25.
3.Select a VM that is not present in the list.
4.run "vcd pvdc migrate-vms" with that vm
5.Command fails with cannot find vm
...

Expected behavior

VM should be migrated if it is present in the resourepool irrespective of on which page the VM is on in the query result.

Additional context

No response

chaitanya118 avatar Mar 17 '22 06:03 chaitanya118