← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1186775] Re: Running api_sample tests fails when doc is in a splitted path

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-2

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

Title:
  Running api_sample tests fails when doc is in a splitted path

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When the nova module tests are installed in a different path than the
  integrated tests, running the tests fails with this error message:

  15:34:11 Traceback (most recent call last):
  15:34:11   File "/var/lib/openstack-nova-test/nova/tests/integrated/test_api_samples.py", line 2026, in setUp
  15:34:11     self._post_server()
  15:34:11   File "/var/lib/openstack-nova-test/nova/tests/integrated/test_api_samples.py", line 450, in _post_server
  15:34:11     return self._verify_response('server-post-resp', subs, response)
  15:34:11   File "/var/lib/openstack-nova-test/nova/tests/integrated/test_api_samples.py", line 288, in _verify_response
  15:34:11     with file(self._get_sample(name)) as sample:
  15:34:11 IOError: [Errno 2] No such file or directory: '/var/lib/openstack-nova-test/nova/tests/integrated/../../../doc/api_samples/os-simple-tenant-usage/server-post-resp.xml'
  15:34:11 

  This is due to symlink backlinks "/../../../" traversing into the
  wrong directory tree, and therefore never finding the doc/ subdir.

  This regression was introduced by
  https://review.openstack.org/#/c/12246/

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