Bug 49297 - Traceback in Python format conversion: type=dev.type='volume'
Traceback in Python format conversion: type=dev.type='volume'
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Virtualization - UVMM
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-8-errata
Assigned To: Philipp Hahn
Erik Damrose
https://git.knut.univention.de/univen...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-04-15 16:53 CEST by Philipp Hahn
Modified: 2022-04-13 15:13 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.200
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2019-04-15 16:53:58 CEST
Traceback (most recent call last):
  File "/usr/sbin/univention-virtual-machine-manager-daemon", line 298, in <module>
    node_add(uri)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 1297, in add
    node = Node(uri, cache_dir=self.cache_dir)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 794, in __init__
    domStat = Domain(xml, self)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 319, in __init__
    self.xml2obj(domain)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 551, in xml2obj
    self.xml2obj_disks(devices)
  File "/usr/lib/pymodules/python2.7/univention/uvmm/node.py", line 607, in xml2obj_disks
    raise NodeError('Unknown disk type: %(type)d', type=dev.type)
univention.uvmm.node.NodeError: <exception str() failed>


Patch: s/%d/%s/

Work-around: find /var/cache/univention-virtual-machine-manager-daemon -type f -delete


Caused by new libvirt feature:
<domain type="kvm">
...
  <devices>
    <disk type='volume' device='disk'>
      <source pool='default' volume='ucs.qcow2'/>
Comment 1 Philipp Hahn univentionstaff 2022-04-08 11:50:34 CEST
Package: univention-virtual-machine-manager-daemon
Version: 8.0.1-17A~4.4.0.202204072110
Branch: ucs_4.4-0
Scope: errata4.4-8

[4.4-8] 3c3c50ce85 Bug #49297: univention-virtual-machine-manager-daemon 8.0.1-17A~4.4.0.202204072110
 doc/errata/staging/univention-virtual-machine-manager-daemon.yaml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

[4.4-8] 58925be1d9 doc[UVMM]: Update changelog
 doc/errata/staging/univention-virtual-machine-manager-daemon.yaml         | 11 +++++++++++
 virtualization/univention-virtual-machine-manager-daemon/debian/changelog |  7 +++++++
 2 files changed, 18 insertions(+)

[4.4-8] 41f14030df fix[uvmm]: exception handling code
 virtualization/univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[4.4-8] bd6cba2291 fix[uvmm]: Handle XML conversion failures once
 .../univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py         | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

[4.4-8] ed92e88c80 feat[uvmm]: Add volume support
 .../univention-virtual-machine-manager-daemon/src/univention/uvmm/node.py       | 13 +++++++++----
 .../univention-virtual-machine-manager-daemon/src/univention/uvmm/protocol.py   |  1 +
 2 files changed, 10 insertions(+), 4 deletions(-)

QA: Running on `laiva`; see my VM "phahn-win30" @ "lagan" using vol:"phahn_phahn-win30-0.qcow" in pool:"default"
Comment 2 Erik Damrose univentionstaff 2022-04-11 17:51:12 CEST
OK: Code Review
OK: Test on laiva
OK: 4.4-9 changelog
OK: 4.4-8 yaml
OK: package available in errata4.4-8, will be released wednesday
OK: package available in 4.4-9

Verified