RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1228761 - DIB_YUM_REPO_CONF points to two files and that breaks imagebuilding
Summary: DIB_YUM_REPO_CONF points to two files and that breaks imagebuilding
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: distribution
Version: Kilo
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: Kilo
Assignee: Ben Nemec
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-05 15:43 UTC by Adriano Petrich
Modified: 2023-04-07 11:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-03-30 23:08:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Adriano Petrich 2015-06-05 15:43:10 UTC
Description of problem:
osp director uses two files for the DIB_YUM_REPO_CONF variable. 


How reproducible:
Very. There's a test for [ ! -f $DIB_YUM_REPO_CONF ]

[ ! -f "foo bar"] will always trigger no matter if foo and bar exists

Steps to Reproduce:
1.set export DIB_YUM_REPO_CONF="/etc/yum.repos.d/rhos-release-7-director-rhel-7.1.repo /etc/yum.repos.d/rhos-release-7-rhel-7.1.repo"
2. Do an image build

Actual results:
Image build fails 

Expected results:


Additional info:

dib-run-parts Thu Jun 4 18:23:20 UTC 2015 Running /tmp/image.X3bcjj5W/hooks/extra-data.d/99-enable-install-types
+ set -eu
+ set -o pipefail
+ declare -a SPECIFIED_ELEMS
+ SPECIFIED_ELEMS[0]=
+ PREFIX=DIB_INSTALLTYPE_
++ env
++ grep '^DIB_INSTALLTYPE_'
++ cut -d= -f1
++ echo ''
+ INSTALL_TYPE_VARS=
++ find /tmp/image.X3bcjj5W/hooks/install.d -maxdepth 1 -name '*-source-install' -type d
+ default_install_type_dirs=
dib-run-parts Thu Jun 4 18:23:20 UTC 2015 99-enable-install-types completed
dib-run-parts Thu Jun 4 18:23:20 UTC 2015 Running /tmp/image.X3bcjj5W/hooks/extra-data.d/99-squash-package-install
dib-run-parts Thu Jun 4 18:23:20 UTC 2015 99-squash-package-install completed
dib-run-parts Thu Jun 4 18:23:20 UTC 2015 Running /tmp/image.X3bcjj5W/hooks/extra-data.d/99-yum-repo-conf
+ set -eu
+ set -o pipefail
+ '[' -z '/etc/yum.repos.d/rhos-release-7-director-rhel-7.1.repo /etc/yum.repos.d/rhos-release-7-rhel-7.1.repo' ']'
+ '[' '!' -f '/etc/yum.repos.d/rhos-release-7-director-rhel-7.1.repo /etc/yum.repos.d/rhos-release-7-rhel-7.1.repo' ']'
+ echo 'DIB_YUM_REPO_CONF is not a valid yum repo configuration file.'
+ echo 'You should assign a proper yum repo configuration file in DIB_YUM_REPO_CONF'
+ exit 1

FATAL: all hosts have already failed -- aborting


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