Skip to content

reef: cephadm: use importlib.metadata for querying ceph_iscsi's version - #58323

Merged
zdover23 merged 1 commit into
ceph:reeffrom
zdover23:wip-doc-2024-06-28-backport-57685-to-reef
Jul 16, 2024
Merged

zdover23 merged 1 commit into
ceph:reeffrom
zdover23:wip-doc-2024-06-28-backport-57685-to-reef

Conversation

@zdover23

@zdover23 zdover23 commented Jun 27, 2024 •

Copy link
Copy Markdown
Contributor

use importlib.metadata for querying ceph_iscsi's version and fallback to pkg_resources. as the former is only available in Python 3.8, while the latter is deprecated.

Refs https://tracker.ceph.com/issues/66201

This commit is functionally equivalent to a Reef-targeted backport of #57685.

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@zdover23
zdover23 requested a review from a team as a code owner June 27, 2024 18:11
@github-actions github-actions Bot added this to the reef milestone Jun 27, 2024
@zdover23
zdover23 requested a review from jdurgin June 27, 2024 18:16
Comment thread src/cephadm/cephadm.py Resolved
Comment thread src/cephadm/cephadm.py Resolved
Comment thread src/cephadm/cephadm.py Resolved
@zdover23
zdover23 force-pushed the wip-doc-2024-06-28-backport-57685-to-reef branch 2 times, most recently from 22d3614 to 5103938 Compare June 27, 2024 18:39
@zdover23
zdover23 requested a review from adk3798 June 27, 2024 18:41
@zdover23
zdover23 force-pushed the wip-doc-2024-06-28-backport-57685-to-reef branch 3 times, most recently from 8229215 to 1d0e5ba Compare June 28, 2024 18:42

@adk3798 adk3798 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

From what I can tell recent pushes have just been changing the formatting, so as long as make check passes this LGTM

@zdover23

Copy link
Copy Markdown
Contributor Author

From what I can tell recent pushes have just been changing the formatting, so as long as make check passes this LGTM

Thanks, @adk3798. I'm just learning (at the feet of the extremely patient Josh) about how very finicky Python can be in connection to whitespace. I hope that all my... uh... mucking about... hasn't been too much of an inconvenience. Thanks for your forbearance.

@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins test make check

use importlib.metadata for querying ceph_iscsi's version and fallback to
pkg_resources. as the former is only available in Python 3.8, while
the latter is deprecated.

Refs https://tracker.ceph.com/issues/66201

This commit is functionally equivalent to a Reef-targeted backport of
ceph#57685.

Signed-off-by: Zac Dover <[email protected]>
@zdover23
zdover23 force-pushed the wip-doc-2024-06-28-backport-57685-to-reef branch from 1d0e5ba to 5aa3e7d Compare July 1, 2024 15:37
@zdover23

zdover23 commented Jul 5, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@zdover23

zdover23 commented Jul 7, 2024

Copy link
Copy Markdown
Contributor Author

jenkins test api

@zdover23

Copy link
Copy Markdown
Contributor Author

jenkins test api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants