Skip to content

tentacle: mgr/smb: fix sqlite3.InternalError crash on lost RADOS lock - #71321

Merged
batrick merged 3 commits into
ceph:tentaclefrom
NitzanMordhai:wip-79841-tentacle
Oct 9, 2026
Merged

batrick merged 3 commits into
ceph:tentaclefrom
NitzanMordhai:wip-79841-tentacle

Conversation

@NitzanMordhai

Copy link
Copy Markdown
Contributor

…) failure

FileSize() returned SQLITE_NOTFOUND instead of SQLITE_IOERR_FSTAT on a
failed stat(), which Python's sqlite3 module can't map and surfaces as
an unhandled sqlite3.InternalError, crashing the calling mgr module.
Access() had the same gap, silently reporting an existing file as
missing instead of returning an I/O error.

Add cephsqlite_inject_stat_error_probability plus a regression test
that exercises this deterministically.

Fixes: https://tracker.ceph.com/issues/79526
Signed-off-by: Nitzan Mordechai <[email protected]>
Assisted-by: IBM-Bob:ClaudeSonnet
(cherry picked from commit 3a023c6)
db_ready() only caught MgrDBNotReady, so a raw sqlite3.DatabaseError
from the db property still crashed the calling module. set_kv()/get_kv()
had the same gap; give them the same @MgrModuleRecoverDB retry
protection devicehealth already uses for its own db access.

Fixes: https://tracker.ceph.com/issues/79526
Signed-off-by: Nitzan Mordechai <[email protected]>
Assisted-by: IBM-Bob:ClaudeSonnet
(cherry picked from commit 085e6bb)
…hing

Wire the new fault injector into thrashosds-health.yaml at a low
probability so teuthology suites with osd thrasher also add to
ignorelist the expected log messages it can produce.

Fixes: https://tracker.ceph.com/issues/79526
Signed-off-by: Nitzan Mordechai <[email protected]>
(cherry picked from commit 4960356)
@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: cephsqlite_inject_stat_error_probability (global.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 25, 2026
@yuriw

yuriw commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri9-testing-20260831.150649-tentacle.

@NitzanMordhai

Copy link
Copy Markdown
Contributor Author

@batrick
batrick merged commit a353f5c into ceph:tentacle Oct 9, 2026
12 of 13 checks passed
@batrick batrick modified the milestones: tentacle, v20.2.5 Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants