Bug 1379189
Summary: | [3.2] ansible sometimes gets UNREACHABLE error after iptables restarted | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Kenjiro Nakayama <knakayam> | |
Component: | Installer | Assignee: | Samuel Munilla <smunilla> | |
Status: | CLOSED ERRATA | QA Contact: | Wenkai Shi <weshi> | |
Severity: | urgent | Docs Contact: | ||
Priority: | medium | |||
Version: | 3.2.1 | CC: | aos-bugs, erjones, jmatthew, jmeyer, jokerman, mmccomas, pdwyer, smunilla, wmeng | |
Target Milestone: | --- | |||
Target Release: | 3.2.1 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
When executing the installer on a remote host that's also included in the inventory the firewall configuration could potentially cause the installer to hang. We have added a 10 second delay after resetting the firewall which should avoid this problem from occurring.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1416926 1416927 (view as bug list) | Environment: | ||
Last Closed: | 2017-03-06 16:36:49 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1358952, 1416926, 1416927 |
Description
Kenjiro Nakayama
2016-09-26 01:15:44 UTC
NOTE: Although this issue can be solved with ansible_connection=local for local master like https://bugzilla.redhat.com/show_bug.cgi?id=1312203, this ticket is caused on the remote masters. *** Bug 1394966 has been marked as a duplicate of this bug. *** Hi, The customer I attached to this case 2016-10-27 on, is seeing this problem and needs a resolution as soon as we can work towards one. Are there any other ideas of things we can try? After some discussion, I came up with a possible solution as seen here https://github.com/openshift/openshift-ansible/pull/2956 . If we could have the customer test with this, it would be helpful. For more information, the working theory is that firewalld is enabled on the hosts before installation and that disabling it is causing the ssh disconnect. If the above patch fails, having them manually disable firewalld before installation (and possibly enabling iptables afterward) would confirm or dent this theory. The customer tested adding a pause after the disable firewalld and it fixed their issue. This is from the customer: --------Marriott-------- We tested this and it worked. All we did was copy your pause further down in the file and added it below the second task. Might be something good to incorporate into the base install. [root@master01-devtest-vxby ~]# head iptables_hanging_fix.yml --- - name: Check if firewalld is installed command: rpm -q firewalld args: # Disables the following warning: # Consider using yum, dnf or zypper module rather than running rpm warn: no register: pkg_check failed_when: pkg_check.rc > 1 changed_when: no - name: Ensure firewalld service is not enabled service: name: firewalld state: stopped enabled: no when: "{{ pkg_check.rc == 0 }}" - name: Red Hat Support 01727898 Pause pause: seconds=10 when: "{{ result | changed }}" ------------------------------------------ Verified with version atomic-openshift-utils-3.2.47-1.git.0.34a924d, the code has effect, installation succeed. [root@ansible ~]# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/config ... TASK [os_firewall : Wait 10 seconds after disabling firewalld] ***************** Tuesday 07 February 2017 03:25:19 +0000 (0:00:02.785) 0:03:40.765 ****** Pausing for 10 seconds (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort) ... Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:0448 |