Skip to content

umbrella: mgr/smb: gracefully handle transient sqlitedb errors - #70116

Merged
batrick merged 1 commit into
ceph:umbrellafrom
avanthakkar:wip-78139-umbrella
Aug 3, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
avanthakkar:wip-78139-umbrella

Conversation

@avanthakkar

@avanthakkar avanthakkar commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/78139


backport of #69702
parent tracker: https://tracker.ceph.com/issues/78125

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

Translate sqlite3.DatabaseError into a generic StoreUnavailable in
sqlite_store.py and handle it in cli.py and module.py instead of
letting it surface as an unhandled exception

Fixes: https://tracker.ceph.com/issues/78125
Signed-off-by: Avan Thakkar <[email protected]>
(cherry picked from commit 4ae80fb)
@avanthakkar
avanthakkar requested review from a team as code owners July 10, 2026 13:44
@avanthakkar avanthakkar added this to the umbrella milestone Jul 10, 2026
@github-actions github-actions Bot added pybind releng-audit-pass Release engineering: passed backport verification audit. labels Jul 10, 2026
@avanthakkar

Copy link
Copy Markdown
Contributor Author

@phlogistonjohn Ping for review

@rapanigrahi rapanigrahi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok for backport

@phlogistonjohn

Copy link
Copy Markdown
Contributor

why hasn't the bot done its thing on this PR?

@phlogistonjohn

Copy link
Copy Markdown
Contributor

nvm, it has I just missed the big giant comment it puts on so many prs.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath5-testing-20260729.075206-umbrella.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@batrick batrick removed the releng-audit-pass Release engineering: passed backport verification audit. label Aug 3, 2026
@batrick batrick modified the milestones: umbrella, v21.1.1 Aug 3, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Aug 3, 2026
@batrick
batrick merged commit 604b7be into ceph:umbrella Aug 3, 2026
14 of 15 checks passed
yuriw added a commit that referenced this pull request Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged
PRs with a release milestone: four labels each had a real, actual PR
land with that label where none of the label's existing path patterns
matched any changed file.

