Activity log for bug #966944

Date Who What changed Old value New value Message
2012-03-28 09:00:50 Yoann Dubreuil bug added bug
2012-03-28 09:00:50 Yoann Dubreuil attachment added proxy-support.patch https://bugs.launchpad.net/bugs/966944/+attachment/2953662/+files/proxy-support.patch
2012-03-29 16:41:19 Launchpad Janitor branch linked lp:~yoann-dubreuil/vmbuilder/proxy-support
2012-03-29 16:44:21 Yoann Dubreuil bug task added vm-builder (Ubuntu)
2012-04-02 11:33:23 James Page vm-builder (Ubuntu): importance Undecided Medium
2012-08-02 16:44:48 Launchpad Janitor vm-builder (Ubuntu): status New Confirmed
2012-08-06 15:55:31 Serge Hallyn vm-builder (Ubuntu): status Confirmed Triaged
2012-08-06 15:57:10 Serge Hallyn nominated for series Ubuntu Precise
2012-08-06 15:57:10 Serge Hallyn bug task added vm-builder (Ubuntu Precise)
2012-08-06 15:57:10 Serge Hallyn nominated for series Ubuntu Quantal
2012-08-06 15:57:10 Serge Hallyn bug task added vm-builder (Ubuntu Quantal)
2012-08-06 19:41:02 Launchpad Janitor branch linked lp:~vmbuilder-dev/vmbuilder/packaging
2012-08-06 19:45:48 Launchpad Janitor vm-builder (Ubuntu Quantal): status Triaged Fix Released
2012-08-06 19:49:27 Serge Hallyn description 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://apt-cacher-ng-host:3142 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://fr.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,850 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,851 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,851 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-amd64/Packages Unable to connect to fr.archive.ubuntu.com: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. ======================================== 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://localhost:3142 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://apt-cacher-ng-host:3142 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://fr.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,850 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,851 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Unable to connect to fr.archive.ubuntu.com:http: 2012-03-28 10:46:25,851 INFO : 2012-03-28 10:46:25,851 INFO : W: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/precise/universe/binary-amd64/Packages Unable to connect to fr.archive.ubuntu.com: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.
2012-08-06 19:53:01 Serge Hallyn vm-builder (Ubuntu Precise): assignee Serge Hallyn (serge-hallyn)
2012-08-06 19:53:05 Serge Hallyn vm-builder (Ubuntu Precise): status New Triaged
2012-08-06 19:53:21 Serge Hallyn vm-builder (Ubuntu Precise): importance Undecided Medium
2012-08-06 19:56:35 Serge Hallyn bug added subscriber Ubuntu Stable Release Updates Team
2012-08-06 19:56:41 Serge Hallyn vm-builder (Ubuntu Precise): assignee Serge Hallyn (serge-hallyn)
2012-08-06 19:56:44 Serge Hallyn vm-builder (Ubuntu Precise): status Triaged In Progress
2012-08-06 20:14:15 Launchpad Janitor branch linked lp:ubuntu/vm-builder
2012-08-29 00:16:26 Chris Halse Rogers vm-builder (Ubuntu Precise): status In Progress Fix Committed
2012-08-29 00:16:33 Chris Halse Rogers bug added subscriber SRU Verification
2012-08-29 00:16:40 Chris Halse Rogers tags verification-needed
2012-09-23 22:51:01 Alan Pope 🍺🐧🐱 πŸ¦„ tags verification-needed verification-done
2013-01-03 20:43:39 Adam Conrad removed subscriber Ubuntu Stable Release Updates Team
2013-01-03 20:44:14 Launchpad Janitor vm-builder (Ubuntu Precise): status Fix Committed Fix Released