cinder-volume: prevent LVM backend overallocation when creating snapshots
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
When cinder-volume LVM backend is configured as thin-provisioning, when requesting a snapshot there is currently no check for free space. This allows us to create a large volume, dirty it, make a snapshot, rewrite the original volume, and run out of space in the thin pool.
To reproduce on devstack:
* On controller node, modify /etc/cinder/
* On my devstack, the default thin-pool stack-volumes-
* Create 6g cinder volume
* Spawn VM that has volume created above attached
* Log into VM and dirty all /dev/vdb with dd
* On Controller node, create a snapshot of the volume
* Log into VM and dirty all /dev/vdb with dd again
* The thin pool stack-volumes-
Changed in cinder: | |
assignee: | nobody → vu tran (vu-tran) |
Fix proposed to branch: master /review. openstack. org/348491
Review: https:/