Ask Your Question
0

Glance Error 400 by uploading an image

asked 2017-03-03 06:17:54 -0500

minimike gravatar image

Hi there I get an strange error response by uploading an image in glance

openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public Error response: Error code 400.: Message: Bad request syntax ('0').: Error code explanation: 400 = Bad request syntax or unsupported method. (HTTP 400)

cat /var/log/glance/glance-api.log 2017-03-03 12:31:38.311 31451 INFO glance.common.wsgi [-] Starting 1 workers 2017-03-03 12:31:38.408 31451 INFO glance.common.wsgi [-] Started child 31586 2017-03-03 12:31:38.402 31586 INFO eventlet.wsgi.server [-] (31586) wsgi starting up on http://0.0.0.0:9292 2017-03-03 12:46:53.710 31451 INFO glance.common.wsgi [-] Removed dead child 31586 2017-03-03 12:46:53.752 31451 INFO glance.common.wsgi [-] Started child 31908 2017-03-03 12:46:53.759 31908 INFO eventlet.wsgi.server [-] (31908) wsgi starting up on http://0.0.0.0:9292 2017-03-03 12:46:53.764 31908 INFO eventlet.wsgi.server [-] (31908) wsgi exited, is_accepting=True 2017-03-03 12:46:53.765 31908 INFO glance.common.wsgi [-] Child 31908 exiting normally 2017-03-03 12:46:55.681 31918 INFO glance.common.wsgi [-] Starting 1 workers 2017-03-03 12:46:55.729 31918 INFO glance.common.wsgi [-] Started child 31932 2017-03-03 12:46:55.734 31932 INFO eventlet.wsgi.server [-] (31932) wsgi starting up on http://0.0.0.0:9292 2017-03-03 12:47:47.414 31932 INFO eventlet.wsgi.server [req-b42b3e3f-51bf-4414-a371-1b4e51547edf b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:47:47] "GET /v2/schemas/image HTTP/1.1" 200 4356 0.398836 2017-03-03 12:47:47.687 31932 INFO eventlet.wsgi.server [req-0b9b8b23-d62c-445f-93a1-691dadf8f211 b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:47:47] "POST /v2/images HTTP/1.1" 201 851 0.259572 2017-03-03 12:47:47.893 31932 INFO eventlet.wsgi.server [req-fe212410-9f4c-4611-a75a-cddbcc42cb94 b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:47:47] "PUT /v2/images/6665bed2-117b-4283-ab90-8cbf9cf9fd20/file HTTP/1.1" 204 213 0.201710 2017-03-03 12:51:27.063 31932 INFO eventlet.wsgi.server [req-54baa56d-bd4b-48e4-8c05-02dcabfefe32 b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:51:27] "GET /v2/images HTTP/1.1" 200 867 0.237095 2017-03-03 12:51:47.046 31932 INFO eventlet.wsgi.server [req-18e79ead-0171-45e8-89fa-81a52b80433a b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:51:47] "GET /v2/images/6665bed2-117b-4283-ab90-8cbf9cf9fd20 HTTP/1.1" 200 798 0.229942 2017-03-03 12:51:47.052 31932 INFO eventlet.wsgi.server [req-c65ed983-3a6b-442b-8eb8-741196703bd2 b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:51:47] "GET /v2/schemas/image HTTP/1.1" 200 4356 0.004787 2017-03-03 12:51:47.199 31932 INFO eventlet.wsgi.server [req-52286996-9a36-4fe1-a79f-a663832af1ff b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:51:47] "DELETE /v2/images/6665bed2-117b-4283-ab90-8cbf9cf9fd20 HTTP/1.1" 204 213 0.145151 2017-03-03 12:51:57.311 31932 INFO eventlet.wsgi.server [req-85d5f92a-fa51-41e8-8708-ba7355332f95 b8f8aaa9d90c422093a344f08643c36a 99c6716673d3413c881cb6c66a3bf88f - - -] 172.16.64.2 - - [03/Mar/2017 12:51:57] "GET /v2/schemas/image HTTP/1.1" 200 4356 0.218031 2017-03-03 12 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-03-20 12:26:13 -0500

minimike gravatar image

I have found the reason. Openstack was deployed with an PostgreSQL-backend. The where al lot of wrong and non compatible inserts and selects inside my postgresql.log. So far I have switched to Percona to use it as database-backend.

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

Stats

Asked: 2017-03-03 06:17:54 -0500

Seen: 75 times

Last updated: Mar 20