Bug 1535382 - [ceph-ansible] - rolling update from 2.4 to 2.5 fails asking user to add mgrs
Summary: [ceph-ansible] - rolling update from 2.4 to 2.5 fails asking user to add mgrs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Ansible
Version: 2.5
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 2.5
Assignee: Sébastien Han
QA Contact: Parikshith
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-17 09:39 UTC by Vasishta
Modified: 2018-02-21 19:48 UTC (History)
14 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-02-21 19:48:14 UTC
Embargoed:


Attachments (Terms of Use)
File contains contents ansible-playbook log (2.56 KB, text/plain)
2018-01-17 09:39 UTC, Vasishta
no flags Details
upgrade log (42.40 KB, text/plain)
2018-01-24 06:30 UTC, Parikshith
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph-ansible pull 2324 0 None closed rolling update: add mgr exception for jewel minor updates 2020-08-29 13:47:36 UTC
Github ceph ceph-ansible pull 2351 0 None closed upgrade: skip luminous tasks for jewel minor update 2020-08-29 13:47:36 UTC
Red Hat Product Errata RHBA-2018:0340 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2.5 bug fix and enhancement update 2018-02-22 00:50:32 UTC

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


Note You need to log in before you can comment on or make changes to this bug.