← Back to team overview

openstack team mailing list archive

Re: grizzly's cinder-api is not starting : Couldn't find urlmap package

 

Hi Sean,

Thanks for your quick answer. Here are the config files in /etc/cinder.

api-paste.ini :

#############

# Openstack #

#############


[composite:osapi_volume]
use = call:cinder.api.openstack.urlmap:urlmap_factory
/ = osvolumeversions
/v1 = openstack_volume_api_v1

[composite:openstack_volume_api_v1]
use = call:cinder.api.auth:pipeline_factory
noauth = faultwrap sizelimit noauth osapi_volume_app_v1
keystone = faultwrap sizelimit authtoken keystonecontext osapi_volume_app_v1
keystone_nolimit = faultwrap sizelimit authtoken keystonecontext
osapi_volume_app_v1

[filter:faultwrap]
paste.filter_factory = cinder.api.openstack:FaultWrapper.factory

[filter:noauth]
paste.filter_factory = cinder.api.openstack.auth:NoAuthMiddleware.factory

[filter:sizelimit]
paste.filter_factory = cinder.api.sizelimit:RequestBodySizeLimiter.factory

[app:osapi_volume_app_v1]
paste.app_factory = cinder.api.openstack.volume:APIRouter.factory

[pipeline:osvolumeversions]
pipeline = faultwrap osvolumeversionapp

[app:osvolumeversionapp]
paste.app_factory = cinder.api.openstack.volume.versions:Versions.factory

##########

# Shared #

##########


[filter:keystonecontext]
paste.filter_factory = cinder.api.auth:CinderKeystoneContext.factory

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = xxxxxxx


cinder.conf :

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
sql_connection = mysql://cinder:xxxxxxx@localhost:3306/cinder
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
logdir = /var/log/cinder
state_path = /var/lib/cinder
volumes_dir = /var/lib/cinder/volumes
lock_path = /var/lock/cinder
rabbit_password = xxxxxxx
rabbit_userid = guest
rabbit_host = 127.0.0.1
rabbit_port = 5672


On Fri, Apr 12, 2013 at 2:46 PM, Sean Dague <sean@xxxxxxxxx> wrote:

> Please post the contents of your /etc/cinder directory, I think this is
> related to an issue I saw during grenade testing.
>
>         -Sean
>
>
> On 04/12/2013 08:29 AM, Mohammed Amine SAYA wrote:
>
>> Hi All,
>>
>> I am trying to start cinder-api but it complains about urlmap module.
>> I checked in "/usr/lib/python2.7/dist-**packages/paste/" directory and I
>> found
>> urlmap.py and urlmap.pyc.
>>
>> Have you heard about this behavior in cinder-api? I didn't have it with
>> FOLSOM.
>>
>> Here is the error I found in cinder-api.log :
>>
>> 2013-04-12 14:20:29 CRITICAL [cinder] No module named urlmap
>> Traceback (most recent call last):
>>    File "/usr/bin/cinder-api", line 48, in <module>
>>      server = service.WSGIService('osapi_**volume')
>>    File "/usr/lib/python2.7/dist-**packages/cinder/service.py", line 520,
>> in __init__
>>      self.app = self.loader.load_app(name)
>>    File "/usr/lib/python2.7/dist-**packages/cinder/wsgi.py", line 490, in
>> load_app
>>      return deploy.loadapp("config:%s" % self.config_path, name=name)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 247, in loadapp
>>      return loadobj(APP, uri, name=name, **kw)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 271, in loadobj
>>      global_conf=global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 296, in loadcontext
>>      global_conf=global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 320, in _loadconfig
>>      return loader.get_context(object_**type, name, global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 454, in get_context
>>      section)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 476, in _context_from_use
>>      object_type, name=use, global_conf=global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 406, in get_context
>>      global_conf=global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 296, in loadcontext
>>      global_conf=global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 337, in _loadfunc
>>      return loader.get_context(object_**type, name, global_conf)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/**loadwsgi.py",
>> line 681, in get_context
>>      obj = lookup_object(self.spec)
>>    File "/usr/lib/python2.7/dist-**packages/paste/deploy/util.py"**, line
>> 69, in lookup_object
>>      module = __import__(parts)
>> ImportError: No module named urlmap
>>
>>
>> Thanks a lot for your help.
>> Best regards,
>> Amine.
>>
>>
>> ______________________________**_________________
>> Mailing list: https://launchpad.net/~**openstack<https://launchpad.net/~openstack>
>> Post to     : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~**openstack<https://launchpad.net/~openstack>
>> More help   : https://help.launchpad.net/**ListHelp<https://help.launchpad.net/ListHelp>
>>
>>
>
> --
> Sean Dague
> http://dague.net
>

References