File tree Expand file tree Collapse file tree
config/samples/tls/custom_duration
test/kuttl/tests/ctlplane-tls-cert-rotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,23 +5,15 @@ metadata:
55spec :
66 tls :
77 ingress :
8- ca :
9- duration : 1000h0m0s
108 cert :
119 duration : 500h0m0s
1210 podLevel :
1311 internal :
14- ca :
15- duration : 1000h0m0s
1612 cert :
1713 duration : 500h0m0s
1814 libvirt :
19- ca :
20- duration : 1000h0m0s
2115 cert :
2216 duration : 500h0m0s
2317 ovn :
24- ca :
25- duration : 1000h0m0s
2618 cert :
2719 duration : 500h0m0s
Original file line number Diff line number Diff line change @@ -19,6 +19,34 @@ metadata:
1919spec :
2020 duration : 500h0m0s
2121---
22+ apiVersion : cert-manager.io/v1
23+ kind : Certificate
24+ metadata :
25+ name : neutron-internal-svc
26+ spec :
27+ duration : 500h0m0s
28+ ---
29+ apiVersion : cert-manager.io/v1
30+ kind : Certificate
31+ metadata :
32+ name : glance-default-internal-svc
33+ spec :
34+ duration : 500h0m0s
35+ ---
36+ apiVersion : cert-manager.io/v1
37+ kind : Certificate
38+ metadata :
39+ name : cinder-internal-svc
40+ spec :
41+ duration : 500h0m0s
42+ ---
43+ apiVersion : cert-manager.io/v1
44+ kind : Certificate
45+ metadata :
46+ name : placement-internal-svc
47+ spec :
48+ duration : 500h0m0s
49+ ---
2250apiVersion : core.openstack.org/v1beta1
2351kind : OpenStackControlPlane
2452metadata :
@@ -196,25 +224,17 @@ spec:
196224 tls :
197225 ingress :
198226 enabled : true
199- ca :
200- duration : 1000h0m0s
201227 cert :
202228 duration : 500h0m0s
203229 podLevel :
204230 enabled : true
205231 internal :
206- ca :
207- duration : 1000h0m0s
208232 cert :
209233 duration : 500h0m0s
210234 libvirt :
211- ca :
212- duration : 1000h0m0s
213235 cert :
214236 duration : 500h0m0s
215237 ovn :
216- ca :
217- duration : 1000h0m0s
218238 cert :
219239 duration : 500h0m0s
220240status :
Original file line number Diff line number Diff line change @@ -2,8 +2,21 @@ apiVersion: kuttl.dev/v1beta1
22kind : TestAssert
33timeout : 900
44commands :
5+ - script : |
6+ echo "Waiting for OpenStack control plane to be ready after cert re-issuance..."
7+ oc wait openstackcontrolplane -n $NAMESPACE --for=condition=Ready --timeout=600s -l core.openstack.org/openstackcontrolplane
8+
59 - script : |
610 echo "Checking rotation of non API service certificates..."
11+ for i in $(seq 1 15); do
12+ if NAMESPACE=$NAMESPACE bash ../../common/osp_check_noapi_service_certs.sh 2>/dev/null; then
13+ echo "Non-API service certificates verified successfully."
14+ exit 0
15+ fi
16+ echo "Attempt $i/15: Non-API service certs not yet consistent, waiting 20s..."
17+ sleep 20
18+ done
19+ echo "Final non-API service cert check..."
720 NAMESPACE=$NAMESPACE bash ../../common/osp_check_noapi_service_certs.sh
821
922 - script : |
You can’t perform that action at this time.
0 commit comments