Repository navigation
cephadm: reorganize the remaining container setup methods - #54403
Merged
adk3798 merged 15 commits intoNov 17, 2023
Merged
Conversation
4 of 14 tasks
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
phlogistonjohn
force-pushed
the
jjm-cephadm-reorg-ctr-setup-methods
branch
from
November 9, 2023 20:48
c7c8e23 to
94d3b5e
Compare
phlogistonjohn
force-pushed
the
jjm-cephadm-reorg-ctr-setup-methods
branch
from
November 11, 2023 13:14
94d3b5e to
c6f8d66
Compare
Contributor
Author
|
Found an issue related to the ceph crash daemon. This will remain 'draft' until I fix it & retest locally. |
Fix the function signature for the previously added stub customize_container_args. Add methods for customize_process_args and customize_container_envs. The "process args" are args passed to the daemon process / entrypoint. Container args are passed to the container engine. Add a default_entrypoint method to return the default entrypoint for a particular daemon-in-container. Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container,process}_args to the snmp gateway
daemon type class. Use those methods in the get_container function.
Signed-off-by: John Mulligan <[email protected]>
… class
Add methods customize_{process_args,container_envs,container_args} and
default_entrypoint to the custom container daemon type class. Use those
methods in the get_container function.
Signed-off-by: John Mulligan <[email protected]>
Add method default_entrypoint to the iscsi daemon type class. Use that method in the get_container function. Signed-off-by: John Mulligan <[email protected]>
Add method customize_container_args to the nvmeof daemon type class. Use that method in the get_container function. Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container_args,container_envs} to the keepalived
daemon type class. Use those methods in the get_container function.
Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container_args,process_args} to the haproxy
daemon type class. Use those methods in the get_container function.
Signed-off-by: John Mulligan <[email protected]>
Add methods customize_process_args & default_entrypoint to the ceph exporter daemon type class. Use those methods in the get_container function. Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container_envs,process_args} & default_entrypoint
to the nfs daemon type class. Use those methods in the get_container
function.
Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container_envs,process_args} & default_entrypoint
to the tracing daemon type class. Use those methods in the get_container
function.
This change tries to adapt to, but not fix, the rather strange
set_configuration static method that side-effects the class's(!)
property.
Signed-off-by: John Mulligan <[email protected]>
Add methods customize_{container_args,process_args} & default_entrypoint
to the monitoring daemon type class. Use those methods in the
get_container function.
Signed-off-by: John Mulligan <[email protected]>
Add unused methods to the ceph class in order to prepare for moving the logic for setting up the various ceph deaemon types to be handled by the class. Signed-off-by: John Mulligan <[email protected]>
These, currently unused, methods will be used in a subsequent change to move logic for setting up containers out of the get_containers function into the daemon type classes in a common way. Signed-off-by: John Mulligan <[email protected]>
Now that the ceph and ceph exporter classes have all the necessary methods, rework the get_container function to use those class methods in a common manner. Signed-off-by: John Mulligan <[email protected]>
Eliminate the _update_pids_limit function by moving the logic into the various daemon type classes `customize_container_args` functions allow each class to decide if it needs to run with unlimited-pids or not. Signed-off-by: John Mulligan <[email protected]>
phlogistonjohn
force-pushed
the
jjm-cephadm-reorg-ctr-setup-methods
branch
from
November 14, 2023 21:05
c6f8d66 to
57b7344
Compare
Contributor
Author
|
I have fixed the issue and rebased. |
Contributor
|
reruns of failed jobs: https://pulpito.ceph.com/adking-2023-11-16_17:22:00-orch:cephadm-wip-adk-testing-2023-11-16-0243-distro-default-smithi/ After reruns: 7 failures
Should be able to merge PRs outside of the two causing the iscsi container and test_cephadm_repos failures. |
adk3798
approved these changes
Nov 17, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #54399
Continuing on with the refactoring work in #54399 and previous PRs, this series of patches aims to complete the conversion of code for setting up container params (args, env vars, and the like) from chunks of logic in the get_container method to regular (as in regulated) methods tied to the classes that handle the various daemon types. Most of these are simple enough... but of course tracing, monitoring, and ceph are less so.
At the end of this PR the
get_containerfunction should still be fairly long but much more pattern based than before. Future PRs will finish up this conversion making get_container based on the common base class & helper methods that do not need to live in cephadm.py [watch this space].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
opened tracker ticketrefactoringShow 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