Revision history [back]

click to hide/show revision 1
initial version

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

Hi,

I am brand new to OS. I am installing OS by following http://docs.openstack.org/trunk/install-guide/install/yum/content/ 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 are below.

Regards,

Dan

[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 +----------+------------------------------------------------------------------------------------------------------------------------ -+ | Property | Value
| +----------+------------------------------------------------------------------------------------------------------------------------ -+ | email | xxxxxxx.yyyyyyy@zzzzzzzzzzzzzzz.co.uk
| | enabled | True
| | id | 89c332b181744b3fa6c34377def3e650
| | name | admin
| | password | $6$rounds=40000$r3hMuS7ZmU/lXnGz$vPSJmMLXETAGbnHLVcHrDg7I01ZMbW64e0o9tHW.QqqPWr45oIp1nAUYGoWgUz1VspIcA.4uurpgJ8RUwjVjW/ | | tenantId |
| +----------+------------------------------------------------------------------------------------------------------------------------ -+

[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=admin --tenant=admin --role=admin usage: keystone user-role-add --user-id <user-id> --role-id <role-id> [--tenant-id <tenant-id>] keystone user-role-add: error: ambiguous option: --user=admin could match --user-id, --user_id

[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=admin --role=_member_ --tenant=admin usage: keystone user-role-add --user-id <user-id> --role-id <role-id> [--tenant-id <tenant-id>] keystone user-role-add: error: ambiguous option: --user=admin could match --user-id, --user_id

[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=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

click to hide/show revision 2
No.2 Revision

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

Hi,

I am brand new to OS. I am installing OS by following http://docs.openstack.org/trunk/install-guide/install/yum/content/ 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

--tenant_id=admin

Full details are below.details:

Regards,

Dan

[root@centosvm1 ~]# export OS_SERVICE_ENDPOINT=http://centosvm1:35357/v2.0

OS_SERVICE_ENDPOINT=http://centosvm1:35357/v2.0 [root@centosvm1 ~]# keystone user-create --name=admin --pass=xxxxxxxx --email=xxxxxxx.yyyyyyy@zzzzzzzzzzzzzzz.co.uk +----------+------------------------------------------------------------------------------------------------------------------------ -+ | Property | Value
| +----------+------------------------------------------------------------------------------------------------------------------------ -+ | email | xxxxxxx.yyyyyyy@zzzzzzzzzzzzzzz.co.uk
| | enabled | True
| | id | 89c332b181744b3fa6c34377def3e650
| | name | admin
| | password | $6$rounds=40000$r3hMuS7ZmU/lXnGz$vPSJmMLXETAGbnHLVcHrDg7I01ZMbW64e0o9tHW.QqqPWr45oIp1nAUYGoWgUz1VspIcA.4uurpgJ8RUwjVjW/ | | tenantId |
| +----------+------------------------------------------------------------------------------------------------------------------------ -+

[...] [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=admin --tenant=admin --role=admin usage: keystone user-role-add --user-id <user-id> --role-id <role-id> [--tenant-id <tenant-id>] keystone user-role-add: error: ambiguous option: --user=admin could match --user-id, --user_id

+-------------+----------------------------------+ [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)

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=admin --role=_member_ --tenant=admin usage: keystone user-role-add --user-id <user-id> --role-id <role-id> [--tenant-id <tenant-id>] keystone user-role-add: error: ambiguous option: --user=admin could match --user-id, --user_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=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)

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)

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

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

openstack-keystone-2012.2.4-5.el6.noarch