← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1286958] [NEW] run_tests.sh - two tests to be skipped in OS X

 

Public bug reported:

% git rev-parse HEAD
e19b294737030900ac5f2ba9cfb289b11020d369

% uname -v
Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64

% ./run_tests.sh
[...]
======================================================================
FAIL: nova.tests.virt.docker.test_driver.DockerDriverTestCase.test_get_host_stats
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
  pythonlogging:''
  stderr
  stdout

traceback-1: {{{
Traceback (most recent call last):
  File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/fixture.py", line 112, in cleanUp
    return self._cleanups(raise_errors=raise_first)
  File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/callmany.py", line 88, in __call__
    reraise(error[0], error[1], error[2])
  File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/callmany.py", line 82, in __call__
    cleanup(*args, **kwargs)
  File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll
    mock_obj._Verify()
  File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/mox.py", line 506, in _Verify
    raise ExpectedMethodCallsError(self._expected_calls_queue)
ExpectedMethodCallsError: Verify: Expected methods never called:
  0.  Stub for <built-in function gethostname>.__call__() -> 'bar'
}}}

Traceback (most recent call last):
  File "/mydir/openstack/nova/nova/tests/virt/docker/test_driver.py", line 90, in test_get_host_stats
    self.connection.get_host_stats()['host_hostname'])
  File "/mydir/openstack/nova/nova/virt/docker/driver.py", line 137, in get_host_stats
    memory = hostinfo.get_memory_usage()
  File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 62, in get_memory_usage
    meminfo = parse_meminfo()
  File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 44, in parse_meminfo
    for ln in get_meminfo():
  File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 27, in get_meminfo
    with open('/proc/meminfo') as f:
IOError: [Errno 2] No such file or directory: '/proc/meminfo'


======================================================================
FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_supports_direct_io
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{INFO [nova.network.driver] Loading network driver
'nova.network.linux_net'}}}

Traceback (most recent call last):
  File "/mydir/openstack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 3112, in test_supports_direct_io
    self._behave_supports_direct_io()
  File "/mydir/openstack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 3091, in _behave_supports_direct_io
    os.O_CREAT | os.O_WRONLY | os.O_DIRECT)
AttributeError: 'module' object has no attribute 'O_DIRECT'


Ran 10334 tests in 907.909s

FAILED (failures=2)

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  run_tests.sh - two tests to be skipped in OS X

Status in OpenStack Compute (Nova):
  New

Bug description:
  % git rev-parse HEAD
  e19b294737030900ac5f2ba9cfb289b11020d369

  % uname -v
  Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64

  % ./run_tests.sh
  [...]
  ======================================================================
  FAIL: nova.tests.virt.docker.test_driver.DockerDriverTestCase.test_get_host_stats
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: Empty attachments:
    pythonlogging:''
    stderr
    stdout

  traceback-1: {{{
  Traceback (most recent call last):
    File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/fixture.py", line 112, in cleanUp
      return self._cleanups(raise_errors=raise_first)
    File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/callmany.py", line 88, in __call__
      reraise(error[0], error[1], error[2])
    File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/fixtures/callmany.py", line 82, in __call__
      cleanup(*args, **kwargs)
    File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll
      mock_obj._Verify()
    File "/mydir/openstack/nova/.venv/lib/python2.7/site-packages/mox.py", line 506, in _Verify
      raise ExpectedMethodCallsError(self._expected_calls_queue)
  ExpectedMethodCallsError: Verify: Expected methods never called:
    0.  Stub for <built-in function gethostname>.__call__() -> 'bar'
  }}}

  Traceback (most recent call last):
    File "/mydir/openstack/nova/nova/tests/virt/docker/test_driver.py", line 90, in test_get_host_stats
      self.connection.get_host_stats()['host_hostname'])
    File "/mydir/openstack/nova/nova/virt/docker/driver.py", line 137, in get_host_stats
      memory = hostinfo.get_memory_usage()
    File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 62, in get_memory_usage
      meminfo = parse_meminfo()
    File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 44, in parse_meminfo
      for ln in get_meminfo():
    File "/mydir/openstack/nova/nova/virt/docker/hostinfo.py", line 27, in get_meminfo
      with open('/proc/meminfo') as f:
  IOError: [Errno 2] No such file or directory: '/proc/meminfo'

  
  ======================================================================
  FAIL: nova.tests.virt.libvirt.test_libvirt.LibvirtConnTestCase.test_supports_direct_io
  ----------------------------------------------------------------------
  Traceback (most recent call last):
  _StringException: Empty attachments:
    stderr
    stdout

  pythonlogging:'': {{{INFO [nova.network.driver] Loading network driver
  'nova.network.linux_net'}}}

  Traceback (most recent call last):
    File "/mydir/openstack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 3112, in test_supports_direct_io
      self._behave_supports_direct_io()
    File "/mydir/openstack/nova/nova/tests/virt/libvirt/test_libvirt.py", line 3091, in _behave_supports_direct_io
      os.O_CREAT | os.O_WRONLY | os.O_DIRECT)
  AttributeError: 'module' object has no attribute 'O_DIRECT'

  
  Ran 10334 tests in 907.909s

  FAILED (failures=2)

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


Follow ups

References