[Rdo-list] image build fails silently on CentOS7

Charles Short cems at ebi.ac.uk
Sat Mar 12 10:08:05 UTC 2016


Ok, I have resolved my issue.

I am behind a work proxy server, so I already had to create a ~/.curlrc 
file with proxy=http://[proxy_server] and added variable 'export 
http_proxy=http://[proxy_server]'.

With this in place I had the issues I reported.

It turns out that I also needed to add 'export 
https_proxy=http://[proxy_server]' ,( no need for export 
DIB\_EPEL\_MIRROR=http://dl.fedoraproject.org/pub/epel, this was a red 
herring)

So in summary -

Create ~/.curlrc file with proxy server
export http_proxy=http://[proxy_server:port]'
export https_proxy=http://[proxy_server:port]'
export USE_DELOREAN_TRUNK=1
export 
DELOREAN_TRUNK_REPO="http://trunk.rdoproject.org/centos7-liberty/current/"
export DELOREAN_REPO_FILE="delorean.repo"

openstack overcloud image build --all


Charles

On 11/03/2016 16:16, Charles Short wrote:
> 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