Skip to content

cephadm: reorganize container mounts functions - #54399

Merged
adk3798 merged 11 commits into
ceph:mainfrom
phlogistonjohn:jjm-cephadm-reorg-ctr-mounts
Nov 14, 2023
Merged

adk3798 merged 11 commits into
ceph:mainfrom
phlogistonjohn:jjm-cephadm-reorg-ctr-mounts

Conversation

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Depends on #54398

Like #54398 does for binds, update and expand the customize_container_mounts functions on the set of deamon type classes that were named in get_container_mounts ultimately reworking that function to use common class methods to get the mounts. One special case remains for ceph daemon types for functionality specifcially related to cephadm shell.

As there are more daemon types wanting mounts than there are binds this PR is a bit longer than the last but you should see similarities between the approach taken.

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

@github-actions

github-actions Bot commented Nov 9, 2023

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@phlogistonjohn
phlogistonjohn force-pushed the jjm-cephadm-reorg-ctr-mounts branch from b47923a to 4c8eeb6 Compare November 9, 2023 20:47
Move the call to get_container_mounts out of the function call block.
This will aid with the next refactoring steps, so that the uses
of get_container_mounts can be brought into the get_container call
directly.

Signed-off-by: John Mulligan <[email protected]>
This helps clarify what types will eventually have to be converted
away from calling get_container_mounts directly and to using common
methods.

Signed-off-by: John Mulligan <[email protected]>
Unlike the other types Ceph and CephExporter share the underlying
method. There was no other use of get_container_mounts on the class
so it could be converted to be customize_container_mounts.
Because there's an extra arg that passes from get_container_mounts
top-level function to Ceph.get_ceph_mounts, that function was not
changed.

Signed-off-by: John Mulligan <[email protected]>
@phlogistonjohn
phlogistonjohn force-pushed the jjm-cephadm-reorg-ctr-mounts branch from 4c8eeb6 to 77ee6ab Compare November 11, 2023 13:14
@phlogistonjohn
phlogistonjohn marked this pull request as ready for review November 11, 2023 13:16
@phlogistonjohn
phlogistonjohn requested a review from a team as a code owner November 11, 2023 13:16
Comment thread src/cephadm/cephadm.py Resolved
Comment thread src/cephadm/cephadm.py Resolved
@adk3798

adk3798 commented Nov 14, 2023

Copy link
Copy Markdown
Contributor

https://pulpito.ceph.com/adking-2023-11-14_05:10:45-orch:cephadm-wip-adk-testing-2023-11-13-1853-distro-default-smithi/

reruns of failed jobs: https://pulpito.ceph.com/adking-2023-11-14_13:06:17-orch:cephadm-wip-adk-testing-2023-11-13-1853-distro-default-smithi/

After reruns, 5 failures:

Overall, nothing to block merging for PRs outside of the iscsi test extension and a PR that was adding new jinja2 templates.

@adk3798
adk3798 merged commit 7e49853 into ceph:main Nov 14, 2023
@phlogistonjohn
phlogistonjohn deleted the jjm-cephadm-reorg-ctr-mounts branch November 14, 2023 21:04
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.

2 participants