From 437a0501de0ee66c36d8d90f4ff951d01c2cd248 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 29 Sep 2016 13:56:37 -0700 Subject: [PATCH] Add hard-restart zuul-launcher playbook Change-Id: Ibfb5f4524fa0677cb78b6c8d363a532705aa2be2 --- playbooks/hard_restart_zuul_launchers.yaml | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 playbooks/hard_restart_zuul_launchers.yaml diff --git a/playbooks/hard_restart_zuul_launchers.yaml b/playbooks/hard_restart_zuul_launchers.yaml new file mode 100644 index 0000000000..bff1fed767 --- /dev/null +++ b/playbooks/hard_restart_zuul_launchers.yaml @@ -0,0 +1,23 @@ +--- +- hosts: 'zlstatic0*.openstack.org:zl0*.openstack.org' + # Do the entire play completely for one host at a time + serial: 1 + any_errors_fatal: true + tasks: + - name: Hard stop zuul-launcher + shell: 'zuul-launcher stop' + become: true + become_user: zuul + + - name: Wait for (3h10m) to stop zuul-launcher + wait_for: + path: /var/run/zuul-launcher/zuul-launcher.pid + state: absent + timeout: 11400 + + - name: Restart zuul-launcher + service: + name: zuul-launcher + state: restarted + become: true + become_user: root