update/cgcs-patch/cgcs-patch/cgcs_patch
Don Penney 5642a575c5 Add support for application patch dependencies
This update introduces support for application dependencies on
specified software patches. This allows sysinv to query patch states
and to report application dependencies, to block removal of required
patches.

APIs introduced:
is_applied: Provide a list of patch IDs. Returns True if ALL patches
  are in Applied (fully applied/installed) state, False if any are
  not.
report_app_dependencies: Provide an app name-version string and list
  of patches.
  * Apps are dropped by reporting app name with no patch list / empty
    list.
  * Triggers sync with patch-controller neighbour (ie. standby
    controller)
query_app_dependencies: Query for dict of app => patch list, for all
  reported apps.

On patch removal, the patch-controller checks to see if the patch
being removed is required by any applications. Reject the removal,
if so.
  * Provide backdoor --skipappcheck option to skip this dependency
    check.

Change-Id: I6b0dcf3c88312677a95c7eb860cb3b30779554d0
Story: 2005248
Task: 30318
Signed-off-by: Don Penney <don.penney@windriver.com>
2019-04-05 12:23:06 -04:00
..
api Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
authapi Fix StringIO and ConfigParser import issue for Python2/3 compatible code. 2018-09-07 10:36:01 +08:00
templates StarlingX open source release updates 2018-05-31 07:37:12 -07:00
__init__.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
app.py Add pylint support 2018-08-24 09:19:44 -05:00
base.py Fix pep8/flake8 Error 2018-09-12 08:40:21 +08:00
certificates.py Resolve bashate and pep8 warnings 2018-08-08 19:36:58 -05:00
config.py Update config to set values as string, rather than unicode 2018-11-02 09:41:29 +08:00
constants.py Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
exceptions.py Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
messages.py StarlingX open source release updates 2018-05-31 07:37:12 -07:00
patch_agent.py Cleanup Tox multiple imports per line 2019-02-07 13:27:40 -06:00
patch_client.py Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
patch_controller.py Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
patch_functions.py Add support for application patch dependencies 2019-04-05 12:23:06 -04:00
patch_signing.py Cleanup Tox multiple imports per line 2019-02-07 13:27:40 -06:00
patch_verify.py Cleanup Tox multiple imports per line 2019-02-07 13:27:40 -06:00
utils.py Fix pep8/flake8 Error 2018-09-12 08:40:21 +08:00