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
This should have been fixed by https://github.com/rdo-management/diskimage-builder/commit/aee9cc0ce686647d1c4f8176427224d116adb753