2015-07-09 06:34:10 |
Benoît Knecht |
bug |
|
|
added bug |
2015-07-09 06:37:43 |
Benoît Knecht |
description |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'. |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
{{{
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
}}}
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
{{{
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
}}} |
|
2015-07-09 06:47:44 |
Benoît Knecht |
description |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
{{{
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
}}}
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
{{{
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
}}} |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
<pre>
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
</pre>
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
<pre>
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
</pre> |
|
2015-07-09 06:48:16 |
Benoît Knecht |
description |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
<pre>
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
</pre>
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
<pre>
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
</pre> |
Using Identity API v3, with a user called "username" in the "default" domain, and a user called "username" in the "admin" domain, the following command fails:
(openstack) role assignment list --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain=None, effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}3ccfd4004fb1b6c698457ee3c74f8c177cde51b4"
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 06:08:20 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'.
I would have expected that command to list the role assignments of the users called "username" in all the domains. But even when trying to restrict the search to a specific domain, the command fails:
(openstack) role assignment list --domain admin --user username
INFO: openstackclient.shell command: role assignment list -> openstackclient.identity.v3.role_assignment.ListRoleAssignment
DEBUG: openstackclient.identity.v3.role_assignment.ListRoleAssignment take_action(Namespace(columns=[], domain='admin', effective=False, formatter='table', group=None, max_width=0, project=None, quote_mode='nonnumeric', role=None, user='username'))
DEBUG: keystoneclient.session REQ: curl -g -i -X GET https://openstack.example.com:35357/v3/users?name=username -H "User-Agent: python-keystoneclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}951a86ffc52c1cb4b9be7a374ad404e3151e04b3"
INFO: requests.packages.urllib3.connectionpool Resetting dropped connection: openstack.example.com
DEBUG: requests.packages.urllib3.connectionpool "GET /v3/users?name=username HTTP/1.1" 200 663
DEBUG: keystoneclient.session RESP: [200] date: Thu, 09 Jul 2015 04:55:51 GMT vary: X-Auth-Token content-length: 663 content-type: application/json x-distribution: Ubuntu
RESP BODY: {"users": [{"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/f3cf0a620733fd85456cdf8c50e1d9e9"}, "domain_id": "default", "enabled": true, "email": "username@example.com", "id": "f3cf0a620733fd85456cdf8c50e1d9e9"}, {"name": "username", "links": {"self": "https://openstack.example.com:5000/v3/users/76667091c17e533febe58b8cea318a38"}, "domain_id": "4015bc9ee91e437d90df83fb64fbbe31", "enabled": true, "email": "username@example.com", "id": "76667091c17e533febe58b8cea318a38"}], "links": {"self": "https://openstack.example.com:5000/v3/users?name=username", "previous": null, "next": null}}
ERROR: openstack More than one user exists with the name 'username'.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 314, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/display.py", line 92, in run
column_names, data = self.take_action(parsed_args)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/v3/role_assignment.py", line 86, in take_action
parsed_args.user,
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 73, in find_user
users.User, domain_id=domain_id)
File "/usr/lib/python2.7/site-packages/openstackclient/identity/common.py", line 105, in _find_identity_resource
name_or_id, **kwargs)
File "/usr/lib/python2.7/site-packages/openstackclient/common/utils.py", line 96, in find_resource
raise exceptions.CommandError(msg)
CommandError: More than one user exists with the name 'username'.
DEBUG: openstackclient.shell clean_up ListRoleAssignment: More than one user exists with the name 'username'.
More than one user exists with the name 'username'. |
|
2015-07-16 06:41:00 |
heha |
python-openstackclient: assignee |
|
heha (zhanghanqun) |
|
2015-07-16 06:41:41 |
heha |
python-openstackclient: assignee |
heha (zhanghanqun) |
|
|
2015-08-01 01:13:54 |
Lin Hua Cheng |
python-openstackclient: status |
New |
Confirmed |
|
2015-08-01 01:13:58 |
Lin Hua Cheng |
python-openstackclient: assignee |
|
Lin Hua Cheng (lin-hua-cheng) |
|
2015-08-01 01:56:45 |
OpenStack Infra |
python-openstackclient: status |
Confirmed |
In Progress |
|
2015-08-01 15:42:53 |
OpenStack Infra |
python-openstackclient: status |
In Progress |
Fix Committed |
|
2015-08-06 19:19:32 |
Steve Martinelli |
python-openstackclient: importance |
Undecided |
High |
|
2015-08-11 15:23:19 |
Doug Hellmann |
python-openstackclient: status |
Fix Committed |
Fix Released |
|
2015-08-11 15:23:19 |
Doug Hellmann |
python-openstackclient: milestone |
|
1.6.0 |
|