Bug 1934136

Summary: [AWS] The `build_ami.yml` playbook to create the primed image for Cluster Autoscaler is restarting the host.
Product: OpenShift Container Platform Reporter: Rahul Rajendran <rpalathi>
Component: InstallerAssignee: Russell Teague <rteague>
Installer sub component: openshift-ansible QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: aos-bugs, mgugino
Version: 3.11.0   
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: A bugfix in Ansible 2.9.10 changed the behavior of delegate_to for plays using 'connection: local' with 'hosts: localhost'. Consequence: Tasks intended for remote hosts were executed locally. Fix: Removed 'connection: local' for the affected play. Result: Tasks intended for remote hosts are executed on the remote host.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-25 09:50:07 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:

Comment 1 Michael Gugino 2021-03-02 17:16:38 UTC
Moving this to openshift-ansible.  I'm not sure these playbooks were intended for end user support or not.

Comment 4 sunzhaohua 2021-03-19 11:43:28 UTC
The host machine which is executing the playbook is not restarting.

TASK [openshift_aws : create instance for ami creation] *********************************************************************************************************************
Friday 19 March 2021  17:58:52 +0800 (0:00:00.036)       0:00:06.209 **********
ok: [localhost]

TASK [openshift_aws : fetch newly created instances] ************************************************************************************************************************
Friday 19 March 2021  17:58:55 +0800 (0:00:02.581)       0:00:08.791 **********
ok: [localhost]

TASK [openshift_aws : wait for ssh to become available] *********************************************************************************************************************
Friday 19 March 2021  17:58:57 +0800 (0:00:01.994)       0:00:10.785 **********
ok: [localhost]

TASK [openshift_aws : add host to nodes] ************************************************************************************************************************************
Friday 19 March 2021  17:58:58 +0800 (0:00:00.817)       0:00:11.603 **********
changed: [localhost]

PLAY [nodes] ****************************************************************************************************************************************************************

TASK [set the user to perform installation] *********************************************************************************************************************************
Friday 19 March 2021  17:58:58 +0800 (0:00:00.050)       0:00:11.653 **********
ok: [ec2-18-189-194-46.us-east-2.compute.amazonaws.com]

Comment 6 errata-xmlrpc 2021-03-25 09:50:07 UTC
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 (Moderate: OpenShift Container Platform 3.11.404 security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.