Browse code

Merge "Desupport neutron openvswitch and linuxbridge monolithic plugins"

Jenkins authored on 2014/10/31 20:23:39
Showing 4 changed files
... ...
@@ -45,21 +45,11 @@
45 45
 # to run Neutron on this host, make sure that q-svc is also in
46 46
 # ``ENABLED_SERVICES``.
47 47
 #
48
-# If you're planning to use the Neutron openvswitch plugin, set
49
-# ``Q_PLUGIN`` to "openvswitch" and make sure the q-agt service is enabled
50
-# in ``ENABLED_SERVICES``.  If you're planning to use the Neutron
51
-# linuxbridge plugin, set ``Q_PLUGIN`` to "linuxbridge" and make sure the
52
-# q-agt service is enabled in ``ENABLED_SERVICES``.
53
-#
54 48
 # See "Neutron Network Configuration" below for additional variables
55 49
 # that must be set in localrc for connectivity across hosts with
56 50
 # Neutron.
57 51
 #
58 52
 # With Neutron networking the NETWORK_MANAGER variable is ignored.
59
-#
60
-# To enable specific configuration options for either the Open vSwitch or
61
-# LinuxBridge plugin, please see the top level README file under the
62
-# Neutron section.
63 53
 
64 54
 
65 55
 # Neutron Network Configuration
... ...
@@ -215,12 +205,11 @@ fi
215 215
 # Provider Network Configurations
216 216
 # --------------------------------
217 217
 
218
-# The following variables control the Neutron openvswitch and
219
-# linuxbridge plugins' allocation of tenant networks and
220
-# availability of provider networks. If these are not configured
221
-# in ``localrc``, tenant networks will be local to the host (with no
222
-# remote connectivity), and no physical resources will be
223
-# available for the allocation of provider networks.
218
+# The following variables control the Neutron ML2 plugins' allocation
219
+# of tenant networks and availability of provider networks. If these
220
+# are not configured in ``localrc``, tenant networks will be local to
221
+# the host (with no remote connectivity), and no physical resources
222
+# will be available for the allocation of provider networks.
224 223
 
225 224
 # To disable tunnels (GRE or VXLAN) for tenant networks,
226 225
 # set to False in ``local.conf``.
... ...
@@ -233,8 +222,8 @@ ENABLE_TENANT_TUNNELS=${ENABLE_TENANT_TUNNELS:-True}
233 233
 TENANT_TUNNEL_RANGES=${TENANT_TUNNEL_RANGES:-1:1000}
234 234
 
235 235
 # To use VLANs for tenant networks, set to True in localrc. VLANs
236
-# are supported by the openvswitch and linuxbridge plugins, each
237
-# requiring additional configuration described below.
236
+# are supported by the ML2 plugins, requiring additional configuration
237
+# described below.
238 238
 ENABLE_TENANT_VLANS=${ENABLE_TENANT_VLANS:-False}
239 239
 
240 240
 # If using VLANs for tenant networks, set in ``localrc`` to specify
... ...
@@ -254,7 +243,7 @@ TENANT_VLAN_RANGE=${TENANT_VLAN_RANGE:-}
254 254
 # Example: ``PHYSICAL_NETWORK=default``
255 255
 PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-}
256 256
 
257
-# With the openvswitch plugin, if using VLANs for tenant networks,
257
+# With the openvswitch agent, if using VLANs for tenant networks,
258 258
 # or if using flat or VLAN provider networks, set in ``localrc`` to
259 259
 # the name of the OVS bridge to use for the physical network. The
260 260
 # bridge will be created if it does not already exist, but a
... ...
@@ -264,7 +253,7 @@ PHYSICAL_NETWORK=${PHYSICAL_NETWORK:-}
264 264
 # Example: ``OVS_PHYSICAL_BRIDGE=br-eth1``
265 265
 OVS_PHYSICAL_BRIDGE=${OVS_PHYSICAL_BRIDGE:-}
266 266
 
267
-# With the linuxbridge plugin, if using VLANs for tenant networks,
267
+# With the linuxbridge agent, if using VLANs for tenant networks,
268 268
 # or if using flat or VLAN provider networks, set in ``localrc`` to
269 269
 # the name of the network interface to use for the physical
270 270
 # network.
271 271
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)