Add CephMgr to custom roles_data during P->Q upgrades

Bug #1767304 reported by Yurii Prokulevych on 2018-04-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Yurii Prokulevych

Bug Description

New service CephMgr was added in Q. This poses issues for P->Q upgrades if custom roles_data.yaml is used.

2018-04-26 11:05:01,095 p=16411 u=mistral | META: ran handlers
2018-04-26 11:05:01,102 p=16411 u=mistral | TASK [exit playbook, if user did not mean to upgrade cluster] ******************
2018-04-26 11:05:01,102 p=16411 u=mistral | task path: /usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml:31
2018-04-26 11:05:01,102 p=16411 u=mistral | Thursday 26 April 2018 11:05:01 -0400 (0:00:00.800) 0:00:00.933 ********
2018-04-26 11:05:01,123 p=16411 u=mistral | skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
2018-04-26 11:05:01,131 p=16411 u=mistral | TASK [fail if no mgr host is present in the inventory] *************************
2018-04-26 11:05:01,131 p=16411 u=mistral | task path: /usr/share/ceph-ansible/infrastructure-playbooks/rolling_update.yml:40
2018-04-26 11:05:01,131 p=16411 u=mistral | Thursday 26 April 2018 11:05:01 -0400 (0:00:00.028) 0:00:00.962 ********
2018-04-26 11:05:01,166 p=16411 u=mistral | fatal: [localhost]: FAILED! => {"changed": false, "msg": "Please add a mgr host to your inventory."}
2018-04-26 11:05:01,168 p=16411 u=mistral | PLAY RECAP *********************************************************************
2018-04-26 11:05:01,168 p=16411 u=mistral | localhost : ok=1 changed=0 unreachable=0 failed=1
2018-04-26 11:05:01,169 p=16411 u=mistral | Thursday 26 April 2018 11:05:01 -0400 (0:00:00.037) 0:00:00.999 ********

Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → rocky-2
tags: added: upgrade

Reviewed: https://review.openstack.org/564701
Committed: https://git.openstack.org/cgit/openstack/tripleo-upgrade/commit/?id=48336cc3cf6e9e7867a86aaaceb209fbba064ae2
Submitter: Zuul
Branch: stable/queens

commit 48336cc3cf6e9e7867a86aaaceb209fbba064ae2
Author: Yurii Prokulevych <email address hidden>
Date: Fri Apr 27 10:22:46 2018 +0200

    Add CephMgr service to custom roles_data file.

    In commit 3cea68f12cd954282a824936922f58768aef5042 new service,
     CephMgr was introduced.
    This change add validation for this service to be present in a
     custom roles_data file, and adds it if missing.
    This prevents error during ceph upgrade, for e.g.:
     Please add a mgr host to your inventory.

    Closes-Bug: 1767304
    Change-Id: Iab18f8125a07b20def5bfb22f2ccf0dcbc5ec0ac

tags: added: in-stable-queens
Changed in tripleo:
assignee: nobody → Yurii Prokulevych (yprokule)
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers