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
mon/OSDMonitor: add flag --yes-i-really-mean-it
for setting pool size 1
#33281
mon/OSDMonitor: add flag --yes-i-really-mean-it
for setting pool size 1
#33281
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.
can you also adapt the test cases in qa/workunits/mon/pool_ops.sh and qa/standalone/mon/health-mute.sh where we set size to 1
b0fb098
to
db5b1d6
Compare
--yes-i-really-really-mean-it
for setting pool size 1--yes-i-really-mean-it
for setting pool size 1
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.
couple of nits, else LGTM! let's run this through testing and fix any other hidden occurrences.
c0c4ea6
to
80e45f1
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.
Good basics; few issues plus what xiexingguo said.
0fc80be
to
20dfd1b
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.
Reviewed-by: Greg Farnum gfarnum@redhat.com
20dfd1b
to
d227311
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.
This change doesn't fit well with the operator model and its declarative nature but I suspect that this change is somehow desired and good for users.
Pools with no replicas is just never a good idea. It's technically possible to run but any OSD down blocks IO on its portion of data and actually losing one means both data loss and horrifying manual gyrations to try and get back what we can. Even in a cloud environment with eg EBS backing disks I can't think of any way this would work. |
I couldn't agree more! Again I'm not saying it's a bad thing it's just that Rook for instead would have to suppress that if a user asks for pool size of 1 and we will only rely on the health warning. |
db309b3
to
49cae07
Compare
|
78c687b
to
4eff355
Compare
d4c1937
to
0d25db9
Compare
1162f1b
to
88ff18c
Compare
the failure were either
|
88ff18c
to
4f05c69
Compare
jenkins test make check |
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.
As discussed in standup, let's wait until octopus is cut to merge this.
Still looks good; 👍 on waiting until Octopus I guess. |
e8bda73
to
c13f1a6
Compare
…ze 1 Adds option `mon_allow_pool_size_one` which will be disabled by default to ensure pools are not configured without replicas. If the user still wants to use pool size 1, they will have to change the value of `mon_allow_pool_size_one` to true and then have to pass flag `--yes-i-really-mean-it` to cli command: Example: `ceph osd pool test set size 1 --yes-i-really-mean-it` Fixes: https://tracker.ceph.com/issues/44025 Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
c13f1a6
to
21508bd
Compare
Adds option
mon_allow_pool_size_one
which will be disabled by defaultto ensure pools are not configured without replicas.
If the user still wants to use pool size 1, they will have to change the
value of
mon_allow_pool_size_one
to true and then have to pass flag--yes-i-really-really-mean-it
to cli command:Example:
ceph osd pool test set size 1 --yes-i-really-really-mean-it
Fixes: https://tracker.ceph.com/issues/44025
Signed-off-by: Deepika Upadhyay dupadhya@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard backend
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox