Skip to content

mgr/cephadm: add ok-to-stop functions for ceph client services - #38915

Merged
sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:clientsoktostop
Mar 2, 2021
Merged

sebastian-philipp merged 1 commit into
ceph:masterfrom
Daniel-Pivonka:clientsoktostop

Conversation

@Daniel-Pivonka

Copy link
Copy Markdown

create ok-to-stop functions for client services.

depends on #38854
related to #38897

Signed-off-by: Daniel-Pivonka [email protected]
Signed-off-by: Adam King [email protected]

@Daniel-Pivonka

Copy link
Copy Markdown
Author

created as a draft because we are still testing but wanted to get something up to share and get feedback from

@mgfritch mgfritch 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.

This appears to duplicate a fair amount of logic for if the num of dameons >=1. Can it be consolidated up into the existing ok_to_stop of the CephadmService class?

@jmolmo jmolmo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is what we need!.. Just to say that it could be nice to improve the detection of ha-rwg running properly with my suggestion.

@adk3798

adk3798 commented Jan 15, 2021

Copy link
Copy Markdown
Contributor

Removed ha-rgw ok-to-stop from this. This PR is meant to be more straightforward set of ok-to-stop functions for the remaining daemon types, however ha-rgw would require introduction of daemon types to ok-to-stop (currently the classes self.TYPE, which is a service type, and causes issues for ha-rgw). Since it's a more substantial change that ultimately affects all ok-to-stop functions by changing parameters we're going to split it into its own PR

@Daniel-Pivonka

Copy link
Copy Markdown
Author

This appears to duplicate a fair amount of logic for if the num of dameons >=1. Can it be consolidated up into the existing ok_to_stop of the CephadmService class?

i have something for this but it involves modifying the _enough_daemons_to_stop func so it will be easier to add once #38854 merged

@Daniel-Pivonka
Daniel-Pivonka marked this pull request as ready for review January 18, 2021 21:23
@Daniel-Pivonka
Daniel-Pivonka requested a review from a team as a code owner January 18, 2021 21:23
@Daniel-Pivonka
Daniel-Pivonka force-pushed the clientsoktostop branch 3 times, most recently from dfd5eb0 to 857da69 Compare January 27, 2021 20:31
Comment thread src/pybind/mgr/cephadm/inventory.py Resolved
Comment thread src/pybind/mgr/cephadm/inventory.py Resolved
@Daniel-Pivonka
Daniel-Pivonka force-pushed the clientsoktostop branch 2 times, most recently from 65b482f to 8bb50c1 Compare January 29, 2021 19:05
@sebastian-philipp

Copy link
Copy Markdown
Contributor

ping @jmolmo

@github-actions

github-actions Bot commented Feb 8, 2021

Copy link
Copy Markdown

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

@jmolmo jmolmo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown

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

@sebastian-philipp sebastian-philipp removed the wip-swagner-testing My Teuthology tests label Feb 22, 2021
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.

5 participants