You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "David M. Lyle (JIRA)" <ji...@apache.org> on 2016/03/22 16:45:25 UTC
[jira] [Created] (METRON-85) wait_for in check_hosts.yml deployment
script should specify port and perhaps regex
David M. Lyle created METRON-85:
-----------------------------------
Summary: wait_for in check_hosts.yml deployment script should specify port and perhaps regex
Key: METRON-85
URL: https://issues.apache.org/jira/browse/METRON-85
Project: Metron
Issue Type: Bug
Reporter: David M. Lyle
Currently, the wait_for on line 19 of deployment/amazon-ec2/tasks/check-hosts.yml doesn't specify a port. Ansible simply sleeps for the default timeout in this case (5 minutes).
This wasn't as intended. The deployment should continue as soon as all hosts are able to accept incoming ssh connections.
One thing- there was a corner case revealed in testing where:
- name: Wait for connectivity to host(s)
wait_for: host={{ item.public_dns_name }} port=22 search_regex=OpenSSH
with_items: ec2.tagged_instances
when: item.public_dns_name is defined
actually allowed execution to continue before some of the hosts started accepting external SSH connections, causing the deployment to fail. So, in addition to checking for port 22 to be up, there may additional work required- perhaps making that a local action.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)