diff options
author | Parth Inamdar <parth.inamdar1@gmail.com> | 2021-11-29 22:01:38 -0500 |
---|---|---|
committer | Parth Inamdar <parth.inamdar1@gmail.com> | 2021-11-30 05:25:24 +0000 |
commit | 52ba79c07aa517160698ee7e04797447448ebf3c (patch) | |
tree | 5a27ed50d5f75d21eaf789ae027ac7e899cb254d /sdv/docker/sdvstate/internal/validator/airship | |
parent | bfd37762bdf91a7f89d4ebc259454ddb2f5e7b3d (diff) |
Added Security, Policy, Observability & Plugin Checks
Security Checks:
Checking for security config on the cluster, consisting of capability, privilege, host network, host path and
connectivity checks
Policy Checks:
Validating CPU Manager and Topology Manager policies against the settings from PDF
Observability Checks
Checking existence and health of prometheus, node-exporter and collectd pods
Plugin checks
Checking for the existence of multi-interface pod (multus) and validating the list of CNI against the PDF
Also added usage information and pdf field information to userguide.rst file in the docs section. For reference, I have added a PDF.json in sdv/docker/sdvstate/settings section file to look at necessary configuration required for the kuberef validation.
Signed-off-by: Parth V Inamdar <parth.inamdar1@gmail.com>
Change-Id: I28dc8e687c14cba099230f2226b4add79a55a7ad
Diffstat (limited to 'sdv/docker/sdvstate/internal/validator/airship')
-rw-r--r-- | sdv/docker/sdvstate/internal/validator/airship/probe_check.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sdv/docker/sdvstate/internal/validator/airship/probe_check.py b/sdv/docker/sdvstate/internal/validator/airship/probe_check.py index 670bd9a..96842c1 100644 --- a/sdv/docker/sdvstate/internal/validator/airship/probe_check.py +++ b/sdv/docker/sdvstate/internal/validator/airship/probe_check.py @@ -19,11 +19,11 @@ Probe Checks 2. Liveness 3. Startup """ - +import logging from tools.kube_utils import kube_api from tools.conf import settings -from .store_result import store_result +from store_result import store_result def readiness_probe_check(): @@ -31,6 +31,7 @@ def readiness_probe_check(): Checks whether the readiness probe is configured for all overcloud components deployed as pods on undercloud Kubernetes. """ + logger = logging.getLogger(__name__) api = kube_api() namespace_list = settings.getValue('airship_namespace_list') @@ -61,7 +62,7 @@ def readiness_probe_check(): pod_stats['containers'].append(container_stats) result['details'].append(pod_stats) - store_result(result) + store_result(logger, result) return result def liveness_probe_check(): @@ -69,6 +70,7 @@ def liveness_probe_check(): Checks whether the liveness probe is configured for all overcloud components deployed as pods on undercloud Kubernetes. """ + logger = logging.getLogger(__name__) api = kube_api() namespace_list = settings.getValue('airship_namespace_list') @@ -99,7 +101,7 @@ def liveness_probe_check(): pod_stats['containers'].append(container_stats) result['details'].append(pod_stats) - store_result(result) + store_result(logger, result) return result def startup_probe_check(): @@ -107,6 +109,7 @@ def startup_probe_check(): Checks whether the startup probe is configured for all overcloud components deployed as pods on undercloud Kubernetes. """ + logger = logging.getLogger(__name__) api = kube_api() namespace_list = settings.getValue('airship_namespace_list') @@ -137,5 +140,5 @@ def startup_probe_check(): pod_stats['containers'].append(container_stats) result['details'].append(pod_stats) - store_result(result) + store_result(logger, result) return result |