]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: call new _ceph_exit for killpoints 68518/head
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 3 Mar 2026 16:37:54 +0000 (11:37 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 21 Apr 2026 15:25:28 +0000 (11:25 -0400)
Fixes: https://tracker.ceph.com/issues/74605
Fixes: 78983ad0d0cce422da32dc4876ac186f6d32c3f5
Fixes: ceph/ceph.git#66244
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit b286ca57ad189dec421b6cd71a6f5b5e0327e401)

src/pybind/mgr/mgr_module.py

index b872c2c8e7a36dbfd3e54d8329e4346fcf6fe784..368639587928a1369a8eb79ac0c842a04c37cdf1 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')