Bug #57851
pybind/mgr/snap_schedule: use temp_store for db
% Done:
100%
Source:
Q/A
Tags:
backport_processed
Backport:
quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Description
2022-10-11T17:26:57.296+0000 7f6027539640 -1 cephsqlite: Open: (client.35235) cannot open temporary database
2022-10-11T17:26:57.296+0000 7f6027539640 -1 mgr load Failed to construct class in 'snap_schedule'
2022-10-11T17:26:57.296+0000 7f6027539640 -1 mgr load Traceback (most recent call last):
File "/usr/share/ceph/mgr/snap_schedule/module.py", line 38, in __init__
self.client = SnapSchedClient(self)
File "/usr/share/ceph/mgr/snap_schedule/fs/schedule_client.py", line 158, in __init__
with self.get_schedule_db(fs_name) as conn_mgr:
File "/usr/share/ceph/mgr/snap_schedule/fs/schedule_client.py", line 194, in get_schedule_db
db.executescript(dump)
sqlite3.OperationalError:
It appears some situations require sqlite3 to open a temporary database to execute the old database dump.
Related issues
History
#1 Updated by Patrick Donnelly 11 months ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 48449
#2 Updated by Venky Shankar 8 months ago
- Status changed from Fix Under Review to Pending Backport
#3 Updated by Backport Bot 8 months ago
- Copied to Backport #58261: quincy: pybind/mgr/snap_schedule: use temp_store for db added
#4 Updated by Backport Bot 8 months ago
- Tags set to backport_processed
#5 Updated by Konstantin Shalygin 6 months ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100