[Rdo-list] image build fails silently on CentOS7

Christopher Brown cbrown2 at ocf.co.uk
Sat Mar 12 11:25:59 UTC 2016


Hi Charles

That's great news.

Would you mind adding this to the wiki if you have time and inclination?

There is a page on tripleo troubleshooting I am updating as I go along as well.

https://www.rdoproject.org/tripleo/troubleshooting/

If not I will add when back at a keyboard.


Regards,

Christopher Brown
OpenStack Engineer
OCF plc

Tel: +44 (0)114 257 2200
Web: www.ocf.co.uk
Blog: blog.ocf.co.uk
Twitter: @ocfplc

OCF plc is a company registered in England and Wales. Registered number 4132533, VAT number GB 780 6803 14. Registered office address: OCF plc, 5 Rotunda Business Centre, Thorncliffe Park, Chapeltown, Sheffield, S35 2PG.

This message is private and confidential. If you have received this message in error, please notify us and remove it from your system.


-------- Original message --------
From: Charles Short <cems at ebi.ac.uk>
Date: 2016/03/12 10:14 (GMT)
To: rdo-list at redhat.com
Subject: Re: [Rdo-list] image build fails silently on CentOS7

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

_______________________________________________
Rdo-list mailing list
Rdo-list at redhat.com
https://www.redhat.com/mailman/listinfo/rdo-list

To unsubscribe: rdo-list-unsubscribe at redhat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rdoproject.org/pipermail/dev/attachments/20160312/ea3c1d48/attachment.html>


More information about the dev mailing list