← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1174401] Re: Unittests test_libvirt fails if libvirt actually installed on system

 

old incomplete bug

** Changed in: nova
       Status: Incomplete => Invalid

-- 
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/1174401

Title:
  Unittests test_libvirt fails if libvirt actually installed on system

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I'm trying to run unittests and got lot of fails.
  I have libvirt installed and it seems that fake libvirt drivver don't work in such env.

  
  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 946, in test_xml_and_uri
      expect_kernel=True, expect_ramdisk=True)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_kernel
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 939, in test_xml_and_uri_no_kernel
      expect_kernel=False, expect_ramdisk=False)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 933, in test_xml_and_uri_no_ramdisk
      expect_kernel=True, expect_ramdisk=False)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_no_ramdisk_no_kernel
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 914, in test_xml_and_uri_no_ramdisk_no_kernel
      expect_kernel=False, expect_ramdisk=False)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 953, in test_xml_and_uri_rescue
      expect_ramdisk=True, rescue=instance_data)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 964, in test_xml_and_uri_rescue_no_kernel
      expect_ramdisk=True, rescue=instance_data)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_kernel_no_ramdisk
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 958, in test_xml_and_uri_rescue_no_kernel_no_ramdisk
      expect_ramdisk=False, rescue=instance_data)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 14

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  FAIL: nova.tests.test_libvirt.LibvirtConnTestCase.test_xml_and_uri_rescue_no_ramdisk
  ----------------------------------------------------------------------
  _StringException: pythonlogging:'nova': {{{
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  Loading network driver 'nova.network.linux_net'
  URI qemu:///system does not support events
  }}}

  Traceback (most recent call last):
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 970, in test_xml_and_uri_rescue_no_ramdisk
      expect_ramdisk=False, rescue=instance_data)
    File "/root/openstack/nova/app/nova/tests/test_libvirt.py", line 2011, in _check_xml_and_uri
      (check(tree), expected_result, i))
  MismatchError: !=:
  reference = '00020003-0004-0005-0006-000700080009'
  actual    = 'cef19ce0-0ca2-11df-855d-b19fbce37686'
  : 00020003-0004-0005-0006-000700080009 != cef19ce0-0ca2-11df-855d-b19fbce37686 failed check 12

  -------------------- >> begin captured logging << --------------------
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.network.driver: INFO: Loading network driver 'nova.network.linux_net'
  nova.virt.libvirt.driver: WARNING: URI qemu:///system does not support events
  --------------------- >> end captured logging << ---------------------

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