Bug 1504508

Summary: tripleo-common hardcodes amd64 for overcloud-full images
Product: Red Hat OpenStack Reporter: Tony Breeds <tonyb>
Component: openstack-tripleo-commonAssignee: Tony Breeds <tonyb>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: aschultz, bfournie, emacchi, jslagle, mburns, sasha, slinaber, tonyb
Target Milestone: Upstream M3Keywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-common-8.2.1-0.20171206155029.bb2b96e.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:37:56 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:
Bug Depends On:    
Bug Blocks: 1496527, 1489476, 1506507    

Description Tony Breeds 2017-10-20 04:16:01 UTC
When trying to build an overcloud image on ppc64le tripleo/DIB attempts to build an amd64 image.

openstack-tripleo-common-7.6.3-0.20171010234827.el7ost.noarch


Steps to Reproduce:
1. Create a ppc64le 'input image':
   https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=14309272
2. Create a ppc64le 'utility image'
   https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=14309274
3. Boot the utility image and import the input image from step 1
4. Use the TDL template from http://pkgs.devel.redhat.com/cgit/rpms/rhosp-director-images/tree/overcloud-full.tdl?h=rhos-12.0-rhel-7 to transform the simple input image into an overcloud image

Actual results:

openstack overcloud image builds fails with:

"""
Command '['disk-image-create', '-a', 'amd64', '-o', './overcloud-full', '-t', 'qcow2', '-p', 'python-psutil,python-debtcollector,plotnetcfg,sos,ntp,device-mapper-multipath,python-heat-agent-puppet,python-heat-agent-hiera,python-heat-agent-apply-config,python-heat-agent-ansible,python-heat-agent-docker-cmd,python-heat-agent-json-file,redhat-access-insights,rhosp-release', '--min-tmpfs', '5', 'rhel7', 'baremetal', 'dhcp-all-interfaces', 'overcloud-agent', 'overcloud-full', 'overcloud-controller', 'overcloud-compute', 'overcloud-ceph-storage', 'puppet-modules', 'os-net-config', 'stable-interface-names', 'grub2', 'element-manifest', 'dynamic-login', 'iptables', 'enable-packages-install', 'pip-and-virtualenv-override', 'dracut-regenerate', 'remove-machine-id']' returned non-zero exit status 1
"""

Expected results:

A generated overcloud image.


Additional info

The are a couple of options here
1. Backport https://review.openstack.org/#/c/489476/ to pike upstream and the import the new SHA into the RHOS packaging
2. use scripts in rhosp-director-images to do this translation.

Comment 12 Gurenko Alex 2018-06-07 12:10:43 UTC
[stack@undercloud-0 ~]$ rpm -q openstack-tripleo-common
openstack-tripleo-common-8.6.1-18.el7ost.noarch

Verified on puddle 2016-06-01.1

Comment 14 errata-xmlrpc 2018-06-27 13:37:56 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-2018:2086