Browse code

Desupport neutron openvswitch and linuxbridge monolithic plugins

These plugins were removed in Juno.
Note: this doesn't affect the corresponding ML2 mechanism drivers.

Partial-Bug: #1323729
Change-Id: Ia8da1e20a03fef5657ba1584bf83ddd224b5d5f2

YAMAMOTO Takashi authored on 2014/10/28 11:49:58
Showing 4 changed files
... ...
@@ -43,21 +43,11 @@
43 43
 # to run Neutron on this host, make sure that q-svc is also in
44 44
 # ``ENABLED_SERVICES``.
45 45
 #
46
-# If you're planning to use the Neutron openvswitch plugin, set
47
-# ``Q_PLUGIN`` to "openvswitch" and make sure the q-agt service is enabled
48
-# in ``ENABLED_SERVICES``.  If you're planning to use the Neutron
49
-# linuxbridge plugin, set ``Q_PLUGIN`` to "linuxbridge" and make sure the
50
-# q-agt service is enabled in ``ENABLED_SERVICES``.
51
-#
52 46
 # See "Neutron Network Configuration" below for additional variables
53 47
 # that must be set in localrc for connectivity across hosts with
54 48
 # Neutron.
55 49
 #
56 50
 # With Neutron networking the NETWORK_MANAGER variable is ignored.
57
-#
58
-# To enable specific configuration options for either the Open vSwitch or
59
-# LinuxBridge plugin, please see the top level README file under the
60
-# Neutron section.
61 51
 
62 52
 
63 53
 # Neutron Network Configuration
... ...
@@ -213,12 +203,11 @@ fi
213 213
 # Provider Network Configurations
214 214
 # --------------------------------
215 215
 
216
-# The following variables control the Neutron openvswitch and
217
-# linuxbridge plugins' allocation of tenant networks and
218
-# availability of provider networks. If these are not configured
219
-# in ``localrc``, tenant networks will be local to the host (with no
220
-# remote connectivity), and no physical resources will be
221
-# available for the allocation of provider networks.
216
+# The following variables control the Neutron ML2 plugins' allocation
217
+# of tenant networks and availability of provider networks. If these
218
+# are not configured in ``localrc``, tenant networks will be local to
219
+# the host (with no remote connectivity), and no physical resources
220
+# will be available for the allocation of provider networks.
222 221
 
223 222
 # To disable tunnels (GRE or VXLAN) for tenant networks,
224 223
 # set to False in ``local.conf``.
... ...
@@ -231,8 +220,8 @@ ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-True}
231 231
 TENANT_TUNNEL_RANGES=${TENANT_TUNNEL_RANGES:-1:1000}
232 232
 
233 233
 # To use VLANs for tenant networks, set to True in localrc. VLANs
234
-# are supported by the openvswitch and linuxbridge plugins, each
235
-# requiring additional configuration described below.
234
+# are supported by the ML2 plugins, requiring additional configuration
235
+# described below.
236 236
 ENABLE_TENANT_VLANS=${ENABLE_TENANT_VLANS:-False}
237 237
 
238 238
 # If using VLANs for tenant networks, set in ``localrc`` to specify
... ...
@@ -252,7 +241,7 @@ TENANT_VLAN_RANGE=${TENANT_VLAN_RANGE:-}
252 252
 # Example: ``PHYSICAL_NETWORK=default``
253 253
 PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-}
254 254
 
255
-# With the openvswitch plugin, if using VLANs for tenant networks,
255
+# With the openvswitch agent, if using VLANs for tenant networks,
256 256
 # or if using flat or VLAN provider networks, set in ``localrc`` to
257 257
 # the name of the OVS bridge to use for the physical network. The
258 258
 # bridge will be created if it does not already exist, but a
... ...
@@ -262,7 +251,7 @@ PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-}
262 262
 # Example: ``OVS_PHYSICAL_BRIDGE=br-eth1``
263 263
 OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-}
264 264
 
