unit tests fail due to import path issue

Bug #1301523 reported by Aaron Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova-docker
Fix Committed
Undecided
Aaron Rosen

Bug Description

DEBUG [nova.utils] Reloading cached file /tmp/tmpVe3fUh/tmpMBZQFT/policy.json
}}}

Traceback (most recent call last):
  File "/tmp/nova-docker/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1193, in patched
    arg = patching.__enter__()
  File "/tmp/nova-docker/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1252, in __enter__
    self.target = self.getter()
  File "/tmp/nova-docker/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1414, in <lambda>
    getter = lambda: _importer(target)
  File "/tmp/nova-docker/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1102, in _importer
    thing = _dot_lookup(thing, comp, import_path)
  File "/tmp/nova-docker/.tox/py27/local/lib/python2.7/site-packages/mock.py", line 1091, in _dot_lookup
    __import__(import_path)
ImportError: No module named docker

Aaron Rosen (arosen)
Changed in nova-docker:
assignee: nobody → Aaron Rosen (arosen)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova-docker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/84812

Changed in nova-docker:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova-docker (master)

Reviewed: https://review.openstack.org/84812
Committed: https://git.openstack.org/cgit/stackforge/nova-docker/commit/?id=7ae34bd57a0b1d1b326f7bc8b977fa0feae0cb7b
Submitter: Jenkins
Branch: master

commit 7ae34bd57a0b1d1b326f7bc8b977fa0feae0cb7b
Author: Aaron Rosen <email address hidden>
Date: Wed Apr 2 10:39:11 2014 -0700

    Fix import path issue in unit tests

    When the docker driver was pulled out of nova the mock.patch path
    was never updated to reflect its new path.

    Change-Id: I46488e4288ac80eacb0d3d00e1b939f7cbca4ca4
    Closes-bug: #1301523

Changed in nova-docker:
status: In Progress → Fix Committed
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.