stein: Switch to FWaaS v2

Stein drops support for FWaaS v1; switch agents to use FWaaS v2
drivers.

Change-Id: Iba494398df29c1e2611d06345e41146a6f8e3d6d
This commit is contained in:
James Page 2019-03-20 05:51:43 +00:00
parent 3bd2435267
commit dea96c0a11
3 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# stein
###############################################################################
# [ WARNING ]
# Configuration file maintained by Juju. Local changes may be overwritten.
###############################################################################
[fwaas]
agent_version = v2
driver = iptables_v2
enabled = True

View File

@ -0,0 +1,30 @@
# stein
###############################################################################
# [ WARNING ]
# Configuration file maintained by Juju. Local changes may be overwritten.
###############################################################################
[DEFAULT]
interface_driver = openvswitch
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf
handle_internal_only_routers = {{ handle_internal_only_router }}
{% if plugin == 'n1kv' %}
l3_agent_manager = neutron.agent.l3_agent.L3NATAgentWithStateReport
external_network_bridge = br-int
ovs_use_veth = False
use_namespaces = True
{% else %}
ovs_use_veth = True
{% endif %}
{% if external_configuration_new -%}
gateway_external_network_id =
external_network_bridge =
{% elif ext_net_id %}
gateway_external_network_id = {{ ext_net_id }}
{% else %}
# Set default to deprecated external networking config
external_network_bridge = br-ex
{% endif -%}
agent_mode = {{ agent_mode }}
[AGENT]
extensions = fwaas_v2

View File

@ -575,7 +575,11 @@ class NeutronGatewayBasicDeployment(OpenStackAmuletDeployment):
}
section = 'fwaas'
if self._get_openstack_release() >= self.xenial_newton:
if self._get_openstack_release() >= self.bionic_stein:
# Stein or later
expected['driver'] = 'iptables_v2'
expected['agent_version'] = 'v2'
elif self._get_openstack_release() >= self.xenial_newton:
# Newton or later
expected['driver'] = 'iptables'
expected['agent_version'] = 'v1'