update/software/setup.cfg
Luis Eduardo Bonatti 23ea803435 Activate-rollback implementation
This commit implements the software deploy active-rollback command.

When deploy abort is executed after deploy activate, this command
is need to follow to deploy host-rollback. It will execute the upgrade
scripts with action activate-rollback. Deploy state is changed to
"activate-rollback-pending" after deploy abort, updated to
"activate-rollback" when activate-rollback is in progress and is
updated to "activate-rollback-done" when it completes with success
and "activate-rollback-failed" otherwise.

This commit also make some changes to the scripts log at software.log
file.

Test Plan:

PASS: activate-rollback with major release completed successfully
PASS: activate-rollback with major release failed
PASS: activate-rollback with major release after command failed
PASS: log related to activate_rollback is registered on software.log

Story: 2010676
Task: 50297

Change-Id: I5ede23229e0217f6eb98e27570be4ff40fdafdd8
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
2024-06-21 13:59:00 +00:00

46 lines
1.3 KiB
INI

[metadata]
name = software
version = attr: software.VERSION
summary = Unified Software Management
description = file: README.rst
author = StarlingX Team
author_email = starlingx-discuss@lists.starlingx.io
home_page = https://www.starlingx.io/
license_files = LICENSE
classifiers =
Environment :: OpenStack
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.9
[options]
packages = find:
python_requires = >=3.9
install_requires =
pycryptodomex
[options.packages.find]
exclude =
software.tests*
[options.package_data]
* =
templates/*
[options.entry_points]
console_scripts =
software-controller-daemon = software.software_controller:main
software-agent = software.software_agent:main
software-migrate = software.utilities.migrate:migrate
software-deploy-update = software.utilities.update_deploy_state:update_state
software-deploy-activate = software.utilities.activate:activate
software-deploy-activate-rollback = software.utilities.activate_rollback:activate_rollback
[wheel]
universal = 1