← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1368942] [NEW] lxc test failure under osx

 

Public bug reported:

Heres the stack trace from the following test:
nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_create_propagates_exceptions

Traceback (most recent call last):
  File "nova/tests/virt/libvirt/test_driver.py", line 9231, in test_create_propagates_exceptions
    instance, None)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
    reraise(*matchee)
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 955, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "nova/virt/libvirt/driver.py", line 4229, in _create_domain_and_network
    disk_info):
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "nova/virt/libvirt/driver.py", line 4125, in _lxc_disk_handler
    self._create_domain_setup_lxc(instance, block_device_info, disk_info)
  File "nova/virt/libvirt/driver.py", line 4077, in _create_domain_setup_lxc
    use_cow=use_cow)
  File "nova/virt/disk/api.py", line 385, in setup_container
    img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
  File "nova/virt/disk/api.py", line 252, in __init__
    device = self._device_for_path(mount_dir)
  File "nova/virt/disk/api.py", line 260, in _device_for_path
    with open("/proc/mounts", 'r') as ifp:
IOError: [Errno 2] No such file or directory: '/proc/mounts'
Ran 1 tests in 1.172s (-30.247s)
FAILED (id=12, failures=1 (+1))
error: testr failed (1)
ERROR: InvocationError: '/Users/dims/openstack/nova/.tox/py27/bin/python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args=nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_create_propagates_exceptions'
__________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________
ERROR:   py27: commands failed

** Affects: nova
     Importance: Low
         Status: New

** Changed in: nova
   Importance: Undecided => Low

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

Title:
  lxc test failure under osx

Status in OpenStack Compute (Nova):
  New

Bug description:
  Heres the stack trace from the following test:
  nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_create_propagates_exceptions

  Traceback (most recent call last):
    File "nova/tests/virt/libvirt/test_driver.py", line 9231, in test_create_propagates_exceptions
      instance, None)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 420, in assertRaises
      self.assertThat(our_callable, matcher)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 431, in assertThat
      mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 481, in _matchHelper
      mismatch = matcher.match(matchee)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
      mismatch = self.exception_matcher.match(exc_info)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
      mismatch = matcher.match(matchee)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 412, in match
      reraise(*matchee)
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
      result = matchee()
    File "/Users/dims/openstack/nova/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 955, in __call__
      return self._callable_object(*self._args, **self._kwargs)
    File "nova/virt/libvirt/driver.py", line 4229, in _create_domain_and_network
      disk_info):
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
      return self.gen.next()
    File "nova/virt/libvirt/driver.py", line 4125, in _lxc_disk_handler
      self._create_domain_setup_lxc(instance, block_device_info, disk_info)
    File "nova/virt/libvirt/driver.py", line 4077, in _create_domain_setup_lxc
      use_cow=use_cow)
    File "nova/virt/disk/api.py", line 385, in setup_container
      img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
    File "nova/virt/disk/api.py", line 252, in __init__
      device = self._device_for_path(mount_dir)
    File "nova/virt/disk/api.py", line 260, in _device_for_path
      with open("/proc/mounts", 'r') as ifp:
  IOError: [Errno 2] No such file or directory: '/proc/mounts'
  Ran 1 tests in 1.172s (-30.247s)
  FAILED (id=12, failures=1 (+1))
  error: testr failed (1)
  ERROR: InvocationError: '/Users/dims/openstack/nova/.tox/py27/bin/python -m nova.openstack.common.lockutils python setup.py test --slowest --testr-args=nova.tests.virt.libvirt.test_driver.LibvirtConnTestCase.test_create_propagates_exceptions'
  __________________________________________________________________________________________________________________________ summary ___________________________________________________________________________________________________________________________
  ERROR:   py27: commands failed

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


Follow ups

References