config/sysinv/sysinv/sysinv/sysinv
Sabeel Ansari 5c42dde784 Cert-Alarm token caching + other
Cert-alarm used to request new token for each file. This used to
result in token requests of 3-5 calls per execution. Incorporating
token caching from cert-mon service to reduce the number of requests.

Other changes include:
- Log level change in case of exceptions thrown from FM API. A
  condition where exception is thrown should not just log it at
  a warning level (so that it's not missed), but should have
  a more detailed/traceable log.
- Logic fix for raising alarm at right level. It was noticed that
  alarm was tagged as expired on the day before expiry. This changes
  to wait until the date has actually passed before the certificate
  is marked as expired.
- Safer call to use dict.get() in case of missing annotations of
  cert-manager Certificate resources.

Test Plan:
PASS: Verify that token caching reduces the number of calls
PASS: Verify that an exception thrown from FM API gets a more
      detailed log
PASS: Verify to make sure certificate expiry alarm waits
      until expiry date is passed before 'Expired' alarm is
      raised.
PASS: Verify that if Certificate CRD does not contain
      metadata.annotations, cert-alarm will handle the condition
      and create the annotations without error.

Story: 2008946
Task: 42852

Signed-off-by: Sabeel Ansari <Sabeel.Ansari@windriver.com>
Change-Id: Icfedfdadd43757c1375459e7ee4b4d3d97e8d02f
2021-10-13 16:36:15 -04:00
..
agent Fix LVM volume group creation 2021-08-12 12:03:20 -04:00
api Sysinv api load import improvements 2021-10-05 15:47:48 -04:00
cert_alarm Cert-Alarm token caching + other 2021-10-13 16:36:15 -04:00
cert_mon Optimize cert-mon token cache sizing and re-use 2021-10-08 16:25:48 -04:00
cmd python3: Refactor dict for python2/python3 compat 2021-08-10 12:58:36 -04:00
common Merge "[PTP dual NIC config] New tables in sysinv dbase" 2021-10-07 15:42:12 +00:00
conductor Merge "Service parameter config for auditd grub parameter" 2021-09-27 21:27:22 +00:00
db [PTP dual NIC config] New tables in sysinv dbase 2021-10-06 18:40:47 -03:00
fpga_agent Remove the use of docker for FPGA tools 2021-10-06 14:04:11 -04:00
helm Remove code breaking app UTs under py39/Bullseye 2021-10-06 00:57:47 -04:00
objects [PTP dual NIC config] New tables in sysinv dbase 2021-10-06 18:40:47 -03:00
openstack Optimize cert-mon token cache sizing and re-use 2021-10-08 16:25:48 -04:00
puppet Use upgraded kubelet on unlock after kubelet upgrade 2021-09-17 08:42:20 +00:00
tests Optimize cert-mon token cache sizing and re-use 2021-10-08 16:25:48 -04:00
__init__.py StarlingX open source release updates 2018-05-31 07:35:52 -07: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 Specify the nodeset for zuul jobs 2021-05-19 13:51:15 -05:00
version.py Fix zuul for bandit target 2021-05-20 08:43:15 -05:00