Bug 1538783 - OSP11 -> OSP12 upgrade: major upgrade composable step fails because ceph-ansible is waiting for user input
Summary: OSP11 -> OSP12 upgrade: major upgrade composable step fails because ceph-ansi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: z2
: 12.0 (Pike)
Assignee: John Fulton
QA Contact: Yogev Rabl
URL:
Whiteboard:
: 1546396 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-25 20:02 UTC by Marius Cornea
Modified: 2023-02-22 23:02 UTC (History)
13 users (show)

Fixed In Version: openstack-tripleo-common-7.6.9-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-28 17:28:51 UTC
Target Upstream Version:
Embargoed:
scohen: needinfo+


Attachments (Terms of Use)
sosreport undercloud (17.78 MB, application/x-xz)
2018-01-25 20:06 UTC, Marius Cornea
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1745494 0 None None None 2018-01-25 22:11:51 UTC
OpenStack gerrit 541656 0 None MERGED Use extra_vars to pass ireallymeanit 2020-02-24 01:03:04 UTC
Red Hat Product Errata RHBA-2018:0607 0 None None None 2018-03-28 17:29:25 UTC

Description Marius Cornea 2018-01-25 20:02:58 UTC
Description of problem:
OSP11 -> OSP12 upgrade: major upgrade composable step fails because ceph-ansible is waiting for user input:

/var/log/mistral/ceph-install-workflow.log:

2018-01-25 13:55:45,889 p=18529 u=mistral |  PLAY [confirm whether user really meant to switch from non-containerized to containerized ceph daemons] ***
2018-01-25 13:55:45,900 p=18529 u=mistral |  TASK [exit playbook, if user did not mean to switch from non-containerized to containerized daemons?] ***
2018-01-25 13:55:45,931 p=18529 u=mistral |  fatal: [localhost]: FAILED! => {"changed": false, "msg": "\"Exiting switch-from-non-containerized-to-containerized-ceph-daemons.yml playbook,\n cluster did not switch from non-containerized to containerized ceph daemons.\n To switch from non-containerized to containerized ceph daemons, either say 'yes' on the prompt or\n or use `-e ireallymeanit=yes` on the command line when\n invoking the playbook\"\n"}
2018-01-25 13:55:45,931 p=18529 u=mistral |  PLAY RECAP *********************************************************************


Version-Release number of selected component (if applicable):
[root@undercloud-0 stack]# rpm -q openstack-tripleo-heat-templates ceph-ansible
openstack-tripleo-heat-templates-7.0.3-22.el7ost.noarch
ceph-ansible-3.0.14-1.el7cp.noarch


How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP11 with 3 controllers + 2 computes + 3 ceph nodes
2. Upgrade to OSP12

Actual results:
major-upgrade-composable-steps-docker fails

Expected results:
successful upgrade

Additional info:
Attaching sosreport.

Comment 1 Marius Cornea 2018-01-25 20:06:23 UTC
Created attachment 1386275 [details]
sosreport undercloud

Comment 2 John Fulton 2018-01-25 20:50:31 UTC
Fix from BZ 1480172 is present in ceph-base.yaml (ireallymeanit: yes)
According to Mistral's last task [0] for the ceph-ansible, the Heat to mistral call has it but the playbook was called without it [1]. How parameters are passed from Mistral to ceph-ansible was changed recently [2] so I wonder if this type of parameter didn't handle that change. Next step: test that theory. 

[0] https://github.com/fultonj/tripleo-ceph-ansible/blob/master/see-last-task.sh
[1] http://paste.openstack.org/show/653502/
[2] https://review.openstack.org/#/c/528755/1/workbooks/ceph-ansible.yaml

Comment 3 John Fulton 2018-01-25 22:34:27 UTC
WORKAROUND:

1. Apply this change to /usr/share/tripleo-common/workbooks/ceph-ansible.yaml

 https://review.openstack.org/#/c/538051/1/workbooks/ceph-ansible.yaml

2. Update Mistral workbook definition

 mistral workbook-update /usr/share/tripleo-common/workbooks/ceph-ansible.yaml

3. Rerun 'openstack overcloud deploy'

Comment 4 John Fulton 2018-02-16 18:06:52 UTC
Requesting pm_ack+ via needinfo

Comment 5 Giulio Fidente 2018-02-19 09:13:58 UTC
*** Bug 1546396 has been marked as a duplicate of this bug. ***

Comment 9 Yogev Rabl 2018-03-13 19:24:34 UTC
verified

Comment 12 errata-xmlrpc 2018-03-28 17:28:51 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:0607


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