← Back to team overview

openstack team mailing list archive

Re: keystone still has "DEFINE_string" in its middleware/ec2_token.py file

 

 Thank you very much, Vish!!!

 David.


----- Original Message -----
> The middleware likely has not been updated.  That said, the keystone
> middleware has been added back into the nova source tree and THAT
> middleware has been updated.  You might need to update your paste
> config to the new version that is provided with the nova source
> code.
> 
> Devstack also uses the new middleware in the nova source tree.
> 
> Vish
> 
> On Jan 31, 2012, at 1:59 PM, David Kang wrote:
> 
> > 
> > Hi,
> > 
> > I'm using up-to-date nova.
> > nova-api cannot start because of the following error.
> > It says "AttributeError: 'module' object has no attribute
> > 'DEFINE_string'".
> > I know DEFINE_string becomes obsolete and nova does not have it at
> > all.
> > I checked out the keystone package from github.
> > It still uses "DEFINE_string".
> > Is it a bug?
> > Or is my configuration of nova is wrong?
> > 
> > I'll appreciate comments/answers/...
> > 
> > David.
> > 
> > 2012-01-31 15:04:20,848 CRITICAL nova [-] 'module' object has no
> > attribute 'DEFINE_string'
> > (nova): TRACE: Traceback (most recent call last):
> > (nova): TRACE:   File "/usr/local/nova//bin/nova-api", line 51, in
> > <module>
> > (nova): TRACE:     servers.append(service.WSGIService(api))
> > (nova): TRACE:   File "/usr/local/nova/nova/service.py", line 328,
> > in __init__
> > (nova): TRACE:     self.app = self.loader.load_app(name)
> > (nova): TRACE:   File "/usr/local/nova/nova/wsgi.py", line 388, in
> > load_app
> > (nova): TRACE:     return deploy.loadapp("config:%s" %
> > self.config_path, name=name)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 247, in loadapp
> > (nova): TRACE:     return loadobj(APP, uri, name=name, **kw)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 272, in loadobj
> > (nova): TRACE:     return context.create()
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 710, in create
> > (nova): TRACE:     return self.object_type.invoke(self)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 144, in invoke
> > (nova): TRACE:     **context.local_conf)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/util.py", line 56,
> > in fix_call
> > (nova): TRACE:     val = callable(*args, **kw)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/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/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 350, in get_app
> > (nova): TRACE:     name=name, global_conf=global_conf).create()
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 362, in app_context
> > (nova): TRACE:     APP, name=name, global_conf=global_conf)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 450, in get_context
> > (nova): TRACE:     global_additions=global_additions)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 562, in _pipeline_app_context
> > (nova): TRACE:     for name in pipeline[:-1]]
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 458, in get_context
> > (nova): TRACE:     section)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 517, in _context_from_explicit
> > (nova): TRACE:     value = import_string(found_expr)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/paste/deploy/loadwsgi.py", line
> > 22, in import_string
> > (nova): TRACE:     return pkg_resources.EntryPoint.parse("x=" +
> > s).load(False)
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in
> > load
> > (nova): TRACE:     entry = __import__(self.module_name,
> > globals(),globals(), ['__name__'])
> > (nova): TRACE:   File
> > "/usr/lib/python2.6/site-packages/keystone-2012.1-py2.6.egg/keystone/middleware/ec2_token.py",
> > line 35, in <module>
> > (nova): TRACE:     flags.DEFINE_string('keystone_ec2_url',
> > (nova): TRACE: AttributeError: 'module' object has no attribute
> > 'DEFINE_string'
> > 
> > ----------------------
> > Dr. Dong-In "David" Kang
> > Computer Scientist
> > USC/ISI
> > 
> > 
> > _______________________________________________
> > Mailing list: https://launchpad.net/~openstack
> > Post to     : openstack@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~openstack
> > More help   : https://help.launchpad.net/ListHelp
> 
> 


References