Bug 2051640

Summary: [RFE][ceph-ansible] : Usability : New playbooks to help users during Host OS upgrade
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Vaibhav Mahajan <vamahaja>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: medium    
Version: 5.1CC: akraj, aschoen, ceph-eng-bugs, gabrioux, gmeno, kdreyer, mgowri, nthomas, tserlin, vamahaja, vereddy, ykaul
Target Milestone: ---Keywords: FutureFeature, UserExperience
Target Release: 5.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-6.0.27.7-1.el8cp Doc Type: Enhancement
Doc Text:
.A new Ansible playbook is now available for backup and restoring Ceph files Previously, users had to manually backup and restore files when either upgrading the OS from {os-product} 7 to {os-product} 8 or reprovisioning their machines, which was quite inconvenient especially in case of large cluster deployments. With this release, the `backup-and-restore-ceph-files.yml` playbook is added to backup and restore Ceph files, such as `/etc/ceph` and `/var/lib/ceph` that eliminates the need for the user to manually restore files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-09 17:37:27 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:    
Bug Blocks: 2102272    

Description Vasishta 2022-02-07 17:08:45 UTC
Description of problem:
Recently I worked on the RHCS upgrade (4.x to 5.x) scenario with a host OS upgrade.

The procedure involves backing up ceph files (/etc/ceph/, /var/lib/ceph, ceph-ansible config files incase of ansible node), once os upgrade is done user will have to restore the files, change ownership of restored files and might involve starting up the services.

Found it tedious to do these on a test cluster with 4-5 nodes, which makes me think that it would be more nice if we can provide some usability enhancement to users to handle their clusters in these scenarios.

How about ceph-ansible 6.x (RHCS 5.x) to have a playbook which assists user with these manual tasks ? Something like
- User to install ceph-ansible 6.x on a rhel-8 node
- runs playbook for each node on rhel 7
- ceph-ansible to take backup of required files and save it in the new node
- User upgrades his node to rhel-8 one by one
- user runs restore playbook each time a node gets upgraded to rhel-8 - which should restore all files on that particular node and assists users in starting all services on that node which were running before if required

Version-Release number of selected component (if applicable):
Latest 5.x


Steps to Reproduce:
1. Configure 4.x cluster on rhel-7
2. Try to upgrade cluster to 5.x following docs (involving host OS upgrade from rhel-7 to rhel-8)


Actual results:
User has to follow many mnual steps

Expected results:
ceph-ansible helping users in reducing backing up and restoring process

Additional info:

Comment 39 errata-xmlrpc 2022-08-09 17:37:27 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 (Moderate: Red Hat Ceph Storage Security, 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/RHSA-2022:5997