config/sysinv/sysinv/sysinv/sysinv/cmd
Dan Voiculeasa 5cc9dc9c86 Rework evaluating apps reapply
At the moment reapply evaluation is performed only for hardcoded apps.
This behavior needs to be changed.

Allow apps to specify what triggers they subscribe to in their metadata
file.
In sysinv a trigger is a dictionary composed of at least the 'type'
field and other optional fields.

Easy use of filters on the triggers by specifying key:value pairs to be
searched in the trigger information.

Keep a map between sysinv triggers type and the trigger types specified
in the metadata.

Existing triggers are: host-delete, runtime-apply-puppet,
platform-update, unlock, force-unlock.
Add new triggers: host-add, host-delete, host-reinstall, lock, swact,
force-lock, force-swact, system-modify.

Introduced a lifeycle semantic check hook for reapply evaluation where
apps can run complex logic to reject the evaluation.

Modified unit tests. These are basic unit tests querying the number of
calls.
Unsupported unit test for host-add.
Missing unit test for system-modify.

Tests: AIO-SX, AIO-DX
Triggering the events, events are seen in the logs as expected, apps
respond to events as specified in their metadata.

To keep backwards compatibility, this work depends on updating the
metadata file for each of the 5 apps that use the existing triggers.
Depends-On: Ia7bbca906e343ffffa019885a790befdf5ccb565
Depends-On: I588648090e82ac573db5112a2704d22fa45a049f
Depends-On: Ie02743cdf056dda3feb66911c74f9dabe69d98dd
Depends-On: I4778c6c8232fffb5fafca95b450e590fbb1b0f64
Depends-On: I0a76ef10fe3958634d714f1484d79763f98a0d4e
Story: 2007960
Task: 41760
Closes-Bug: 1884770
Signed-off-by: Dan Voiculeasa <dan.voiculeasa@windriver.com>
Change-Id: I023eb3bce9061e0ccfcf10ebeeaef91bcb39cff1
2021-02-24 18:01:50 -05:00
..
__init__.py Deprecate sysinv.openstack.common.gettextutils 2019-11-04 10:04:20 -06:00
agent.py Add code for sanity coverage 2018-06-29 13:15:05 -04:00
api.py Reraise exception and log error message 2019-07-10 09:19:05 +00:00
cert_mon.py Add intermediate CA cert monitor and audit 2020-08-25 13:00:01 -04:00
conductor.py Add code for sanity coverage 2018-06-29 13:15:05 -04:00
dbsync.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
dnsmasq_lease_update.py Deprecate sysinv.openstack.common.log 2019-11-05 15:29:20 -06:00
fpga_agent.py sysinv FPGA agent initial commit 2020-06-07 23:54:01 -06:00
helm.py Rework evaluating apps reapply 2021-02-24 18:01:50 -05:00
puppet.py StarlingX open source release updates 2018-05-31 07:35:52 -07:00
upgrade.py Deprecate sysinv.openstack.common.log 2019-11-05 15:29:20 -06:00
utils.py Back up local registry images for platform-integ-apps on DC central 2020-09-22 15:27:24 +03:00