Wallaby Series Release Notes¶
5.0.0¶
New Features¶
The default policies provided by placement have been updated to add support for read-only roles. This is part of a broader community effort to support read-only roles and implement secure, consistent default policies. Refer to the Keystone documentation for more information on the reason for these changes.
Previously, all policies defaulted to
rule:admin_api, which mapped torole:admin. The following rules now default torole:admin and system_scope:allinstead:placement:allocation_candidates:listplacement:allocations:deleteplacement:allocations:listplacement:allocations:manageplacement:allocations:updateplacement:reshaper:reshapeplacement:resource_classes:listplacement:resource_classes:createplacement:resource_classes:showplacement:resource_classes:updateplacement:resource_classes:deleteplacement:resource_providers:createplacement:resource_providers:deleteplacement:resource_providers:listplacement:resource_providers:showplacement:resource_providers:updateplacement:resource_providers:aggregates:listplacement:resource_providers:aggregates:updateplacement:resource_providers:allocations:listplacement:resource_providers:inventories:createplacement:resource_providers:inventories:deleteplacement:resource_providers:inventories:listplacement:resource_providers:inventories:showplacement:resource_providers:inventories:updateplacement:resource_providers:traits:deleteplacement:resource_providers:traits:listplacement:resource_providers:traits:updateplacement:resource_providers:usagesplacement:traits:listplacement:traits:showplacement:traits:updateplacement:traits:delete
The following rule now defaults to
(role:reader and system_scope:all) or role:reader and project_id:%(project_id)sinstead:placement:usages
More information on these policy defaults can be found in the documentation.
The default policy used for the
/usagesAPI,placement:usages, has been updated to allow project users to view information about resource usage for their project, specified using theproject_idquery string parameter. Previously this API was restricted to admins.
Upgrade Notes¶
The default value of
[oslo_policy] policy_fileconfig option has been changed frompolicy.jsontopolicy.yaml. Operators who are utilizing customized or previously generated static policy JSON files (which are not needed by default), should generate new policy files or convert them in YAML format. Use the oslopolicy-convert-json-to-yaml tool to convert a JSON to YAML formatted policy file in backward compatible way.
The deprecated
placementpolicy has now been removed. This policy was used prior to the introduction of granular policies in the nova 18.0.0 (Rocky) release.
The deprecated
[placement]/policy_fileconfiguration option is removed Use the more standard[oslo_policy]/policy_fileconfig option. If you do not override policy with custom rules you will have nothing to do. If you do override the placement default policy then you will need to update your configuration to use the[oslo_policy]/policy_fileconfig option.
Deprecation Notes¶
Use of JSON policy files was deprecated by the
oslo.policylibrary during the Victoria development cycle. As a result, this deprecation is being noted in the Wallaby cycle with an anticipated future removal of support byoslo.policy. As such operators will need to convert to YAML policy files. Please see the upgrade notes for details on migration of any custom policy files.