yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #24807
[Bug 1394684] Re: Cannot generate sample nova.conf in juno/stable: Unable to import module nova.test
Thanks for confirming that it's not a bug.
** Changed in: nova
Status: New => Invalid
--
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/1394684
Title:
Cannot generate sample nova.conf in juno/stable: Unable to import
module nova.test
Status in OpenStack Compute (Nova):
Invalid
Bug description:
I cannot generate etc/nova.conf.sample. Below is the command I
executed. I'm using nova stable/juno, last commit id:
8526a727dc20a96d7245ae836e81c29967166f77.
$ git clone https://github.com/openstack/nova.git
Cloning into 'nova'...
remote: Counting objects: 299718, done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 299718 (delta 37), reused 14 (delta 2)
Receiving objects: 100% (299718/299718), 203.27 MiB | 5.58 MiB/s, done.
Resolving deltas: 100% (233815/233815), done.
$ cd nova
$ git checkout stable/juno
Branch stable/juno set up to track remote branch stable/juno from origin.
Switched to a new branch 'stable/juno'
$ pip install -r requirements.txt
Requirement already satisfied (use --upgrade to upgrade): pbr>=0.6,!=0.7,<1.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 5))
Requirement already satisfied (use --upgrade to upgrade): SQLAlchemy>=0.8.4,<=0.8.99,>=0.9.7,<=0.9.99 in /usr/lib64/python2.7/site-packages (from -r requirements.txt (line 6))
Requirement already satisfied (use --upgrade to upgrade): anyjson>=0.3.3 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 7))
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 8))
Requirement already satisfied (use --upgrade to upgrade): boto>=2.32.1 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 9))
Requirement already satisfied (use --upgrade to upgrade): decorator>=3.4.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 10))
Requirement already satisfied (use --upgrade to upgrade): eventlet>=0.15.1 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 11))
Requirement already satisfied (use --upgrade to upgrade): Jinja2 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 12))
Requirement already satisfied (use --upgrade to upgrade): keystonemiddleware>=1.0.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 13))
Requirement already satisfied (use --upgrade to upgrade): kombu>=2.5.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 14))
Requirement already satisfied (use --upgrade to upgrade): lxml>=2.3 in /usr/lib64/python2.7/site-packages (from -r requirements.txt (line 15))
Requirement already satisfied (use --upgrade to upgrade): Routes>=1.12.3,!=2.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 16))
Requirement already satisfied (use --upgrade to upgrade): WebOb>=1.2.3 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 17))
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.3.2 in /usr/lib64/python2.7/site-packages (from -r requirements.txt (line 18))
Requirement already satisfied (use --upgrade to upgrade): PasteDeploy>=1.5.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 19))
Requirement already satisfied (use --upgrade to upgrade): Paste in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 20))
Requirement already satisfied (use --upgrade to upgrade): sqlalchemy-migrate>=0.9.1,!=0.9.2 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 21))
Requirement already satisfied (use --upgrade to upgrade): netaddr>=0.7.12 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 22))
Requirement already satisfied (use --upgrade to upgrade): suds>=0.4 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 23))
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.13.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 24))
Requirement already satisfied (use --upgrade to upgrade): posix-ipc in /usr/lib64/python2.7/site-packages (from -r requirements.txt (line 25))
Requirement already satisfied (use --upgrade to upgrade): pyasn1 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 26))
Requirement already satisfied (use --upgrade to upgrade): Babel>=1.3 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 27))
Requirement already satisfied (use --upgrade to upgrade): iso8601>=0.1.9 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 28))
Requirement already satisfied (use --upgrade to upgrade): jsonschema>=2.0.0,<3.0.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 29))
Requirement already satisfied (use --upgrade to upgrade): python-cinderclient>=1.1.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 30))
Requirement already satisfied (use --upgrade to upgrade): python-neutronclient>=2.3.6,<3 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 31))
Requirement already satisfied (use --upgrade to upgrade): python-glanceclient>=0.14.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 32))
Requirement already satisfied (use --upgrade to upgrade): python-keystoneclient>=0.10.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 33))
Requirement already satisfied (use --upgrade to upgrade): six>=1.7.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 34))
Requirement already satisfied (use --upgrade to upgrade): stevedore>=1.0.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 35))
Requirement already satisfied (use --upgrade to upgrade): websockify>=0.6.0,<0.7 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 36))
Requirement already satisfied (use --upgrade to upgrade): wsgiref>=0.1.2 in /usr/lib64/python2.7 (from -r requirements.txt (line 37))
Requirement already satisfied (use --upgrade to upgrade): oslo.config>=1.4.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 38))
Requirement already satisfied (use --upgrade to upgrade): oslo.db>=1.0.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 39))
Requirement already satisfied (use --upgrade to upgrade): oslo.rootwrap>=1.3.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 40))
Requirement already satisfied (use --upgrade to upgrade): pycadf>=0.6.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 41))
Requirement already satisfied (use --upgrade to upgrade): oslo.messaging>=1.4.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 42))
Requirement already satisfied (use --upgrade to upgrade): oslo.i18n>=1.0.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 43))
Requirement already satisfied (use --upgrade to upgrade): lockfile>=0.8 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 44))
Requirement already satisfied (use --upgrade to upgrade): simplejson>=2.2.0 in /usr/lib64/python2.7/site-packages (from -r requirements.txt (line 45))
Requirement already satisfied (use --upgrade to upgrade): rfc3986>=0.2.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 46))
Requirement already satisfied (use --upgrade to upgrade): oslo.vmware>=0.6.0 in /usr/lib/python2.7/site-packages (from -r requirements.txt (line 47))
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /usr/lib64/python2.7/site-packages (from Jinja2->-r requirements.txt (line 12))
Requirement already satisfied (use --upgrade to upgrade): repoze.lru>=0.3 in /usr/lib/python2.7/site-packages (from Routes>=1.12.3,!=2.0->-r requirements.txt (line 16))
Requirement already satisfied (use --upgrade to upgrade): Tempita>=0.4 in /usr/lib/python2.7/site-packages (from sqlalchemy-migrate>=0.9.1,!=0.9.2->-r requirements.txt (line 21))
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /usr/lib64/python2.7/site-packages (from paramiko>=1.13.0->-r requirements.txt (line 24))
Requirement already satisfied (use --upgrade to upgrade): ecdsa>=0.11 in /usr/lib/python2.7/site-packages (from paramiko>=1.13.0->-r requirements.txt (line 24))
Requirement already satisfied (use --upgrade to upgrade): pytz>=0a in /usr/lib/python2.7/site-packages (from Babel>=1.3->-r requirements.txt (line 27))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib64/python2.7/site-packages (from websockify>=0.6.0,<0.7->-r requirements.txt (line 36))
Requirement already satisfied (use --upgrade to upgrade): oslo.utils>=1.0.0 in /usr/lib/python2.7/site-packages (from oslo.vmware>=0.6.0->-r requirements.txt (line 47))
Requirement already satisfied (use --upgrade to upgrade): PyYAML>=3.1.0 in /usr/lib64/python2.7/site-packages (from oslo.vmware>=0.6.0->-r requirements.txt (line 47))
Requirement already satisfied (use --upgrade to upgrade): requests>=2.2.0,!=2.4.0 in /usr/lib/python2.7/site-packages (from oslo.vmware>=0.6.0->-r requirements.txt (line 47))
Cleaning up...
$ ./tools/config/generate_sample.sh -b . -p nova -o etc/nova
Error importing module nova.test: No module named mox
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/root/workspace/nova/nova/openstack/common/config/generator.py", line 307, in <module>
main()
File "/root/workspace/nova/nova/openstack/common/config/generator.py", line 304, in main
generate(sys.argv[1:])
File "/root/workspace/nova/nova/openstack/common/config/generator.py", line 130, in generate
raise RuntimeError("Unable to import module %s" % mod_str)
RuntimeError: Unable to import module nova.test
$ python nova/test.py
Traceback (most recent call last):
File "nova/test.py", line 36, in <module>
import fixtures
File "/usr/lib/python2.7/site-packages/fixtures/__init__.py", line 77, in <module>
from fixtures.fixture import (
File "/usr/lib/python2.7/site-packages/fixtures/fixture.py", line 26, in <module>
from testtools.compat import (
File "/usr/lib/python2.7/site-packages/testtools/__init__.py", line 59, in <module>
from testtools.matchers._impl import (
File "/usr/lib/python2.7/site-packages/testtools/matchers/__init__.py", line 83, in <module>
from ._doctest import (
File "/usr/lib/python2.7/site-packages/testtools/matchers/_doctest.py", line 7, in <module>
import doctest
File "/usr/lib64/python2.7/doctest.py", line 99, in <module>
import unittest, difflib, pdb, tempfile
File "/usr/lib64/python2.7/pdb.py", line 9, in <module>
import cmd
File "/root/workspace/nova/nova/cmd/__init__.py", line 33, in <module>
% os.environ.get('EVENTLET_NO_GREENDNS'))
ImportError: eventlet imported before nova/cmd/__init__ (env var set to None)
$
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1394684/+subscriptions
References