Set containers to use the same apt repo as the host

This patch sets the AIO to use the same apt repository as the host in order to
reduce intermittent failures exhibited in environments other than RAX Cloud.

Change-Id: Id4069efa51f6198504d0eb1cfcd9c8beb9607075
Closes-Bug: #1441148
This commit is contained in:
Jesse Pretorius 2015-04-07 13:53:14 +01:00
parent 67cc5657df
commit 0cf3acc534

View File

@ -267,6 +267,11 @@ echo 'galera_gcache_size: 50M' | tee -a /etc/openstack_deploy/user_variables.yml
# Set the running kernel as the required kernel
echo "required_kernel: $(uname --kernel-release)" | tee -a /etc/openstack_deploy/user_variables.yml
# Set the Ubuntu apt repository used for containers to the same as the host
UBUNTU_REPO=$(awk '/^deb .*ubuntu trusty main/ {print $2}' /etc/apt/sources.list)
echo "lxc_container_template_main_apt_repo: ${UBUNTU_REPO}" | tee -a /etc/openstack_deploy/user_variables.yml
echo "lxc_container_template_security_apt_repo: ${UBUNTU_REPO}" | tee -a /etc/openstack_deploy/user_variables.yml
# Set the running neutron workers to 0/1
echo "neutron_api_workers: 0" | tee -a /etc/openstack_deploy/user_variables.yml
echo "neutron_rpc_workers: 0" | tee -a /etc/openstack_deploy/user_variables.yml