Bug 1850491

Summary: [el8-only] provide playbooks that helps in backing up and restoring node configuration during upgrade
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: high    
Version: rhgs-3.5CC: asakthiv, godas, pprakash, puebele, rcyriac, rhs-bugs, sabose, sasundar
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.5.z Async Update   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.5-16.el8rhgs Doc Type: Enhancement
Doc Text:
Previously , there were manual errors during the RHHI-V upgrade and replace host workflows. With this update, users can now minimize manual errors by using the playbook to backup and restore gluster and node configuration. The user can use the playbook to backup the node. When the node is reinstalled, the user can use this tar file to restore configurations in an automated way and restart all the services.
Story Points: ---
Clone Of: 1850488 Environment:
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: 1850488    

Description SATHEESARAN 2020-06-24 12:02:31 UTC
Description of problem:
-----------------------
While upgrading to RHHI-V 1.8, its not straight as 1.7 was released with RHEL 7 platform. So in this case, user had to backup few configurations and reinstall the node, restore the configuration, and wait for self-heal to complete, before proceeding with the same steps on the rest of the nodes in the cluster

To help in smooth backup-restore, to minimize manual errors while backing up and restoring configurations and to reduce manual efforts, it would be optimal to have playbook that does backup and generates the tar file, which the user can copy to backup node.
Then when the node is reinstalled, user could pull this tar and restore configurations too in an automated way and restart all services.

This way, it will help RHHI users to perform smooth upgrade to 1.8

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

How reproducible:
-----------------
Not applicable as this is not a bug, but the request to include such playbooks

Expected results:
------------------
Automate backup and restore of configuration files

Comment 1 Gobinda Das 2020-06-24 12:58:49 UTC
PR: https://github.com/gluster/gluster-ansible/pull/114

Comment 3 Gobinda Das 2020-07-01 13:12:14 UTC
*** Bug 1852387 has been marked as a duplicate of this bug. ***

Comment 4 SATHEESARAN 2020-07-09 12:26:09 UTC
Backup and restore playbook is now available with gluster-ansible-roles-1.0.5-16.el8rhgs

The playbooks for backup and restore gluster configurations are available now

[root@rhsqa-grafton7 hc-ansible-deployment]# rpm -qf archive_config*
gluster-ansible-roles-1.0.5-16.el8rhgs.noarch
gluster-ansible-roles-1.0.5-16.el8rhgs.noarch

Comment 9 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