As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:
1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.
2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.
Also replace policy.json to policy.yaml ref from doc.
[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
Change-Id: I066488c47e1bb6502b27b8677988113f66b9b09b
[openstackdocstheme] overriding configured project name (freezer-api) with
name extracted from the package (freezer-api); you can disable this
behavior with the 'openstackdocs_auto_name' option
Change-Id: Icbe9ceff6ad25dc353a3c574f32b26bc007c7294
writing output... [ 33%] cli/freezer-manager-status
[openstackdocstheme] the 'repository_name' config option has been deprecated
and replaced by the 'openstackdocs_repo_name' option; support for the former
will be dropped in a future release
[openstackdocstheme] the 'bug_project' config option has been deprecated and
replaced by the 'openstackdocs_bug_project' option; support for the former
will be dropped in a future release
[openstackdocstheme] the 'bug_tag' config option has been deprecated and
replaced by the 'openstackdocs_bug_tag' option; support for the former will
be dropped in a future release
writing output... [ 66%] cli/index
writing output... [100%] index
Change-Id: I55903e4f914673aba5ac986b845c2a6504830c19
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build. Remove extra build step
from docs build - api-ref is build separate.
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
Change-Id: I7bb95a8ebd7023046baae30595159254bac25690
Freezer-api is not working as it is expected, returning NULL value
for src_file option in freezer_action's json returned from API.
In other words when user define action via freezer client and define
valid and WORKING action JSON with option path_to_backup
(src_file is not supported by freezer-agent anymore).
In DB we can see backup_metadata is filled correctly,
freezer-scheduler/freezer-agent working correctly as they are reading
backup_metadata. Problem is that API is still returning json with
src_file set tu NULL because src_file is not present in backup_metada,
therefore is not filled in src_file column in action table.
Src_file option was changed to path_to_backup in freezer git repository
below, but API was never changed, this patch is fixing this behaviour.
Freezer's change :
c7f71ff70b
Doc changes in freezer:
https://review.opendev.org/#/c/705003/
Change-Id: I9e74910bd0ff4ad18b830c26ce90770b0dfa107b
oslosphinx theme is being retired as it is not compatible with the
recent Sphinx 2.0 release. This switches docs and release notes to use
the openstackdocstheme instead.
Change-Id: Ifc544d5d4ca9389a3a73d95397c6489fcab9d509
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This adds basic framework for freezer-manager-status upgrade
check commands. For now it has only "check_placeholder"
check implemented.
Real checks can be added to this tool in the future.
Change-Id: I21d4c7ff5e659b332d6692352d996b3216b56bc9
Story: 2003657
Task: 26129
html_last_updated_fmt option is interpreted as a
byte string in python3, causing Sphinx build to break.
This patch makes it utf-8 string.
Changing Popen to .check_output because of 2 reasons:
1. check_output() will raise CalledProcessError if
the called process returns a non-zero return code.
2. For consistency with keystone [1] and cinder [2]
[1] https://review.openstack.org/#/c/457142
[2] https://review.openstack.org/#/c/433081
Change-Id: Ie5fc71b2d9e53a0beef86d411da1d680cccf3dd2
Treat warnings as errors when building documents to early spot problems.
Fix api-ref set up:
* Add openstackdocstheme for api-ref building instead of oslosphinx and
configure it properly.
* Setup api-ref log-a-bug correctly for this project.
* Remove unneeded extra install command
Fix install-guide set up:
* Add tox environment
Fix releasenotes set up:
* Fix conf.py settings to build without errors, remove index, we don't
need it.
fix docs set up:
* Use Sphinx 1.5 warning-is-error option for normal build_sphinx.
* use oslo sphinx
* Remove wrong static path setting
Change-Id: I07ce9db9fdb526ab4b083c65afa99c38bb508146