Bug 1210465

Summary: instack-build-images fails when building CentOS7 due to EPEL version change
Product: [Community] RDO Reporter: matt
Component: distributionAssignee: Ben Nemec <bnemec>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JunoCC: srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:40:19 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:

Description matt 2015-04-09 19:26:06 UTC
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

Comment 1 matt 2015-04-09 20:08:03 UTC
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).

Comment 3 Chandan Kumar 2016-05-19 15:40:19 UTC
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.