Skip to content
Snippets Groups Projects
Commit 8cdb894b authored by Brian Candler's avatar Brian Candler
Browse files

Workaround for lxd-bridge-proxy pipelining bug

parent 145d0ed0
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment