Keystone v3 cannot list neutron ports and policies with bad admin context
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
In Progress
|
Medium
|
Jakub Pavlik | ||
R2.20 |
Fix Committed
|
Medium
|
Jakub Pavlik | ||
R2.22.x |
Fix Committed
|
Medium
|
Jakub Pavlik |
Bug Description
Member from non-default domain is not able run:
neutron port-list
neutron subnet-create
It is caused by changes in calling admin role context in Neutron Liberty:
> /usr/lib/
-> super(Context, self)._
(Pdb) p kwargs
{'tenant_id': None, 'is_admin': True, 'overwrite': False, 'user_id': None}
(Pdb) n
> /usr/lib/
-> self._session = None
(Pdb)
--Return--
> /usr/lib/
-> self._session = None
(Pdb)
--Return--
> /usr/lib/
-> overwrite=False)
(Pdb) list
134 @removals.
135 def get_admin_
136 return Context(
137 tenant_id=None,
138 is_admin=True,
139 -> overwrite=False)
140
I requires modification in vnc_openstack/
- role = string.
+ if 'roles' not in context and context[
+ role = 'admin'
+ else:
+ role = string.
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
status: | New → In Progress |
assignee: | nobody → Jakub Pavlik (pavlk-jakub) |
Changed in juniperopenstack: | |
importance: | Undecided → Medium |
Review in progress for https:/ /review. opencontrail. org/17844
Submitter: Jakub Pavlik (<email address hidden>)