Bug 1713102

Summary: template command error in s390.tmpl
Product: Red Hat Enterprise Linux 8 Reporter: Brian Lane <bcl>
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: jstodola, release-test-team-automation
Target Milestone: rc   
Target Release: 8.1   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1712822 Environment:
Last Closed: 2019-05-29 17:39:45 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: 1712822, 1714107    
Bug Blocks: 1689193    

Description Brian Lane 2019-05-22 21:17:45 UTC
+++ This bug was initially created as a clone of Bug #1712822 +++

+++ This bug was initially created as a clone of Bug #1712491 +++

Description of problem:
livemedia-creator is failing when creating iso on s390x:

2019-05-21 10:47:13,840: Building boot.iso
2019-05-21 10:47:13,857: running s390.tmpl
2019-05-21 10:47:13,857: `/var/tmp/lorax.imgutils.E_DiM_/images/install.img` and `/var/tmp/tmpqjUc8q/images/install.img` are the same file
2019-05-21 10:47:13,859: template command error in s390.tmpl:
2019-05-21 10:47:13,859:   replace @EXTRA@ generic.prm
2019-05-21 10:47:13,885:   IOError: no files matched
2019-05-21 10:47:18,898: no files matched 

Version-Release number of selected component (if applicable):
lorax-19.7.24-1.el7

How reproducible:
always on s390x

Steps to Reproduce:
1. # REPO_URL=<repo_URL>
2. # OPTIONAL_URL=<optional_URL>
3. # sed -r -e "/^url/ s|http://[^ ]+|$REPO_URL|" -e "/^repo.*--name=optional/ s|http://[^ ]+|$OPTIONAL_URL|" /usr/share/doc/lorax-*/rhel7-livemedia.ks > ks.cfg
4. # sed 's/^%packages$/%packages --ignoremissing/' -i ks.cfg
5. # livemedia-creator --no-virt --make-iso --ks ks.cfg

Actual results:
template command error in s390.tmpl

Expected results:
livemedia-creator finishes successfully

--- Additional comment from Jan Stodola on 2019-05-22 03:18:33 PDT ---

Let's fix this problem in RHEL-8 as well, although the bug is not so visible in RHEL-8 - templates from the lorax-templates-rhel package are used by default and this problem doesn't occur there.
To reproduce it on RHEL-8, lorax-templates-rhel needs to be uninstalled first:

# rpm -e --nodeps lorax-templates-rhel
# livemedia-creator --no-virt --make-iso --ks ks.cfg

Reproduced with lorax-28.14.23-5.el8_0 from 0-day errata.

PR: https://github.com/weldr/lorax/pull/728

Comment 1 Brian Lane 2019-05-23 22:39:58 UTC
https://github.com/weldr/lorax/pull/728

Comment 2 Brian Lane 2019-05-29 17:39:45 UTC

*** This bug has been marked as a duplicate of bug 1714107 ***