Bug 1500528

Summary: The output from "openstack overcloud container image prepare" should exclude mongodb.
Product: Red Hat OpenStack Reporter: Alexander Chuzhoy <sasha>
Component: openstack-tripleo-commonAssignee: Steve Baker <sbaker>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 12.0 (Pike)CC: hbrock, jcoufal, jjoyce, jschluet, jslagle, m.andre, mburns, ohochman, rhel-osp-director-maint, sclewis, slinaber
Target Milestone: rcKeywords: AutomationBlocker, Triaged
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-7.6.3-2.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-13 22:13:08 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:
Bug Depends On: 1489801    
Bug Blocks:    

Description Alexander Chuzhoy 2017-10-10 20:41:26 UTC
The output from "openstack overcloud container image prepare" should exclude mongodb.

Environment:
openstack-tripleo-common-7.6.1-0.20170926174320.el7ost.noarch
python-tripleoclient-7.3.1-0.20170925220840.f114a61.el7ost.noarch

Currently running "openstack overcloud container image prepare" also generate a line with mongodb. This line shouldn't be there.

Comment 1 Alexander Chuzhoy 2017-10-11 13:55:29 UTC
This affects deployments with local registry, as this step isn't needed for remote registry scenario.

Comment 2 Martin André 2017-10-11 14:23:25 UTC
The problem is that "openstack overcloud container image prepare" command with no arguments will create an entry for all the images that are defined in the /usr/share/openstack-tripleo-common/container-images/overcloud_containers.yaml.j2 template.

You can filter the output of the prepare command to only the images that you're going to be using in the deployment by passing it the roles_data.yaml and the heat environment files that you're going to use in your deployment, respectively with the -r and -e options, similar to what you're using in your deploy command. 

Two things we should do:

- remove the unused images from the default overcloud_containers.yaml file
- include the docker.yaml and docker-ha.yaml files by default in the prepare command.

Comment 3 Steve Baker 2017-10-12 01:45:37 UTC
Since we don't build and support the mongodb image, I think we should carry a downstream patch to remove it from overcloud_containers.yaml.j2

Comment 4 Jon Schlueter 2017-10-17 18:47:46 UTC
tripleo-common patch for mongodb in build  openstack-tripleo-common-7.6.3-0.20171010234827.el7ost

Comment 8 Jon Schlueter 2017-11-10 14:04:45 UTC
openstack-tripleo-common-7.6.3-2.el7ost built including patch for this please check and update status if this resolves it.

Comment 10 Alexander Chuzhoy 2017-11-16 15:31:48 UTC
Verified:

Environment:
openstack-tripleo-common-7.6.3-3.el7ost.noarch


The output from "openstack overcloud container image prepare" command doesn't include lines with mongodb now.

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