Bug 1832658

Summary: Include the inventory file for node preparation with gluster-ansible-roles
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: high Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: asakthiv, godas, pprakash, puebele, rhs-bugs, sabose, sasundar
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.5.z Batch Update 2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.5-12.el8rhgs, gluster-ansible-maintenance-1.0.1-3.el8rhgs Doc Type: Enhancement
Doc Text:
Previously,a lot of steps are required to replace the RHHI node. With this release, you can run Integrated Ansible playbook which includes node preparation and replacement to replace a RHHI node.
Story Points: ---
Clone Of: 1832654 Environment:
Last Closed: 2020-06-16 05:57: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: 1832654, 1840123    

Description SATHEESARAN 2020-05-07 03:07:41 UTC
Description of problem:
-----------------------
Node preparation is required for replace host procedure, where the user needs to configure the host specifically for RHHI cluster.

The inventory file is currently available as part of the doc and user had to copy it every time, to run the Ansible playbook that configures the node.
Also adds up to frequent change in the docs, if introducing the change in the inventory.

It will be easy for the user to create the inventory from the template file

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

How reproducible:
------------------
not applicable, as this is not the issue

Actual results:
---------------
No inventory file is available as a template under /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/

Expected results:
-----------------
1. Include the node_prep_inventory.yml under /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/
2. Include the node_prep.yml playbook under /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/tasks/


Additional info:

Comment 3 Gobinda Das 2020-05-26 11:31:57 UTC
PR: https://github.com/gluster/gluster-ansible/pull/108

Comment 6 SATHEESARAN 2020-06-06 11:25:39 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 8 Gobinda Das 2020-06-11 12:31:41 UTC
RDT looks good to me.

Comment 10 errata-xmlrpc 2020-06-16 05:57: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:2575