Refactor delete snapshot api using taskflow
Refactor the delete_snapshot api/manager code to use Taskflow (https:/
Split delete_snapshot api/manager code into tasks that rollback/recover from failures during DB operations of delete_snapshot and during Quota operations of delete_snapshot.
Delete snapshot using taskflow pseudo code
Cinder-api tasks:
class api_delete_
def execute:
check_volume_status
update db status
def revert:
revert updated DB
class api_rpc_request:
def execute:
rpc cast to delete_snapshot
Cinder-manger tasks:
class volume_
def execute:
driver.
def revert:
update db in case of failure
class volume_
def execute:
update_
def revert:
quota revert
class volume_
def execute:
reserve_quota for delete_snapshot
class volume_
def execute:
commit quota for delete_snapshot
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- Rohan
- Direction:
- Needs approval
- Assignee:
- Shrirang Phadke
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Sean McGinnis
Related branches
Related bugs
Sprints
Whiteboard
(smcginnis): Marking obsolete as this has been sitting out there for a long time. If this is still needed, please submit a new bp.
None