Browse code

Remove neutron ryu-plugin support

Ryu plugin was marked deprecated in Juno and will be removed for Kilo.

We (Ryu team) recommend users to migrate to ofagent, on which
we aim to concentrate our development resources by this deprecation.

Partial-Bug: #1391714
Change-Id: I1ef28818e9400664ae3d83758dc2dcf71c02f185

YAMAMOTO Takashi authored on 2014/11/11 11:11:00
Showing 4 changed files
... ...
@@ -56,12 +56,6 @@ OpenFlow Agent (ofagent)
56 56
 * YAMAMOTO Takashi <yamamoto@valinux.co.jp>
57 57
 * Fumihiko Kakuma <kakuma@valinux.co.jp>
58 58
 
59
-Ryu
60
-~~~
61
-
62
-* YAMAMOTO Takashi <yamamoto@valinux.co.jp>
63
-* Fumihiko Kakuma <kakuma@valinux.co.jp>
64
-
65 59
 Sahara
66 60
 ~~~~~~
67 61
 
... ...
@@ -18,7 +18,6 @@ function neutron_plugin_install_agent_packages {
18 18
     # This agent uses ryu to talk with switches
19 19
     install_package $(get_packages "ryu")
20 20
     install_ryu
21
-    configure_ryu
22 21
 }
23 22
 
