← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1301602] [NEW] nova unit tests fail test_get_domain_info_with_more_return

 

Public bug reported:

Regression caused by
https://github.com/openstack/nova/commit/23158ad8b340ed5c53fe6ad0fe582f47467c9127

Traceback (most recent call last):
  File "nova/tests/virt/libvirt/test_libvirt.py", line 6447, in test_get_domain_info_with_more_return
    mock_domain = libvirt.virDomain('qemu:///system', None)
  File "nova/tests/virt/libvirt/fakelibvirt.py", line 213, in __init__
    self._def = self._parse_definition(xml)
  File "nova/tests/virt/libvirt/fakelibvirt.py", line 220, in _parse_definition
    tree = etree.fromstring(xml)
  File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
  File "parser.pxi", line 1784, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102444)
ValueError: can only parse strings

I think the domain should be mocked and shouldn't be created directly.

I'm facing this issue with py26 on OEL 6.3, if it matter.

** Affects: nova
     Importance: Undecided
         Status: New


** Tags: libvirt

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1301602

Title:
  nova unit tests fail test_get_domain_info_with_more_return

Status in OpenStack Compute (Nova):
  New

Bug description:
  Regression caused by
  https://github.com/openstack/nova/commit/23158ad8b340ed5c53fe6ad0fe582f47467c9127

  Traceback (most recent call last):
    File "nova/tests/virt/libvirt/test_libvirt.py", line 6447, in test_get_domain_info_with_more_return
      mock_domain = libvirt.virDomain('qemu:///system', None)
    File "nova/tests/virt/libvirt/fakelibvirt.py", line 213, in __init__
      self._def = self._parse_definition(xml)
    File "nova/tests/virt/libvirt/fakelibvirt.py", line 220, in _parse_definition
      tree = etree.fromstring(xml)
    File "lxml.etree.pyx", line 3032, in lxml.etree.fromstring (src/lxml/lxml.etree.c:68106)
    File "parser.pxi", line 1784, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:102444)
  ValueError: can only parse strings

  I think the domain should be mocked and shouldn't be created directly.

  I'm facing this issue with py26 on OEL 6.3, if it matter.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1301602/+subscriptions


Follow ups

References