config/sysinv/sysinv/sysinv/sysinv
Karla Felix a26b4b4050 Check for cert alarms in health-query-upgrade
This task will adapt existing implementation to run full certificate
expiration audit in "health-query-upgrade" and return fail in
_check_alarms in case of existence of any cert alarm in the system.
Both "expiring soon" and "expired" alarms will block upgrades, but
can be skipped with the use of the force flag. This change will also
add a information about certificate expiration alarms to the line
related to existing alarms of the output in "health-query-upgrade".

Note: Now that 'keystone_opt_group' is used for both cert_alarm and
      health.py, the variable 'keystone_authtoken' had to be changed
      to 'KEYSTONE_AUTHTOKEN' to match with the key that is used by
      the CONF object from health.py which is configured as
      uppercase in line 118 of openstack.py.

Test Plan:

PASS: Run "health-query-upgrade" with one or more 'expiring soon'or
      'expired' alarms and verify that a message is show in
      'health-query-upgrade' output saying that there is certificate
      expiration alarms.
PASS: Run 'health-query-upgrade' with no active certificate alarm and
      verify that no certificate alarms were shown in the output of
      'health-query-upgrade'.
PASS: Run 'system upgrade-start' with the --force flag with one or more
      certificate alarms and verify that the upgrade can be started
      normally.
PASS: Add a new certificate with expiry date of less than 30 days
      and run 'health-query-upgrade' before the scheduled full audit
      runs and check if the alarm was created and detected by
      'health-query-upgrade'.
PASS: Delete secret from a certificate that is monitored by cert-mon
      and check if cert-mon was able to reinstall the secret to the
      filesystem.

Task: 47478
Story: 2009303
Signed-off-by: Karla Felix <karla.karolinenogueirafelix@windriver.com>
Change-Id: Iaba585b6ecd7f63e0ed186f87c7274c4b9778889
2023-03-07 14:06:17 -03:00
..
agent Merge "Refactor inventory items for multipath support" 2023-02-15 15:39:14 +00:00
api Merge "Refactor inventory items for multipath support" 2023-02-15 15:39:14 +00:00
cert_alarm Update severity check and cert-alarm override 2023-01-17 13:45:16 -03:00
cert_mon Check for cert alarms in health-query-upgrade 2023-03-07 14:06:17 -03:00
cmd Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00
common Check for cert alarms in health-query-upgrade 2023-03-07 14:06:17 -03:00
conductor Merge "Add host support for hwsettle" 2023-02-15 15:12:53 +00:00
db Add host support for hwsettle 2023-02-14 21:54:36 +00:00
helm Add retry mechanism for retrieve helm releases functions 2022-12-14 11:40:46 -03:00
objects Add host support for hwsettle 2023-02-14 21:54:36 +00:00
openstack Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00
puppet Merge "Update network interface name length limit, change VLAN OS interface naming rule, refactor tests" 2023-02-14 18:56:09 +00:00
tests Merge "Add host support for hwsettle" 2023-02-15 15:12:53 +00:00
zmq_rpc Add ZeroMQ RPC backend 2022-11-24 13:28:01 -03:00
__init__.py Fix tox certificate issues in python2 2021-11-18 15:14:51 -06:00
_i18n.py Eliminate sdist step from sysinv zuul 2021-04-12 09:34:17 -05:00
netconf.py Fix bad syntax in requirements.txt file 2021-09-14 09:15:56 -05:00
sanity_coverage.py Fix tox-docs failing sphinx 2022-05-31 13:56:30 +00:00
version.py Remove python2 jobs from zuul for this repo 2023-02-07 19:36:45 +00:00