Project

General

Profile

Actions

Bug #79526

closed
NM NM

MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing tests

Bug #79526: MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing tests

Added by Nitzan Mordechai 4 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2651-g453c2837a9
Released In:
Upkeep Timestamp:
2026-08-27T18:46:53+00:00

Description

  1. Description of problem

MGR SMB module crashed with a sqlite3.InternalError while executing RADOS thrashing tests on Ceph version 20.2.1-292. The cluster was filled to 63% capacity. debug_mgr 20 logs has been collected for debugging.

Note the ceph cluster was originally deploy with Ceph 9.0 (ceph version 20.1.0-185.el9cp) with RHEL 9.8 and then upgraded to Ceph 20.2.1-292.

  1. Logs collected and log location

    debug_mgr 20 logs: https://ibm.box.com/s/rxzjfl5kr01soudbagbv1qm2oih6lswv

    Crash timestamp: 2026-06-16T19:51:34.717+0000

  1. Crash snippet from logs
    2026-06-16T19:51:34.717+0000 7fca1dd75640 20 mgr ~Gil Destroying new thread state 0x55f3ecaea6c0
    2026-06-16T19:51:34.717+0000 7fca1dd75640 -1 Remote method threw exception: Traceback (most recent call last):
    File "/usr/share/ceph/mgr/mgr_module.py", line 1359, in db_ready
    return self.db is not None
    File "/usr/share/ceph/mgr/mgr_module.py", line 1371, in db
    self._db = self.open_db()
    File "/usr/share/ceph/mgr/mgr_module.py", line 1352, in open_db
    self.configure_db(db)
    File "/usr/share/ceph/mgr/mgr_module.py", line 1328, in configure_db
    self.load_schema(db)
    File "/usr/share/ceph/mgr/mgr_module.py", line 1308, in load_schema
    self.create_skeleton_schema(db)
    File "/usr/share/ceph/mgr/mgr_module.py", line 1246, in create_skeleton_schema
    db.execute(sql)
    sqlite3.InternalError: unknown operation

2026-06-16T19:51:34.717+0000 7fca1dd75640 0 [prometheus DEBUG root] SMB DB readiness check failed: Remote method threw exception: Traceback (most recent call last):
File "/usr/share/ceph/mgr/mgr_module.py", line 1359, in db_ready
return self.db is not None
File "/usr/share/ceph/mgr/mgr_module.py", line 1371, in db
self._db = self.open_db()
File "/usr/share/ceph/mgr/mgr_module.py", line 1352, in open_db
self.configure_db(db)
File "/usr/share/ceph/mgr/mgr_module.py", line 1328, in configure_db
self.load_schema(db)
File "/usr/share/ceph/mgr/mgr_module.py", line 1308, in load_schema
self.create_skeleton_schema(db)
File "/usr/share/ceph/mgr/mgr_module.py", line 1246, in create_skeleton_schema
db.execute(sql)
sqlite3.InternalError: unknown operation

  1. crash info
    [root@ceph40 ~]# ceph crash info 2026-06-16T19:51:34.717981Z_0aedf421-5b4e-4a46-a64a-9020653029ac {
    "archived": "2026-06-16 22:30:17.554175",
    "backtrace": [
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1359, in db_ready\n return self.db is not None",
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1371, in db\n self._db = self.open_db()",
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1352, in open_db\n self.configure_db(db)",
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1328, in configure_db\n self.load_schema(db)",
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1308, in load_schema\n self.create_skeleton_schema(db)",
    " File \"/usr/share/ceph/mgr/mgr_module.py\", line 1246, in create_skeleton_schema\n db.execute(sql)",
    "sqlite3.InternalError: unknown operation"
    ],
    "ceph_version": "20.2.1-292.el9cp",
    "crash_id": "2026-06-16T19:51:34.717981Z_0aedf421-5b4e-4a46-a64a-9020653029ac",
    "entity_name": "mgr.ceph37.eoahdk",
    "mgr_module": "smb",
    "mgr_module_caller": "ActivePyModule::dispatch_remote db_ready",
    "mgr_python_exception": "InternalError",
    "os_id": "rhel",
    "os_name": "Red Hat Enterprise Linux",
    "os_version": "9.8 (Plow)",
    "os_version_id": "9.8",
    "process_name": "ceph-mgr",
    "stack_sig": "d09fc784f22e5fb88065271463208167e46c4f975d1a474209db35c18d7772f3",
    "timestamp": "2026-06-16T19:51:34.717981Z",
    "utsname_hostname": "ceph37",
    "utsname_machine": "x86_64",
    "utsname_release": "5.14.0-687.15.1.el9_8.x86_64",
    "utsname_sysname": "Linux",
    "utsname_version": "#1 SMP PREEMPT_DYNAMIC Wed Jun 10 07:35:18 EDT 2026"
    }
  1. Version-Release number of selected component

[root@ceph40 ~]# ceph versions

{

"mon": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 3
},
"mgr": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 3
},
"osd": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 120
},
"mds": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 6
},
"rgw": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 4
},
"overall": {
"ceph version 20.2.1-292.el9cp (f5511a2ee9d935dfdd08e483d4c61220afaddbf3) tentacle (stable - RelWithDebInfo) release 9.9.1.0": 136
}

}

  1. Is there any workaround available to the best of your knowledge? No
  1. Can this issue be reproduced? If so, please provide the hit rate

1/1

  1. Steps to Reproduce

    Deploy RHCS 9.0 (ceph version 20.1.0-185.el9cp) cluster on RHEL 9.8

    Fill cluster to approximately 63% capacity

    Upgrade cluster to version 20.2.1-292.el9cp

    Execute RADOS thrashing tests

    Observe MGR SMB module crash

  1. Actual results

MGR SMB module crashes with sqlite3.InternalError

  1. Expected results

MGR SMB module should not crash


Related issues 2 (1 open — 1 closed)

Copied to mgr - Backport #79840: umbrella: MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing testsFix Under ReviewNitzan Mordechai

Actions
Copied to mgr - Backport #79841: tentacle: MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing testsResolvedNitzan Mordechai

Actions

NM Updated by Nitzan Mordechai 4 months ago ยท Edited Actions #1

  • Status changed from New to In Progress

This is not something that smb module error, its sqlite3.InternalError crash on lost RADOS lock.
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.
Also harden db_ready() to catch sqlite3.DatabaseError

NM Updated by Nitzan Mordechai 4 months ago Actions #2

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 71094

UB Updated by Upkeep Bot 3 months ago Actions #3

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 453c2837a924c1b7a77de33d29cc0726796f6470
  • Fixed In set to v21.3.0-2651-g453c2837a9
  • Upkeep Timestamp set to 2026-08-25T10:02:22+00:00

UB Updated by Upkeep Bot 3 months ago Actions #4

  • Copied to Backport #79840: umbrella: MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing tests added

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Copied to Backport #79841: tentacle: MGR SMB module crash with sqlite3.InternalError while running RADOS thrashing tests added

UB Updated by Upkeep Bot 3 months ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2026-08-25T10:02:22+00:00 to 2026-08-27T18:46:53+00:00
Actions

Also available in: PDF Atom