Repository navigation
Conversation
This fixes a regression introduced by: 24f8e5c `iter_entry_points` from `pkg_resources` takes one argument whereas `entry_points` from `importlib.metadata` does not. The call to `entry_points(group=group)` makes ceph-volume fail. Fixes: https://tracker.ceph.com/issues/66328 Signed-off-by: Guillaume Abrioux <[email protected]> (cherry picked from commit 6e3b0b9)
Shall I raise a new PR that backports 6e3b0b9 and 24f8e5c at the same time? If yes, I shall do this late this afternoon. |
|
@zdover23 thanks! you could reuse the existing PRs for this purpose though. i think, the idea is to use different commits instead of merging different original commits into a single one. but because the fix commit depends on the one being fixed, and to avoid the regression when performing integration tests, we have to have them in the same PR. |
since packaging was apparently removed from pkg_resources, let's use importlib.metadata when it is available and pkg_resources on older Python versions. Refs https://tracker.ceph.com/issues/66201 Signed-off-by: Kefu Chai <[email protected]> (cherry picked from commit 24f8e5c)
@tchaikov, I've cherry-picked 24f8e5c into this PR and resolved the merge conflict (by overwriting the previous state with the state represented by this cherry-picked commit). I'll wait until you confirm that this is the correct course of action before doing this for the other backports. Thanks for looking out for me here. |
|
See #58006 (which supersedes this) This PR accidentally cherry-picked 24f8e5c (which introduced a regression) onto 6e3b0b9 (which fixed that regression). That's backwards. It should have been done the other way around. This PR probably would have worked (it passed all of the tests except for the "docs/readthedocs.org:ceph", which is broken anyway and which these commits are expected to play a role in fixing), but it would have made this part of the cherry-picked commit history backwards, and I don't like that. |
This fixes a regression introduced by: 24f8e5c
iter_entry_pointsfrompkg_resourcestakes one argument whereasentry_pointsfromimportlib.metadatadoes not.The call to
entry_points(group=group)makes ceph-volume fail.Fixes: https://tracker.ceph.com/issues/66328
Signed-off-by: Guillaume Abrioux [email protected]
(cherry picked from commit 6e3b0b9)
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e