From 8cdb894b3e5b766e8db5e588f3165c57033219ae Mon Sep 17 00:00:00 2001 From: Brian Candler Date: Thu, 30 Jun 2016 20:38:35 +0000 Subject: [PATCH] Workaround for lxd-bridge-proxy pipelining bug --- ansible/gold-master.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ansible/gold-master.yml b/ansible/gold-master.yml index 7653559..0cd29c8 100644 --- a/ansible/gold-master.yml +++ b/ansible/gold-master.yml @@ -16,10 +16,6 @@ type: nic # NOTE: on first run this fetches the whole image (~650MB) over the Internet - # NOTE: we should be able to leave the container on the "default" profile, which gets a - # link-local v6 address and http_proxy pointing at lxdbr0. But this doesn't work: - # https://github.com/lxc/lxd/issues/2166 - # So for now we have to attach to a real bridge and pick up a real IP address - name: create and start gold-master container lxd_container: @@ -35,6 +31,19 @@ wait_for_ipv4_addresses: true timeout: 600 + # If we are on the "default" profile, we get only a link-local v6 address, and + # http_proxy pointing at lxdbr0. But there is a bug with pipelining in the proxy: + # https://github.com/lxc/lxd/issues/2166 + # Workaround: + # http://bnpcs.blogspot.co.uk/2010/11/disable-http-pipelining-in-ubuntu.html + + - name: disable pipelining for apt-get + delegate_to: gold-master + copy: + content: | + Acquire::http::Pipeline-Depth "0"; + dest: /etc/apt/apt.conf.d/00no-pipeline + # Ansible cannot run in a container unless python2 is present. # So we must force it to be installed using raw commands. - name: check python is installed in container -- GitLab