RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1210465 - instack-build-images fails when building CentOS7 due to EPEL version change
Summary: instack-build-images fails when building CentOS7 due to EPEL version change
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: distribution
Version: Juno
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Ben Nemec
QA Contact: Shai Revivo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-09 19:26 UTC by matt
Modified: 2023-04-07 11:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:40:19 UTC
Embargoed:


Attachments (Terms of Use)

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.


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