keystone url varification ERROR: 401 - Message: User not found SIMPLE_TOKEN_SECRET is not valid

asked 2016-02-24 00:01:07 -0500

bhupesh gravatar image

I have installed Oracle Openstack (kilo), While list commands and Horizon dashboard works fine, keystone cli and script to verify keystone endpoint give errors.

[root@shopdirect01 tmp]# keystone user-list
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
WARNING: unsupported identity-api-version 3, falling back to 2.0
Authorization Failed: The resource could not be found. (HTTP 404) (Request-ID: req-8ce6a3aa-20f8-46a9-8a3f-d627ba4191f0)
Script Portion
# Connect to keystone url
port = 5000
path = '/v3/auth/tokens'
headers = { 'Content-Type': 'application/json; charset=UTF-8', 'SimpleToken': encrypted_token }
# Auth data to send with null password
data = {"auth": {"identity": {"methods": ["password" ],"password": {"user": {"domain": {"name":"Default"} ,"name":"admin","password":"null" }}}}}

print  "------ ", _("host {host} headers  {headers}").format(host=host,headers=headers), "---------------- "
try:
    response = httppost(host, port, path, json.dumps(data), headers)
except:
    errorMsg.append(_("ERROR: Could not send authentication request to {host}").format(host=host))
    userResponse.append (_("Check that the value of the parameter {param} is correct").format(param='OPENSTACK_HOST_NAME'))
    return errorMsg, userResponse
Script verbose start -----------
+ SIMPLE_TOKEN_SECRET=Rxe0SbAkNEEp7godKy54UQ==
+ SIMPLE_TOKEN_STRING='{"username":"admin","domainName":"Default","projectName":"admin","tenantname":"admin","expiration":"1456272338700","rolesnames":["admin"]}'

------ simpleToken Rxe0SbAkNEEp7godKy54UQ==    ------
----------------  host 10.61.26.22  headers  {'Content-Type': 'application/json; charset=UTF-8', 'SimpleToken': 'ZG057lt45bQVUNFymJKNgsU/bspD8dc+d838EFynurpwZZwlyr0bXVWHaQhvjrsBcam2v0K1IpBmyL+d6jRv94ajL2uBmJmhhXaHVc/fBjHVXMipTN1BbYCEeEk4UObtAPTRFHEXbavCxBuw7Bt/YJEnPQINtPIjpR0r8cI0excTYNgDnRIX8ZmFc76wFO9d'} ----------------


 -  Checking that the parameter SIMPLE_TOKEN_SECRET can be used to authenticate with 10.61.26.22
   -  Status: Failed
   -  Message text: The value of SIMPLE_TOKEN_SECRET must be correct for the host 10.61.26.22

ERROR: 401 - Message: User not found (Disable debug mode to suppress these details.) SIMPLE_TOKEN_SECRET is not valid
   -  User response: Check that the value of the parameter SIMPLE_TOKEN_SECRET is correct
Script verbose End -----------

How I can debug this problem?


[root@shopdirect01 tmp]#  openstack endpoint list |grep identity
| c8fd543056b84247832db85b159439e3 | RegionOne | keystone     | identity            | True    | internal  | http://10.61.26.22:5000/v3               |
| dc36c8d290f74dc78ec13f38b14a6722 | RegionOne | keystone     | identity            | True    | admin     | http://10.61.26.22:35357/v3              |
| 8dcf0e1e5a0b42d8b356c65ea0ee2c29 | RegionOne | keystone     | identity            | True    | public    | http://10.61.26.22:5000/v3               |


 [root@shopdirect01 tmp]# glance image-list
+----+------+-------------+------------------+------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+----+------+-------------+------------------+------+--------+
+----+------+-------------+------------------+------+--------+

[root@shopdirect01 tmp]# nova host-list
+--------------------------------+-------------+----------+
| host_name                      | service     | zone     |
+--------------------------------+-------------+----------+
| shopdirect01.ssa.softlayer.com | scheduler   | internal |
| shopdirect01.ssa.softlayer.com | compute     | nova     |
| shopdirect01.ssa.softlayer.com | conductor   | internal |
| shopdirect01.ssa.softlayer.com | consoleauth | internal |
+--------------------------------+-------------+----------+

[root@shopdirect01 tmp]# keystone --version
/usr/lib/python2.7/site-packages/keystoneclient/shell.py:65: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
  'python-keystoneclient.', DeprecationWarning)
1.3.3

[root@shopdirect01 tmp]#  openstack --version
openstack 1.0.4

[root@shopdirect01 /]# nova-manage  --version
2015.1.3
edit retag flag offensive close merge delete