Skip to content

Conversation

@maierlars
Copy link
Contributor

@maierlars maierlars commented Feb 11, 2019

Delete all coordinator pods if all coordinators are failed. If a pod is in strange phase but there is no plan, view it as failed.

…is in strange phase but there is no plan, fail it.
@maierlars maierlars self-assigned this Feb 11, 2019
@maierlars maierlars requested a review from neunhoef February 11, 2019 16:47
@ghost ghost added the 2 - Working label Feb 11, 2019
Copy link
Contributor

@ewoutp ewoutp left a comment

Choose a reason for hiding this comment

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

Questions & comments

allMembersReady := status.Members.AllMembersReady(spec.GetMode(), spec.Sync.IsEnabled())
status.Conditions.Update(api.ConditionTypeReady, allMembersReady, "", "")

if status.Members.Coordinators.AllFailed() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This expression seems to "soon".
Shouldn't it given the coordinators some time first?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If they are failed, the operator will create a member replacement plan anyways. However, if all are failed, the execution of the plan will always fail because it can not connect to the cluster. So no, if all coordinators are failed, there is nothing we can do.

Copy link
Member

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

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

LGTM

@neunhoef neunhoef merged commit edf5d2f into master Feb 18, 2019
@neunhoef neunhoef deleted the bug-fix/no-coords-bug branch February 18, 2019 10:20
@ghost ghost removed the 2 - Working label Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants