jonpspri closed pull request #3218: Stop-start invoker and retry more to ease 
testing
URL: https://github.com/apache/incubator-openwhisk/pull/3218
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/ansible/roles/invoker/tasks/deploy.yml 
b/ansible/roles/invoker/tasks/deploy.yml
index c215e395a8..38d820dc1e 100644
--- a/ansible/roles/invoker/tasks/deploy.yml
+++ b/ansible/roles/invoker/tasks/deploy.yml
@@ -129,6 +129,12 @@
   set_fact:
     invoker_args: "{{ invoker.arguments }} {{ invoker.jmxremote.jvmArgs }}"
 
+- name: stop and remove the invoke container if it's currently running
+  docker_container:
+      name: invoker{{ groups['invokers'].index(inventory_hostname) }}
+      state: absent
+      force_kill: yes
+
 - name: start invoker using docker cli
   shell: >
         docker run -d
@@ -207,5 +213,5 @@
     url: "http://{{ ansible_host }}:{{ invoker.port + 
groups['invokers'].index(inventory_hostname) }}/ping"
   register: result
   until: result.status == 200
-  retries: 12
+  retries: 15
   delay: 5


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to