Glance registry service fails to start ubuntu 12.04 + Foslom

asked 2012-10-02 15:00:54 -0500

dafridgie gravatar image

I'm trying to get a lab instance of Folsom up and running in my lab, I'm following the documentation here http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ (http://docs.openstack.org/trunk/opens...)

I have identify configured fine, glance did not error during install, but when i try and start glance, I get these entries in /var/log/glance/registry.log


2012-10-02 15:46:52 1871 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:06 1883 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:06 1889 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:06 1895 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:06 1901 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1907 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1913 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1919 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1925 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1931 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:07 1937 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 2012-10-02 15:47:08 1943 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185

the service then stops

if i try and run glance index i get this error :/home/inteladmin# glance index ID Name Disk Format Container Format Size


Request returned failure status. None HTTPInternalServerError (HTTP 500)

the api log shows the following: 2012-10-02 15:56:21 1125 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: GET /v1/images/detail Accept: process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:45 2012-10-02 15:56:21 1125 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:58 2012-10-02 15:56:21 1125 DEBUG glance.api.middleware.version_negotiation [-] Matched version: v1 process_request /usr ...

(more)
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-02 15:21:24 -0500

dafridgie gravatar image

Ok, update I ran glance registry in debug mode and got this reponse

root@iswubu33:/etc/glance# 2012-10-02 16:12:47 2056 DEBUG glance.common.config [-] Loading glance-registry from /etc/glance/glance-registry-paste.ini load_paste_app /usr/lib/python2.7/dist-packages/glance/common/config.py:185 ERROR: Unable to load glance-registry from configuration file /etc/glance/glance-registry-paste.ini. Got: LookupError("No section 'glance-registry' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/glance/glance-registry-paste.ini",) ERROR: Could not bind to 172.28.137.65:9292 after trying for 30 seconds

so i then edited glance-registry-paste.ini as follows:

Use this pipeline for no auth - DEFAULT

[pipeline:glance-registry] pipeline = registryapp <<<< moved this

[pipeline:glance-registry-keystone] pipeline = authtoken auth-context context <<<<< from here

[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 = keystone.middleware.auth_token:filter_factory admin_tenant_name = service admin_user = glance admin_password = glance

now the registry service starts

however, glance index still returns errors

root@iswubu33:/etc/glance# glance index ID Name Disk Format Container Format Size


/usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req /usr/lib/python2.7/dist-packages/webob/dec.py:142: DeprecationWarning: Response.request and Response.environ are deprecated req.response.request = req Request returned failure status. None HTTPInternalServerError (HTTP 500)

anyone have the same problem ?

edit flag offensive delete link more
0

answered 2012-10-16 15:19:46 -0500

dafridgie gravatar image

thanks Anne, my problem has been resolved via a packaging update by Ubuntu, looks like there was some packaging issues that were resolved

edit flag offensive delete link more
0

answered 2012-10-10 16:00:29 -0500

annegentle gravatar image

Hi Steve, I'm updating the documentation now as I believe the conf and ini files are different for Folsom. I'm using these as the starting point: https://github.com/openstack/glance/t...

Sorry this is not quite the answer - I'm having a different problem where glance registry can't read the glance-registry-paste.ini file.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-10-02 15:00:54 -0500

Seen: 73 times

Last updated: Oct 16 '12