vmware-archive / vcd-cli

Command Line Interface for VMware vCloud Director
https://vmware.github.io/vcd-cli
Other
163 stars 104 forks source link

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

Open chaitanya118 opened 2 years ago

chaitanya118 commented 2 years ago

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