Bug 1535382

Summary: [ceph-ansible] - rolling update from 2.4 to 2.5 fails asking user to add mgrs
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasishta <vashastr>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Parikshith <pbyregow>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 2.5CC: adeza, agunn, aschoen, ceph-eng-bugs, gabrioux, gmeno, hnallurv, kdreyer, mmurthy, nthomas, pbyregow, sankarshan, tserlin, vashastr
Target Milestone: rc   
Target Release: 2.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.21-1.el7cp Ubuntu: ceph-ansible_3.0.21-2redhat1 Doc Type: No Doc Update
Doc Text:
Feature: In upgrade guide we need to mention that rolling_update invocations from RHCS-2.4 on will need additional parameter "-e jewel_minor_update=true" in order to succeed Reason: Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 19:48:14 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:
Attachments:
Description Flags
File contains contents ansible-playbook log
none
upgrade log none

Description Vasishta 2018-01-17 09:39:24 UTC
Created attachment 1382318 [details]
File contains contents ansible-playbook log

Description of problem:
Rolling update from 2.4 to 2.5 fails asking user to add mgrs

Version-Release number of selected component (if applicable):
ceph-ansible-3.0.16-1.el7cp.noarch

How reproducible:
Always

Steps to Reproduce:
1. Configure RHCEPH 2.4 cluster
2. Update ceph-ansible 
3. Run rolling update

Actual results:
TASK [fail if no mgr host is present in the inventory] 
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Please add a mgr host to your inventory."}


Expected results:
ceph-ansible must not ask user to add mgrs while upgrading cluster to 2.5

Additional info:

Comment 3 Sébastien Han 2018-01-17 13:31:28 UTC
Please add one of your mon as an mgr in your inventory file.
The sooner you do this, the better it will be once you want to update to 3.0.

Let me know how that goes.
Thanks

Comment 4 Vasishta 2018-01-17 14:06:04 UTC
Hi Sebastien,

After adding a mgr in to the inventory, rolling update upgraded all mons and failed -

TASK [ceph-mgr : install ceph-mgr package on RedHat or SUSE] 

task path: /usr/share/ceph-ansible/roles/ceph-mgr/tasks/pre_requisite.yml:2
fatal: [magna029]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'ceph-mgr' found available, installed or updated", "rc": 126, "results": ["No package matching 'ceph-mgr' found available, installed or updated"]}


Regards,
Vasishta

Comment 5 Sébastien Han 2018-01-17 14:16:41 UTC
Alright, I'll patch this differently then.

Comment 6 Sébastien Han 2018-01-18 14:39:08 UTC
fixed in https://github.com/ceph/ceph-ansible/releases/tag/v3.0.18

Comment 9 Parikshith 2018-01-24 06:30:59 UTC
Created attachment 1385208 [details]
upgrade log

Comment 10 Christina Meno 2018-01-24 23:21:13 UTC
I've added a new required option to the invocation of rolling_upgrade "-e jewel_minor_update=true" please retest using this when you run the rolling_upgrade.
I have added Doc text so this should get added to the upgrade guide.

thank you

Comment 11 Harish NV Rao 2018-01-25 09:44:13 UTC
@Gregory, this doc change is specific to upgrades from 2.4 to 2.5 only. Right? It's better to explicitly mention it in the doc. Please let me know your thoughts.

Comment 13 Guillaume Abrioux 2018-01-25 17:20:58 UTC
I successfully upgraded from 2.4 to 2.5 after having fixed a couple of issues.

Fixes will be in v3.0.20

Comment 16 Christina Meno 2018-01-25 22:48:27 UTC
Harish,

I think you're right I have changed the doc text to reflect.

Comment 17 Guillaume Abrioux 2018-01-26 10:42:53 UTC
Hi all,

sorry for that but I've released v3.0.21 which contains a patch I've forgotten to add in v3.0.20 for this BZ.
Can you please take this information in consideration if you have already started your testing?

Thanks!

Comment 25 errata-xmlrpc 2018-02-21 19:48:14 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/RHBA-2018:0340