proxy support not fully working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VMBuilder |
New
|
Undecided
|
Unassigned | ||
vm-builder (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
=======
SRU Justification:
1. impact: creating VMs using an apt proxy fails
2. Development fix: set up apt proxies before creating sources.list
3. Stable fix: same as development fix
4. Test case:
sudo apt-get -y install apt-cacher-ng
sudo vmbuilder kvm ubuntu -o -v --tmpfs 1536 --rootsize=4096M --swapsize=512M -d vm1 --proxy=http://
5. Regression potential: this should not introduce any regressions.
=======
Building a vm image behind a proxy doesn't work (in fact, it nearly works...). VMbuilder can't connect to the network while updating the apt sources.
This command crashes :
# vmbuilder vbox ubuntu -o -v \
--tmpfs 1536 --rootsize=4096M --swapsize=512M \
-c openstack.cfg -d target/ubuntu-vbox --proxy=http://
2012-03-28 10:44:47,213 INFO : Mounting tmpfs under /tmp/tmp6WoP31tmpfs
2012-03-28 10:44:47,219 INFO : Calling hook: preflight_check
2012-03-28 10:44:47,222 INFO : Calling hook: set_defaults
2012-03-28 10:44:47,222 INFO : Calling hook: bootstrap
2012-03-28 10:45:22,542 INFO : Calling hook: configure_os
2012-03-28 10:46:25,850 INFO : W: Failed to fetch http://
2012-03-28 10:46:25,850 INFO :
2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://
2012-03-28 10:46:25,851 INFO :
2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://
2012-03-28 10:46:25,851 INFO :
2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://
The problem is at the beginning of the configure_os phase : the /etc/apt/apt.conf file containing the proxy configuration is created after updating the apt sources. The apt update cannot work without the proxy configuration. After swapping theses two actions, building an image works.
So, here is a simple patch swapping theses two actions.
Any chance to have this fix in precise ?
Thanks,
Yoann.
Related branches
Changed in vm-builder (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in vm-builder (Ubuntu Precise): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in vm-builder (Ubuntu Precise): | |
assignee: | Serge Hallyn (serge-hallyn) → nobody |
status: | Triaged → In Progress |
thx for the fix... works for me now :)