utils.find_resource return resource not depends on query
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned | ||
python-openstackclient |
Fix Released
|
Undecided
|
Terry Howe |
Bug Description
When I have one group, the query /groups?
{u'groups': [{u'id': u'6ce42989b4ae4
Even though the query did not match the query string.
I have defined only one resource of keystone (one user and one group), then I try command which call method utils.find_
This resource would be returned by utils.find_resource not depends on what was specified as name or id.
Examples:
(.venv)
| 54fbed994dc8461
(.venv)
| 54fbed994dc8461
openstack group list --role --os-identity-
| 54fbed994dc8461
So, utils.find_resource tries to find user/group with incorrect names but doesn't fail in case when only one resource of such type is specified. But it should raise an exception that it can't find resource with specified name or ID.
I tried this also with nova and cinder commands, it works correct with this services.
Changed in python-openstackclient: | |
assignee: | nobody → Terry Howe (thowe-g) |
Changed in python-openstackclient: | |
status: | New → In Progress |
Changed in python-openstackclient: | |
status: | Invalid → Confirmed |
Changed in keystone: | |
status: | Incomplete → Invalid |
Changed in python-openstackclient: | |
assignee: | nobody → Terry Howe (thowe-g) |
Changed in python-openstackclient: | |
milestone: | none → m4 |
Changed in python-openstackclient: | |
status: | Fix Committed → Fix Released |
Problem original opened as openstack client issue, but seems to be a problem with keystone. I've updated the description.