** Project changed: nova => nova-docker
--
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/1284990
Title:
docker unit tests fail on non-Linux with get_host_stats accessing
/proc/meminfo
Status in Nova Docker Driver:
In Progress
Bug description:
======================================================================
FAIL:
nova.tests.virt.docker.test_driver.DockerDriverTestCase.test_get_host_stats
tags: worker-4
----------------------------------------------------------------------
Empty attachments:
pythonlogging:''
stderr
stdout
traceback-1: {{{
Traceback (most recent call last):
File
"/Users/eric/git/nova/.tox/py27/lib/python2.7/site-packages/fixtures/fixture.py",
line 112, in cleanUp
return self._cleanups(raise_errors=raise_first)
File
"/Users/eric/git/nova/.tox/py27/lib/python2.7/site-packages/fixtures/callmany.py",
line 88, in __call__
reraise(error[0], error[1], error[2])
File
"/Users/eric/git/nova/.tox/py27/lib/python2.7/site-packages/fixtures/callmany.py",
line 82, in __call__
cleanup(*args, **kwargs)
File "/Users/eric/git/nova/.tox/py27/lib/python2.7/site-packages/mox.py",
line 286, in VerifyAll
mock_obj._Verify()
File "/Users/eric/git/nova/.tox/py27/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 "nova/tests/virt/docker/test_driver.py", line 92, in
test_get_host_stats
self.connection.get_host_stats()['host_hostname'])
File "nova/virt/docker/driver.py", line 137, in get_host_stats
memory = hostinfo.get_memory_usage()
File "nova/virt/docker/hostinfo.py", line 62, in get_memory_usage
meminfo = parse_meminfo()
File "nova/virt/docker/hostinfo.py", line 44, in parse_meminfo
for ln in get_meminfo():
File "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'
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova-docker/+bug/1284990/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp