Repository navigation
mon [stretch mode]: restrict changing mon election strategy post stretch mode - #59515
Conversation
8f7055a to
193be9e
Compare
|
jenkins test make check |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
| err = -EINVAL; | ||
| ss << "Stretch mode is enabled, so you cannot change the election strategy; please disable stretch mode first!"; | ||
| ceph_assert(pending_map.strategy == MonMap::CONNECTIVITY); | ||
| goto reply_no_propose; |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test make check |
|
jenkins retest this please |
…tch mode Problem: It is possible to modify the monitor election strategy once stretch mode is enabled. Solution: Restrict the ability for Ceph to change election strategy while using stretch mode. Also, notify the user if they attempt to change to the current election strategy. This change prevents unnecessary resource usage by informing the user when they try to switch to an election strategy that is already in use. This avoids redundant updates to the monmap. Fixes: https://tracker.ceph.com/issues/67801 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
193be9e to
7378581
Compare
gregsfortytwo
left a comment
There was a problem hiding this comment.
Reviewed-by: Greg Farnum [email protected]
| if (pending_map.strategy == MonMap::CLASSIC) { | ||
| err = 0; | ||
| ss << "You are already in classic election strategy"; | ||
| goto reply_no_propose; |
There was a problem hiding this comment.
This is adding some extra output if a command gets double-submitted, but isn't an internal behavior change. Was it prompted by anything in particular?
There was a problem hiding this comment.
@gregsfortytwo
I decided to include extra output to be more verbose for the user. So just UX improvement stuff.
|
jenkins test make check |
|
jenkins test api |
4 similar comments
|
jenkins test api |
|
jenkins test api |
|
jenkins test api |
|
jenkins test api |
Problem:
It is possible to modify the monitor election
strategy once the stretch mode is enabled.
Solution:
Restrict Ceph's ability to change election strategy while using stretch mode.
Fixes: https://tracker.ceph.com/issues/67801
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e