]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: call new _ceph_exit for killpoints 67632/head
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 3 Mar 2026 16:37:54 +0000 (11:37 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 5 Mar 2026 14:10:32 +0000 (09:10 -0500)
Fixes: https://tracker.ceph.com/issues/74605
Fixes: 78983ad0d0cce422da32dc4876ac186f6d32c3f5
Fixes: ceph/ceph.git#66244
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/pybind/mgr/mgr_module.py

index aca229dc1a389f676198f1cf9c20f6fc46a561b8..37d92678e83ba61fd001584426afda317a249afe 100644 (file)
@@ -36,7 +36,6 @@ import threading
 from collections import defaultdict
 from contextlib import contextmanager
 from enum import IntEnum, Enum
-import os
 import rados
 import re
 import socket
@@ -1272,16 +1271,16 @@ class MgrModule(ceph_module.BaseMgrModule, MgrModuleLoggingMixin):
             db.execute('BEGIN;')
             self.create_skeleton_schema(db)
             if kv == 1:
-                os._exit(120)
+                return self._ceph_exit(120, hard=True)
             cur = db.execute(SQL)
             row = cur.fetchone()
             self.maybe_upgrade(db, int(row['value']))
             assert cur.fetchone() is None
             cur.close()
             if kv == 2:
-                os._exit(120)
+                return self._ceph_exit(120, hard=True)
         if kv == 3:
-            os._exit(120)
+            return self._ceph_exit(120, hard=True)
 
     def configure_db(self, db: sqlite3.Connection) -> None:
         db.execute('PRAGMA FOREIGN_KEYS = 1')