Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[nova] fix pagination of hypervisors.List() #3223

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

majewsky
Copy link
Contributor

@majewsky majewsky commented Oct 21, 2024

This is a mildly backwards-incompatible change, but since most people only use this API on the level of pagination.Pager, it ought not be a big deal in practice.

Closes #3222.

FYI, a mildly different implementation of the same change has been tested against productive clusters of a sufficient size (more than 1000 hypervisors) in sapcc/limes#585.

@github-actions github-actions bot added edit:compute This PR updates compute code semver:major Breaking change labels Oct 21, 2024
@coveralls
Copy link

coveralls commented Oct 21, 2024

Coverage Status

coverage: 78.68% (-0.001%) from 78.681%
when pulling 97c0a32 on sapcc:fix-hypervisor-pagination
into b50fc2b on gophercloud:master.

@majewsky
Copy link
Contributor Author

Test failure looks to be unrelated to my change.

pierreprinetti
pierreprinetti previously approved these changes Dec 6, 2024
Copy link
Member

@pierreprinetti pierreprinetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@pierreprinetti
Copy link
Member

@majewsky
Can you please rebase so that we can merge?

@majewsky
Copy link
Contributor Author

majewsky commented Dec 6, 2024

Rebasing this onto origin/master introduces a crash that I have not debugged yet because it is Friday at 5 PM and I need to leave now. Nevermind, I took the wrong side when resolving the merge conflict. Should work now.

This is a mildly backwards-incompatible change, but since most people
only use this API on the level of pagination.Pager, it ought not be a
big deal in practice.

Closes gophercloud#3222.
@majewsky majewsky force-pushed the fix-hypervisor-pagination branch from aa06cc3 to 97c0a32 Compare December 6, 2024 16:07
@mandre mandre merged commit 7889e7f into gophercloud:main Mar 6, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
edit:compute This PR updates compute code semver:major Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hypervisors.List() is not implementing pagination correctly
4 participants