I've reproduced a version of this on master with a fedora 34 instance, while the rescue disk appears attached from outside the domain within the guest OS it isn't listed and this leads to the original disk being booted from:
$ sudo virsh domblklist e74f8339-6105-4d81-af75-2d3eb538dd97 Target Source ------------------------------------------------------------------------------------------- vda /opt/stack/data/nova/instances/e74f8339-6105-4d81-af75-2d3eb538dd97/disk sda /opt/stack/data/nova/instances/e74f8339-6105-4d81-af75-2d3eb538dd97/disk.rescue
$ sudo virsh dumpxml e74f8339-6105-4d81-af75-2d3eb538dd97 [..] <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none'/> <source file='/opt/stack/data/nova/instances/e74f8339-6105-4d81-af75-2d3eb538dd97/disk.rescue' index='1'/> <backingStore type='file' index='3'> <format type='raw'/> <source file='/opt/stack/data/nova/instances/_base/8d5164eb9ad02055132ee054d7154d245e2c3626'/> <backingStore/> </backingStore> <target dev='sda' bus='scsi'/> <boot order='1'/> <alias name='scsi0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk>
[..] <controller type='scsi' index='0' model='lsilogic'> <alias name='scsi0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller>
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 252:0 0 20G 0 disk └─vda1 252:1 0 20G 0 part /
I wonder if this is a libvirt bug with the use of <boot order='1'/>?
I've reproduced a version of this on master with a fedora 34 instance, while the rescue disk appears attached from outside the domain within the guest OS it isn't listed and this leads to the original disk being booted from:
$ sudo virsh domblklist e74f8339- 6105-4d81- af75-2d3eb538dd 97 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- data/nova/ instances/ e74f8339- 6105-4d81- af75-2d3eb538dd 97/disk data/nova/ instances/ e74f8339- 6105-4d81- af75-2d3eb538dd 97/disk. rescue
Target Source
-------
vda /opt/stack/
sda /opt/stack/
$ sudo virsh dumpxml e74f8339- 6105-4d81- af75-2d3eb538dd 97 opt/stack/ data/nova/ instances/ e74f8339- 6105-4d81- af75-2d3eb538dd 97/disk. rescue' index='1'/> opt/stack/ data/nova/ instances/ _base/8d5164eb9 ad02055132ee054 d7154d245e2c362 6'/>
<backingStore/ > /backingStore>
[..]
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/
<backingStore type='file' index='3'>
<format type='raw'/>
<source file='/
<
<target dev='sda' bus='scsi'/>
<boot order='1'/>
<alias name='scsi0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
[..]
<controller type='scsi' index='0' model='lsilogic'>
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</controller>
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 252:0 0 20G 0 disk
└─vda1 252:1 0 20G 0 part /
I wonder if this is a libvirt bug with the use of <boot order='1'/>?