← Back to team overview

openstack team mailing list archive

Re: Keystone/nova-api error

 

Looks like the version of nova that is installed in pymodules is old.  You somehow have a new api-paste.ini but old actual nova code.

Vish

On Sep 12, 2011, at 10:27 AM, Marc Peiser wrote:

> Hi all,
> 
> I'm having issues with keystone install with nova/glance. I seem to be missing something as I'm getting this error from nova-api logs:
> 
> 2011-09-12 19:15:16,558 DEBUG nova.api [-] ec2_listen : 0.0.0.0 from (pid=9026) <module> /usr/bin/nova-api:58
> 2011-09-12 19:15:16,558 DEBUG nova.api [-] network_topic : network from (pid=9026) <module> /usr/bin/nova-api:58
> 2011-09-12 19:15:16,560 DEBUG nova [-] Using paste.deploy config at: /etc/nova/api-paste.ini from (pid=9026) _run_wsgi /usr/lib/pymodules/python2.6/nova/service.py:318
> 2011-09-12 19:15:16,567 DEBUG nova [-] App Config: ec2
> {'/2007-08-29': 'ec2metadata', '/services/Admin': 'ec2admin', '/2007-10-10': 'ec2metadata', '__file__': '/etc/nova/api-paste.ini', '/latest': 'ec2metadata', 'here': '/etc/nova', '/2007-03-01': 'ec2metadata', '/2007-01-19': 'ec2metadata', '/2008-09-01': 'ec2metadata', '/services/Cloud': 'ec2cloud', '/2008-02-01': 'ec2metadata', '/1.0': 'ec2metadata', '/2009-04-04': 'ec2metadata', '/2007-12-15': 'ec2metadata', '/': 'ec2versions'} from (pid=9026) _run_wsgi /usr/lib/pymodules/python2.6/nova/service.py:325
> 2011-09-12 19:15:16,567 INFO nova [-] Running ec2 API
> 2011-09-12 19:15:16,729 CRITICAL nova [-] <module 'nova.api.ec2' from '/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.pyc'> has no 'ToToken' attribute
> (nova): TRACE: Traceback (most recent call last):
> (nova): TRACE:   File "/usr/bin/nova-api", line 60, in <module>
> (nova): TRACE:     service = service.serve_wsgi(service.ApiService)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 312, in serve_wsgi
> (nova): TRACE:     service.start()
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 246, in start
> (nova): TRACE:     self.wsgi_app = _run_wsgi(self.conf, self.apis)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/service.py", line 327, in _run_wsgi
> (nova): TRACE:     app = wsgi.load_paste_app(paste_config_file, api)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/nova/wsgi.py", line 596, in load_paste_app
> (nova): TRACE:     app = deploy.loadapp("config:%s" % filename, name=appname)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 204, in loadapp
> (nova): TRACE:     return loadobj(APP, uri, name=name, **kw)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 225, in loadobj
> (nova): TRACE:     return context.create()
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 625, in create
> (nova): TRACE:     return self.object_type.invoke(self)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 108, in invoke
> (nova): TRACE:     **context.local_conf)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
> (nova): TRACE:     val = callable(*args, **kw)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/urlmap.py", line 25, in urlmap_factory
> (nova): TRACE:     app = loader.get_app(app_name, global_conf=global_conf)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 297, in get_app
> (nova): TRACE:     name=name, global_conf=global_conf).create()
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 309, in app_context
> (nova): TRACE:     APP, name=name, global_conf=global_conf)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 405, in get_context
> (nova): TRACE:     global_additions=global_additions)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 503, in _pipeline_app_context
> (nova): TRACE:     for name in pipeline[:-1]]
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 413, in get_context
> (nova): TRACE:     section)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 458, in _context_from_explicit
> (nova): TRACE:     value = import_string(found_expr)
> (nova): TRACE:   File "/usr/lib/pymodules/python2.6/paste/deploy/loadwsgi.py", line 18, in import_string
> (nova): TRACE:     return pkg_resources.EntryPoint.parse("x="+s).load(False)
> (nova): TRACE:   File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1959, in load
> (nova): TRACE:     raise ImportError("%r has no %r attribute" % (entry,attr))
> (nova): TRACE: ImportError: <module 'nova.api.ec2' from '/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.pyc'> has no 'ToToken' attribute
> (nova): TRACE: 
> 
> Steps I used to install keystone:
> 
>    apt-get install -y git-core python-setuptools python-dev python-lxml \
>        python-pastescript python-pastedeploy python-paste sqlite3 \
>        python-pysqlite2 python-sqlalchemy python-webob python-greenlet \
>        python-routes libldap2-dev libsasl2-dev
>    apt-get install -y python-pip
> 
>    git clone https://github.com/openstack/keystone.git keystone
> 	
> 	cd keystone
> 	pip install -r tools/pip-requires
> 	python setup.py install
> 	cd ..
> 	
> 	mkdir /etc/keystone
> 	cp $DIR/nova-api-paste.ini /etc/nova/api-paste.ini
> 	cp $DIR/glance-api.conf /etc/nova/glance-api.conf
> 	cp $DIR/glance-registry.conf /etc/nova/glance-registry.conf
> 	cp $DIR/keystone.conf /etc/keystone/keystone.conf
> 	
> 
> Any clues where I went wrong? 
> 
> Thanks,
> Marc
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References