pybind/mgr: disable sqlite3/python autocommit#56997
Conversation
238ef88 to
0694828
Compare
@epuertat rather than adding this module option which is for development, I'm wondering if it makes sense to have the dashboard filter out module options which are level "dev"? I've added a commit to allow setting the |
|
This PR is under test in https://tracker.ceph.com/issues/65596. |
epuertat
left a comment
There was a problem hiding this comment.
@batrick the failure, I guess, is related to this schema validation. You need to udpate that to reflect the new Option interface.
0782bca to
1f44705
Compare
|
This PR is under test in https://tracker.ceph.com/issues/65661. |
| static level_t str_to_level(std::string_view s) { | ||
| if (s == "basic") { | ||
| return LEVEL_BASIC; | ||
| } else if (s == "advanced") { | ||
| return LEVEL_ADVANCED; | ||
| } else if (s == "dev") { | ||
| return LEVEL_DEV; | ||
| } else { | ||
| return LEVEL_UNKNOWN; |
There was a problem hiding this comment.
This is no longer needed, right?
There was a problem hiding this comment.
No, I left it in anyway.
This avoids an assertion in ::drop_active. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
In the same epoch, to simplify testing. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Some are for development purposes and should be filtered out by the dashboard. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
To catch unintentional autocommit by sqlite3. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Refactor common tasks and allow loading mgrmodules before unittests start. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
These should have been part of the commit adding the tests. Fixes: 9ebcbdb Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Otherwise you cannot use LocalDaemon.check_status. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This mirrors teuthology and makes it possible to check the exit status of a daemon. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
* refs/pull/56997/head: pybind/mgr: disable sqlite3/python autocommit qa/tasks/mgr: add tests for sqlite autocommit qa/tasks/vstart_runner: run daemons in foreground qa/tasks/vstart_runner: add missing poll method qa/suites/rados/mgr: add cli/devicehealth tasks qa: reorganize mgr unit tests qa: use position-independent link qa: add missing terminating newline pybind/mgr: add killpoint for sqlite3 database setup mgr: allow specifying module option level mon/MgrMonitor: promote standby when unsetting down flag mon/MgrMonitor: only drop active if exists
That autocommit is properly turned off and that commits via context managers work as expected. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
SQLite3 and python's binding were both committing transactions at unintended points. Turn it off and stop using executescript. Fixes: https://tracker.ceph.com/issues/65494 Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
|
This PR is under test in https://tracker.ceph.com/issues/65694. |
|
jenkins test make check |
|
jenkins test api |
|
jenkins test dashboard |
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
Since this PR merged into ceph-ceph-17.2.8 but I face error as reported with #57199 (comment), but NOT affecting ceph-ceph-18.2.4 NOR ceph-ceph-19.2.0 (which not yet backport PR merged), doesn't that means something goes wrong for this PR? |
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e