can't start nova-compute: Invalid: Invalid xml. '<cpu>' must be 1,but 5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Christian Berendt |
Bug Description
after updating to bzr rev 802 i can't start nova-compute. fails with the following error.
i'm using libvirt-0.8.8 (default configuration) with kvm.
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/bin/
(nova): TRACE: service.serve()
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: x.start()
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: self.manager.
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: return f(*args, **kw)
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: return self.driver.
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: 'cpu_info': self.get_
(nova): TRACE: File "/usr/lib64/
(nova): TRACE: + xml.serialize())
(nova): TRACE: Invalid: Invalid xml. '<cpu>' must be 1,but 5
(nova): TRACE: <?xml version="1.0"?>
(nova): TRACE: <capabilities>
(nova): TRACE:
(nova): TRACE: <host>
(nova): TRACE: <uuid>00000000-
(nova): TRACE: <cpu>
(nova): TRACE: <arch>x86_64</arch>
(nova): TRACE: <model>
(nova): TRACE: <vendor>
(nova): TRACE: <topology sockets="1" cores="4" threads="1"/>
(nova): TRACE: <feature name="lahf_lm"/>
(nova): TRACE: <feature name="xtpr"/>
(nova): TRACE: <feature name="cx16"/>
(nova): TRACE: <feature name="tm2"/>
(nova): TRACE: <feature name="est"/>
(nova): TRACE: <feature name="vmx"/>
(nova): TRACE: <feature name="ds_cpl"/>
(nova): TRACE: <feature name="pbe"/>
(nova): TRACE: <feature name="tm"/>
(nova): TRACE: <feature name="ht"/>
(nova): TRACE: <feature name="ss"/>
(nova): TRACE: <feature name="acpi"/>
(nova): TRACE: <feature name="ds"/>
(nova): TRACE: </cpu>
(nova): TRACE: <migration_
(nova): TRACE: <live/>
(nova): TRACE: <uri_transports>
(nova): TRACE: <uri_transport>
(nova): TRACE: </uri_transports>
(nova): TRACE: </migration_
(nova): TRACE: <topology>
(nova): TRACE: <cells num="1">
(nova): TRACE: <cell id="0">
(nova): TRACE: <cpus num="4">
(nova): TRACE: <cpu id="0"/>
(nova): TRACE: <cpu id="1"/>
(nova): TRACE: <cpu id="2"/>
(nova): TRACE: <cpu id="3"/>
(nova): TRACE: </cpus>
(nova): TRACE: </cell>
(nova): TRACE: </cells>
(nova): TRACE: </topology>
(nova): TRACE: </host>
(nova): TRACE:
(nova): TRACE: <guest>
(nova): TRACE: <os_type>
(nova): TRACE: <arch name="i686">
(nova): TRACE: <wordsize>
(nova): TRACE: <emulator>
(nova): TRACE: <machine>
(nova): TRACE: <machine canonical=
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <domain type="qemu">
(nova): TRACE: </domain>
(nova): TRACE: <domain type="kvm">
(nova): TRACE: <emulator>
(nova): TRACE: </domain>
(nova): TRACE: </arch>
(nova): TRACE: <features>
(nova): TRACE: <cpuselection/>
(nova): TRACE: <pae/>
(nova): TRACE: <nonpae/>
(nova): TRACE: <acpi default="on" toggle="yes"/>
(nova): TRACE: <apic default="on" toggle="no"/>
(nova): TRACE: </features>
(nova): TRACE: </guest>
(nova): TRACE:
(nova): TRACE: <guest>
(nova): TRACE: <os_type>
(nova): TRACE: <arch name="x86_64">
(nova): TRACE: <wordsize>
(nova): TRACE: <emulator>
(nova): TRACE: <machine>
(nova): TRACE: <machine canonical=
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <machine>
(nova): TRACE: <domain type="qemu">
(nova): TRACE: </domain>
(nova): TRACE: <domain type="kvm">
(nova): TRACE: <emulator>
(nova): TRACE: </domain>
(nova): TRACE: </arch>
(nova): TRACE: <features>
(nova): TRACE: <cpuselection/>
(nova): TRACE: <acpi default="on" toggle="yes"/>
(nova): TRACE: <apic default="on" toggle="no"/>
(nova): TRACE: </features>
(nova): TRACE: </guest>
(nova): TRACE:
(nova): TRACE: </capabilities>
(nova): TRACE:
(nova): TRACE:
Related branches
- Rick Harris (community): Approve
- Jay Pipes (community): Approve
- Devin Carlen (community): Approve
- Kei Masumoto (community): Approve
-
Diff: 37 lines (+7/-6)1 file modifiednova/virt/libvirt_conn.py (+7/-6)
Changed in nova: | |
status: | New → Incomplete |
Changed in nova: | |
assignee: | nobody → Christian Berendt (berendt) |
importance: | Undecided → High |
status: | Incomplete → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Looks like this is a case of bad XML parsing. IIRC, there was a note from Kei that elements like <element /> were not parsed correctly and that they needed to be in the long format <element> blah</element> . Looking at the output, it seems cpu is the only element that uses the short format of <cpu /> instead of <cpu></cpu>? Kei, what do you think?