Bug 1831667

Summary: [installation-guide] - Upgrade section - provide steps to upgrade for users installed using cockpit-installer
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: DocumentationAssignee: John Brier <jbrier>
Status: CLOSED CURRENTRELEASE QA Contact: Sunil Angadi <sangadi>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.1CC: asriram, kdreyer, sangadi, vereddy
Target Milestone: rc   
Target Release: 4.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-11 12:11:44 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: 1809603    

Description Vasishta 2020-05-05 13:03:16 UTC
Description of problem:
For users installed ceph cluster using cockpit-installer and wants to upgrade their clusters to 4.1, we need to provide couple of steps before they follow existing steps - 

QE tried these following steps before existing steps and worked fine for us -

1) Copy inventory from default location to ceph-ansible folder

2) If user used non-root user as cockpit-installer user (ansible user) then change ssh-key permissions so that ansible-playbook can be run as non-root user

Comment 1 John Brier 2020-05-19 11:45:29 UTC
(In reply to Vasishta from comment #0)
> Description of problem:
> For users installed ceph cluster using cockpit-installer and wants to
> upgrade their clusters to 4.1, we need to provide couple of steps before
> they follow existing steps - 
> 
> QE tried these following steps before existing steps and worked fine for us -
> 
> 1) Copy inventory from default location to ceph-ansible folder
> 
> 2) If user used non-root user as cockpit-installer user (ansible user) then
> change ssh-key permissions so that ansible-playbook can be run as non-root
> user

Thanks Vasishta.

So these steps need to be added here, right?

https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/html-single/installation_guide/index?lb_target=preview#preparing-for-an-upgrade_install

For 1, I know I saw where this was in the past but I can't remember. Can you tell me where the default location of the inventory file is when installed using cockpit and where to put it in ceph-ansible? Is it /etc/ansible/hosts? and where do you put it and what do you name it in /usr/share/ceph-ansible?

For 2, can you show me specifically what this step should look like? The way the cockpit chapter is, you use the ansible user ("admin") to create the SSH keys and log in to cockpit. So in the upgrade section we also use the ansible user (admin) to run the playbooks... so why do ssh key permissions need to change?