Glance-registry not starting on Wheezy

Asked by Guillaume Henry on 2013-05-28

Hello,

I'm trying to install OpenStack and I have successfully install Keystone with these tutorials: http://docs.openstack.org/grizzly/basic-install/apt/content/ and http://docs.openstack.org/trunk/openstack-compute/install/yum/content/ch_installing-openstack-overview.html

Now I have some difficulties with Glance services.
Glance-api seems to work great.
Glance-registry seems to work when I launch "service glance-registry start" but there is no processus named glance-registry with the command "ps aux | grep glance-registry" and there is no information in /var/log/glance/registry.log.

However when I try this command => glance-registry glance-registry.conf &
I have this error => ERROR: Unable to load glance-registry-keystone from configuration file /etc/glance/glance-registry-paste.ini.
Got: ImportError("<class 'glance.registry.api.v1.API'> has no 'factory' attribute",)

Consequently when I have an error when I try the command "glance index" : Failed to show index. Got error:
The request returned 503 Service Unavilable. This generally occurs on service overload or other transient outage.

This is the file glance-registry-paste.ini

# Use this pipeline for no auth - DEFAULT
#[pipeline:glance-registry]
#pipeline = unauthenticated-context registryapp

# Use this pipeline for keystone auth
[pipeline:glance-registry-keystone]
pipeline = authtoken context registryapp

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
admin_tenant_name = service
admin_user = glance
admin_password = glance

[app:registryapp]
paste.app_factory = glance.registry.api.v1:API.factory

[filter:context]
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory

[filter:unauthenticated-context]
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory

[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory

Thank you in advance for your help :)

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
Guillaume Henry
Solved:
2013-06-10
Last query:
2013-06-10
Last reply:

Obviously I have solved the problem of glance-registry. I have reinstall glance and glance-registry and it seems to work fine.
But I have the problem with the command "glance index":
Failed to show index. Got error:
The request returned 503 Service Unavilable. This generally occurs on service overload or other transient outage.
No error in registry.log
This un api.log:
WARNING [keystone.middleware.auth_token] Unexpected response from keystone service: {u'error': {u'message': u"An unexpected error prevented the server from fulfilling your request. object of type 'NoneType' has no len()", u'code': 500, u'title': u'Internal Server Error'}}
2013-05-28 17:07:50 7393 CRITICAL [keystone.middleware.auth_token] Unable to obtain admin token: invalid json response

Any idea ?

The problem was an authentification problem
I have modified glance.conf with the appropriate login infromation and it works fine

:)