Skip to content

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

Merged
mandre merged 1 commit into
gophercloud:mainfrom
sapcc:fix-hypervisor-pagination
Mar 6, 2025
Merged

mandre merged 1 commit into
gophercloud:mainfrom
sapcc:fix-hypervisor-pagination

Conversation

@majewsky

@majewsky majewsky commented Oct 21, 2024 •

Copy link
Copy Markdown
Contributor

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

coveralls commented Oct 21, 2024 •

Copy link
Copy Markdown

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
Copy Markdown
Contributor Author

Test failure looks to be unrelated to my change.

pierreprinetti
pierreprinetti previously approved these changes Dec 6, 2024

@pierreprinetti pierreprinetti left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

@majewsky

majewsky commented Dec 6, 2024 •

Copy link
Copy Markdown
Contributor Author

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
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