Bug 1846780

Summary: Replace host workflow from invoked using ansible-playbook, fails to replace the host completely
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, sheggodu
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.5.z Async Update   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-maintenance-1.0.1-8.el8rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1846779
: 1848898 (view as bug list) Environment:
rhhiv
Last Closed: 2020-07-23 06:46:32 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: 1846779, 1848898    

Description SATHEESARAN 2020-06-14 07:50:15 UTC
Description of problem:
-----------------------

Ansible playbook to replace the host was available, but it has few flaws:
1. Host was not replaced correctly
2. Few steps in the playbook are not required
3. Replace brick workflow fails for Nx3 volumes

Version-Release number of selected component (if applicable):
-------------------------------------------------------------
gluster-ansible-maintenance-1.0.1-4.el8rhgs

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

Steps to Reproduce:
--------------------
1. Create 3 2x3 volumes
2. Reinstall one of the host with fresh setup of bricks
3. Run the replace-host via ansible playbook

Actual results:
---------------
Playbook fails to replace the host

Expected results:
-----------------
Playbook should replace the host successfully


Additional info:

Comment 9 SATHEESARAN 2020-07-10 11:16:20 UTC
verified with gluster-ansible-maintenance-1.0.1-8.el8rhgs

1. Replace host workflow with same FQDN works good
2. Replace host workflow with different host also works good

Comment 11 errata-xmlrpc 2020-07-23 06:46:32 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:3121