Unable to upload image to glance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Glance |
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) |
Sai Kiran (saikiran) wrote : | #1 |
Sai,
As per my original post, I got Glance working by simply removing the
comment for the "auth_protocol=
previous mail have to have the comment removed, then the Juno install guide
for Ubuntu 14.04 needs to be updated.
http://
Snippet:
[image: [Note]]Note
Comment out any auth_host, auth_port, and auth_protocol options because the
identity_uri option replaces them.
Thanks,
Rob
On Tue, Dec 9, 2014 at 6:41 AM, Sai Kiran <email address hidden> wrote:
> Rob, we have to uncomment these fields in glance-api.conf and
> glance-
>
> 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.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> Unable to upload image to glance
>
> Status in OpenStack Image Registry and Delivery Service (Glance):
> New
>
> 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@controller]# source ~/openstack-
> [root@controller]# glance image-create --name "cirros-
> --file cirros-
> bare --is-public True --progress
> [======
> Request returned failure status.
> Invalid OpenStack Identity credentials.
>
>
> Keystone Logs:
>
> 2014-12-02 07:52:16.300 11159 INFO eventlet.
> 192.168.122.11 - - [02/Dec/2014 07:52:16] "POST /v2.0/tokens HTTP/1.1" 200
> 1250 0.084692
> 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^
> b^@^@<82>
> <C0>$<C0>^T<C0>" 400 -
> 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>,<C0>
> 127.0.0.1 - - [02/Dec/2014 07:52:17] code 400, message Bad HTTP/0.9
> request type
> ('\x16\
Changed in glance: | |
importance: | Undecided → High |
assignee: | Sai Kiran (saikiran) → Ian Cordasco (icordasc) |
status: | New → Confirmed |
Ian Cordasco (icordasc) wrote : | #3 |
Rob, are you using the correct install guide. For juno the link you provide is 100% correct. For Icehouse, though, you'll run into problems. You should be referencing http://
Changed in glance: | |
importance: | High → Undecided |
status: | Confirmed → Incomplete |
assignee: | Ian Cordasco (icordasc) → nobody |
Vikram (vikramvkhanna) wrote : | #4 |
Previously even I was getting the following error message:-
root@controller
[======
Request returned failure status.
Invalid OpenStack Identity credentials.
Issue solved by changing the following in glance-api.conf & glance-
=======
[keystone_
auth_uri = http://
identity_uri = http://
admin_tenant_name = service
admin_user = XXXXXX
admin_password = XXXXXX
To this:
=========
auth_host = controller
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = XXXXXX
admin_password = XXXXXX
auth_uri = http://
============
=VALIDATION=
============
root@controller
root@controller
glance-registry stop/waiting
glance-registry start/running, process 7550
root@controller
glance-api stop/waiting
glance-api start/running, process 7563
root@controller
root@controller
root@controller
[======
+------
| Property | Value |
+------
| checksum | 51b8afbd2b6d36d
| container_format | bare |
| created_at | 2015-06-08T18:14:12 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 9a8b12c9-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros-0.3.3-x86_64 |
| owner | c3eab5d97c514aa
| protected | False |
| size | 955802 |
| status | active |
| updated_at | 2015-06-08T18:14:12 |
| virtual_size | None |
+------
root@controller
+------
| ID | Name | Disk Format | Container Format | Size | St...
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.