[openstack-dev] [nova][oslo] API extension policy deprecation warnings
Matt Riedemann
mriedemos at gmail.com
Fri Jan 5 18:45:18 UTC 2018
I've noticed that our CI logs have API extension policy deprecation
warnings in them on startup, even though we don't use any non-default
policy rules in our CI runs, so everything is just loaded from policy in
code.
Jan 05 16:58:48.794318 ubuntu-xenial-rax-dfw-0001705089
nova-compute[11289]: DEBUG oslo_policy.policy [None
req-2f69f372-721c-4550-9c28-5fa610a84201 None None] The policy file
policy.json could not be found. {{(pid=11289) load_rules
/usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:548}}
Jan 05 16:58:48.797597 ubuntu-xenial-rax-dfw-0001705089
nova-compute[11289]:
/usr/local/lib/python2.7/dist-packages/oslo_policy/policy.py:623:
UserWarning: Policy
"os_compute_api:os-extended-volumes":"rule:admin_or_owner" was
deprecated for removal in 17.0.0. Reason: Nova API extension concept has
been removed in Pike. Those extensions have their own policies
enforcement. As there is no extensions now,
"os_compute_api:os-extended-volumes" policy which was added for
extensions is not needed any more. Its value may be silently ignored in
the future.
Isn't there a way to not log a warning if the rule isn't actually set in
the policy file? Similar to deprecated config options, you only get the
warning on those if you've set a deprecated config option in the file,
but you don't get the warnings just because they are in code and not
removed yet.
--
Thanks,
Matt
More information about the OpenStack-dev
mailing list