Opened 5 years ago

Closed 5 years ago

#11040 closed defect (fixed)

Hardcoding the MIRROR_HOST to 10.0.2.2 breaks LXC builds

Reported by: gk Owned by: erinn
Priority: Medium Milestone:
Component: Applications/Tor bundles/installation Version:
Severity: Keywords: gitian
Cc: dcf Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

In the pluggable transports descriptor for Windows MIRROR_HOST is hardcocded to "10.0.2.2" which breaks LXC builds (as the comment rightly says).

Child Tickets

Change History (3)

comment:1 Changed 5 years ago by dcf

What about this hack, used in bootstrap-fixup?
https://gitweb.torproject.org/builders/gitian-builder.git/blob/133cb4320f414cfb1e484149d5bb38b62e6a42bb:/target-bin/bootstrap-fixup#l9

ip=`hostname --all-ip-addresses | cut -d ' ' -f1 | cut -d. -f1-3`
if [ $ip = "10.0.3" ]; then
    # LXC
    MIRROR_HOST_ON_GUEST=${MIRROR_HOST_ON_GUEST:-10.0.3.1}
else
    # KVM
    MIRROR_HOST_ON_GUEST=${MIRROR_HOST_ON_GUEST:-10.0.2.2}
fi

I haven't tried an LXC build in a long time.

Last edited 5 years ago by dcf (previous) (diff)

comment:2 Changed 5 years ago by gk

Thanks. Good idea and works for me much better than the thing I was trying first. Fixed in 7db9add35d69e69e3366ff803234c2f9cfc6d3af.

comment:3 Changed 5 years ago by gk

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.