filters broken for rbac policy retrieval
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Kevin Benton | ||
python-neutronclient |
Fix Released
|
High
|
Kevin Benton | ||
Liberty |
Fix Released
|
High
|
Unassigned |
Bug Description
I leave a policy in rbac. This policy is created by admin user . I stay in use the same user. And now I can use neutron rbac-update [any values] , then it will return error.
repro
--------------
neutron rbac-list
+------
| id | object_id |
+------
| d14a977d-
+------
neutron rbac-update 2222222
-------
Conflict: RBAC policy on object a80d09eb-
Details: Callback neutron.
log
---------------
2015-11-19 10:05:43.024 ERROR neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
2015-11-19 10:05:43.024 TRACE neutron.
Changed in neutron: | |
assignee: | nobody → zhaobo (zhaobo6) |
tags: | added: api rbac |
tags: |
added: access-control removed: rbac |
tags: | added: rbac |
tags: | removed: rbac |
Changed in neutron: | |
assignee: | zhaobo (zhaobo6) → Kevin Benton (kevinbenton) |
status: | New → In Progress |
summary: |
- update rbac policy with any input when there is only 1 policy in system + filters broken for rbac policy retrieval |
Changed in neutron: | |
importance: | Undecided → High |
Changed in python-neutronclient: | |
importance: | Undecided → High |
Changed in python-neutronclient: | |
milestone: | none → 4.0.0 |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in python-neutronclient: | |
status: | Fix Committed → Fix Released |
This is a combination of bugs. Neutronclient is trying to lookup using the 'name' field which doesn't exist on policies. But even if it were using the correct 'id' field, filtering is broken for UnionModels which RBAC depends on.