58964d6825
Remove all l3 related namespaces in case of multiple active routers in l3 high available mode. The root cause is that keepalived does not remove the vip address from nic during starting. neutron-vpnaas-agent is subclass of l3 agent, so should remove all l3 related namespace before starting vpnaas agent. Closes-Bug: #1703078 Depends-On: Ic9417d2eb03e0dd93f7c668b189b4ad9c72eae0f Change-Id: I05c1faf2551bb5e70c299e884adf58cd2af52739
16 lines
520 B
Django/Jinja
16 lines
520 B
Django/Jinja
#!/bin/bash
|
|
|
|
set -o errexit
|
|
|
|
# NOTE(jeffrey4l): Remove all l3 related netns in case of multiple active routers in l3 high available mode.
|
|
neutron-netns-cleanup \
|
|
--config-file /etc/neutron/neutron.conf \
|
|
--config-file /etc/neutron/l3_agent.ini \
|
|
--config-file /etc/neutron/fwaas_driver.ini \
|
|
--force --agent-type l3
|
|
|
|
neutron-l3-agent \
|
|
--config-file /etc/neutron/neutron.conf \
|
|
--config-file /etc/neutron/l3_agent.ini \
|
|
--config-file /etc/neutron/fwaas_driver.ini
|