mgr/snap_schedule: handle volume delete#55145
Conversation
bfe8f64 to
60532ab
Compare
|
@mchangir Please add documentation to recover from the module failing since the race cannot be fixed in totality. |
60532ab to
c4ff962
Compare
added note to docs |
|
jenkins test make check |
c4ff962 to
9e9025a
Compare
|
I'll plan to test this change out this week. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
reopening PR |
9e9025a to
e2cd55e
Compare
|
rebased |
Remove references to timers and db connection that refer to paths in the deleted volume. This is a best case effort and not 100% safe. There can be race conditions where the db connection is closed while the module is executing a query on the db while the volume itself is deleted. Hopefully there won't be many tracebacks seen. Fixes: https://tracker.ceph.com/issues/63999 Signed-off-by: Milind Changire <[email protected]>
…r module Signed-off-by: Milind Changire <[email protected]>
Signed-off-by: Milind Changire <[email protected]>
Signed-off-by: Milind Changire <[email protected]>
e2cd55e to
dd0c816
Compare
|
jenkins test make check |
|
jenkins test make check |
|
This PR is under test in https://tracker.ceph.com/issues/68968. |
* refs/pull/55145/head: mon: emit warning during fs rm mgr/volumes: warn about active snap-schedules when volume is deleted doc/cephfs: note about volume deletion affecting snap-schedule Manager module mgr/snap_schedule: handle volume delete Reviewed-by: Venky Shankar <[email protected]>
* refs/pull/55145/head: mon: emit warning during fs rm mgr/volumes: warn about active snap-schedules when volume is deleted doc/cephfs: note about volume deletion affecting snap-schedule Manager module mgr/snap_schedule: handle volume delete Reviewed-by: Venky Shankar <[email protected]>
Remove references to timers and db connection that refer to paths in the deleted volume.
This is a best case effort and not 100% safe. There can be race conditions where the db connection is closed while the module is executing a query on the db while the volume itself is deleted.
Hopefully there won't be many tracebacks seen.
Fixes: https://tracker.ceph.com/issues/63999
Signed-off-by: Milind Changire [email protected]
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