Skip to content

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

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

mgr/cephadm: add ok-to-stop functions for ceph client services#38915
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:clientsoktostop

Conversation

@Daniel-Pivonka
Copy link

create ok-to-stop functions for client services.

depends on #38854
related to #38897

Signed-off-by: Daniel-Pivonka dpivonka@redhat.com
Signed-off-by: Adam King adking@redhat.com

@Daniel-Pivonka
Copy link
Author

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

Copy link
Contributor

@mgfritch mgfritch left a comment

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?

Copy link
Member

@jmolmo jmolmo left a comment

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
Copy link
Contributor

adk3798 commented Jan 15, 2021

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
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
@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
Contributor

ping @jmolmo

@github-actions
Copy link

github-actions bot commented Feb 8, 2021

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

Copy link
Member

@jmolmo jmolmo left a comment

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

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
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
Signed-off-by: Adam King <adking@redhat.com>
@sebastian-philipp
Copy link
Contributor

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