baselineCPU parser break unit tests in nova
Bug #1266534 reported by
Bhuvan Arumugam
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vladik Romanovsky |
Bug Description
The fix for https:/
Changed in nova: | |
milestone: | none → icehouse-2 |
tags: | added: havana-backport-potential |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-2 → 2014.1 |
To post a comment you must log in.
This problem is happening because features = self._conn. baselineCPU (on line 2750 in the libvirt driver) - (or baseline-cpu in libvirt) - doesn't return architecture, such as :
<cpu> arch>x86_ 64</arch>
<
...
..
In general, the get_host_ capabilities methods sets the self._caps variable and fills the self._caps.host.cpu as well, according to getCapabilities from libvirt. baselineCPU returns anything, it will override self._caps. host.cpu, however, "ARCH" will be missing.
If self._conn.
This is causing the driver not to setup the guest.sysinfo on line 3040:
if CONF.libvirt. virt_type in ("kvm", "qemu"): host_capabiliti es()
guest. sysinfo = self.get_ guest_config_ sysinfo( instance)
guest. os_smbios = vconfig. LibvirtConfigGu estSMBIOS( )
caps = self.get_
if caps.host.cpu.arch in ("i686", "x86_64"):
and eventually all the tests that are using _check_ xml_and_ uri() in test_libvirt.py will fail on line 2877, when it will try to check the sysinfo.
Vladik