Repository navigation
ceph-volume: use importlib from stdlib on Python 3.8 and up - #57650
Conversation
|
@guits hi Guillaume, could you help review this change? |
|
i also need to update |
phlogistonjohn
left a comment
There was a problem hiding this comment.
Python changes generally look OK to me. Although I had to stare hard at importlib.metadata vs importlib_metadata for a long while to see the difference.
I'll wait until you have made the spec file changes you mentioned before giving final approval, unless you would like otherwise.
97eec68 to
63be80a
Compare
|
v2:
@phlogistonjohn thank you for your review John. per https://pkgs.org/search/?q=importlib_metadata, this package is not available on, for instance, RHEL8, where the default python3 is Python 3.6.8. so i am using instead |
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]>
63be80a to
24f8e5c
Compare
|
jenkins test make check |
|
jenkins test windows |
1 similar comment
|
jenkins test windows |
|
i will try to run at least a couple tests involving ceph-volume to sanity test this change. |
|
We started getting the below error on our kcli based environments using cephadm probably after this change. Locally I did a normal bootstrap and saw the health warning. |
see #57830 |
since packaging was apparently removed from pkg_resources, let's use importlib.metadata when it is available and use importlib_metadata on older Python versions.
Refs https://tracker.ceph.com/issues/66201
Signed-off-by: Kefu Chai [email protected]
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