Description of problem: ./diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release fails to pull in EPEL from mirror as the file no longer exists. This has been fixed upstream at http://git.openstack.org/cgit/openstack/diskimage-builder/tree/elements/epel/pre-install.d/05-rpm-epel-release Version-Release number of selected component (if applicable): diskimage-builder-0.1.34-12.fc22.noarch How reproducible: Happens every time Steps to Reproduce: 1. HOST_DIST=centos7 2. instack-build-images 3. Actual results: Build aborts. ... package epel-release is not installed Loaded plugins: fastestmirror Cannot open: http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm. Skipping. Error: Nothing to do rm: cannot remove '/var/tmp/image.c9WksP6X/mnt/etc/rwtab': Permission denied rm: cannot remove '/var/tmp/image.c9WksP6X/mnt/etc/motd': Permission denied rm: cannot remove '/var/tmp/image.c9WksP6X/mnt/etc/idmapd.conf': Permission denied rm: cannot remove '/var/tmp/image.c9WksP6X/mnt/etc/selinux/targeted/seusers': Permission denied Expected results: EPEL release is installed and build continues. Additional info: Upstream fix: http://git.openstack.org/cgit/openstack/diskimage-builder/commit/elements/epel/pre-install.d/05-rpm-epel-release?id=4e9525ddaa852249fb38d88368e5cfd3c02175f0
Add the upstream fix as is, replacing the packaged file, fails because wget is not in the target image. Replacing line 30: `PKG_NAME=$(wget -q $URL -O - | grep -oE "(href=\"epel-release-$RELEASE-[0-9,.].*)" | cut -d'"' -f2)` with: `PKG_NAME=$(curl -L $URL | grep -oE "(href=\"epel-release-$RELEASE-[0-9,.].*)" | cut -d'"' -f2)` allow the install to continue on my system (an fc20 x86_64 base OS, building CentOS 7 images).
This bug is against a Version which has reached End of Life. If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.