265
-# With the linuxbridge plugin, if using VLANs for tenant networks,
265
+# With the linuxbridge agent, if using VLANs for tenant networks,
266 266
 # or if using flat or VLAN provider networks, set in ``localrc`` to
267 267
 # the name of the network interface to use for the physical
268 268
 # network.
269 269
deleted file mode 100644
... ...
@@ -1,55 +0,0 @@
1
-# Neutron Linux Bridge plugin
2
-# ---------------------------
3
-
4
-# Save trace setting
5
-LBRIDGE_XTRACE=$(set +o | grep xtrace)
6
-set +o xtrace
7
-
8
-source $TOP_DIR/lib/neutron_plugins/linuxbridge_agent
9
-
10
-function neutron_plugin_configure_common {
11
-    Q_PLUGIN_CONF_PATH=etc/neutron/plugins/linuxbridge
12
-    Q_PLUGIN_CONF_FILENAME=linuxbridge_conf.ini
13
-    Q_PLUGIN_CLASS="neutron.plugins.linuxbridge.lb_neutron_plugin.LinuxBridgePluginV2"
14
-}
15
-
16
-function neutron_plugin_configure_service {
17
-    if [[ "$ENABLE_TENANT_VLANS" == "True" ]]; then
18
-        iniset /$Q_PLUGIN_CONF_FILE vlans tenant_network_type vlan
19
-    else
20
-        echo "WARNING - The linuxbridge plugin is using local tenant networks, with no connectivity between hosts."
21
-    fi
22
-
23
-    # Override ``LB_VLAN_RANGES`` and ``LB_INTERFACE_MAPPINGS`` in ``localrc``
24
-    # for more complex physical network configurations.
25
-    if [[ "$LB_VLAN_RANGES" == "" ]] && [[ "$PHYSICAL_NETWORK" != "" ]]; then
26
-        LB_VLAN_RANGES=$PHYSICAL_NETWORK
27
-        if [[ "$TENANT_VLAN_RANGE" != "" ]]; then
28
-            LB_VLAN_RANGES=$LB_VLAN_RANGES:$TENANT_VLAN_RANGE
29
-        fi
30
-    fi
31
-    if [[ "$LB_VLAN_RANGES" != "" ]]; then
32
-        iniset /$Q_PLUGIN_CONF_FILE vlans network_vlan_ranges $LB_VLAN_RANGES
33
-    fi
34
-    if [[ "$Q_USE_SECGROUP" == "True" ]]; then
35
-        iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
36
-    else
37
-        iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.firewall.NoopFirewallDriver
38
-    fi
39
-
40
-    # Define extra "LINUX_BRIDGE" configuration options when q-svc is configured by defining
41
-    # the array ``Q_SRV_EXTRA_OPTS``.
42
-    # For Example: ``Q_SRV_EXTRA_OPTS=(foo=true bar=2)``
43
-    for I in "${Q_SRV_EXTRA_OPTS[@]}"; do
44
-        # Replace the first '=' with ' ' for iniset syntax
45
-        iniset /$Q_PLUGIN_CONF_FILE linux_bridge ${I/=/ }
46
-    done
47
-}
48
-
49
-function has_neutron_plugin_security_group {
50
-    # 0 means True here
51
-    return 0
52
-}
53
-
54
-# Restore xtrace
55
-$LBRIDGE_XTRACE
56 1
deleted file mode 100644
... ...
@@ -1,77 +0,0 @@
1
-# Neutron Linux Bridge L2 agent
2
-# -----------------------------
3
-
4
-# Save trace setting
5
-PLUGIN_XTRACE=$(set +o | grep xtrace)
6
-set +o xtrace
7
-
8
-function is_neutron_ovs_base_plugin {
9
-    # linuxbridge doesn't use OVS
10
-    return 1
11
-}
12
-
13
-function neutron_plugin_create_nova_conf {
14
-    :
15
-}
16
-
17
-function neutron_plugin_install_agent_packages {
18
-    install_package bridge-utils
19
-}
20
-
21
-function neutron_plugin_configure_debug_command {
22
-    iniset $NEUTRON_TEST_CONFIG_FILE DEFAULT external_network_bridge
23
-}
24
-
25
-function neutron_plugin_configure_dhcp_agent {
26
-    iniset $Q_DHCP_CONF_FILE DEFAULT dhcp_agent_manager neutron.agent.dhcp_agent.DhcpAgentWithStateReport
27
-}
28
-
29
-function neutron_plugin_configure_l3_agent {
30
-    iniset $Q_L3_CONF_FILE DEFAULT external_network_bridge
31
-    iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport
32
-}
33
-
34
-function neutron_plugin_configure_plugin_agent {
35
-    # Setup physical network interface mappings.  Override
36
-    # ``LB_VLAN_RANGES`` and ``LB_INTERFACE_MAPPINGS`` in ``localrc`` for more
37
-    # complex physical network configurations.
38
-    if [[ "$LB_INTERFACE_MAPPINGS" == "" ]] && [[ "$PHYSICAL_NETWORK" != "" ]] && [[ "$LB_PHYSICAL_INTERFACE" != "" ]]; then
39
-        LB_INTERFACE_MAPPINGS=$PHYSICAL_NETWORK:$LB_PHYSICAL_INTERFACE
40
-    fi
41
-    if [[ "$LB_INTERFACE_MAPPINGS" != "" ]]; then
42
-        iniset /$Q_PLUGIN_CONF_FILE linux_bridge physical_interface_mappings $LB_INTERFACE_MAPPINGS
43
-    fi
44
-    if [[ "$Q_USE_SECGROUP" == "True" ]]; then
45
-        iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
46
-    else
47
-        iniset /$Q_PLUGIN_CONF_FILE securitygroup firewall_driver neutron.agent.firewall.NoopFirewallDriver
48
-    fi
49
-    AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-linuxbridge-agent"
50
-    iniset /$Q_PLUGIN_CONF_FILE agent tunnel_types $Q_TUNNEL_TYPES
51
-    # Define extra "AGENT" configuration options when q-agt is configured by defining
52
-    # the array ``Q_AGENT_EXTRA_AGENT_OPTS``.
53
-    # For Example: ``Q_AGENT_EXTRA_AGENT_OPTS=(foo=true bar=2)``
54
-    for I in "${Q_AGENT_EXTRA_AGENT_OPTS[@]}"; do
55
-        # Replace the first '=' with ' ' for iniset syntax
56
-        iniset /$Q_PLUGIN_CONF_FILE agent ${I/=/ }
57
-    done
58
-    # Define extra "LINUX_BRIDGE" configuration options when q-agt is configured by defining
59
-    # the array ``Q_AGENT_EXTRA_SRV_OPTS``.
60
-    # For Example: ``Q_AGENT_EXTRA_SRV_OPTS=(foo=true bar=2)``
61
-    for I in "${Q_AGENT_EXTRA_SRV_OPTS[@]}"; do
62
-        # Replace the first '=' with ' ' for iniset syntax
63
-        iniset /$Q_PLUGIN_CONF_FILE linux_bridge ${I/=/ }
64
-    done
65
-}
66
-
67
-function neutron_plugin_setup_interface_driver {
68
-    local conf_file=$1
69
-    iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.BridgeInterfaceDriver
70
-}
71
-
72
-function neutron_plugin_check_adv_test_requirements {
73
-    is_service_enabled q-agt && is_service_enabled q-dhcp && return 0
74
-}
75
-
76
-# Restore xtrace
77
-$PLUGIN_XTRACE
... ...
@@ -1,5 +1,8 @@
1
-# Neutron Open vSwitch plugin
2
-# ---------------------------
1
+# Common code used by cisco and embrane plugins
2
+# ---------------------------------------------
3
+
4
+# This module used to be for Open vSwitch monolithic plugin,
5
+# which has been removed in Juno.
3 6
 
4 7
 # Save trace setting
5 8
 OVS_XTRACE=$(set +o | grep xtrace)