New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Cloudstack paging work for listVirtualMachines #40018
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cloudstack paging wasn't supported, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM. Missed one file Pass fetch_list to cs python module
ansibot
added
bug
This issue/PR relates to a bug.
c:inventory/contrib_script
cloud
cloudstack
core_review
In order to be merged, this PR must follow the core review workflow.
inventory
Inventory category
module
This issue/PR relates to a module.
needs_triage
Needs a first human triage before being processed.
new_contributor
This PR is the first contribution by a new community member.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
labels
May 11, 2018
I'm all for this PR! 👍 |
LGTM Makes things even easier. Let's work towards for full pagination support in all modules. |
resmo
approved these changes
May 11, 2018
ansibot
removed
the
needs_triage
Needs a first human triage before being processed.
label
May 11, 2018
@resmo I’ll have a look through the rest of the cloudstack related code next week to what else might need this change. |
@pfarmer nice, looking forward and thanks for your contribution! |
oolongbrothers
pushed a commit
to oolongbrothers/ansible
that referenced
this pull request
May 12, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
oolongbrothers
pushed a commit
to oolongbrothers/ansible
that referenced
this pull request
May 14, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
oolongbrothers
pushed a commit
to oolongbrothers/ansible
that referenced
this pull request
May 14, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
tonal
pushed a commit
to tonal/ansible
that referenced
this pull request
May 15, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
oolongbrothers
pushed a commit
to oolongbrothers/ansible
that referenced
this pull request
May 15, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
oolongbrothers
pushed a commit
to oolongbrothers/ansible
that referenced
this pull request
May 15, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
ilicmilan
pushed a commit
to ilicmilan/ansible
that referenced
this pull request
Nov 7, 2018
Paging wasn't implemented, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bug
This issue/PR relates to a bug.
c:inventory/contrib_script
cloud
cloudstack
core_review
In order to be merged, this PR must follow the core review workflow.
inventory
Inventory category
module
This issue/PR relates to a module.
new_contributor
This PR is the first contribution by a new community member.
support:community
This issue/PR relates to code supported by the Ansible community.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Cloudstack paging wasn't supported, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
SUMMARY
Cloudstack paging wasn't supported, so once a cs domain has over 500 (default page size) VMs, Ansible can no longer find newly created VM.
Paging is supported in the cs module, the cs module abstracts away the pages, and returns a list of the VMs. The normal cloudstack response contains a "count" variable (the count of virtualmachines in the domain), and a list of the virtualmachines, when paging, the cs module just returns a list of virtualmachines, so some small changes needed to be made to remove the reference to the "virtualmachine" key.
ISSUE TYPE
COMPONENT NAME
cloudstack
ANSIBLE VERSION
ADDITIONAL INFORMATION
Before this change, once 500 VMs exists in the domain, the following error is seen.