Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1490347

Summary: OSP11 -> OSP12 upgrade: major-upgrade-composable-steps-docker fails "The conditional check 'mongod_service.stat.exists' failed. The error was: error while evaluating conditional (mongod_service.stat.exists): 'mongod_service' is undefined"
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-heat-templatesAssignee: Angus Thomas <athomas>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: urgent Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: dbecker, jschluet, mbracho, mbultel, mburns, morazi, rhel-osp-director-maint
Target Milestone: betaKeywords: Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.1-0.20170927205938.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:08: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:

Description Marius Cornea 2017-09-11 11:49:18 UTC
Description of problem:
OSP11 -> OSP12 upgrade: major-upgrade-composable-steps-docker fails "The conditional check 'mongod_service.stat.exists' failed. The error was: error while evaluating conditional (mongod_service.stat.exists): 'mongod_service' is undefined"

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-7.0.0-0.20170901051303.0rc1.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP11 with 3 controllers, 1 compute, 3 ceph storage nodes
2. Upgrade undercloud to OSP12
3. Run major upgrade composable docker steps to upgrade to containerized architecture:

timeout 100m openstack overcloud deploy \
--templates /usr/share/openstack-tripleo-heat-templates \
--libvirt-type kvm \
--ntp-server clock.redhat.com \
-e /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml \
-e /home/stack/virt/internal.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml \
-e /home/stack/virt/network/network-environment.yaml \
-e /home/stack/virt/hostnames.yml \
-e /home/stack/virt/debug.yaml \
-e /home/stack/virt/nodes_data.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/docker.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml \
-e /usr/share/openstack-tripleo-heat-templates/environments/major-upgrade-composable-steps-docker.yaml \
-e /home/stack/ceph-ansible-env.yaml \
-e /home/stack/docker-osp12.yaml \


Actual results:
Upgrade fails on:

    TASK [Stop and disable mongodb service on upgrade] *****************************
    fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check 'mongod_service.stat.exists' failed. The error was: error while evaluating conditional (mongod_service.stat.exists): 'mongod_service' is undefined"}
    	to retry, use: --limit @/var/lib/heat-config/heat-config-ansible/12bd6b75-e971-4816-9e6b-94c761cd78e0_playbook.retry


Expected results:
Upgrade completes ok.

Additional info:
Note: https://review.openstack.org/#/c/501120/ was applied as a workaround for bug 1490288

Comment 6 errata-xmlrpc 2017-12-13 22:08: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/RHEA-2017:3462