apt proxy failures

Bug #1019630 reported by Andy Doan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dispatcher
Fix Released
High
Andy Doan

Bug Description

We've been seeing an occassionally weird issue when setting the apt proxy. It looks like:

root@master:~# [rc=0]: cp -L /etc/resolv.conf /mnt/testrootfs/etc
root@master:~# [rc=0]: mount --rbind /dev /mnt/testrootfs/dev
root@master:~# [rc=0]: chroot /mnt/testrootfs sh -c 'export http_proxy=http://1 92.168.1.10:3128/'
root@master:~# [rc=0]: chroot /mnt/testrootfs echo 'Acquire::http::proxy "http: //192.168.1.10:3128/";' > /etc/apt/apt.conf.d/30proxy
root@master:~# [rc=0]: chroot /mnt/testrootfs cat /etc/apt/apt.conf.d/30proxy
cat: /etc/apt/apt.conf.d/30proxy: No such file or directory

A real example of this is here:
 http://validation.linaro.org/lava-server/scheduler/job/23773/log_file

Its happening enough (and fairly consistently on snowballs) that I think we should try and understand this. One thing I notice in the log file above was that it took a few retries to download the root.tar.gz. So I wonder if the 30proxy is just a symptom and not the root issue.

Related branches

Revision history for this message
Andy Doan (doanac) wrote :

I should also add. Alexander thinks the way we are doing this is wrong. He thinks that rather than setting 30proxy, we should run instead run apt-get differently:

 apt-get -oAcquire:http:proxy=http://192.168.1.10:3128

Revision history for this message
Spring Zhang (qzhang) wrote :

More found on 26277, 26266~26276.

There's a high reproduce possibility on Snowball. Report "E: Syntax error /etc/apt/apt.conf.d/30proxy:1: Extra junk at end of file"
-------------------------------------------------------
root@master:~# <LAVA_DISPATCHER>2012-07-23 12:13:07 PM INFO: Setting up http proxy

[rc=0]: export http_proxy=http://192.168.1.10:3128/
root@master:~# [rc=0]: echo 'Acquire::http::proxy "http://192.168.1.10:3128/";' > /etc/apt/apt.conf.d/30proxy
root@master:~# [rc=0]: cat /etc/apt/apt.conf.d/30proxy
Acquire::http::proxy "http://192.168.1.10:3128/";

root@master:~# [rc=0]: chroot /mnt/testrootfs sh -c 'export http_proxy=http://1 92.168.1.10:3128/'
root@master:~# [rc=0]: chroot /mnt/testrootfs echo 'Acquire::http::proxy "http: //192.168.1.10:3128/";' > /etc/apt/apt.conf.d/30proxy
root@master:~# [rc=0]: chroot /mnt/testrootfs cat /etc/apt/apt.conf.d/30proxy
��������� 'adduser <username>' ������������ ������root@master:~# [rc=0]: chroot /mnt/testrootfs apt-get update
E: Syntax error /etc/apt/apt.conf.d/30proxy:1: Extra junk at end of file
root@master:~# [rc=100]: cp -f /mnt/testrootfs/etc/resolv.conf.bak /mnt/testroo tfs/etc/resolv.conf

Spring Zhang (qzhang)
Changed in lava-dispatcher:
importance: Undecided → High
Spring Zhang (qzhang)
Changed in lava-dispatcher:
status: New → In Progress
Spring Zhang (qzhang)
Changed in lava-dispatcher:
milestone: none → 2012.08
Revision history for this message
Andy Doan (doanac) wrote :

here's an example of a test showing this working in staging:

 http://staging.validation.linaro.org/scheduler/job/25386/log_file

Fathi Boudra (fboudra)
Changed in lava-dispatcher:
assignee: nobody → Andy Doan (doanac)
milestone: 2012.08 → 2012.09
Andy Doan (doanac)
Changed in lava-dispatcher:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.