Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
This repository was 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

@chaitanya118

Description

@chaitanya118

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions