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

Bug #1286958 reported by smithson
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned

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)

Allison Randal (allison)
tags: added: libvert testing
Joe Gordon (jogo)
Changed in nova:
importance: Undecided → Wishlist
importance: Wishlist → Low
status: New → Triaged
Jay Pipes (jaypipes)
tags: added: libvirt
removed: libvert
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/86094
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=63b0accd89f2894a199e4a60428bb2c5cd20facd
Submitter: Jenkins
Branch: master

commit 63b0accd89f2894a199e4a60428bb2c5cd20facd
Author: Rick Harris <email address hidden>
Date: Tue Apr 8 12:01:35 2014 -0500

    libvirt: Stub O_DIRECT in test if not supported

    `os.O_DIRECT` is only defined on platforms that support direct I/O. On
    Macs, which don't support direct I/O in this way, `os.O_DIRECT` will
    raise an `AttributeError`.

    We can still test the code-path, however, by just stubbing out the
    value on platforms where it's not supported.

    Closes-Bug: 1286958

    Change-Id: I8f10d6dfc4a63b6a961006b029b828e703870e46

Changed in nova:
status: Triaged → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.