Ask Your Question
0

Glance Image Creation problem

asked 2015-02-04 07:52:29 -0500

kildarejoe gravatar image

updated 2015-02-05 12:08:28 -0500

smaffulli gravatar image

I have been creatinga HA enviroment based on this article:

Would anybody have any ideas - is there any standard troubleshooting guide that you can use? From google - it would appear the error is being thrown from the registry service.

http://behindtheracks.com/2014/04/ope...

Just when I get dwon to creating the glance service - I get the following when creating a image,

root@controller1:~# glance image-create --name cirrosRaw --is-public=true --disk-format=raw --container-format=bare < cirros-0.3.1-x86_64-disk.raw
Request returned failure status.
500 Internal Server Error
Failed to upload image 1e8e8d47-befe-484c-9df9-1f86b18e8960
    (HTTP 500)
API log:
2015-02-04 13:45:39.928 29729 DEBUG glance.api.middleware.version_negotiation [-] Determining version of request: OPTIONS / Accept:  process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:44
2015-02-04 13:45:39.928 29729 DEBUG glance.api.middleware.version_negotiation [-] Using url versioning process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:57
2015-02-04 13:45:39.929 29729 DEBUG glance.api.middleware.version_negotiation [-] Unknown version. Returning version choices. process_request /usr/lib/python2.7/dist-packages/glance/api/middleware/version_negotiation.py:64
2015-02-04 13:45:39.929 29729 INFO glance.wsgi.server [-] 172.16.1.23 - - [04/Feb/2015 13:45:39] "OPTIONS / HTTP/1.0" 300 697 0.001705

Registry log:
2015-02-04 13:46:12.593 29712 DEBUG routes.middleware [f71f0d99-252f-4c97-aacf-43d52a5f49c9 - - - - -] Route path: '/', defaults: {'action': u'index', 'controller': <glance.common.wsgi.Resource object at 0x7fefadba5790>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
2015-02-04 13:46:12.593 29712 DEBUG routes.middleware [f71f0d99-252f-4c97-aacf-43d52a5f49c9 - - - - -] Match dict: {'action': u'index', 'controller': <glance.common.wsgi.Resource object at 0x7fefadba5790>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2015-02-04 13:46:12.618 29712 INFO glance.registry.api.v1.images [f71f0d99-252f-4c97-aacf-43d52a5f49c9 - - - - -] Returning image list
2015-02-04 13:46:12.619 29712 INFO glance.wsgi.server [f71f0d99-252f-4c97-aacf-43d52a5f49c9 - - - - -] 172.16.1.23 - - [04/Feb/2015 13:46:12] "OPTIONS / HTTP/1.0" 200 222 0.028079

glance-api.conf: .90 is a VIP on the HAProxy nodes:

[database]
connection = mysql://glance:Password12@172.16.1.90/glance
backend = sqlalchemy

[keystone_authtoken]

auth_uri = http://172.16.0.90:5000/v2.0
identity_uri = http://172.16.1.90:35357
#auth_host = 172.16.1.90
#auth_port = 35357
#auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = Password12

glance-registry.conf file :

[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True

# Show debugging output in logs (sets DEBUG log level output)
debug = True

# Address to bind the registry server
bind_host = 0.0.0.0

# Port the bind the registry server to
bind_port = 9191

log_file = /var/log/glance/registry.log

# Backlog requests when creating socket
backlog = 4096

# Enable Registry API versions individually or simultaneously
#enable_v1_registry = True
#enable_v2_registry = True

api_limit_max = 1000
limit_param_default = 25

[database]
connection = mysql://glance:Password12@172.16.1.90/glance

#backend = sqlalchemy

[keystone_authtoken]
auth_host = 172.16.1.90
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = Password12

HAPROXY config:
listen glance-api 172.16.1.90:9292
        balance source
        option tcpka
        option httpchk
        maxconn 10000
        server controller2 172.16 ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-02-08 05:43:56 -0500

Hi, To upload the image to image service type:

glance image-create --name "cirrosraw" --disk-format raw --container-format bare --is-public True --progress < cirros-0.3.1-x86_64-disk.raw

Then display its attributes using: glance image-list. This creates glance image correctly.

edit flag offensive delete link more
0

answered 2015-02-06 00:36:32 -0500

The 500 error you are seeing will show up in either glance-api.log or glance-registry.log.

Rerun the glance-image create command and then look at the logs to see the 500 error. It will details as to why the api or registry threw the 500.

Post the logs.

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: 2015-02-04 07:52:29 -0500

Seen: 931 times

Last updated: Feb 08 '15