Ghanshyam Mann c705067278 Add common checks for json to yaml policy file migration
As part of community goal[1] for migrating the policy file
from JSON format to YAML we need to add upgrade check to
detect any JSON formatted file. That check needs to be
done in each service side which are deprecating the JSON
format. So to avoid duplicate code, this commit add that
check in oslo_upgradechecks and that can be enabled from
service side during they migrate to YAML format.

Service will enable it like below:

    _upgrade_checks = (
        (_('Policy File JSON to YAML Migration'),
            (common_checks.check_policy_json, {'conf': CONF})),
    )

Also modify the check() method to accept the **kwargs for checks.

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ifa71c20879c964f794a40b981744d95db4ab1602
2020-11-21 19:11:55 +00:00
2020-09-03 14:10:56 +02:00
2020-09-22 11:23:46 +00:00
2018-09-13 16:17:56 +00:00
2018-09-13 15:50:37 +00:00
2019-04-19 19:33:06 +00:00
2018-09-12 17:35:58 +00:00
2020-09-03 14:10:56 +02:00
2018-09-20 15:41:08 +00:00
2020-09-11 21:01:31 +00:00
2018-09-12 17:35:58 +00:00
2018-09-12 17:35:58 +00:00
2020-04-24 08:23:14 -05:00
2020-02-11 18:48:10 +01:00
2020-09-03 14:10:56 +02:00

oslo.upgradecheck

Common code for writing OpenStack upgrade checks

This project contains the common code necessary for writing upgrade checks in OpenStack projects. It includes a module (oslo_upgradecheck.upgradecheck) for the common code as well as an example (oslo_upgradecheck.__main__) of integrating that code into a project.

Description
Common code for writing OpenStack upgrade checks.
Readme 1 MiB
Languages
Python 100%