Temporary snapshot may remain during creating volume by source_volid
Bug #1312718 reported by
lirenke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
John Griffith | ||
Icehouse |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When creating LVM volume by source volume, cinder create source volume's snapshot first, then destination volume and active it, at last copy the volume.
Step:
1. self.create_
2.self.
3.self.
4.volutils.
But If we create or active target volume fail since insufficient free space or other system error for example, the source volume's snapshot wouldn't be remove.
Temporary snapshot would remain, and what is worse we can't delete the source volume successfully.
Changed in cinder: | |
assignee: | nobody → lirenke (lvhancy) |
Changed in cinder: | |
milestone: | juno-1 → juno-2 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-2 → 2014.2 |
To post a comment you must log in.
The rest of those calls should be in the try block so that finally block happens.
https:/ /github. com/openstack/ cinder/ blob/master/ cinder/ volume/ drivers/ lvm.py# L294