run_tests.sh - two tests to be skipped in OS X
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Unassigned |
Bug Description
% git rev-parse HEAD
e19b29473703090
% uname -v
Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-
% ./run_tests.sh
[...]
=======
FAIL: nova.tests.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging:''
stderr
stdout
traceback-1: {{{
Traceback (most recent call last):
File "/mydir/
return self._cleanups(
File "/mydir/
reraise(
File "/mydir/
cleanup(*args, **kwargs)
File "/mydir/
mock_
File "/mydir/
raise ExpectedMethodC
ExpectedMethodC
0. Stub for <built-in function gethostname>
}}}
Traceback (most recent call last):
File "/mydir/
self.
File "/mydir/
memory = hostinfo.
File "/mydir/
meminfo = parse_meminfo()
File "/mydir/
for ln in get_meminfo():
File "/mydir/
with open('/
IOError: [Errno 2] No such file or directory: '/proc/meminfo'
=======
FAIL: nova.tests.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{INFO [nova.network.
Traceback (most recent call last):
File "/mydir/
self.
File "/mydir/
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)
tags: | added: libvert testing |
Changed in nova: | |
importance: | Undecided → Wishlist |
importance: | Wishlist → Low |
status: | New → Triaged |
tags: |
added: libvirt removed: libvert |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Reviewed: https:/ /review. openstack. org/86094 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=63b0accd89f 2894a199e4a6042 8bb2c5cd20facd
Committed: https:/
Submitter: Jenkins
Branch: master
commit 63b0accd89f2894 a199e4a60428bb2 c5cd20facd
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: I8f10d6dfc4a63b 6a961006b029b82 8e703870e46