Merge "Remove the AIO metadata checksum fix from run-playbooks"

This commit is contained in:
Jenkins 2016-06-10 15:15:28 +00:00 committed by Gerrit Code Review
commit d20adef8c2
2 changed files with 11 additions and 15 deletions

View File

@ -60,27 +60,20 @@ pushd "playbooks"
-t "${COMMAND_LOGS}/host_net_bounce" \ -t "${COMMAND_LOGS}/host_net_bounce" \
&> ${COMMAND_LOGS}/host_net_bounce.log &> ${COMMAND_LOGS}/host_net_bounce.log
# If run-playbooks is executed more than once, the above lxcbr0 network
# restart will break any existing container networks. The lxc_host role
# places a convenience script on the host which fixes that, so let's use
# it to repair the container networks.
if [ -f /usr/local/bin/lxc-veth-check ]; then
/usr/local/bin/lxc-veth-check
fi
# Create the containers. # Create the containers.
install_bits lxc-containers-create.yml install_bits lxc-containers-create.yml
# Log some data about the instance and the rest of the system # Log some data about the instance and the rest of the system
log_instance_info log_instance_info
# When running in an AIO, we need to drop the following iptables rule in any neutron_agent containers
# to that ensure instances can communicate with the neutron metadata service.
# This is necessary because in an AIO environment there are no physical interfaces involved in
# instance -> metadata requests, and this results in the checksums being incorrect.
if [ "${ADD_NEUTRON_AGENT_CHECKSUM_RULE}" == "yes" ]; then
mkdir -p "${COMMAND_LOGS}/add_neutron_agent_checksum_rule"
ansible neutron_agent -m command \
-a '/sbin/iptables -t mangle -A POSTROUTING -p tcp --sport 80 -j CHECKSUM --checksum-fill' \
-t "${COMMAND_LOGS}/add_neutron_agent_checksum_rule" \
&> ${COMMAND_LOGS}/add_neutron_agent_checksum_rule.log
ansible neutron_agent -m shell \
-a 'DEBIAN_FRONTEND=noninteractive apt-get install iptables-persistent' \
-t "${COMMAND_LOGS}/add_neutron_agent_checksum_rule" \
&>> ${COMMAND_LOGS}/add_neutron_agent_checksum_rule.log
fi
fi fi
if [ "${DEPLOY_LB}" == "yes" ]; then if [ "${DEPLOY_LB}" == "yes" ]; then

View File

@ -57,6 +57,9 @@ galera_innodb_log_buffer_size: 32M
galera_wsrep_provider_options: galera_wsrep_provider_options:
- { option: "gcache.size", value: "32M" } - { option: "gcache.size", value: "32M" }
## Neutron settings
neutron_metadata_checksum_fix: True
## Set workers for all services to optimise memory usage ## Set workers for all services to optimise memory usage
ceilometer_api_workers: 2 ceilometer_api_workers: 2
ceilometer_collector_workers: 2 ceilometer_collector_workers: 2