Ask Your Question
0

Glance-registry not starting on Wheezy

asked 2013-05-28 14:52:48 -0500

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/ (http://docs.openstack.org/grizzly/bas...) and http://docs.openstack.org/trunk/openstack-compute/install/yum/content/ch_installing-openstack-overview.html (http://docs.openstack.org/trunk/opens...)

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 :)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-06-10 08:53:59 -0500

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

:)

edit flag offensive delete link more
0

answered 2013-05-28 15:12:25 -0500

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 ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-28 14:52:48 -0500

Seen: 76 times

Last updated: Jun 10 '13