Skip to content

Commit 077e101

Browse files
TristanCacqueraymorucci
authored andcommitted
health-check: fix swiftlogs test
It seems like the swiftlog health-check doesn't exit with a working zuul setup because the jenkins gearman client takes time to reconnect after the last restart. This causes the preprod test to fail because further change are not processed when submitted too early. This change fixes that by stopping zuul and jenkins before setting swiftlogs settings. Change-Id: Idf24f283b052dbeea6b63c84d43cc9684066a2b9
1 parent 96efdfe commit 077e101

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

Diff for: playbooks/sfconfig_logs_setup.yaml

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
---
22
# * Setup logs export
3+
- hosts: jenkins
4+
tasks:
5+
- name: Stop jenkins service
6+
service: name=jenkins state=stopped
7+
8+
- hosts: zuul
9+
tasks:
10+
- name: Stop zuul services
11+
service: name={{ item }} state=restarted
12+
with_items:
13+
- zuul-merger
14+
- zuul
15+
316
- hosts: install-server
417
tasks:
518
- name: Add swift logs configuration to sfconfig
@@ -15,12 +28,6 @@
1528
- name: Restart sfconfig
1629
command: sfconfig.py
1730

18-
- hosts: zuul
19-
tasks:
20-
# TODO: fixme
21-
- name: Restart zuul to take logsexport option into account
22-
service: name=zuul state=restarted
23-
2431
- hosts: zuul
2532
tasks:
2633
- name: "Check configuration"

0 commit comments

Comments
 (0)