Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

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

Open
chaitanya118 opened this issue Mar 17, 2022 · 0 comments
Open
Labels

Comments

@chaitanya118
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant