Created attachment 759672 [details] Patch will adds a third attempt to resolve the string as a string Description of problem: When resolving the user positional argument to the "user-get" command, keystoneclient uses the following logic: # first try to get entity as integer id try: if isinstance(name_or_id, int) or name_or_id.isdigit(): return manager.get(int(name_or_id)) except exceptions.NotFound: pass # now try to get entity as uuid try: uuid.UUID(str(name_or_id)) return manager.get(name_or_id) except (ValueError, exceptions.NotFound): pass When using a readonly LDAP server as the identity store, userids are strings instead of integers or UUIDs. Thus user lookups fail with a exceptions.NotFound exception. [root@virt-three keystone]# keystone user-list +------------+--------------------+---------+---------------------------+ | id | name | enabled | email | +------------+--------------------+---------+---------------------------+ | admin | Administrator | False | | ... | rdo-admin | RDO Administrator | True | root.redhat.com | +------------+--------------------+---------+---------------------------+ [root@virt-three keystone]# keystone user-get rdo-admin No user with a name or ID of 'rdo-admin' exists. Version-Release number of selected component (if applicable): python-keystoneclient-0.2.3-4.el6.noarch How reproducible: 100% Steps to Reproduce: [root@virt-three keystone]# keystone user-list +------------+--------------------+---------+---------------------------+ | id | name | enabled | email | +------------+--------------------+---------+---------------------------+ | admin | Administrator | False | | ... | rdo-admin | RDO Administrator | True | root.redhat.com | +------------+--------------------+---------+---------------------------+ [root@virt-three keystone]# keystone user-get rdo-admin Actual results: No user with a name or ID of 'rdo-admin' exists. Expected results: +----------+---------------------------+ | Property | Value | +----------+---------------------------+ | email | root.redhat.com | | enabled | True | | id | rdo-admin | | name | RDO Administrator | +----------+---------------------------+ Additional info: Filed upstream as https://bugs.launchpad.net/python-keystoneclient/+bug/1189933
Fix is approved upstream and will be merged shortly.
Fix has been merged upstream. Rather than backporting, I'm going to wait for the next keystoneclient release (0.3.2 + 1) and package that one. If that isn't released soon enough, I'm gonna backport anyway. If you think this is grave enough for immediate fix, please let me know.
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions
I think this can be closed now? :)