Error keystone user-role-add (HTTP 404) Icehouse
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
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.
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?
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.