Openstack services return 401 (glance, cinder, nova), deployment fails to upload cirros image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Critical
|
Andrew Woodward |
Bug Description
{"build_id": "2014-04-
deployment of ubuntu, ha, neutron vlan
Ceph for images, volumes, compute, object
3 controller, 2 compute + ceph
deployment fails to upload cirros image
[5033] 37023a82-
Invalid OpenStack Identity credentials.
root@node-1:~# source openrc
root@node-1:~# cinder create 1
ERROR: Unauthorized (HTTP 401)
root@node-1:~# glance index
ID Name Disk Format Container Format Size
-------
Request returned failure status.
Invalid OpenStack Identity credentials.
root@node-1:~# nova service-list
ERROR: Unauthorized (HTTP 401)
root@node-1:~# nova --debug service-list
REQ: curl -i 'http://
New session created for: (http://
INFO (connectionpool
DEBUG (connectionpool
RESP: [200] CaseInsensitive
RESP BODY: {"access": {"token": {"issued_at": "2014-04-
REQ: curl -i 'http://
New session created for: (http://
INFO (connectionpool
DEBUG (connectionpool
RESP: [401] CaseInsensitive
RESP BODY: Authentication required
REQ: curl -i 'http://
New session created for: (http://
INFO (connectionpool
DEBUG (connectionpool
RESP: [401] CaseInsensitive
RESP BODY: {"error": {"message": "User 3fc0b86a98e7417
DEBUG (shell:777) Unauthorized (HTTP 401)
Traceback (most recent call last):
File "/usr/lib/
OpenStackCo
File "/usr/lib/
args.
File "/usr/lib/
result = cs.services.
File "/usr/lib/
return self._list(url, "services")
File "/usr/lib/
_resp, body = self.api.
File "/usr/lib/
return self._cs_
File "/usr/lib/
raise e
Unauthorized: Unauthorized (HTTP 401)
ERROR: Unauthorized (HTTP 401)
root@node-1:~#
root@node-1:~#
root@node-1:~# cinder --debug create 1
REQ: curl -i http://
DEBUG:cindercli
REQ: curl -i http://
RESP: [200] CaseInsensitive
RESP BODY: {"access": {"token": {"issued_at": "2014-04-
DEBUG:cindercli
RESP BODY: {"access": {"token": {"issued_at": "2014-04-
REQ: curl -i http://
DEBUG:cindercli
REQ: curl -i http://
RESP: [401] CaseInsensitive
RESP BODY: Authentication required
DEBUG:cindercli
RESP BODY: Authentication required
Unauthorized, reauthenticating.
DEBUG:cindercli
REQ: curl -i http://
DEBUG:cindercli
REQ: curl -i http://
RESP: [200] CaseInsensitive
RESP BODY: {"access": {"token": {"issued_at": "2014-04-
DEBUG:cindercli
RESP BODY: {"access": {"token": {"issued_at": "2014-04-
REQ: curl -i http://
DEBUG:cindercli
REQ: curl -i http://
RESP: [401] CaseInsensitive
RESP BODY: Authentication required
DEBUG:cindercli
RESP BODY: Authentication required
ERROR: Unauthorized (HTTP 401)
root@node-1:~# keystone user-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+------
| id | name | enabled | email |
+------
| b7dfa2ab4fe2438
| db253bbe2ef240e
| c407c3ed06f34a3
| e881a072ba1945c
| 32cd94920700421
| bf0226bedb3e434
+------
root@node-1:~# keystone tenant-list
WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
+------
| id | name | enabled |
+------
| 8480f0f980a242a
| 6d7029b9574b414
+------
root@node-1:~#
root@node-
keystone.
keystone.
root@node-
ERROR 1045 (28000): Access denied for user 'keystone'
root@node-
Enter password:
ERROR 1044 (42000): Access denied for user 'keystone'@'%' to database 'oGYpKK2T'
root@node-
ERROR 1045 (28000): Access denied for user 'keystone'
root@node-
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2286
Server version: 5.5.28-
Copyright (c) 2000, 2013, 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> use keystone;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> Bye
root@node-
root@node-
cache keystone.db
root@node-
total 592
drwxr-xr-x 3 keystone keystone 4096 Apr 18 21:56 ./
drwxr-xr-x 58 root root 4096 Apr 18 18:27 ../
drwxr-xr-x 2 root root 4096 Apr 10 14:31 cache/
-rw-r--r-- 1 keystone keystone 584704 Apr 18 21:56 keystone.db
-rw------- 1 keystone keystone 1024 Apr 18 18:24 .rnd
root@node-
root@node-
keystone.
keystone.
root@node-
ERROR 1045 (28000): Access denied for user 'keystone'
root@node-
Enter password:
ERROR 1044 (42000): Access denied for user 'keystone'@'%' to database 'oGYpKK2T'
root@node-
ERROR 1045 (28000): Access denied for user 'keystone'
root@node-
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2286
Server version: 5.5.28-
Copyright (c) 2000, 2013, 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> use keystone;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> Bye
root@node-
root@node-
cache keystone.db
root@node-
total 592
drwxr-xr-x 3 keystone keystone 4096 Apr 18 21:56 ./
drwxr-xr-x 58 root root 4096 Apr 18 18:27 ../
drwxr-xr-x 2 root root 4096 Apr 10 14:31 cache/
-rw-r--r-- 1 keystone keystone 584704 Apr 18 21:56 keystone.db
-rw------- 1 keystone keystone 1024 Apr 18 18:24 .rnd
root@node-
root@node-
keystone.
keystone.
root@node-
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2286
Server version: 5.5.28-
Copyright (c) 2000, 2013, 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> use keystone;
Database changed
mysql> show tables;
Empty set (0.00 sec)
mysql> Bye
root@node-
root@node-
cache keystone.db
root@node-
total 592
drwxr-xr-x 3 keystone keystone 4096 Apr 18 21:56 ./
drwxr-xr-x 58 root root 4096 Apr 18 18:27 ../
drwxr-xr-x 2 root root 4096 Apr 10 14:31 cache/
-rw-r--r-- 1 keystone keystone 584704 Apr 18 21:56 keystone.db
-rw------- 1 keystone keystone 1024 Apr 18 18:24 .rnd
root@node-
the issue appears to be the ini_file provider not putting a space on each side of the = assignment and creating duplicate entries.
Fix proposed to branch: master /review. openstack. org/88739
Review: https:/