Bug 1840123

Summary: [RFE] Replacing the host with same host post reprovisioning using ansible playbook from CLI
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: rcyriac, rhs-bugs
Target Milestone: ---Keywords: FutureFeature
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.5-12.el8rhgs, gluster-ansible-maintenance-1.0.1-4.el8rhgs Doc Type: Enhancement
Doc Text:
New upgrade playbooks are available to simplify and automate upgrading Red Hat Hyperconverged Infrastructure for Virtualization.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-04 14:52:32 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: 1832658    
Bug Blocks: 1779976, 1846209    

Description SATHEESARAN 2020-05-26 12:07:34 UTC
Description of problem:
------------------------
Its highly possible one of the hosts in the RHHI-V cluster may go non-operational, and in those cases users prefer to reprovision the same host fresh post fixing the problems and restore the hosts.

This is achieved by the replacing the faulty-previously-existing-node by renewed-itself.

This procedure should be available as a playbook, so that the user could perform it with ease


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
RHHI-V 1.8

How reproducible:
-----------------
Not applicable


Actual results:
------------------
No easy method to do this process of replacing the host by itself

Expected results:
-----------------
Easy playbook that replaces the host by itself.

Additional info:

Comment 1 SATHEESARAN 2020-06-03 09:58:41 UTC
Dependent bug is already ON_QA

Comment 2 SATHEESARAN 2020-06-08 10:39:43 UTC
Tested with RHV 4.4.1 and gluster-ansible-maintenance-1.0.3.el8rhgs

There are 2 failures

1. Syntax error related to unremoved "-block" in the role
2. Semantic error, where the 'gluster_ansible_cluster_node' is used to replace host workflow

Comment 3 SATHEESARAN 2020-06-15 09:24:02 UTC
Tested with gluster-ansible-roles-1.0.5-12.el8rhgs

The ansible roles for replacing the host with the host of the same name/FQDN post reprovisioning,
is available

[root@ ~ ]# ls /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/ | grep node
node_prep_inventory.yml
node_replace_inventory.yml
[root@ ~ ]# ls /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/tasks/ | grep node
replace_node.yml

Comment 5 errata-xmlrpc 2020-08-04 14:52: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 (RHHI for Virtualization 1.8 bug fix and enhancement 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.

https://access.redhat.com/errata/RHEA-2020:3314