-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Use Krew restore-quorum command for mon quorum disaster scenario #11184
Conversation
For example, if you have three mons and lose quorum, you will need to remove the two bad mons from quorum, notify the good mon | ||
that it is the only mon in quorum, and then restart the good mon. | ||
The [Rook Krew Plugin](https://github.com/rook/kubectl-rook-ceph/) has a command `restore-quorum` that will | ||
walk you through the mon quorum restoration process. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
walk you through the mon quorum restoration process. | |
walk you through the mon quorum automated restoration process. |
so that users have a sense feel of automation with the new addition
|
||
```console | ||
# create the operator. it is safe to ignore the errors that a number of resources already exist. | ||
kubectl -n rook-ceph scale deployment rook-ceph-operator --replicas=1 | ||
kubectl rook-ceph mons restore-quorum c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubectl rook-ceph mons restore-quorum c | |
kubectl rook-ceph mons restore-quorum c |
can we add some snippet of output from the above command as an example? Also, I noticed we missed adding the output in the krew doc too. If you feel it is a good add, let's add output here and we can do krew in later PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I had a snippet ready to go and just realized I missed opening it. See rook/kubectl-rook-ceph#65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming they'll follow the link to the krew doc instead of needing to see the output here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, since it was not added in krew earlier so I was suggesting to add here, but I think we are good now. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a concern,
Can we go and install krew
as default by rook?
As many times users won't have krew installed and are stuck with the cmds....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a concern, Can we go and install
krew
as default by rook? As many times users won't have krew installed and are stuck with the cmds....
Since krew is a client tool to be installed wherever they have kubectl, we can't really install it by default since there isn't a yaml that could install it at the same time as the operator.
The new krew plugin command restore-quorum will automate the process to restore quorum from a single healthy mon. No longer do we need the absolutely tedious, messy, manual steps from the rook docs. The krew plugin will take care of all the complexity automatically as of the v0.4.0 release Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
ad97c52
to
3e60b95
Compare
Yaa, I remember the discussion about why not merging with the operator image But still we can think of:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
we don't have yet a process to install krew using yaml, https://krew.sigs.k8s.io/docs/user-guide/setup/install/ these how official documentation suggest installing |
can these steps can't be bonded with make? |
If we had a make command, why not just have them run the command to install krew? Let's discuss in huddle. |
docs: Use Krew restore-quorum command for mon quorum disaster scenario (backport #11184)
Description of your changes:
The new krew plugin command restore-quorum will automate the process to restore quorum from a single healthy mon. No longer do we need the absolutely tedious, messy, manual steps from the rook docs. The krew plugin will take care of all the complexity automatically as of the v0.4.0 release
Which issue is resolved by this Pull Request:
Resolves #3985
Checklist:
skip-ci
on the PR.