Skip to content

Commit 3e90726

Browse files
committed
Add probes to KUTTL tests
1 parent e5b28de commit 3e90726

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

tests/kuttl/suites/ceilometer/tests/00-assert.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,37 @@ spec:
1414
- /usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start
1515
command:
1616
- /bin/bash
17+
livenessProbe:
18+
exec:
19+
command:
20+
- /usr/bin/python3
21+
- /var/lib/openstack/bin/centralhealth.py
1722
name: ceilometer-central-agent
1823
- args:
1924
- -c
2025
- /usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start
2126
command:
2227
- /bin/bash
28+
livenessProbe:
29+
exec:
30+
command:
31+
- /usr/bin/python3
32+
- /var/lib/openstack/bin/notificationhealth.py
2333
name: ceilometer-notification-agent
2434
- name: sg-core
2535
- args:
2636
- -DFOREGROUND
2737
command:
2838
- /usr/sbin/httpd
39+
livenessProbe:
40+
httpGet:
41+
path: /
42+
port: 3000
2943
name: proxy-httpd
44+
readinessProbe:
45+
httpGet:
46+
path: /
47+
port: 3000
3048
hostname: ceilometer-0
3149
status:
3250
containerStatuses:

tests/kuttl/suites/ceilometer/tests/00-deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ metadata:
55
spec:
66
secret: osp-secret
77
mysqldExporterEnabled: true
8+
ksmEnabled: true

tests/kuttl/suites/default/tests/01-assert.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,37 @@ spec:
2929
- /usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start
3030
command:
3131
- /bin/bash
32+
livenessProbe:
33+
exec:
34+
command:
35+
- /usr/bin/python3
36+
- /var/lib/openstack/bin/centralhealth.py
3237
name: ceilometer-central-agent
3338
- args:
3439
- -c
3540
- /usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start
3641
command:
3742
- /bin/bash
43+
livenessProbe:
44+
exec:
45+
command:
46+
- /usr/bin/python3
47+
- /var/lib/openstack/bin/notificationhealth.py
3848
name: ceilometer-notification-agent
3949
- name: sg-core
4050
- args:
4151
- -DFOREGROUND
4252
command:
4353
- /usr/sbin/httpd
54+
livenessProbe:
55+
httpGet:
56+
path: /
57+
port: 3000
4458
name: proxy-httpd
59+
readinessProbe:
60+
httpGet:
61+
path: /
62+
port: 3000
4563
hostname: ceilometer-0
4664
status:
4765
containerStatuses:

0 commit comments

Comments
 (0)