Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

rebuild not deleting boot volume

I have VM with boot volume on ISCSI storage. When we try to rebuild the VM, we can see nova log showing instance getting deleted and then rebuild with blank boot volume but when vm boots up it still has old boot volume attached and vM is not rebuild. There is no error in nova log. VM also has an extended property of deleting volume on termination.

<182>Jun 8 07:31:00 compute2 nova-compute: 2017-06-08 11:31:00.948 5822 INFO nova.compute.manager [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Rebuilding instance <182>Jun 8 07:31:07 compute2 nova-compute: 2017-06-08 11:31:07.300 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Instance shutdown successfully after 6 seconds. <182>Jun 8 07:31:07 compute2 nova-compute: 2017-06-08 11:31:07.311 5822 INFO nova.virt.libvirt.driver [-] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Instance destroyed successfully. <182>Jun 8 07:31:07 compute2 nova-compute: 2017-06-08 11:31:07.344 5822 INFO nova.compute.manager [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Detach volume 432f7e15-3f77-426d-9e84-0d334967c458 from mountpoint /dev/vda <182>Jun 8 07:31:14 compute2 nova-compute: 2017-06-08 11:31:14.408 5822 INFO nova.virt.libvirt.driver [-] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Instance destroyed successfully. <182>Jun 8 07:31:15 compute2 nova-compute: 2017-06-08 11:31:15.687 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Deleting instance files /var/lib/nova/instances/7dc35b30-1ded-4436-ae2c-bda4342054c6_del <182>Jun 8 07:31:15 compute2 nova-compute: 2017-06-08 11:31:15.689 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Deletion of /var/lib/nova/instances/7dc35b30-1ded-4436-ae2c-bda4342054c6_del complete <182>Jun 8 07:31:15 compute2 nova-compute: 2017-06-08 11:31:15.938 5822 INFO nova.virt.block_device [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Booting with blank volume at /dev/vda <182>Jun 8 07:31:20 compute2 nova-compute: 2017-06-08 11:31:20.431 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Creating image <182>Jun 8 07:31:20 compute2 nova-compute: 2017-06-08 11:31:20.432 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Using config drive <182>Jun 8 07:31:20 compute2 nova-compute: 2017-06-08 11:31:20.863 5822 INFO nova.virt.libvirt.driver [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Creating config drive at /var/lib/nova/instances/7dc35b30-1ded-4436-ae2c-bda4342054c6/disk.config <182>Jun 8 07:31:21 compute2 nova-compute: 2017-06-08 11:31:21.329 5822 INFO os_brick.initiator.connector [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] Multipath discovery for iSCSI not enabled. <182>Jun 8 07:31:21 compute2 nova-compute: 2017-06-08 11:31:21.330 5822 INFO os_brick.initiator.connector [req-6f463223-0ef3-40f1-824c-ce01a1c21976 b2a13b6665104be7bbccee1660d5cfce 01d6ef12451b4f528de57454f0cc7312 - - -] Trying to connect to iSCSI portal 192.168.130.100:3260 <182>Jun 8 07:31:22 compute2 nova-compute: 2017-06-08 11:31:22.126 5822 INFO nova.compute.manager [-] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] VM Stopped (Lifecycle Event) <182>Jun 8 07:31:28 compute2 nova-compute: 2017-06-08 11:31:28.441 5822 INFO nova.compute.manager [req-8075d550-7411-4663-b16d-3064e05d3a9a - - - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] VM Started (Lifecycle Event) <182>Jun 8 07:31:28 compute2 nova-compute: 2017-06-08 11:31:28.498 5822 INFO nova.compute.manager [req-8075d550-7411-4663-b16d-3064e05d3a9a - - - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] VM Paused (Lifecycle Event) <182>Jun 8 07:31:28 compute2 nova-compute: 2017-06-08 11:31:28.656 5822 INFO nova.compute.manager [req-8075d550-7411-4663-b16d-3064e05d3a9a - - - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] During sync_power_state the instance has a pending task (rebuild_spawning). Skip. <182>Jun 8 07:31:37 compute2 nova-compute: 2017-06-08 11:31:37.882 5822 INFO nova.compute.manager [req-8075d550-7411-4663-b16d-3064e05d3a9a - - - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] VM Resumed (Lifecycle Event) <182>Jun 8 07:31:37 compute2 nova-compute: 2017-06-08 11:31:37.890 5822 INFO nova.virt.libvirt.driver [-] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] Instance spawned successfully. <182>Jun 8 07:31:38 compute2 nova-compute: 2017-06-08 11:31:38.105 5822 INFO nova.compute.manager [req-8075d550-7411-4663-b16d-3064e05d3a9a - - - - -] [instance: 7dc35b30-1ded-4436-ae2c-bda4342054c6] VM Resumed (Lifecycle Event) <182>Jun 8 07:31:54 compute2 nova-compute: 2017-06-08 11:31:54.452 5822 INFO nova.compute.resource_tracker [req-001c1