config/sysinv/sysinv/sysinv/sysinv/cmd
Bin Qian 8df382b256 Add cert-mon service
Add new certificate monitoring service.
This is a service to perform monitoring certificates of
admin endpoint,
admin endpoint subcloud intermediate CA, and
admin endpoint DC root CA.
The certificates are managed and renewed by cert-manager.
This change includes monitoring admin endpoint certificate and
apply the new certificate (crt+key) to be used by haproxy for
admin endpoint https.
admin endpoint certificate renew will also replace the private
key. The implementation is a workaround to delete the secret
so that cert-manager regenerate the certificate with new private
key. Currently cert-manager has a bug preventing rekey when
renewing cert.

Monitoring of intermediate CA and DC root CA will be coming soon.

Passed TCs:
1. provisioned cert-mon service on system controller and subcloud
   controller, successfully swact

2. simulate endpoint certificate renew by shorten the endpoint
   certificate expiry time.
   observed the certificate (/etc/ssl/private/admin-ep-cert.pem)
   updated.
   verify admin endpoints accessible (local or remotely)
   verify admin endpoints accessible after haproxy restart

3. simulate an action to fail (hardcoded) and observe the action
   being configured number reattempted before giving up.

Story: 2007347
Task: 40168

Depends-on https://review.opendev.org/#/c/739890
Depends-on https://review.opendev.org/#/c/741511
Depends-on https://review.opendev.org/#/c/741993
Change-Id: Ie341e2e4896c291b7485e95c89c5c3f370ffea00
2020-07-20 14:06:31 -04: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 cert-mon service 2020-07-20 14:06:31 -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 Robustness updates to support application plugins 2020-06-05 17:37:59 -04: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 Revert "B&R: Save image name and tags present in local registry" 2020-07-15 13:18:19 +00:00