Glance registry service fails to start ubuntu 12.04 + Foslom

Asked by steve A on 2012-10-02

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/

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/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:70
2012-10-02 15:56:21 1125 DEBUG glance.api.middleware.version_negotiation [-] new uri /v1/images/detail process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:71
2012-10-02 15:56:21 DEBUG glance.api.policy [6a50a200-eb78-4eb9-88da-fb31f19b343d 0bab1d02fee141799787115a8bc219e4 2cea4cff2003475f954b031049dfd66c] Loaded policy rules: {u'default': [], u'manage_image_cache': [[u'role:admin']]} load_rules /usr/lib/python2.7/dist-packages/glance/api/policy.py:63
2012-10-02 15:56:21 DEBUG glance.common.client [6a50a200-eb78-4eb9-88da-fb31f19b343d 0bab1d02fee141799787115a8bc219e4 2cea4cff2003475f954b031049dfd66c] Constructed URL: http://172.28.137.65:9191/images/detail?limit=10 _construct_url /usr/lib/python2.7/dist-packages/glance/common/client.py:464
2012-10-02 15:56:21 ERROR glance.registry.client [6a50a200-eb78-4eb9-88da-fb31f19b343d 0bab1d02fee141799787115a8bc219e4 2cea4cff2003475f954b031049dfd66c] Registry request GET /images/detail Exception
2012-10-02 15:56:21 1125 TRACE glance.registry.client Traceback (most recent call last):
2012-10-02 15:56:21 1125 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/registry/client.py", line 89, in do_request
2012-10-02 15:56:21 1125 TRACE glance.registry.client action, **kwargs)
2012-10-02 15:56:21 1125 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 63, in wrapped
2012-10-02 15:56:21 1125 TRACE glance.registry.client return func(self, *args, **kwargs)
2012-10-02 15:56:21 1125 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 444, in do_request
2012-10-02 15:56:21 1125 TRACE glance.registry.client headers=headers)
2012-10-02 15:56:21 1125 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 80, in wrapped
2012-10-02 15:56:21 1125 TRACE glance.registry.client return func(self, method, url, body, headers)
2012-10-02 15:56:21 1125 TRACE glance.registry.client File "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 589, in _do_request
2012-10-02 15:56:21 1125 TRACE glance.registry.client raise exception.ClientConnectionError(e)
2012-10-02 15:56:21 1125 TRACE glance.registry.client ClientConnectionError: [Errno 111] Connection refused
2012-10-02 15:56:21 1125 TRACE glance.registry.client

I've checked credentials multiple times in all the locations specified in the documentation and have also dumped and recreated the database without success

any guidance or help greatly appreciated

Question information

Language:
English Edit question
Status:
Solved
For:
Glance Edit question
Assignee:
No assignee Edit question
Solved by:
steve A
Solved:
2012-10-16
Last query:
2012-10-16
Last reply:
steve A (dafridgie) said : #1

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 ?

Anne Gentle (annegentle) said : #2

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/tree/master/etc

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.

steve A (dafridgie) said : #3

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