Creating an instance using images_type=lvm fails on ephemeral volume creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
# grep -B1 images /etc/nova/nova.conf
[libvirt]
images_type = lvm
images_volume_group = vgroot
# nova boot --flavor <flavor id> --image <image_id> --key-name id_rsa_test --security-groups default --nic net-id=<net_id> test
Expected result: instance will boot
Actual result: instance spawn fail.
Resulting /var/log/
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Aug 4 22:06:32 ubuntu nova-compute[
Workaround: # touch /var/lib/
on the hypervisor will address the issue and allow the instance to start.
Additional info:
# nova flavor-show c2-r4-d5
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| disk | 10 |
| extra_specs | {} |
| id | 106ab90e-
| name | c2-r4-d5 |
| os-flavor-
| ram | 4096 |
| rxtx_factor | 1.0 |
| swap | 2048 |
| vcpus | 2 |
+------
Hypervisor host:
# uname -a
Linux enc01-c03 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
# lsb_release -sc
xenial
# dpkg -l | grep nova
ii nova-common 2:13.0.0-0ubuntu5 all OpenStack Compute - common files
ii nova-compute 2:13.0.0-0ubuntu5 all OpenStack Compute - compute node base
ii nova-compute-kvm 2:13.0.0-0ubuntu5 all OpenStack Compute - compute node (KVM)
ii nova-compute-
ii python-nova 2:13.0.0-0ubuntu5 all OpenStack Compute Python libraries
ii python-novaclient 2:3.3.1-2 all client library for OpenStack Compute API - Python 2.7
# vgdisplay
--- Volume group ---
VG Name vgroot
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 82
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 68.32 GiB
PE Size 4.00 MiB
Total PE 17491
Alloc PE / Size 10841 / 42.35 GiB
Free PE / Size 6650 / 25.98 GiB
VG UUID eNzdGr-
This looks to me like a duplicate of https:/ /bugs.launchpad .net/nova/ +bug/1608934 , can you check whether applying https:/ /review. openstack. org/355415 fixes the issue for you?