Ask Your Question
1

glance authorization failed: Errno 22 Invalid argument

asked 2013-07-22 02:55:06 -0600

mmisztal gravatar image

updated 2013-07-23 13:03:46 -0600

smaffulli gravatar image

Hello,

I'm performing an OpenStack manual installation, and I got stuck on the "glance" part.

I believe I've managed to follow the manual to the letter, with minor exceptions such as the IP address.

When verifying the installation I'm getting the following :

[root@localhost images]# glance --debug --verbose --os-username=admin --os-password=secrete --os-tenant-name=demo --os-auth-url=http://localhost:5000/v2.0 image-create --name="CirrOS 0.3.1" --disk-format=qcow2 --container-format bare < cirros-0.3.1-x86_64-disk.img 
Authorization Failed: [Errno 22] Invalid argument

I believe that I've managed to execute the MySQL part correctly :

[root@localhost /]# mysql -u glance -pglance
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 43
Server version: 5.1.66 Source distribution

Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| glance             |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql> use glance
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+------------------+
| Tables_in_glance |
+------------------+
| image_locations  |
| image_members    |
| image_properties |
| image_tags       |
| images           |
| migrate_version  |
+------------------+
6 rows in set (0.00 sec)

mysql>

Also, keystone returns and auth token when authenticating as "glance" :

[root@localhost /]# keystone --os-username=glance --os-password=glance --os-auth-url=http://localhost:5000/v2.0 token-get
+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Property |                                                                                                                                                                                                                                                                                                                                                                                                                                  Value                                                                                                                                                                                                                                                                                                                                                                                                                                   |
+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| expires  |                                                                                                                                                                                                                                                                                                                                                                                                                           2013-07-23T07:52:16Z                                                                                                                                                                                                                                                                                                                                                                                                                           |
|    id    | MIICcAYJKoZIhvcNAQcCoIICYTCCAl0CAQExCTAHBgUrDgMCGjCCAUkGCSqGSIb3DQEHAaCCAToEggE2eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMy0wNy0yMlQwNzo1MjoxNi45NDgwMjEiLCAiZXhwaXJlcyI6ICIyMDEzLTA3LTIzVDA3OjUyOjE2WiIsICJpZCI6ICJwbGFjZWhvbGRlciJ9LCAic2VydmljZUNhdGFsb2ciOiBbXSwgInVzZXIiOiB7InVzZXJuYW1lIjogImdsYW5jZSIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiMDFkNGQ0ZTk4MDQ0NDg2ZGEwZGZjZjc1MWMwZGYzNzciLCAicm9sZXMiOiBbXSwgIm5hbWUiOiAiZ2xhbmNlIn0sICJtZXRhZGF0YSI6IHsiaXNfYWRtaW4iOiAwLCAicm9sZXMiOiBbXX19fTGB-zCB-AIBATBcMFcxCzAJBgNVBAYTAlVTMQ4wDAYDVQQIEwVVbnNldDEOMAwGA1UEBxMFVW5zZXQxDjAMBgNVBAoTBVVuc2V0MRgwFgYDVQQDEw93d3cuZXhhbXBsZS5jb20CAQEwBwYFKw4DAhowDQYJKoZIhvcNAQEBBQAEgYC9-zn2+AR2HjtAr4JR-3s3xlIvWvNUWtvPZRdcHnIGjRXrqcukHGwToNesZ7qYVouBzXXEcraSL826GkECJDpmnfZX1ZHkyISAULoFprYdAl01x9v50jkkxP05DouGczi4u1hsruwuNiVU86XLb0W3qT-z6sysiZAAKuKjghBwQA== |
| user_id  |                                                                                                                                                                                                                                                                                                                                                                                                                     01d4d4e98044486da0dfcf751c0df377                                                                                                                                                                                                                                                                                                                                                                                                                     |
+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

I've tried reinstalling the glance package but I'm getting the same result. I'd apreciate if anyone would let me know what's going on - the --verbose and --debug options in glance aren't much help - in other words, I'm stuck and need assistance.

Regards, Maciek

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-23 01:46:03 -0600

Please verify your credentials in /etc/glance/glance-api.conf and glance-registry.conf (the section regarding keystone_authtoken).

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: 2013-07-22 02:55:06 -0600

Seen: 787 times

Last updated: Jul 23 '13