Ask Your Question
0

glance image-create fails for basic CentOS install

asked 2014-09-01 08:53:00 -0500

adam__ gravatar image

I have searched and I'm not able to find someone who's had the same error and log file (there are a number which have the same error message but the reason seems to be different) and I don't understand what the error log is saying.

Below is what I enter in the terminal and the output:

glance image-create --name "Test" --disk-format qcow2 --container-format bare --is-public True --progress < cirros-0.3.2-x86_64-disk.img
[=============================>] 100%
Request returned failure status.
HTTPInternalServerError (HTTP 500)

Checking the /var/log/glance/api.log for everything around the time gives the following:

2014-09-01 14:33:19.110 18571 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-09-01 14:33:19.281 18571 INFO glance.registry.client.v1.client [84fdba32-70b3-4384-8a43-2b88bfc51ce8 2fc1c2482b154617b460380a7a2d5227 12d946553d5c48118c754fec10fda5d0 - - -] Registry client request POST /images raised ServerError
2014-09-01 14:33:19.282 18571 INFO glance.wsgi.server [84fdba32-70b3-4384-8a43-2b88bfc51ce8 2fc1c2482b154617b460380a7a2d5227 12d946553d5c48118c754fec10fda5d0 - - -] Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/eventlet/wsgi.py", line 389, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 378, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
 File "/usr/lib/python2.6/site-packages/keystoneclient/middleware/auth_token.py", line 679, in __call__
    return self.app(env, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 378, in __call__
    response = req.get_response(self.application)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1296, in send
    application, catch_exc_info=False)
  File "/usr/lib/python2.6/site-packages/webob/request.py", line 1260, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.6/site-packages/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.6/site-packages/routes/middleware.py", line 131, in __call__
    response = self.app(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 144, in __call__
    return resp(environ, start_response)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 130, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.6/site-packages/webob/dec.py", line 195, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/glance/common/wsgi.py", line 644, in __call__
    request, **action_args)
  File "/usr ...
(more)
edit retag flag offensive close merge delete

Comments

I met the same error, have you fixed it already?

darren-wang gravatar imagedarren-wang ( 2015-01-11 23:14:47 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2014-09-02 03:39:37 -0500

SGPJ gravatar image

updated 2014-09-02 03:48:39 -0500

Yes as S.Ali suggested check the connectivity issues and also make sure the keystone service is properly configured so it authorizes users to upload image.

edit flag offensive delete link more
1

answered 2014-09-02 02:47:21 -0500

The error is due to authorization, or the Connectivity of db. First see whether the glance-api and glance-registry services/daemons are running. If they are not please make them run using the command service glance-api restart and service glance-registry restart. If that doesnot work try this glance-manage version_control 0 and then glance-manage db_sync, this should get you going. see if this may be of some help to you.

edit flag offensive delete link more

Comments

Hi S.Ali, Thanks for your response. I restarted the glance api/registry services (I had to put openstack- in front of the names). I ran glance-manage db_version_control 0 and then glance-manage db_sync. Unfortunately it has not resolved the error. I will read through the link you posted.

adam__ gravatar imageadam__ ( 2014-09-02 03:45:32 -0500 )edit

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: 2014-09-01 08:53:00 -0500

Seen: 556 times

Last updated: Sep 02 '14