You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2018/11/09 22:09:40 UTC
[airavata] branch staging updated: Stopping helix daemons before
replacing binaries
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch staging
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/staging by this push:
new a14e473 Stopping helix daemons before replacing binaries
a14e473 is described below
commit a14e4733d38c5e1085f8927137c388d704026127
Author: Dimuthu Wannipurage <di...@datasprouts.com>
AuthorDate: Fri Nov 9 17:09:31 2018 -0500
Stopping helix daemons before replacing binaries
---
dev-tools/ansible/roles/helix_setup/tasks/main.yml | 61 +++++++++++-----------
1 file changed, 31 insertions(+), 30 deletions(-)
diff --git a/dev-tools/ansible/roles/helix_setup/tasks/main.yml b/dev-tools/ansible/roles/helix_setup/tasks/main.yml
index e4aa85b..8578727 100644
--- a/dev-tools/ansible/roles/helix_setup/tasks/main.yml
+++ b/dev-tools/ansible/roles/helix_setup/tasks/main.yml
@@ -41,6 +41,15 @@
- ./bin/helix-admin.sh --zkSvr {{ zookeeper_connection_url }} --addCluster {{ helix_cluster_name }}
ignore_errors: yes
+- name: Stop daemons if running
+ command: "{{ item.command }} chdir={{ helix_dir }}/{{ item.dir }}/"
+ with_items:
+ - { command: ./bin/controller-daemon.sh stop, dir: "{{ helix_controller_version }}" }
+ - { command: ./bin/participant-daemon.sh stop, dir: "{{ helix_participant_version }}" }
+ - { command: ./bin/pre-wm-daemon.sh stop, dir: "{{ helix_pre_wm_version }}" }
+ - { command: ./bin/post-wm-daemon.sh stop, dir: "{{ helix_post_wm_version }}" }
+ ignore_errors: yes
+
# Copy required distributions to the deployment directory
- name: Copy distributions to airavata-helix deployment directory
unarchive: "src={{ airavata_source_dir }}/modules/airavata-helix/helix-distribution/target/{{ item }}
@@ -85,14 +94,6 @@
- "{{ helix_pre_wm_dist_log_dir }}"
- "{{ helix_post_wm_dist_log_dir }}"
-- name: Stop daemons
- command: "{{ item.command }} chdir={{ helix_dir }}/{{ item.dir }}/"
- with_items:
- - { command: ./bin/controller-daemon.sh stop, dir: "{{ helix_controller_version }}" }
- - { command: ./bin/participant-daemon.sh stop, dir: "{{ helix_participant_version }}" }
- - { command: ./bin/pre-wm-daemon.sh stop, dir: "{{ helix_pre_wm_version }}" }
- - { command: ./bin/post-wm-daemon.sh stop, dir: "{{ helix_post_wm_version }}" }
-
# Run bash-scripts
- name: Start daemons
command: "{{ item.command }} chdir={{ helix_dir }}/{{ item.dir }}/"
@@ -102,27 +103,27 @@
- { command: ./bin/pre-wm-daemon.sh start, dir: "{{ helix_pre_wm_version }}" }
- { command: ./bin/post-wm-daemon.sh start, dir: "{{ helix_post_wm_version }}" }
-- name: systemd install helix setup service scripts
- template: src={{ item.template }}
- dest=/usr/lib/systemd/system/{{ item.service }}
- owner={{ user }}
- group={{ group }}
- mode="u=rw,g=r,o=r"
- notify: start {{ item.name }}
- with_items:
- - { template : controller/helixcontroller.service.j2, service: helixcontroller.service, name: helixcontroller }
- - { template : participant/helixparticipant.service.j2, service: helixparticipant.service, name: helixparticipant }
- - { template : pre-wm/prewm.service.j2, service: prewm.service, name: prewm }
- - { template : post-wm/postwm.service.j2, service: postwm.service, name: postwm }
- become: sudo
+#- name: systemd install helix setup service scripts
+# template: src={{ item.template }}
+# dest=/usr/lib/systemd/system/{{ item.service }}
+# owner={{ user }}
+# group={{ group }}
+# mode="u=rw,g=r,o=r"
+# notify: start {{ item.name }}
+# with_items:
+# - { template : controller/helixcontroller.service.j2, service: helixcontroller.service, name: helixcontroller }
+# - { template : participant/helixparticipant.service.j2, service: helixparticipant.service, name: helixparticipant }
+# - { template : pre-wm/prewm.service.j2, service: prewm.service, name: prewm }
+# - { template : post-wm/postwm.service.j2, service: postwm.service, name: postwm }
+# become: sudo
-- name: Reload systemd daemons
- command: systemctl daemon-reload
- notify: restart {{ item }}
- with_items:
- - helixcontroller
- - helixparticipant
- - prewm
- - postwm
- become: sudo
+#- name: Reload systemd daemons
+# command: systemctl daemon-reload
+# notify: restart {{ item }}
+# with_items:
+# - helixcontroller
+# - helixparticipant
+# - prewm
+# - postwm
+# become: sudo
...