Error keystone user-role-add (HTTP 404) Icehouse

asked 2014-04-25 10:13:48 -0500

Dan gravatar image

updated 2014-04-25 13:20:45 -0500

larsks gravatar image

I am brand new to OS. I am installing OS by following http://docs.openstack.org/trunk/insta... on CentOS.

I have seen a few errors which I have got past but I cannot see how to correct this command?

# keystone user-role-add --user_id=admin --role_id=_member_ --tenant_id=admin

Full details:

[root@centosvm1 ~]# export OS_SERVICE_ENDPOINT=http://centosvm1:35357/v2.0
[root@centosvm1 ~]# keystone user-create --name=admin --pass=xxxxxxxx --email=xxxxxxx.yyyyyyy@zzzzzzzzzzzzzzz.co.uk
[...]

[root@centosvm1 ~]# keystone role-create --name=admin
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|    id    | c8ef6aed8720482795f46ebf2d5d616c |
|   name   |              admin               |
+----------+----------------------------------+


[root@centosvm1 ~]# keystone tenant-create --name=admin --description="Admin Tenant"
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |           Admin Tenant           |
|   enabled   |               True               |
|      id     | ad56b383638f44478ebb49d96518df6a |
|     name    |              admin               |
+-------------+----------------------------------+


[root@centosvm1 ~]# keystone user-role-add --user-id=admin --tenant-id=admin --role-id=admin
Unable to communicate with identity service: {"error": {"message": "Could not find tenant: admin", "code": 404, "title": "Not Found"}}. (HTTP 404)

[root@centosvm1 ~]# keystone tenant-list
+----------------------------------+-------+---------+
|                id                |  name | enabled |
+----------------------------------+-------+---------+
| ad56b383638f44478ebb49d96518df6a | admin |   True  |
+----------------------------------+-------+---------+


[root@centosvm1 ~]# keystone user-list
+----------------------------------+-------+---------+------------------------------+
|                id                |  name | enabled |            email             |
+----------------------------------+-------+---------+------------------------------+
| 89c332b181744b3fa6c34377def3e650 | admin |   True  | xxxxxxx.yyyyyyy@zzzzzz.co.uk |
+----------------------------------+-------+---------+------------------------------+


[root@centosvm1 ~]# keystone role-list
+----------------------------------+-------+
|                id                |  name |
+----------------------------------+-------+
| c8ef6aed8720482795f46ebf2d5d616c | admin |
+----------------------------------+-------+

[root@centosvm1 ~]# keystone user-role-add --user-id 89c332b181744b3fa6c34377def3e650 --tenant-id ad56b383638f44478ebb49d96518df6a --role-id c8ef6aed8720482795f46ebf2d5d616c


[root@centosvm1 ~]# keystone user-role-add --user-id=admin --role-id=_member_ --tenant-id=admin
Unable to communicate with identity service: {"error": {"message": "Could not find tenant: admin", "code": 404, "title": "Not Found"}}. (HTTP 404)


[root@centosvm1 ~]# keystone user-role-add --user-id 89c332b181744b3fa6c34377def3e650 --tenant-id ad56b383638f44478ebb49d96518df6a --role-id _member_
Unable to communicate with identity service: {"error": {"message": "Could not find role: _member_", "code": 404, "title": "Not Found"}}. (HTTP 404)

OS Environment

[root@centosvm1 ~]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.5 (Final)
Release:        6.5
Codename:       Final


[root@centosvm1 ~]# rpm -qa | grep keystone
python-keystone-2012.2.4-5.el6.noarch
python-keystoneclient-0.2.0-3.el6.noarch
openstack-keystone-2012.2.4-5.el6.noarch
edit retag flag offensive close merge delete

Comments

It looks like you're using a fairly old version of OpenStack. I'm not familiar with what issues may have existed in the Folsom release. Are you able to upgrade to a more recent release? There are numerous bug fixes and new features that make it more pleasant to work with OpenStack.

larsks gravatar imagelarsks ( 2014-04-25 13:23:31 -0500 )edit

I've followed the install documentation for icehouse, would this not automatically retrieve the appropriate RPM for the version of OpenStack? Is there a repository of OpenStack versions?

Dan gravatar imageDan ( 2014-04-28 06:05:04 -0500 )edit

The version of keystone displayed in the output of rpm -qa | grep keystone is the Folsom version. If you're following the Icehouse install guide it sounds like you're pointing at the wrong repository.

larsks gravatar imagelarsks ( 2014-04-28 08:51:31 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-04-29 07:40:02 -0500

Dan gravatar image

I started the install from scratch again, this time it is working successfully. It appears that my RPM's were from 2012 rather than 2014 so did not match the documentation.

edit flag offensive delete link more
0

answered 2014-04-25 18:37:23 -0500

9lives gravatar image

updated 2014-04-25 18:38:01 -0500

This command you issued should be work and you can check it in db.

[`root@centosvm1 ~]# keystone user-role-add --user-id 89c332b181744b3fa6c34377def3e650 --tenant-id ad56b383638f44478ebb49d96518df6a --role-id c8ef6aed8720482795f46ebf2d5d616c`

Besides this is the bug might related to your question https://bugs.launchpad.net/python-key...

Hope that helps!

Vic

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-25 10:13:48 -0500

Seen: 1,955 times

Last updated: Apr 29 '14