-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update debug to maintenance #252
Update debug to maintenance #252
Conversation
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.
Looks good, just a couple nits
docs/mons.md
Outdated
Info: The mons to discard are: b a | ||
Info: Are you sure you want to restore the quorum to mon "c"? If so, enter: yes-really-restore | ||
# Info: mon c state is leader | ||
# mon=b, endpoint=192.168.64.168:6789 |
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.
Do all of these lines have the #
prefix? I thought some output lines don't have it.
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.
#
prefix is only to separate output from commands. We don't add #
in front of the command output.
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'd suggest if there are commands in the same block with the output, the command would have the $
prefix, while the output is exactly as we see it in the console. I thought this was the pattern for the rook docs, which we could follow here as well.
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 have removed #
from the output now and slowly going in the future I feel maintaining the long output will become maintenance burden
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 let's discuss about long term
995ed50
to
35d4ded
Compare
35d4ded
to
bc17078
Compare
debug command can be confusing for users so after discussion with team we are changing it to maintenance command. Signed-off-by: subhamkrai <[email protected]>
bc17078
to
94c521d
Compare
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 couple more formatting nits, I'll approve for you to merge after that
docs/mons.md
Outdated
Info: Mon quorum was successfully restored to mon c | ||
Info: Only a single mon is currently running | ||
Info: Press Enter to start the operator and expand to full mon quorum again | ||
Error: failed to run command. failed to run command. command terminated with exit code 1%!(EXTRA string=failed to get the status of ceph cluster) |
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.
Formatting error in the output
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.
updating this fixed the issue
docs/mons.md
Outdated
Info: The mons to discard are: b a | ||
Info: Are you sure you want to restore the quorum to mon "c"? If so, enter: yes-really-restore | ||
# Info: mon c state is leader | ||
# mon=b, endpoint=192.168.64.168:6789 |
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 let's discuss about long term
since updating debug to maintenance, it requires changing in mons restore command as it used debug mode or maintenance mode for restoring mons. Signed-off-by: subhamkrai <[email protected]>
let's add 'maintenance' as commitlint title to make bot happy and also updating ci tests. Signed-off-by: subhamkrai <[email protected]>
94c521d
to
273b8e5
Compare
Description of your changes:
maintenance: update debug cmd to maintenance cmd
debug command can be confusing for users so after discussion with
team we are changing it to maintenance command.
mons: update restore-quorum logs and docs
since updating debug to maintenance, it requires
changing in the mons restore command as it used debug mode
or maintenance mode for restoring mons.
Which issue is resolved by this Pull Request:
Resolves #
Checklist: