I think the difference between the upstream egg snapshot (which contains all source) and the Ubuntu packaged source (which does not container everything) is the problem here - looking at sys.path in a fresh venv:
You can see that "/home/jamespage/src/upstream/neutron-fwaas/.tox/py27/src/neutron" is listed on the path - which includes all the neutron goodness required to execute the tests.
We don't have that in the Ubuntu distribution and would account for at least:
ConfigFilesNotFoundError: Failed to find some config files: /usr/lib/python2.7/dist-packages/etc/policy.json
as this is present in the generated egg, but not python-neutron.
I think the difference between the upstream egg snapshot (which contains all source) and the Ubuntu packaged source (which does not container everything) is the problem here - looking at sys.path in a fresh venv:
>>> print sys.path jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ src/neutron' , '/home/ jamespage/ src/upstream/ neutron- fwaas', '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7', '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7/plat- x86_64- linux-gnu' , '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7/lib-tk' , '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7/lib-old' , '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7/lib-dynload' , '/usr/lib/ python2. 7', '/usr/lib/ python2. 7/plat- x86_64- linux-gnu' , '/usr/lib/ python2. 7/lib-tk' , '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ local/lib/ python2. 7/site- packages' , '/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ lib/python2. 7/site- packages' ]
['', '/home/
You can see that "/home/ jamespage/ src/upstream/ neutron- fwaas/. tox/py27/ src/neutron" is listed on the path - which includes all the neutron goodness required to execute the tests.
We don't have that in the Ubuntu distribution and would account for at least:
ConfigFilesNotF oundError: Failed to find some config files: /usr/lib/ python2. 7/dist- packages/ etc/policy. json
as this is present in the generated egg, but not python-neutron.