Skip to content

os/bluestore: improve stray spanning blobs fix - #3

Merged
aclamk merged 4 commits into
aclamk:aclamk-bs-fix-stray-spanning-blobsfrom
ifed01:wip-ifed-improve-stray-spanning-blobs-fix
May 28, 2026
Merged

aclamk merged 4 commits into
aclamk:aclamk-bs-fix-stray-spanning-blobsfrom
ifed01:wip-ifed-improve-stray-spanning-blobs-fix

Conversation

@ifed01

@ifed01 ifed01 commented May 8, 2026

Copy link
Copy Markdown

@aclamk - mind to take this patch into your stray spanning blobs fix?
This includes more tests (primarily) and performs additional blob's tail prunning when splitting.

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

@ifed01
ifed01 force-pushed the wip-ifed-improve-stray-spanning-blobs-fix branch from a98d964 to 1619980 Compare May 8, 2026 12:32
@aclamk
aclamk force-pushed the aclamk-bs-fix-stray-spanning-blobs branch from e97b6f3 to e4804d2 Compare May 8, 2026 13:52
@ifed01
ifed01 force-pushed the wip-ifed-improve-stray-spanning-blobs-fix branch from 1619980 to cf1b1ce Compare May 12, 2026 14:45
ifed01 added 4 commits May 12, 2026 17:55
Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit 9c61bb87ebaa183ffe20e66eba4c73fbe28d39a8)
Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit 5ff275a4bf678ece9836c343ca3d428c0ab70134)
Failing to do that could cause "left" blob to keep having invalid
pextents at the end. Which we prefer to avoid.

Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit b9b25eacceac3463266d1339656b1ef1f156d858)
inappropriate.

Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit 3f808ed9515bf65f86dbf1756d0fe7b2dd19ed93)
@ifed01
ifed01 force-pushed the wip-ifed-improve-stray-spanning-blobs-fix branch from cf1b1ce to 52be63c Compare May 12, 2026 14:55
@aclamk
aclamk merged commit bd7f755 into aclamk:aclamk-bs-fix-stray-spanning-blobs May 28, 2026
aclamk pushed a commit that referenced this pull request Sep 17, 2026
aclamk pushed a commit that referenced this pull request Sep 17, 2026
aclamk pushed a commit that referenced this pull request Sep 17, 2026
* refs/pull/71161/head:
	20.2.4
	Merge PR #3 from ceph-GHSA-7q3q-3975-qw3q into tentacle
	Merge PR #3 from ceph-GHSA-rmjq-ffrm-j6vj into tentacle
	Merge PR #2 from ceph-GHSA-rg9p-5xcp-wm8h into tentacle
	qa: wire up ceph_test_mon into qa
	mon: enforce cap checks upfront for map subscriptions
	test/mon: install ceph_test_mon_msg
	test/mon: test cap enforcement for monitor subscriptions
	Revert "qa/tasks/rbd: handle auth key_type overrides for legacy aes ciphers"
	mon: enforce FEATURE_CEPHX_AUTH_AES256K for AES256KRB5 usage
	mon: do not propose on NOp mon settings
	mon/MonMap: sort allowed ciphers
	qa: use proper suffix for yaml
	tentacle: qa: remove roleless config
	cephadm: Add retries to OSD key rotation
	tentacle: qa: ignore auth warnings during p2p upgrade
	qa/tasks/rbd: handle auth key_type overrides for legacy aes ciphers
	cephadm: restart OSD systemd unit after key rotation
	Revert "cephadm: retry OSD keyring rotation block device commands on EBUSY"
	cephadm: use direct container engine command to stop OSD for key rotation
	msg/DispatchQueue: fix use-after-free for Message
	qa/tasks/workunit: remove debugging
	qa/distros: use aes for Noble too
	qa/tasks/workunit: more error handling for keyring checks
	qa/tasks/radosbench: avoid object-size parameter for non-write
	qa/tasks/admin_socket: use executable from qa suite checkout
	qa: use aes keys for ubuntu 22.04 kernel clients
	neorados: apply changes from environment
	qa/tasks/cephadm: create cluster keyring file
	qa/tasks/workunit: add admin key to workunit keyring
	qa: create separate client.admin keyring
	tasks/workunit: use constructed client credential
	test/neorados: use CEPH_CLIENT_ID for name
	qa/workunits/rgw: use CEPH_KEYRING if present
	qa: support aes for legacy client installs
	qa: ignore auth warnings for cluster upgrade
	qa: use cephadm.shell for command execution
	cephadm: retry OSD keyring rotation block device commands on EBUSY
	qa: list mons/mgrs for cephadm install
	qa: use alternative auth configs for qa
	qa: restructure try to raise exception if write_file fails
	mgr/cephadm: log OSD/mds daemons not upgraded when checking for rotation
	cephadm: fix key rotation for raw OSDs
	qa: ignore auth warnings during upgrade for insecure key types
	qa: stop overwrite of key rotation for kclient
	qa: do not log muted health warnings
	mon: initialize auth_epoch to 0 for mkfs and repair invalid max epoch
	qa: add integration test for standalone ceph-mon bootstrap auth_epoch bug
	mgr/cephadm: don't block upgrade on OSD/MDS key rotation when they're not upgraded
	mgr/cephadm: log full traceback when we get unexpected exception during upgrade
	mgr/cephadm: try using new key cipher when creating cephx keys
	qa: ignore AUTH_INSECURE_CLIENT_KEY_TYPE for bad cap
	qa/tasks/kclient: squelch exceptions when trying to rotate with key type
	qa: ignore cephx key errors for normal upgrades
	auth/cephx: generate session secret with common key type
	mgr/cephadm: increaase cache timeout time for gather-facts
	mgr/cephadm: force mgr failover when active mgr keyring needs rotation
	mgr/cephadm: integrate ok-to-stop and redeploys in osd/mds key rotation
	mgr/cephadm: Revert "mgr/cephadm: wipe auth rotation service keyrings at the end of upgrade"
	mgr/cephadm: disable `orch daemon rotate-key` command
	mgr/cephadm: wipe auth rotation service keyrings at the end of upgrade
	mgr/cephadm: fixup for storing which osd/mds keyrings have been rotated
	mgr/cephadm: fix check for whether osd/mds keyrings rotated during upgrade
	mon/AuthMonitor: explain invalid format type
	mon/MonCommands: enumerate options for `mon set`
	mgr/MgrClient: stop processing messages when shutdown
	mon/AuthMonitor: clarify warning details for AUTH_INSECURE_SERVICE_TICKETS
	mon/AuthMonitor: adjust AUTH_INSECURE_ROTATING_SERVICE_KEY_TYPE to WRN
	doc: update date for cephx key update release
	auth: encapsulate openssl allocations with a smartptr
	mgr/cephadm: move osd/mds key rotation to after osd/mds daemons are upgraded
	cephadmlib/daemons/ceph: add import for CallVerbosity
	mgr/cephadm: fixups for setting ciphers during upgrade
	mgr/cephadm: don't reconfig daemons for monmap changes while upgrade is in progress
	mgr/cephadm: mute key rotation related health warnings during upgrade
	mgr/cephadm: pick a preferred cipher when rotating keys during upgrade
	mgr/cephadm: set mon cipher settings only once during upgrade
	mgr/cephadm: set mon auth_service_cipher during upgrade
	mgr/cephadm: set allowed and preferred cephx ciphers during upgrade
	cephadm: restart OSDs after updating osd_key bluestore label
	mgr/cephadm: enforce upgrade target image for mgr/mon when rotating keys
	mon/MgrStatMonitor: reuse last health check map for each proposal
	mon/AuthMonitor: insecure service ticket key type should be an ERR
	mon/MgrStatMonitor: remove dead class member
	mon/MgrStatMonitor: update the health map
	auth/cephx: use memcpy for signature calculation to avoid ARM64 alignment traps
	mgr/cephadm: fix undefined vairable 'd' in upgrade code
	mon: do not clog muted health warnings
	qa: use aes key type for distro kclient
	msg/async: include MessageRef dependency
	qa: use umbrella for rados:upgrade:cephx upgrades
	rgw: Allow disabling of sigv4 fix for multisite
	rgw: Follow guidelines when verifying SigV4 signatures
	rgw: `forward_request` signs forwarded `x_meta_map`
	rgw: sign HTTP_HOST in RGWRESTSimpleRequest::forward_request()
	Revert "mount.ceph: always put fatal error messages in stderr"
	qa/suites/rados/upgrade/cephx: update distro pointer
	test/msgr: add tests for connection shutdown
	msg: implement connection shutdown
	msg: wire up Messenger to config changes
	common: add missing undef
	test/osd: implement new Connection methods
	mon: relocate methods instantiation to object
	mount.ceph: always put fatal error messages in stderr
	mount.ceph: support larger keys
	qa: add more OSDs
	qa: add osd debugging
	qa: add tentacle for cephx upgrade tests
	qa: do not install ceph-osd-classic on older ceph releases
	mgr/cephadm: rotate keyring for core ceph daemons during upgrade
	auth,mon: print key loading failures once at init
	common/config: print error when keyfile cannot be read
	auth/cephx: use defines for magic usage values
	auth/Crypto: refactor class definition
	doc/dev/cephx: clarify which session key is used
	doc/dev/cephx: use consistent capitalization
	auth/cephx: fix typo
	rgw/sts: use base64 encoding in configuration for rgw sts key.
	auth: CryptoKey, use dynamic usage keys for sts too
	auth: CryptoKey, use dynamic usage keys
	auth: CryptoKey, dynamic usage keys
	tools/monmaptool: allow monmap ciphers to be modified on an existing monmap
	auth: CryptoKey, use secret in CryptoKeyHandler
	rgw/sts: changing sts key to be compliant with AES256KRB5
	rgw/sts: changes for using new AES256KRB5 cryptohandler
	auth: extend crypto API to support multiple usages per key
	auth: remove superfluous error log message
	mon/MonClient: add assertions for monc lock in MonConnection
	auth: add debugging for client cephx methods
	auth: add debugging for keyring methods
	auth: use explicit default destructor
	msg/async: move v1 member init to header
	msg: use MessageRef to manage pointer lifetime
	msg/DispatchQueue: add debugging for queue discard
	msg/Connection: move destructor to object file
	mds: move messages to be sent
	PendingReleaseNotes: add note for cephx upgrade
	doc: update cephx details for upgrade procedure
	auth/AuthRegistry: refresh config on startup
	common/options: remove auth_supported
	qa: check health warnings in cephx upgrade
	qa/tasks/ceph: allow configuring key settings for initial monmap
	qa/tasks/ceph.key_rotate: provide mechanism to rotate client keys
	qa/tasks/ceph.healthy: indicate expected failing checks
	qa/tasks/ceph: add key pruning task
	msg: constify getter
	auth/cephx: do not special case caps for mons
	tools/monmaptool: enable configuring monmap ciphers
	mon: provide emergency mechanism to rescue allowed_ciphers
	mon: convert auth configs to monmap settings
	doc: add new cephx health warnings
	qa: add upgrade suite for cephx
	qa/tasks/ceph: add task to rotate entity keys
	qa/tasks/ceph: allow cluster to be brought up with particular cephx key type
	qa/tasks/radosbench: add extra_args conf
	qa/tasks/radosbench: add auth_exit_on_failure arg
	qa: add sequential_yield task
	include/encoding: add encoder helpers for sized ints
	mon: add health checks for insecure keys
	mon: cleanup for loop
	mon/HealthMonitor: refactor quorum_checks/leader_checks as PaxosMap
	mon: refactor health check map through PaxosMap
	mon/PaxosMap: add map template for managing Paxos structures
	auth: improve programmability of key dumps
	common/entity_name: dump type name as string
	common/entity_name: remove dead method
	common/entity_name: cleanup entity_name::type
	cephx: add note to address technical debt
	auth: check service key is valid before decryption
	auth: add more debugging for service tickets
	auth/cephx: set error message when decryption fails
	auth/cephx: provide more debugging when sig checks fail
	mon: provide emergency mechanism to use mon keyring
	mon: cycle through keyring or key_server for auth with mons
	mon: use key_server for looking up mon key
	mon: dout chosen addrs after startup
	mon/MonClient: improve error message when failing to auth
	auth,mon: add _exit config when auth fails
	tools/ceph_authtool: allow configuring a preferred cipher
	mon/AuthMonitor: shutdown session connection on auth failure
	msg: add interface to shutdown Connection
	crimson/mon/MonClient: call _wipe_secrets_and_tickets when needed
	crimson/mon/MonClient: refacor Client::handle_monmap
	crimson/mon/MonClient: introduce handle_auth_failure
	crimson/mon/MonClient: add asock TODO comment
	crimson/osd/MonClient: Introduce Client::_wipe_secrets_and_tickets())
	crimson/mon/MonClient: imitate Classic's _check_auth_tickets
	crimson/mon/MonClient: cleanup redundant private
	mon/MonClient: wipe secrets and invalidate tickets on auth epoch change
	mon/AuthMonitor: bump auth epoch when wiping service keys
	mon/MonmapMonitor: wire up interface to bump auth epoch
	mon/MonMap: add auth epoch
	mon/AuthMonitor: add dump-keys and wipe-rotating-service-keys
	mon/AuthMonitor: add key-type switch
	common/cmdparse: add another template cmd_getval_or helper
	mon/Monitor: perfect forward universal ref of lambda
	mon/Monitor: add debugging for monmap handling
	mon: notify_new_monmap via MonmapMonitor::init
	doc/man: document new --key-type option for ceph-authtool
	tools/ceph_authtool: add help message for key-type switch
	common/buffer: accept "-" as stdin
	auth/cephx: make some parameters const
	auth: cleanup error message formatting
	auth,mon: lookup ticket ttl at runtime
	auth: add API to invalidate all tickets
	auth: add API to wipe rotating secrets
	auth/cephx: enforce sorted config keys
	auth/cephx: update get_tracked_keys signature
	auth: fix return type
	common: break print template into separate header
	common: remove dead option
	test: fix compiler error
	auth,*: remove conflicting fwd declarations
	include/common_fwd: Include Crypto classes
	cephx: sign messages using hmac_sha256
	auth: create slice api for calculating hmac_sha256
	test/auth: more aes256krb5 tests
	auth: test slice interface for aes256k
	test/crypto: more aes256krb5 tests
	auth: add usage param to crypto handler
	auth: aes256krb5: add confounder config for unitests
	cephx: add configurable to set allowed ciphers
	auth: remove unused code
	auth: add a configurable to control rotating keys cipher type
	auth/cephx: session key type is set to client key type
	auth/cephx: switch default cipher to AES256KRB5
	auth/cephx: modify client + server challenges hashing
	ceph-authtool: support --key-type param
	auth/crypto: add support for aes256-hmac384-192
	auth: propagate ceph context to encrypt/decrypt
	mon: add missing includes
	mon/PaxosService: forward-declare class Paxos
	mon/PaxosService: forward-declare class Monitor
	mon: add missing includes
	auth/cephx/CephxKeyServer: un-inline methods to reduce header dependencies
	auth/Auth: un-inline methods to reduce header dependencies
	auth/AuthMethodList: include cleanup
	auth/CMakeLists.txt: add cephx/CephxKeyServer.cc to auth_srcs
	auth: add missing include
	auth/cephx: add missing includes
	auth/Auth: add missing includes
	rgw/sts: removing default value of rgw sts key and
	doc/health-checks: update MON_NETSPLIT documentation
	qa/suites/rados: white list + add MON_NETSPLIT tests
	msg/async: ProtocolV2::send_server_ident update ProtocolV2::global_seq
	src/mon/Elector.cc: Improve logging for the elector
	src/mon/ConnectionTracker.cc: && HealthMonitor.cc Improve logging
	src/mon/HealthMonitor: Add mon_netsplit_grace_period to suppress transient MON_NETSPLIT warnings
	src/msg/async: Improve logging and prefixes for global_seq
	qa/suites/rados: increase debug && msgr-failures/none && white list
	qa/tasks/mon_thrash: enhanced logging in thrash
	ProtocolV2.cc: Add more loggings to functions that needs them
	msg/async/ProtocolV2: Speed up connection logic when peer restarts
	test/rgw: Reproducer for Sigv4 issue
	tentacle: rgw: Backport `{uppercase,lowercase}_dash_transform`

Reviewed-by: Yuri Weinstein <[email protected]>
Reviewed-by: Ilya Dryomov <[email protected]>
Reviewed-by: Adam C. Emerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants