yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #77433
[Bug 1816647] Re: Unable to dump policy using oslopolicy-policy-generator for glance
Reviewed: https://review.openstack.org/637985
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=517d8d66c3083bdbe85784ade73d85d0b4ddd83b
Submitter: Zuul
Branch: master
commit 517d8d66c3083bdbe85784ade73d85d0b4ddd83b
Author: Cyril Roelandt <cyril@xxxxxxxxxx>
Date: Tue Feb 19 20:32:11 2019 +0100
Add an oslo.policy.enforcer entrypoint
This will allow oslopolicy-policy-generator to generate useful
information about Glance policies.
Change-Id: I3aeeeb67d19832ad72f0ab06c8adc0b018020c71
Closes-Bug: #1816647
** Changed in: glance
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1816647
Title:
Unable to dump policy using oslopolicy-policy-generator for glance
Status in Glance:
Fix Released
Bug description:
Steps to reproduce:
$ cd glance/ # Using the master branch
$ python3 -m venv vvv
(vvv) $ source vvv/bin/activate
(vvv) $ pip install oslo.policy
(vvv) $ pip install -r requirements.txt
(vvv) $ python setup.py install
(vvv) $ oslopolicy-policy-generator --namespace glance
WARNING:stevedore.named:Could not load glance
Traceback (most recent call last):
File "/home/cyril/tmp/oslopo/glance/vvv/bin/oslopolicy-policy-generator", line 10, in <module>
sys.exit(generate_policy())
File "/home/cyril/tmp/oslopo/glance/vvv/lib/python3.7/site-packages/oslo_policy/generator.py", line 338, in generate_policy
_generate_policy(conf.namespace, conf.output_file)
File "/home/cyril/tmp/oslopo/glance/vvv/lib/python3.7/site-packages/oslo_policy/generator.py", line 283, in _generate_policy
enforcer = _get_enforcer(namespace)
File "/home/cyril/tmp/oslopo/glance/vvv/lib/python3.7/site-packages/oslo_policy/generator.py", line 87, in _get_enforcer
enforcer = mgr[namespace].obj
File "/home/cyril/tmp/oslopo/glance/vvv/lib/python3.7/site-packages/stevedore/extension.py", line 326, in __getitem__
return self._extensions_by_name[name]
KeyError: 'glance'
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1816647/+subscriptions
References