Unable to upload image to glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Hello everyone. Details of the problem experienced have been documented at the link below. I'm not sure if this is an error with Glance or with Keystone.
https:/
I installed and configured glance as per the install instructions on the OpenStack website and received the following error when attempting to upload a cirros image:
[root@
[root@
[==
Request returned failure status.
Invalid OpenStack Identity credentials.
Keystone Logs:
2014-12-02 07:52:16.300 11159 INFO eventlet.
127.0.0.1 - - [02/Dec/2014 07:52:16] code 400, message Bad request version ('b\x00\
127.0.0.1 - - [02/Dec/2014 07:52:16] "^V^C^A^
<C0>
127.0.0.1 - - [02/Dec/2014 07:52:16] code 400, message Bad request syntax ('\x16\
127.0.0.1 - - [02/Dec/2014 07:52:16] "^V^C^A^
<C0>
127.0.0.1 - - [02/Dec/2014 07:52:17] code 400, message Bad HTTP/0.9 request type ('\x16\
127.0.0.1 - - [02/Dec/2014 07:52:17] "^V^C^A^
<C0>" 400 -
127.0.0.1 - - [02/Dec/2014 07:52:19] code 400, message Bad request syntax ('\x16\
127.0.0.1 - - [02/Dec/2014 07:52:19] "^V^C^A^
2014-12-02 07:53:20.008 11159 INFO eventlet.
127.0.0.1 - - [02/Dec/2014 07:53:20] code 400, message Bad request syntax ("\x16\
127.0.0.1 - - [02/Dec/2014 07:53:20] "^V^C^A^
<C0>
127.0.0.1 - - [02/Dec/2014 07:53:20] code 400, message Bad HTTP/0.9 request type ('\x16\
127.0.0.1 - - [02/Dec/2014 07:53:20] "^V^C^A^
127.0.0.1 - - [02/Dec/2014 07:53:21] code 400, message Bad HTTP/0.9 request type ('\x16\
127.0.0.1 - - [02/Dec/2014 07:53:21] "^V^C^A^
127.0.0.1 - - [02/Dec/2014 07:53:23] code 400, message Bad request syntax ('\x16\
127.0.0.1 - - [02/Dec/2014 07:53:23] "^V^C^A^
<C0>
glance-api logs:
2014-12-02 07:51:19.287 20032 INFO keystoneclient.
2014-12-02 07:51:19.289 20032 INFO keystoneclient.
2014-12-02 07:51:19.290 20032 INFO glance.wsgi.server [-] Starting 1 workers
2014-12-02 07:51:19.293 20032 INFO glance.wsgi.server [-] Started child 20039
2014-12-02 07:51:19.296 20039 INFO glance.wsgi.server [-] (20039) wsgi starting up on http://
2014-12-02 07:52:16.322 20039 INFO urllib3.
2014-12-02 07:52:16.390 20039 WARNING keystoneclient.
2014-12-02 07:52:16.892 20039 INFO urllib3.
2014-12-02 07:52:16.909 20039 WARNING keystoneclient.
2014-12-02 07:52:17.911 20039 INFO urllib3.
2014-12-02 07:52:17.936 20039 WARNING keystoneclient.
2014-12-02 07:52:19.939 20039 INFO urllib3.
2014-12-02 07:52:19.964 20039 ERROR keystoneclient.
2014-12-02 07:52:19.964 20039 WARNING keystoneclient.
2014-12-02 07:52:19.964 20039 INFO keystoneclient.
2014-12-02 07:52:19.972 20039 INFO glance.wsgi.server [-] 192.168.122.11 - - [02/Dec/2014 07:52:19] "POST /v1/images HTTP/1.1" 401 381 3.662323
I was caugth offguard by the SSL errors as I thought the authentication was supposed to take place over HTTP. The documentation explicitely states in a note in the glance install section that the following lines can be commented out in glance-api.conf and glance-
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
It's stated that the auth_uri and identiry_uri replace the lines above. Just for grins, I uncommented the auth_protocol line and was subsequently able to create a cirros image with glance.
[root@
glance-
glance-
glance-
glance-
glance-
glance-
glance-
glance-
--
glance-
glance-
glance-
glance-
glance-
glance-
glance-
glance-
[root@
service glance-registry restart ; service glance-api restart
glance-registry stop/waiting
glance-registry start/running, process 20377
glance-api stop/waiting
glance-api start/running, process 20387
[root@
[root@
glance image-create --name "cirros-
[==
+--
| Property | Value |
+--
| checksum | 133eae9fb1c98f4
| container_format | bare |
| created_at | 2014-12-02T15:06:32 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 2d90376a-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.3-x86_64 |
| owner | None |
| protected | False |
| size | 13200896 |
| status | active |
| updated_at | 2014-12-02T15:06:33 |
| virtual_size | None |
+--
[root@
I'm not sure if this is a (known) bug in glance/keystone or if the documentation is incorrect. Glance is now working for me, just not sure whose attention is needed here or if this is a known bug. Thanks in advance for any assistance.
Changed in glance: | |
assignee: | nobody → Sai Kiran (saikiran) |
Changed in glance: | |
importance: | Undecided → High |
assignee: | Sai Kiran (saikiran) → Ian Cordasco (icordasc) |
status: | New → Confirmed |
Rob, we have to uncomment these fields in glance-api.conf and glance- registry. conf which are given below,
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
and we must specify the controller Ip address to the auth_host ( like auth_host = 192.168.2.100 ) , after that restart glance services and please check your credentials once.