Repository navigation
cephadm: reorganize container binds functions - #54398
Merged
Merged
Conversation
phlogistonjohn
force-pushed
the
jjm-cephadm-reorg-ctr-binds
branch
from
November 7, 2023 18:16
5b17a3c to
7121e68
Compare
4 of 14 tasks
These functions often derive the binds and/or mounts from the context variable. Thus we should have the base class method accept the context. Not all subclassess will use it but it will be there for those that do. Also, fix the type for customize_container_mounts - it should be a dict not a list. Signed-off-by: John Mulligan <[email protected]>
Ensure that the iscsi test can call CephIscsi.create inside other functions by passing a required, but fake, gateway config file. Signed-off-by: John Mulligan <[email protected]>
Convert the CephIscsi type's get_container_binds to customize_container_binds and use it in the generic method. Signed-off-by: John Mulligan <[email protected]>
…thod Convert the CephNvmeof type's get_container_binds to customize_container_binds and use it in the generic method. Signed-off-by: John Mulligan <[email protected]>
Add a customize_container_binds function to the CustomContainer daemon type class and use it from the common get_container_binds function. Signed-off-by: John Mulligan <[email protected]>
Move the call to get_container_binds out of the function call. This will aid with the next refactoring steps, so that the uses of get_container_binds can be brought into the get_container call directly. Signed-off-by: John Mulligan <[email protected]>
This is a step towards not calling get_container_binds in get_container. A future commit will replace uses of get_container_binds with direct uses of common class methods. Signed-off-by: John Mulligan <[email protected]>
Since all types affected by get_container_binds now have the common customize_container_binds, use a generic class-based approach by creating an instance of ContainerDaemonForm and calling the method. All other classes have a customize_container_binds that is a no-op. Signed-off-by: John Mulligan <[email protected]>
phlogistonjohn
force-pushed
the
jjm-cephadm-reorg-ctr-binds
branch
from
November 9, 2023 19:51
7121e68 to
f04c4b6
Compare
phlogistonjohn
marked this pull request as ready for review
November 9, 2023 19:51
adk3798
approved these changes
Nov 9, 2023
Contributor
|
reruns of failed/dead jobs: https://pulpito.ceph.com/adking-2023-11-10_16:06:45-orch:cephadm-wip-adk-testing-2023-11-09-1739-distro-default-smithi/ After reruns: 6 failed, 1 dead job
Some of the PRs in the run are directly related to some of the above mentioned failures. PRs unrelated to those failures I think can be merged. |
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 #54387
Update and expand the
customize_container_bindsfunctions on the set of deamon type classes that were named inget_container_bindsultimately reworking that function to use common class methods to get the binds.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 ticketShow 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