Should raise error when removing the clone point snapshot NOT silent rollback
This is the case with hp san storage but it will be same with other cases.
When we try to delete a volume that has dependent snapshots, the error appears like berow.
Delete for volume b4968af6-
ERROR: Unable to delete any of the specified volumes.
But when we try to delete a snapshot that depended on volumes ( a clone point snapshot ), it's not deleted with no error message. we just can see a log in the cinder-volume.log like below.
Stdout: '\n<gauche version="1.0">\n\n <response description="A GENERAL ERROR OCCURRED THAT IS NOT COVERED BY A MORE SPECIFIC ERROR CODE.: "Volume delete operation failed: \'The snapshot \'snapshot-
I suggest that cinder-volume adds snapshot-volume mapping information in snapshot_medata db if we create volumes using a snapshot, and check the snapshot is a clone point or not when removing the snapshot.
Then cinder-api can raise a meaningful error to the user.
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- dan kim
- Direction:
- Needs approval
- Assignee:
- dan kim
- 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