Bug 1855361

Summary: [el7] gluster-ansible playbooks for RHHI-V deployment fails with ansible-2.9.10
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: gluster-ansibleAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: high    
Version: rhgs-3.5CC: godas, rcyriac, rhs-bugs, sabose, sasundar
Target Milestone: ---Keywords: Regression, ZStream
Target Release: RHGS 3.5.z Async Update   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-infra-1.0.5-7.2.el8rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1855352 Environment:
rhhiv
Last Closed: 2020-07-23 04:42:31 UTC Type: ---
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: 1854760    

Description SATHEESARAN 2020-07-09 16:33:02 UTC
Description of problem:
------------------------
gluster-ansible playbooks for RHHI-V deployment failed with ansible 2.9.10


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-roles-1.0.5-7.1.el7rhgs

How reproducible:
-----------------
Always

Actual results:
----------------
Playbook tasks with delegation to remote host executes on the localhost only

Expected results:
-----------------
Playbook tasks with delegation to remote host should also work in remote host

Comment 2 Gobinda Das 2020-07-10 16:05:54 UTC
PR: https://github.com/gluster/gluster-ansible/pull/118

Comment 3 SATHEESARAN 2020-07-14 14:20:43 UTC
Tested with gluster-ansible-roles-1.0.5-7.2.el7rhgs

<snip>
  - name: Set Engine public key as authorized key without validating the TLS/SSL certificates
    connection: ssh
    authorized_key:
      user: root
      state: present
      # The certificate has to be verified by the user for its authenticity
      key: https://{{ he_fqdn }}/ovirt-engine/services/pki-resource?resource=engine-certificate&format=OPENSSH-PUBKEY
      validate_certs: False
    delegate_to: "{{ host }}"
    with_items: "{{ groups['gluster'] }}"
    loop_control:
      loop_var: host
    when: "'gluster' in groups"
</snip>

The task now has 'connection: ssh'

Comment 5 errata-xmlrpc 2020-07-23 04:42:31 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, 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/RHEA-2020:3120