nova-manage still shows deprecation
Bug #1900451 reported by
Thomas Goirand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Medium
|
Ghanshyam Mann |
Bug Description
When doing something like this:
su nova -s /bin/sh -c "nova-manage cell_v2 discover_hosts"
I see lots of deprecation warnings. There should be a way to disable the warnings, or having them off by default. Discussion should be open on how to fix this.
tags: | added: policy |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
I've switch Nova in Victoria to using yaml file by default, stored in:
/etc/nova/ policy. d/00_default_ policy. yaml
In fact, I've switched absolutely all Debian packages to use yaml files this way, and generating whatever oslopolicy- sample- generator outputs. Then, surprisingly, here's the output of nova-manage:
controller-1>_ ~ # su nova -s /bin/sh -c "nova-manage cell_v2 discover_hosts" python3/ dist-packages/ oslo_policy/ policy. py:703: UserWarning: Policy "rule:admin_ api":"is_ admin:True" was deprecated in 21.0.0 in favor of "system_ admin_api" :"role: admin and system_scope:all". Reason: warn(deprecated _msg) python3/ dist-packages/ oslo_policy/ policy. py:703: UserWarning: Policy "rule:admin_ api":"is_ admin:True" was deprecated in 21.0.0 in favor of "system_ reader_ api":"role: reader and system_scope:all". Reason: warn(deprecated _msg) python3/ dist-packages/ oslo_policy/ policy. py:703: UserWarning: Policy "rule:admin_ api":"is_ admin:True" was deprecated in 21.0.0 in favor of "project_ admin_api" :"role: admin and project_ id:%(project_ id)s". Reason: warn(deprecated _msg) python3/ dist-packages/ oslo_policy/ policy. py:703: UserWarning: Policy "rule:admin_ or_owner" :"is_admin: True or project_ id:%(project_ id)s" was deprecated in 21.0.0 in favor of "project_ member_ api":"role: member and project_ id:%(project_ id)s". Reason: warn(deprecated _msg) python3/ dist-packages/ oslo_policy/ policy. py:703: UserWarning: Policy "rule:admin_ or_owner" :"is_admin: True or project_ id:%(project_ id)s" was deprecated in 21.0.0 in favor of "system_ admin_or_ owner": "rule:system_ admin_api or rule:project_ member_ api". Reason:
/usr/lib/
Nova API policies are introducing new default roles with scope_type
capabilities. Old policies are deprecated and silently going to be ignored
in nova 23.0.0 release.
. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
warnings.
/usr/lib/
Nova API policies are introducing new default roles with scope_type
capabilities. Old policies are deprecated and silently going to be ignored
in nova 23.0.0 release.
. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
warnings.
/usr/lib/
Nova API policies are introducing new default roles with scope_type
capabilities. Old policies are deprecated and silently going to be ignored
in nova 23.0.0 release.
. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
warnings.
/usr/lib/
Nova API policies are introducing new default roles with scope_type
capabilities. Old policies are deprecated and silently going to be ignored
in nova 23.0.0 release.
. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
warnings.
/usr/lib/
Nova API policies are introducing new default roles with scope_type
capabilities. Old policies are deprecated and silently going to be ignored
in nova 23.0.0 release.
. Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into ...