[Rdo-list] image build fails silently on CentOS7
Charles Short
cems at ebi.ac.uk
Fri Mar 11 16:16:04 UTC 2016
I suspect this is due to this sed line not working -
[root at hh-undercloud ~]# grep -ir 'DIB_EPEL_MIRROR'
/usr/share/diskimage-builder/
/usr/share/diskimage-builder/elements/epel/README.rst:DIB_EPEL_MIRROR:
/usr/share/diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release:BASE_URL=${DIB_EPEL_MIRROR:-https://dl.fedoraproject.org/pub/epel}
/usr/share/diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release:DIB_EPEL_MIRROR=${DIB_EPEL_MIRROR:-}
/usr/share/diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release:[
-n "$DIB_EPEL_MIRROR" ] || exit 0
/usr/share/diskimage-builder/elements/epel/pre-install.d/05-rpm-epel-release:sed
-e
"s|^#baseurl=http://download.fedoraproject.org/pub/epel|baseurl=$DIB_EPEL_MIRROR|;/^mirrorlist=/d"
-i /etc/yum.repos.d/epel.repo
The change in the epo url has not been made to my
/etc/yum.repos.d/epel.repo, so exporting the variable fixes this.
/etc/yum.repos.d/epel.repo
All due to this change
https://github.com/openstack/diskimage-builder/commit/2b28993fb8fdfd3130e4ed2c0ab1eda65cd730b9#diff-cde3de4c8fb6e0857e63497c8464a4df
??
On 11/03/2016 15:22, Charles Short wrote:
> I have managed to find a way to progress.
>
> Previously the build was hanging on -
>
> /tmp/in_target.d/pre-install.d/05-rpm-epel-release
>
> the same as in the bug.
>
> However if I additionally add
>
> export DIB\_EPEL\_MIRROR=http://dl.fedoraproject.org/pub/epel
>
> then the build progresses past this point and finishes.
>
> Maybe this should be added to the documentation (if correct)?
>
> Charles
>
> On 11/03/2016 11:57, Charles Short wrote:
>> CentOS 7 (1511)/Liberty
>>
>> Installed on baremetal using
>> http://docs.openstack.org/developer/tripleo-docs/index.html
>>
>> Seeing this bug -
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=1233210
>>
>> Anyone else having problems building images on CentOS7?
>>
>> Thanks
>>
>> Charles
>>
>
--
Charles Short
Cloud Engineer
Virtualization and Cloud Team
European Bioinformatics Institute (EMBL-EBI)
Tel: +44 (0)1223 494205
More information about the dev
mailing list