[libvirt] disk.config.rescue is not used when rescuing an instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Lee Yarwood | ||
Newton |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
I931421ea688641
However neither the original or this recreated config disk are used by the instance during the resulting rescue.
Steps to reproduce
==================
$ nova boot --image cirros-
[..]
$ nova rescue test-config-rescue
[..]
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 5ef76bd4-
+------
$ ll ../data/
total 28556
-rw-------. 1 qemu qemu 16939 Jun 30 04:39 console.log
-rw-r--r--. 1 qemu qemu 10682368 Jun 30 04:39 disk
-rw-rw-r--. 1 qemu qemu 432128 Jun 30 04:38 disk.config
-rw-rw-r--. 1 stack libvirtd 432128 Jun 30 04:39 disk.config.rescue
-rw-r--r--. 1 stack libvirtd 534 Jun 30 04:39 disk.info
-rw-r--r--. 1 qemu qemu 197120 Jun 30 04:39 disk.rescue
-rw-rw-r--. 1 qemu qemu 4979632 Jun 30 04:38 kernel
-rw-rw-r--. 1 qemu qemu 4979632 Jun 30 04:39 kernel.rescue
-rw-rw-r--. 1 stack libvirtd 3146 Jun 30 04:39 libvirt.xml
-rw-rw-r--. 1 qemu qemu 3740163 Jun 30 04:38 ramdisk
-rw-rw-r--. 1 qemu qemu 3740163 Jun 30 04:39 ramdisk.rescue
-rw-rw-r--. 1 stack libvirtd 4569 Jun 30 04:39 unrescue.xml
$ grep config ../data/
<
$ sudo virsh domblklist 5ef76bd4-
Target Source
-------
vda /opt/stack/
vdb /opt/stack/
$ nova unrescue test-config-rescue
$ nova list
+------
| ID | Name | Status | Task State | Power State | Networks |
+------
| 5ef76bd4-
+------
$ ll ../data/
total 19604
-rw-------. 1 qemu qemu 20403 Jun 30 04:48 console.log
-rw-r--r--. 1 qemu qemu 10878976 Jun 30 04:47 disk
-rw-rw-r--. 1 qemu qemu 432128 Jun 30 04:38 disk.config
-rw-r--r--. 1 stack libvirtd 534 Jun 30 04:39 disk.info
-rw-rw-r--. 1 qemu qemu 4979632 Jun 30 04:38 kernel
-rw-rw-r--. 1 stack libvirtd 4569 Jun 30 04:47 libvirt.xml
-rw-rw-r--. 1 qemu qemu 3740163 Jun 30 04:38 ramdisk
$ grep config ../data/
<
<source file='/
$ sudo virsh domblklist 5ef76bd4-
Target Source
-------
vda /opt/stack/
hdd /opt/stack/
Expected result
===============
disk.config.rescue attached to the rescued instance.
Actual result
=============
No config disks are attached to the rescued instance. Only the rescue disk and original root disk are attached.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
$ pwd
/opt/stack/nova
$ git rev-parse HEAD
23153952a979
2. Which hypervisor did you use?
libvirt + kvm
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
N/A
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
Logs & Configs
==============
Changed in nova: | |
importance: | Undecided → High |
tags: | added: libvirt newton-rc-potential |
Changed in nova: | |
importance: | High → Medium |
Fix proposed to branch: master /review. openstack. org/335884
Review: https:/