virsh only listing one volume, even though there was an additional volume attached after instantiation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Austin Sun |
Bug Description
Brief Description
-----------------
only one volume listed in virsh even though 2 attached
Severity
--------
standard
Steps to Reproduce
------------------
1. Create a flavor with eg. 1 vcpu, 1024 RAM, 2GB Root Disk, hw:mem_page_size 2048
2. Create a bootable volume
eg.
openstack --os-username 'tenant1' --os-password '<insertpwd>' --os-project-name tenant1 --os-auth-url http://
3. Launch the instance from volume
Volumes Attached appears to list vol-tenant1-
4. Create an additional volume and attach it so volumes attached appears to be 2
os-extended-
$ nova show 08ea15f6-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2019-06-
| description | - |
| flavor:disk | 2 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {"hw:mem_
| flavor:
| flavor:ram | 1024 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | 9a30d3bab229e5b
| host_status | UP |
| id | 08ea15f6-
| image | Attempt to boot from volume - no image supplied |
| key_name | - |
| locked | False |
| metadata | {} |
| name | ttttttt |
| os-extended-
| progress | 0 |
| security_groups | default |
| server_groups | [] |
| status | ACTIVE |
| tags | [] |
| tenant1-mgmt-net network | 192.168.85.52 |
| tenant1-net1 network | 172.16.1.131 |
| tenant_id | db4395f7baaa4de
| trusted_
| updated | 2019-06-
| user_id | af0923a7f8a641d
ssh to the host that the instance resides and run virsh domblklist to see how many volumes appear to be attached.
compute-1:~$ sudo virsh dumpxml instance-0000034e
<domain type='kvm' id='137'>
<name>
<uuid>
<metadata>
<nova:instance xmlns:nova="http://
<nova:package version="19.0.1"/>
<
<
<nova:flavor name="flv_
<
<nova:owner>
<nova:user uuid="af0923a7f
</nova:owner>
</nova:
</metadata>
<memory unit='KiB'
<currentMemory unit='KiB'
<memoryBacking>
<hugepages>
<page size='2048' unit='KiB' nodeset='0'/>
</hugepages>
</memoryBacking>
<vcpu placement=
<cputune>
<shares>
<vcpupin vcpu='0' cpuset=
<emulatorpin cpuset=
</cputune>
<numatune>
<memory mode='strict' nodeset='0'/>
<memnode cellid='0' mode='strict' nodeset='0'/>
</numatune>
<resource>
<partition>
</resource>
<sysinfo type='smbios'>
<system>
<entry name='manufactu
<entry name='product'
<entry name='version'
<entry name='serial'
<entry name='uuid'
<entry name='family'
</system>
</sysinfo>
<os>
<type arch='x86_64' machine=
<boot dev='hd'/>
<smbios mode='sysinfo'/>
</os>
<features>
<acpi/>
<apic/>
</features>
<cpu>
<topology sockets='1' cores='1' threads='1'/>
<numa>
<cell id='0' cpus='0' memory='1048576' unit='KiB' memAccess=
</numa>
</cpu>
<clock offset='utc'>
<timer name='pit' tickpolicy=
<timer name='rtc' tickpolicy=
<timer name='hpet' present='no'/>
</clock>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='writeback' discard='unmap'/>
<auth username='cinder'>
<secret type='ceph' uuid='457eb676-
</auth>
<source protocol='rbd' name='cinder-
<host name='192.
<host name='192.
<host name='192.
</source>
<target dev='vda' bus='virtio'/>
<
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<controller type='usb' index='0' model='piix3-uhci'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<interface type='vhostuser'>
<mac address=
<source type='unix' path='/
<target dev='vhu87c44b0
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='vhostuser'>
<mac address=
<source type='unix' path='/
<target dev='vhu9bb53f2
<model type='virtio'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/0'/>
<log file='/
<target type='isa-serial' port='0'>
<model name='isa-serial'/>
</target>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/0'>
<source path='/dev/pts/0'/>
<log file='/
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='tablet' bus='usb'>
<alias name='input0'/>
<address type='usb' bus='0' port='1'/>
</input>
<input type='mouse' bus='ps2'>
<alias name='input1'/>
</input>
<input type='keyboard' bus='ps2'>
<alias name='input2'/>
</input>
<graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='cirrus' vram='16384' heads='1' primary='yes'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='dac' relabel='yes'>
<label>
<imagelabel
</seclabel>
</domain>
compute-1:~$ sudo virsh domblklist instance-0000034e
Target Source
-------
vda cinder-
Expected Behaviour
------------------
Expect virsh domblkist instance-0000034e to report more than one volume attached
Actual Behaviour
----------------
Virsh unexpectedly only reports one volume attached
Reproducibility
---------------
100%
System Configuration
-------
standard eg. 2+3 system
Branch/Pull Time/Commit
-------
BUILD_ID=
Timestamp/Logs
--------------
summary: |
- virsh only listing one volume whereas there was an additional volume - attached after instantiation + virsh only listing one volume, even though there was an additional + volume attached after instantiation |
tags: | added: stx.regression stx.retestneeded |
Changed in starlingx: | |
assignee: | yong hu (yhu6) → Austin Sun (sunausti) |
Regression failure due to this LP vms_with_ inst_backing[ local_image] vms_with_ inst_backing[ remote]
FAIL test_evacuate_
FAIL test_evacuate_