Closed msrba closed 11 years ago
are you using the latest version? (As in master branch)
from oslo.config import cfg
has been replacing
nova from nova import flags
for some time now.
I have uses an another repo (https://github.com/stackforge/occi-os) this is currently not up to date. I have solved the problem with this master branch - the stable/grizzly has the same problem because of the "from nova import flags".
please close this issue
Currently i setup a openstack environment with occi-os and i get an error after i installed and configured occi-os.
From nova-api.log:
2013-07-30 11:11:02.769 1102 CRITICAL nova [-] cannot import name flags 2013-07-30 11:11:02.769 1102 TRACE nova Traceback (most recent call last): 2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/bin/nova-api", line 61, in
2013-07-30 11:11:02.769 1102 TRACE nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/service.py", line 598, in init
2013-07-30 11:11:02.769 1102 TRACE nova self.app = self.loader.load_app(name)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/nova/wsgi.py", line 482, in load_app
2013-07-30 11:11:02.769 1102 TRACE nova return deploy.loadapp("config:%s" % self.config_path, name=name)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2013-07-30 11:11:02.769 1102 TRACE nova return loadobj(APP, uri, name=name, _kw)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2013-07-30 11:11:02.769 1102 TRACE nova return context.create()
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2013-07-30 11:11:02.769 1102 TRACE nova return self.object_type.invoke(self)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2013-07-30 11:11:02.769 1102 TRACE nova _context.local_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
2013-07-30 11:11:02.769 1102 TRACE nova val = callable(_args, *_kw)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 25, in urlmap_factory
2013-07-30 11:11:02.769 1102 TRACE nova app = loader.get_app(app_name, global_conf=global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2013-07-30 11:11:02.769 1102 TRACE nova name=name, global_conf=global_conf).create()
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2013-07-30 11:11:02.769 1102 TRACE nova APP, name=name, global_conf=global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
2013-07-30 11:11:02.769 1102 TRACE nova global_additions=global_additions)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
2013-07-30 11:11:02.769 1102 TRACE nova APP, pipeline[-1], global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 454, in get_context
2013-07-30 11:11:02.769 1102 TRACE nova section)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 476, in _context_from_use
2013-07-30 11:11:02.769 1102 TRACE nova object_type, name=use, global_conf=global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 406, in get_context
2013-07-30 11:11:02.769 1102 TRACE nova global_conf=global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2013-07-30 11:11:02.769 1102 TRACE nova global_conf=global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
2013-07-30 11:11:02.769 1102 TRACE nova return loader.get_context(object_type, name, global_conf)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 620, in get_context
2013-07-30 11:11:02.769 1102 TRACE nova object_type, name=name)
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 646, in find_egg_entry_point
2013-07-30 11:11:02.769 1102 TRACE nova possible.append((entry.load(), protocol, entry.name))
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2013, in load
2013-07-30 11:11:02.769 1102 TRACE nova entry = import(self.module_name, globals(),globals(), ['name'])
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/local/lib/python2.7/dist-packages/occi_os_grizzly-1.0-py2.7.egg/occi_os_api/init.py", line 40, in
2013-07-30 11:11:02.769 1102 TRACE nova from occi_os_api import wsgi
2013-07-30 11:11:02.769 1102 TRACE nova File "/usr/local/lib/python2.7/dist-packages/occi_os_grizzly-1.0-py2.7.egg/occi_os_api/wsgi.py", line 28, in
2013-07-30 11:11:02.769 1102 TRACE nova from nova import flags
2013-07-30 11:11:02.769 1102 TRACE nova ImportError: cannot import name flags
2013-07-30 11:11:02.769 1102 TRACE nova