Nova-compute and sparse lvm volumes does not work as expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Won't Fix
|
Medium
|
Denis Ipatov |
Bug Description
Detailed bug description:
We use lvm backed storage on compute nodes using settings:
images_type=lvm
images_
We want to switch into sparse volumes with 'sparse_
If we use just sparse volumes on existing VG, then we have an error.
Steps to reproduce:
add the following lines in /etc/nova/nova.conf or /etc/nova/
[libvirt]
images_type=lvm
images_
sparse_
restart nova-compute service.
Expected results:
Instances will be created sparse logical volumes in LVM group vm.
Actual result:
nova show <is>
http://
Log files:
http://
Reproducibility:
MOS 7.0
The reason of the error:
Logical volume has been created with 64 MB (as described preallocated size)
https:/
# lvs
/dev/
/dev/
/dev/
/dev/
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
root os -wi-ao--- 442.52g
swap os -wi-ao--- 4.00g
27a4f366-
LVM documentation shows that thing volumes should be created by the command:
It is also possible to create both the thin pool as well as the logical volume inside the thin pool in one command:
lvcreate -T <volume group>/<thin_pool> -V <size> -L <preallocated size> -n <name>
Nova-compute creates sparse disk using the following command:
https:/
Changed in mos: | |
milestone: | none → 7.0-updates |
assignee: | nobody → MOS Nova (mos-nova) |
status: | New → Confirmed |
(This check performed automatically)
Please, make sure that bug description contains the following sections filled in with the appropriate data related to the bug you are describing:
version
For more detailed information on the contents of each of the listed sections see https:/ /wiki.openstack .org/wiki/ Fuel/How_ to_contribute# Here_is_ how_you_ file_a_ bug