Repository navigation
V20.2.4 tag - #71161
Merged
Merged
V20.2.4 tag#71161
Conversation
bump mon debug level to 30 in RADOS and bump debug_ms from mon in rados/monthrash && rados/multimon. Add msgr-failures/none scenario to multimon and monthrash suite this is a control scenario, where MON_NETSPLIT can only be organically generated due to actually monitor network partition. Whitelist the MON_NETSPLIT health warning in msgr-failures cases (excluding none) for both multimon and monthrash suites. This is because all other msgr-failures that is not `none` will have ms_inject_socket_failures which is not an organic case of MON_NETSPLIT. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit 5529b98)
global_seq needs more visibility on how it gets updated, decided to add more loggings in AsyncMessenger::get_global_seq and also added the prefixes for global_seq in both ProtocolV1 and ProtocolV2. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit e5b9e34)
…sient MON_NETSPLIT warnings When a monitor is elected leader and begins evaluating connectivity, it may detect temporary disconnections between monitors that have not yet fully reconnected to each other—particularly after events like monitor restarts, SIGSTOP/SIGCONT (as used in mon_thrash), or brief network blips. This can result in false-positive MON_NETSPLIT health warnings that quickly disappear within seconds as the cluster topology stabilizes. This commit introduces a configurable option: - mon_netsplit_grace_period (default: 9 seconds) When the leader observes a netsplit between two monitors or locations, it will wait for the grace period before raising a health warning. If the split resolves within this window, no warning is emitted. This reduces test flakiness and alert fatigue while preserving the accuracy of persistent MON_NETSPLIT detection. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> Conflicts: src/common/options/mon.yaml.in - trivial fix (cherry picked from commit b297bab)
Improve logging for Netsplit pairs and other variables in HealthMonitor::check_netsplit Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit 595a111)
Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit e7cafc2)
In ProtocolV2::send_server_ident(), the global_seq was being fetched from messenger->get_global_seq() and used in the ServerIdentFrame, however, it is stored in a local var and not the private class var ProtocolV2::global_seq. This causes problems like where the receiving peer sees a peer_global_seq that appears older than expected, triggering a false-positive reconnect logic: ``` 2025-07-15T11:40:50.927+0000 mon.c handle_existing_connection client has clearly restarted (peer_global_seq < ex_peer_global_seq && cookie changed), dropping existing connection=0x563ffe9a9000 in favor of new one ``` In this case, mon.c received a peer_global_seq=75, which was already logged by mon.d as gs=79 in its send_server_ident()—but ProtocolV2::global_seq was never updated, resulting in inconsistent state and premature connection teardown. This commit fixes the issue by assigning the freshly incremented messenger->get_global_seq() value to the local global_seq field in ProtocolV2 as well, ensuring consistency in the protocol. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit df1105c)
Some existing netsplit test in 3az + stretch mode needed white listing and check for netsplit details Make qa/tasks/mon_thrash.py set mon_netsplit_grace_period to 30 seconds when we try to freeze monitors instead of killing them. Make qa/tasks/stretch_mode_disable_enable.py set mon_netsplit_grace_period to 30 seconds during `teardown` phase only. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit abfa5a3)
Update the MON_NETSPLIT health check documentation to reflect the introduction of the configurable mon_netsplit_grace_period option. Fixes: https://tracker.ceph.com/issues/71344 Signed-off-by: Kamoltat Sirivadhna <[email protected]> (cherry picked from commit 5ee0bbf)
adding checks to return error when it is not set in config options. Signed-off-by: Pritha Srivastava <[email protected]> (cherry picked from commit fc57ec7)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit d48b71c)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit ac3ba2d)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 3605608)
Everybody who includes CephxKeyServer.h must link with CephxKeyServer.cc. Currently, only ceph-mon and ceph-monstore-tool do that. All the others (e.g. ceph_dencoder.cc) get away with that mistake because many of the KeyServer methods are inline, and if they just happen to use only the inline symbols, there is no (visible) problem. However, during my attempts to un-inline some of these methods (to reduce header dependencies and reduce binary bloat due to having many copies of the same code), there were runtime linker failures in "ceph-dencoder". The simplest solution is to just add cephx/CephxKeyServer.cc to auth_srcs. Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 79908f4)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 1d01de4)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit ba6b0d2) Conflicts: src/auth/Auth.h: header refactor src/auth/Auth.cc: header refactor
…ncies Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 62eb603) Conflicts: src/auth/cephx/CephxKeyServer.h: missing generate_test_isntances changes src/auth/cephx/CephxKeyServer.cc: missing generate_test_isntances changes
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit ddc7b1a)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 688d2f4)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit d6f26a9)
Signed-off-by: Max Kellermann <[email protected]> (cherry picked from commit 4c0e4d4)
Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: 3999706c-f5a7-4ffc-bafe-db1853bdda00 (cherry picked from commit dceecc32829a3dd05e9ff0277d8fadc186734bca)
Using the encryption standard set in RFC 8009. This is the encryption that is used in Kerberos 5, so naming this variation as AES256KRB5. Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: 124b2b4f-df5c-4480-9d92-6503cf9caa9a (cherry picked from commit 387270602185397a5cf3afe1cf737508010023ef)
Also move the encryption handlers out of the ceph_context. Handlers are now returned as a shared_ptr, to support the creation of new handlers with different params (such as the usage param). Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: be46227d-f8f8-4c7d-85ae-8a924177d675 (cherry picked from commit b99cd54d09a8c26c07375348ef4afa7cbb2d8fbc) Conflicts: src/common/ceph_context.cc: cpu tracer command conflict
This applies when using ciphers that are not the original AES-128 one. Use the hmac-sha256 hash now. With AES256KRB5 the original method of encrypting the combined challenges doesn't work as the confounder randomizes the result. Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: 4612ee35-a936-4798-9679-86bd67e309eb (cherry picked from commit b833fd54943e1e23be76fe9907bf0b1d81ff8db8)
Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: f47e9a03-5721-49af-94fb-e26e529f357f (cherry picked from commit 07a19f57f14eeb54fd992d3a7c24be221f68d4e5)
This ensures that the client supports the specific key type. Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: af143cd0-5d8b-42ad-b058-beb014089cb3 (cherry picked from commit 05e4478124c549cd794102fcaf3758af863332e6)
auth_service_cipher: a mon configurable that determines what type of cipher the rotating keys are using. The configurable can change at runtime. Note that the change does not invalidate existing keys, these would expire based on their ttl. Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: f3148ff2-19cb-431b-98c9-c4eec1d35c3e (cherry picked from commit fc78cd2e98b9d707b94e0f0c427d4e23727132d5)
Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: c39cb463-5eb9-4242-bc2a-567587f3b8f7 (cherry picked from commit 7c3fcfd47f7a358665794b66e0851eb183543de3)
cephx allowed ciphers: a list of ciphers that sets what type of keys are allowed to be used to authenticate Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: d2de7067-e284-44f5-8b79-b41fe4cb7f4a (cherry picked from commit 63cc7c54fd9255fb5e131dedb3d135fa5bc5847c)
Signed-off-by: Yehuda Sadeh <[email protected]> Change-Id: c3f5d6a0-cddd-480d-b3f0-5c17969c24de (cherry picked from commit 36f8d15723982f08aaaa93a75994fc4945e46876)
yuriw
approved these changes
Aug 19, 2026
idryomov
approved these changes
Aug 19, 2026
4 of 14 tasks
adamemerson
approved these changes
Aug 19, 2026
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are:
Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.