Add reserved IP of old neutron_agent container

this should prevent the system to allocate those IP to the new neutron_agent containers.

Change-Id: Idc5207a933d1dd865ec2d480dfe368f9f5a7d3dd
This commit is contained in:
Marc Gariepy 2017-12-05 10:31:23 -05:00
parent 2566ca8a9a
commit 074a2e9530

View File

@ -34,7 +34,13 @@ pushd ${MAIN_PATH}/playbooks
# Remove the dead container types from inventory
REMOVED_CONTAINERS=""
REMOVED_CONTAINERS+="$(get_inv_items 'neutron_agent' | awk '{print $2}') "
RESERVED_IPS=""
RESERVED_IPS+="$(get_inv_items 'neutron_agent' | awk '{print $12}') "
for ips in ${RESERVED_IPS}; do
echo "$ips" >> /etc/openstack_deploy/leapfrog_old_ips_reservation
sed -i "/^used_ips:/a \ \ - $ips" /etc/openstack_deploy/openstack_user_config.yml
done
for i in ${REMOVED_CONTAINERS};do
echo "$i" >> /etc/openstack_deploy/leapfrog_remove_remaining_old_containers
remove_inv_items $i