- common: PRs touching src/python-common/** (e.g. #70416, #69734) got
  cephadm and pybind auto-applied, since both of those already list
  src/python-common/**, but common's own pattern list only covers
  src/common/**, src/global/**, src/log/** -- missing the one prefix
  its siblings already have.
- rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's
  immutable object cache daemon, not covered by any of rbd's existing
  patterns despite covering nearly every other src/tools/rbd* path.
- rgw: PR #70401 (Kafka bucket-notification test files under
  qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only
  cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*.
- cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116)
  only get pybind -- too generic to route correctly. SMB's actual
  teuthology tests live under qa/suites/orch/cephadm/smb/**, so its
  source module belongs under cephadm's own pattern list alongside
  its sibling src/pybind/mgr/cephadm/**, which it was missing.

Signed-off-by: Yuri Weinstein <[email protected]>
yuriw added a commit that referenced this pull request Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged
PRs with a release milestone: five labels each had a real, actual PR
land with that label where none of the label's existing path patterns
matched any changed file.

- common: PRs touching src/python-common/** (e.g. #70416, #69734) got
  cephadm and pybind auto-applied, since both of those already list
  src/python-common/**, but common's own pattern list only covers
  src/common/**, src/global/**, src/log/** -- missing the one prefix
  its siblings already have.
- rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's
  immutable object cache daemon, not covered by any of rbd's existing
  patterns despite covering nearly every other src/tools/rbd* path.
- rgw: PR #70401 (Kafka bucket-notification test files under
  qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only
  cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*.
- cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116)
  only get pybind -- too generic to route correctly. SMB's actual
  teuthology tests live under qa/suites/orch/cephadm/smb/**, so its
  source module belongs under cephadm's own pattern list alongside
  its sibling src/pybind/mgr/cephadm/**, which it was missing.
- rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr
  orchestration module) and only gets pybind, same generic-catch-all
  problem as the cephadm/smb case above. rbd already covers its own
  mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers
  src/pybind/mgr/nfs/**; rgw was the one domain label missing its own
  mgr module.

Signed-off-by: Yuri Weinstein <[email protected]>
yuriw added a commit that referenced this pull request Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged
PRs with a release milestone, then a systematic audit of every
src/pybind/mgr/<submodule>/ directory: seven labels each were missing
coverage for a real, existing path.

- common: PRs touching src/python-common/** (e.g. #70416, #69734) got
  cephadm and pybind auto-applied, since both of those already list
  src/python-common/**, but common's own pattern list only covers
  src/common/**, src/global/**, src/log/** -- missing the one prefix
  its siblings already have.
- rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's
  immutable object cache daemon, not covered by any of rbd's existing
  patterns despite covering nearly every other src/tools/rbd* path.
- rgw: PR #70401 (Kafka bucket-notification test files under
  qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only
  cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*.
- cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116)
  only get pybind -- too generic to route correctly. SMB's actual
  teuthology tests live under qa/suites/orch/cephadm/smb/**, so its
  source module belongs under cephadm's own pattern list alongside
  its sibling src/pybind/mgr/cephadm/**, which it was missing.
- rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr
  orchestration module) and only gets pybind, same generic-catch-all
  problem as the cephadm/smb case above. rbd already covers its own
  mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers
  src/pybind/mgr/nfs/**; rgw was the one domain label missing its own
  mgr module.
- nvmeof: src/pybind/mgr/nvmeof/** (the actual NVMe-oF orchestration
  module) was uncovered -- nvmeof's existing patterns only reached
  cephadm's nvmeof service/template files, not the mgr module itself.
- cephfs: src/pybind/mgr/mirroring/** (cephfs-mirror snapshot
  mirroring, confirmed cephfs-specific by content -- imports
  FSSnapshotMirror, zero rbd references, only an fs/ subdirectory) was
  uncovered, alongside cephfs's other already-covered mgr submodules
  (mds_autoscaler, status, volumes).

Found via a systematic audit: every src/pybind/mgr/<name>/ submodule
directory checked against current label coverage. The remaining
uncovered submodules (alerts, balancer, crash, devicehealth, etc.)
have no existing label that fits them and are left alone -- adding
those would mean inventing new labels, a separate, bigger decision
from filling a gap in a label that already exists.

Signed-off-by: Yuri Weinstein <[email protected]>
yuriw added a commit that referenced this pull request Aug 7, 2026
Found while auditing labeler.yml coverage against 100 recent merged
PRs with a release milestone, then a systematic audit of every
src/pybind/mgr/<submodule>/ directory: eight labels each were missing
coverage for a real, existing path.

- common: PRs touching src/python-common/** (e.g. #70416, #69734) got
  cephadm and pybind auto-applied, since both of those already list
  src/python-common/**, but common's own pattern list only covers
  src/common/**, src/global/**, src/log/** -- missing the one prefix
  its siblings already have.
- rbd: PR #70589 touches src/tools/immutable_object_cache/**, RBD's
  immutable object cache daemon, not covered by any of rbd's existing
  patterns despite covering nearly every other src/tools/rbd* path.
- rgw: PR #70401 (Kafka bucket-notification test files under
  qa/tasks/kafka*.py) carries only rgw+tests, but rgw's patterns only
  cover qa/tasks/rgw* and qa/tasks/s3*, not qa/tasks/kafka*.
- cephadm: PRs touching src/pybind/mgr/smb/** (e.g. #66595, #70116)
  only get pybind -- too generic to route correctly. SMB's actual
  teuthology tests live under qa/suites/orch/cephadm/smb/**, so its
  source module belongs under cephadm's own pattern list alongside
  its sibling src/pybind/mgr/cephadm/**, which it was missing.
- rgw: PR #65695 touches src/pybind/mgr/rgw/module.py (the RGW mgr
  orchestration module) and only gets pybind, same generic-catch-all
  problem as the cephadm/smb case above. rbd already covers its own
  mgr submodule (src/pybind/mgr/rbd_support/**) and nfs covers
  src/pybind/mgr/nfs/**; rgw was the one domain label missing its own
  mgr module.
- nvmeof: src/pybind/mgr/nvmeof/** (the actual NVMe-oF orchestration
  module) was uncovered -- nvmeof's existing patterns only reached
  cephadm's nvmeof service/template files, not the mgr module itself.
- cephfs: src/pybind/mgr/mirroring/** (cephfs-mirror snapshot
  mirroring, confirmed cephfs-specific by content -- imports
  FSSnapshotMirror, zero rbd references, only an fs/ subdirectory) was
  uncovered, alongside cephfs's other already-covered mgr submodules
  (mds_autoscaler, status, volumes).
- cephfs: PR #70220 touches src/test/client/nonblocking.cc; cephfs
  already covers src/client/** (the library) and other test dirs
  (src/test/fs/**, src/test/libcephfs/**) but missed this client
  library's own unit test directory, src/test/client/**.

Found via a systematic audit: every src/pybind/mgr/<name>/ submodule
directory checked against current label coverage. The remaining
uncovered submodules (alerts, balancer, crash, devicehealth, etc.)
have no existing label that fits them and are left alone -- adding
those would mean inventing new labels, a separate, bigger decision
from filling a gap in a label that already exists.

Signed-off-by: Yuri Weinstein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core needs-qa pybind releng-audit-pass Release engineering: passed backport verification audit. wip-bharath5-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants