oslo_upgradecheck.upgradecheck.
Code
¶Status codes for the upgrade check command
oslo_upgradecheck.upgradecheck.
Result
(code, details=None)¶Class used for ‘nova-status upgrade check’ results.
The ‘code’ attribute is a Code enum. The ‘details’ attribute is a translated message generally only used for checks that result in a warning or failure code. The details should provide information on what issue was discovered along with any remediation.
oslo_upgradecheck.upgradecheck.
UpgradeCommands
¶Base class for upgrade checks
This class should be inherited by a class in each project that provides
the actual checks. Those checks should be added to the _upgrade_checks
class member so that they are run when the check
method is called.
The subcommands here must not rely on the service object model since they should be able to run on n-1 data. Any queries to the database should be done through the sqlalchemy query language directly like the database schema migrations.
check
()¶Performs checks to see if the deployment is ready for upgrade.
These checks are expected to be run BEFORE services are restarted with new code.
Returns: | Code |
---|
oslo_upgradecheck.upgradecheck.
main
(conf, project, upgrade_command, argv=['-W', '-b', 'html', 'doc/source', 'doc/build/html'], default_config_files=None)¶Simple implementation of main for upgrade checks
This can be used in upgrade check commands to provide the minimum necessary parameter handling and logic.
Parameters: |
|
---|
oslo_upgradecheck.upgradecheck.
register_cli_options
(conf, upgrade_command)¶Set up the command line options.
Adds a subcommand to support ‘upgrade check’ on the command line.
Parameters: |
|
---|
oslo_upgradecheck.upgradecheck.
run
(conf)¶Run the requested command.
Parameters: | conf – An oslo.confg ConfigOpts instance on which the upgrade commands have been previously registered. |
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.