24 23
 function neutron_plugin_configure_debug_command {
25 24
deleted file mode 100644
... ...
@@ -1,79 +0,0 @@
1
-# Neutron Ryu plugin
2
-# ------------------
3
-
4
-# Save trace setting
5
-RYU_XTRACE=$(set +o | grep xtrace)
6
-set +o xtrace
7
-
8
-source $TOP_DIR/lib/neutron_plugins/ovs_base
9
-source $TOP_DIR/lib/neutron_thirdparty/ryu      # for configuration value
10
-
11
-function neutron_plugin_create_nova_conf {
12
-    _neutron_ovs_base_configure_nova_vif_driver
13
-    iniset $NOVA_CONF DEFAULT libvirt_ovs_integration_bridge "$OVS_BRIDGE"
14
-}
15
-
16
-function neutron_plugin_install_agent_packages {
17
-    _neutron_ovs_base_install_agent_packages
18
-
19
-    # neutron_ryu_agent requires ryu module
20
-    install_package $(get_packages "ryu")
21
-    install_ryu
22
-    configure_ryu
23
-}
24
-
25
-function neutron_plugin_configure_common {
26
-    Q_PLUGIN_CONF_PATH=etc/neutron/plugins/ryu
27
-    Q_PLUGIN_CONF_FILENAME=ryu.ini
28
-    Q_PLUGIN_CLASS="neutron.plugins.ryu.ryu_neutron_plugin.RyuNeutronPluginV2"
29
-}
30
-
31
-function neutron_plugin_configure_debug_command {
32
-    _neutron_ovs_base_configure_debug_command
33
-    iniset $NEUTRON_TEST_CONFIG_FILE DEFAULT ryu_api_host $RYU_API_HOST:$RYU_API_PORT
34
-}
35
-
36
-function neutron_plugin_configure_dhcp_agent {
37
-    iniset $Q_DHCP_CONF_FILE DEFAULT ryu_api_host $RYU_API_HOST:$RYU_API_PORT
38
-}
39
-
40
-function neutron_plugin_configure_l3_agent {
41
-    iniset $Q_L3_CONF_FILE DEFAULT ryu_api_host $RYU_API_HOST:$RYU_API_PORT
42
-    _neutron_ovs_base_configure_l3_agent
43
-}
44
-
45
-function neutron_plugin_configure_plugin_agent {
46
-    # Set up integration bridge
47
-    _neutron_ovs_base_setup_bridge $OVS_BRIDGE
48
-    if [ -n "$RYU_INTERNAL_INTERFACE" ]; then
49
-        sudo ovs-vsctl --no-wait -- --may-exist add-port $OVS_BRIDGE $RYU_INTERNAL_INTERFACE
50
-    fi
51
-    iniset /$Q_PLUGIN_CONF_FILE ovs integration_bridge $OVS_BRIDGE
52
-    AGENT_BINARY="$NEUTRON_DIR/neutron/plugins/ryu/agent/ryu_neutron_agent.py"
53
-
54
-    _neutron_ovs_base_configure_firewall_driver
55
-}
56
-
57
-function neutron_plugin_configure_service {
58
-    iniset /$Q_PLUGIN_CONF_FILE ovs openflow_rest_api $RYU_API_HOST:$RYU_API_PORT
59
-
60
-    _neutron_ovs_base_configure_firewall_driver
61
-}
62
-
63
-function neutron_plugin_setup_interface_driver {
64
-    local conf_file=$1
65
-    iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver
66
-    iniset $conf_file DEFAULT ovs_use_veth True
67
-}
68
-
69
-function has_neutron_plugin_security_group {
70
-    # 0 means True here
71
-    return 0
72
-}
73
-
74
-function neutron_plugin_check_adv_test_requirements {
75
-    is_service_enabled q-agt && is_service_enabled q-dhcp && return 0
76
-}
77
-
78
-# Restore xtrace
79
-$RYU_XTRACE
... ...
@@ -1,56 +1,15 @@
1
-# Ryu OpenFlow Controller
2
-# -----------------------
1
+# Ryu SDN Framework
2
+# -----------------
3
+
4
+# Used by ofagent.
5
+# TODO(yamamoto): Switch to pip_install once the development was settled
3 6
 
4 7
 # Save trace setting
5 8
 RYU3_XTRACE=$(set +o | grep xtrace)
6 9
 set +o xtrace
7 10
 
8
-
9 11
 RYU_DIR=$DEST/ryu
10
-# Ryu API Host
11
-RYU_API_HOST=${RYU_API_HOST:-127.0.0.1}
12
-# Ryu API Port
13
-RYU_API_PORT=${RYU_API_PORT:-8080}
14
-# Ryu OFP Host
15
-RYU_OFP_HOST=${RYU_OFP_HOST:-127.0.0.1}
16
-# Ryu OFP Port
17
-RYU_OFP_PORT=${RYU_OFP_PORT:-6633}
18
-# Ryu Applications
19
-RYU_APPS=${RYU_APPS:-ryu.app.simple_isolation,ryu.app.rest}
20
-
21
-function configure_ryu {
22
-    :
23
-}
24
-
25
-function init_ryu {
26
-    RYU_CONF_DIR=/etc/ryu
27
-    if [[ ! -d $RYU_CONF_DIR ]]; then
28
-        sudo mkdir -p $RYU_CONF_DIR
29
-    fi
30
-    sudo chown $STACK_USER $RYU_CONF_DIR
31
-    RYU_CONF=$RYU_CONF_DIR/ryu.conf
32
-    sudo rm -rf $RYU_CONF
33
-
34
-    # Ryu configuration
35
-    RYU_CONF_CONTENTS=${RYU_CONF_CONTENTS:-"[DEFAULT]
36
-app_lists=$RYU_APPS
37
-wsapi_host=$RYU_API_HOST
38
-wsapi_port=$RYU_API_PORT
39
-ofp_listen_host=$RYU_OFP_HOST
40
-ofp_tcp_listen_port=$RYU_OFP_PORT
41
-neutron_url=http://$Q_HOST:$Q_PORT
42
-neutron_admin_username=$Q_ADMIN_USERNAME
43
-neutron_admin_password=$SERVICE_PASSWORD
44
-neutron_admin_tenant_name=$SERVICE_TENANT_NAME
45
-neutron_admin_auth_url=$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:$KEYSTONE_AUTH_PORT/v2.0
46
-neutron_auth_strategy=$Q_AUTH_STRATEGY
47
-neutron_controller_addr=tcp:$RYU_OFP_HOST:$RYU_OFP_PORT
48
-"}
49
-    echo "${RYU_CONF_CONTENTS}" > $RYU_CONF
50
-}
51 12
 
52
-# install_ryu can be called multiple times as neutron_pluing/ryu may call
53
-# this function for neutron-ryu-agent
54 13
 # Make this function idempotent and avoid cloning same repo many times
55 14
 # with RECLONE=yes
56 15
 _RYU_INSTALLED=${_RYU_INSTALLED:-False}
... ...
@@ -63,17 +22,5 @@ function install_ryu {
63 63
     fi
64 64
 }
65 65
 
66
-function start_ryu {
67
-    run_process ryu "$RYU_DIR/bin/ryu-manager --config-file $RYU_CONF"
68
-}
69
-
70
-function stop_ryu {
71
-    :
72
-}
73
-
74
-function check_ryu {
75
-    :
76
-}
77
-
78 66
 # Restore xtrace
79 67
 $RYU3_XTRACE