Fix healthcheck failure due to hard coded path to certificates 40/143340/5
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Sat, 21 Feb 2026 12:29:24 +0000 (13:29 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Sat, 21 Feb 2026 13:27:25 +0000 (14:27 +0100)
- k8test.py contained hard coded reference to python3.8
  even though image uses python3.11 (for the past two years)

Issue-ID: INT-2355
Change-Id: I61ffe82f479359fa3f435fbcd40b88fb89ee66f5
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
infra-healthcheck/docker/Dockerfile
infra-healthcheck/infra_healthcheck/k8stest.py
infra-healthcheck/requirements.txt
infra-healthcheck/upper-constraints.txt [deleted file]
testkube-executor/constraints.txt

index 311edf7..103f71a 100644 (file)
@@ -31,7 +31,9 @@ RUN set -x && \
     rm -rf /usr/local/lib/python3.11/site-packages/PyYAML* && \
     pip3 install --upgrade pip && \
     pip3 install --ignore-installed --no-cache-dir \
-        -r requirements.txt -c upper-constraints.txt \
+        git+https://gitlab.com/Orange-OpenSource/lfn/tools/helm-onap-status.git#egg=helm_onap_status \
+        git+https://gitlab.com/Orange-OpenSource/lfn/tools/chart-status.git#egg=chart_status \
+        -r requirements.txt \
         -e . \
         git+https://git.onap.org/testsuite/pythonsdk-tests.git@$ONAP_TESTS_TAG \
         git+https://git.onap.org/integration.git@$ONAP_TAG#subdirectory=test/security/check_certificates && \
index 1d69fac..ec25ca4 100644 (file)
@@ -19,6 +19,7 @@ import subprocess
 import os
 import time
 
+import check_certificates
 from xtesting.core import testcase
 
 class K8sTesting(testcase.TestCase):
@@ -103,7 +104,7 @@ class OnapSecurityNodePortsCerts(K8sTesting):
     """Check the cerfificates for the nodeports."""
     def __init__(self, **kwargs):
         super(OnapSecurityNodePortsCerts, self).__init__(**kwargs)
-        os.chdir('/usr/lib/python3.8/site-packages/check_certificates')
+        os.chdir(os.path.dirname(check_certificates.__file__))
         self.cmd = ['python3', 'check_certificates_validity.py',
                     '--mode','nodeport','--namespace','onap','--dir',
                     '/var/lib/xtesting/results/nodeport_check_certs']
@@ -113,7 +114,7 @@ class OnapSecurityInternalPortsCerts(K8sTesting):
     """Check the cerfificates for the internal ports."""
     def __init__(self, **kwargs):
         super(OnapSecurityInternalPortsCerts, self).__init__(**kwargs)
-        os.chdir('/usr/lib/python3.8/site-packages/check_certificates')
+        os.chdir(os.path.dirname(check_certificates.__file__))
         self.cmd = ['python3', 'check_certificates_validity.py',
                     '--mode','internal','--namespace','onap','--dir',
                     '/var/lib/xtesting/results/internal_check_certs']
index 58171bc..031ddf4 100644 (file)
@@ -11,5 +11,3 @@ bashate # Apache-2.0
 xtesting
 kubernetes # Apache-2.0
 colorama # BSD
-helm_onap_status
-chart_status
\ No newline at end of file
diff --git a/infra-healthcheck/upper-constraints.txt b/infra-healthcheck/upper-constraints.txt
deleted file mode 100644 (file)
index 20fdc2e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-git+https://gitlab.com/Orange-OpenSource/lfn/tools/helm-onap-status.git#egg=helm_onap_status
-git+https://gitlab.com/Orange-OpenSource/lfn/tools/chart-status.git#egg=chart_status
index 9c0369f..2ff463e 100644 (file)
@@ -96,7 +96,7 @@ robotframework-ftplibrary===1.9
 robotframework-httplibrary===0.4.2
 robotframework-jsonlibrary===0.5
 robotframework-pythonlibcore===4.4.1
-robotframework-requests===0.9.3
+robotframework-requests===0.9.6
 robotframework-seleniumlibrary===6.7.1
 robotframework-sshlibrary===3.8.0
 rpds-py===0.20.1
@@ -125,4 +125,4 @@ WebTest===3.0.1
 wsproto===1.2.0
 xtesting===0.98.0
 yamllint===1.35.1
-zipp===3.20.2
\ No newline at end of file
+zipp===3.20.2