oslopolicy-policy-generator does not work for neutron in Rocky
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Nate Johnston | ||
oslo.policy |
Fix Released
|
Low
|
Ben Nemec |
Bug Description
The oslopolicy-
[centos@persist devstack]$ oslopolicy-
WARNING:
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
_generate_
File "/usr/lib/
enforcer = _get_enforcer(
File "/usr/lib/
enforcer = mgr[namespace].obj
File "/usr/lib/
return self._extension
KeyError: 'neutron'
Changed in oslo.policy: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in neutron: | |
status: | New → Fix Released |
The problem is that Neutron already includes the items that constituted the fix for the previous bug [1] - the get_enforcer() method is already defined in neutron/policy.py, and setup.cfg has get_enforcer defined.
[1] https:/ /review. openstack. org/530828