diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-10-31 00:22:52 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-11-25 15:25:34 -0500 |
| commit | a5a59d040b5db77a06346a516d30566a21d41586 (patch) | |
| tree | 4de8d0e5f26396e1a66f668eec38d7b3bbb1465f /meta-openstack/recipes-devtools/python/python-neutron | |
| parent | 0a962a285a529def3d3649544214bc36c9292d18 (diff) | |
| download | meta-cloud-services-a5a59d040b5db77a06346a516d30566a21d41586.tar.gz | |
python-quantum/python-neutron: update to havana version
Updating the OpenStack networking component to the havana release version.
As part of this switch, we rename the components from quantum to neutron
and switch to a git based build for the client and servers.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-neutron')
5 files changed, 352 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/fix-amqlib-version.patch b/meta-openstack/recipes-devtools/python/python-neutron/fix-amqlib-version.patch new file mode 100644 index 0000000..4a085b9 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/fix-amqlib-version.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Index: neutron-2013.1.1/tools/pip-requires | ||
| 2 | =================================================================== | ||
| 3 | --- neutron-2013.1.1.orig/tools/pip-requires | ||
| 4 | +++ neutron-2013.1.1/tools/pip-requires | ||
| 5 | @@ -1,7 +1,7 @@ | ||
| 6 | Paste | ||
| 7 | PasteDeploy>=1.5.0 | ||
| 8 | Routes>=1.12.3 | ||
| 9 | -amqplib==0.6.1 | ||
| 10 | +amqplib>=0.6.1 | ||
| 11 | anyjson>=0.2.4 | ||
| 12 | argparse | ||
| 13 | eventlet>=0.9.17 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/linuxbridge_conf.ini b/meta-openstack/recipes-devtools/python/python-neutron/linuxbridge_conf.ini new file mode 100644 index 0000000..d3646d5 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/linuxbridge_conf.ini | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | [VLANS] | ||
| 2 | # (StrOpt) Type of network to allocate for tenant networks. The | ||
| 3 | # default value 'local' is useful only for single-box testing and | ||
| 4 | # provides no connectivity between hosts. You MUST change this to | ||
| 5 | # 'vlan' and configure network_vlan_ranges below in order for tenant | ||
| 6 | # networks to provide connectivity between hosts. Set to 'none' to | ||
| 7 | # disable creation of tenant networks. | ||
| 8 | # | ||
| 9 | # Default: tenant_network_type = local | ||
| 10 | # Example: tenant_network_type = vlan | ||
| 11 | |||
| 12 | # (ListOpt) Comma-separated list of | ||
| 13 | # <physical_network>[:<vlan_min>:<vlan_max>] tuples enumerating ranges | ||
| 14 | # of VLAN IDs on named physical networks that are available for | ||
| 15 | # allocation. All physical networks listed are available for flat and | ||
| 16 | # VLAN provider network creation. Specified ranges of VLAN IDs are | ||
| 17 | # available for tenant network allocation if tenant_network_type is | ||
| 18 | # 'vlan'. If empty, only local networks may be created. | ||
| 19 | # | ||
| 20 | # Default: network_vlan_ranges = | ||
| 21 | # Example: network_vlan_ranges = physnet1:1000:2999 | ||
| 22 | |||
| 23 | [DATABASE] | ||
| 24 | # This line MUST be changed to actually run the plugin. | ||
| 25 | # Example: | ||
| 26 | # sql_connection = mysql://root:nova@127.0.0.1:3306/neutron_linux_bridge | ||
| 27 | # Replace 127.0.0.1 above with the IP address of the database used by the | ||
| 28 | # main neutron server. (Leave it as is if the database runs on this host.) | ||
| 29 | sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/neutron | ||
| 30 | # Database reconnection retry times - in event connectivity is lost | ||
| 31 | # set to -1 implies an infinite retry count | ||
| 32 | # sql_max_retries = 10 | ||
| 33 | # Database reconnection interval in seconds - if the initial connection to the | ||
| 34 | # database fails | ||
| 35 | reconnect_interval = 2 | ||
| 36 | # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size, | ||
| 37 | # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled. | ||
| 38 | # sql_dbpool_enable = False | ||
| 39 | # Minimum number of SQL connections to keep open in a pool | ||
| 40 | # sql_min_pool_size = 1 | ||
| 41 | # Maximum number of SQL connections to keep open in a pool | ||
| 42 | # sql_max_pool_size = 5 | ||
| 43 | # Timeout in seconds before idle sql connections are reaped | ||
| 44 | # sql_idle_timeout = 3600 | ||
| 45 | |||
| 46 | [LINUX_BRIDGE] | ||
| 47 | # (ListOpt) Comma-separated list of | ||
| 48 | # <physical_network>:<physical_interface> tuples mapping physical | ||
| 49 | # network names to the agent's node-specific physical network | ||
| 50 | # interfaces to be used for flat and VLAN networks. All physical | ||
| 51 | # networks listed in network_vlan_ranges on the server should have | ||
| 52 | # mappings to appropriate interfaces on each agent. | ||
| 53 | # | ||
| 54 | # Default: physical_interface_mappings = | ||
| 55 | # Example: physical_interface_mappings = physnet1:eth1 | ||
| 56 | |||
| 57 | [AGENT] | ||
| 58 | # Agent's polling interval in seconds | ||
| 59 | polling_interval = 2 | ||
| 60 | |||
| 61 | [SECURITYGROUP] | ||
| 62 | # Firewall driver for realizing neutron security group function | ||
| 63 | firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver | ||
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init new file mode 100644 index 0000000..f575746 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-agent.init | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | ### BEGIN INIT INFO | ||
| 4 | # Required-Start: $remote_fs $syslog | ||
| 5 | # Required-Stop: $remote_fs $syslog | ||
| 6 | # Default-Start: 2 3 5 | ||
| 7 | # Default-Stop: 0 1 6 | ||
| 8 | # Description: Quantum networking agent | ||
| 9 | ### END INIT INFO | ||
| 10 | |||
| 11 | SUFFIX=@suffix@ | ||
| 12 | DESC="neutron-$SUFFIX-agent" | ||
| 13 | DAEMON="/usr/bin/neutron-$SUFFIX-agent" | ||
| 14 | PIDFILE="/var/run/neutron-$SUFFIX-agent.pid" | ||
| 15 | |||
| 16 | start() | ||
| 17 | { | ||
| 18 | if [ -e $PIDFILE ]; then | ||
| 19 | PIDDIR=/proc/$(cat $PIDFILE) | ||
| 20 | if [ -d ${PIDDIR} ]; then | ||
| 21 | echo "$DESC already running." | ||
| 22 | exit 1 | ||
| 23 | else | ||
| 24 | echo "Removing stale PID file $PIDFILE" | ||
| 25 | rm -f $PIDFILE | ||
| 26 | fi | ||
| 27 | fi | ||
| 28 | |||
| 29 | echo -n "Starting $DESC..." | ||
| 30 | |||
| 31 | start-stop-daemon --start --quiet --background \ | ||
| 32 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} | ||
| 33 | |||
| 34 | if [ $? -eq 0 ]; then | ||
| 35 | echo "done." | ||
| 36 | else | ||
| 37 | echo "failed." | ||
| 38 | fi | ||
| 39 | } | ||
| 40 | |||
| 41 | stop() | ||
| 42 | { | ||
| 43 | echo -n "Stopping $DESC..." | ||
| 44 | start-stop-daemon --stop --quiet --pidfile $PIDFILE | ||
| 45 | if [ $? -eq 0 ]; then | ||
| 46 | echo "done." | ||
| 47 | else | ||
| 48 | echo "failed." | ||
| 49 | fi | ||
| 50 | rm -f $PIDFILE | ||
| 51 | } | ||
| 52 | |||
| 53 | case "$1" in | ||
| 54 | start) | ||
| 55 | start | ||
| 56 | ;; | ||
| 57 | stop) | ||
| 58 | stop | ||
| 59 | ;; | ||
| 60 | restart|force-reload) | ||
| 61 | stop | ||
| 62 | start | ||
| 63 | ;; | ||
| 64 | *) | ||
| 65 | echo "Usage: $0 {start|stop|force-reload|restart}" | ||
| 66 | exit 1 | ||
| 67 | ;; | ||
| 68 | esac | ||
| 69 | |||
| 70 | exit 0 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init new file mode 100644 index 0000000..387f602 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | ### BEGIN INIT INFO | ||
| 4 | # Provides: neutron-server | ||
| 5 | # Required-Start: $remote_fs $syslog | ||
| 6 | # Required-Stop: $remote_fs $syslog | ||
| 7 | # Default-Start: 2 3 5 | ||
| 8 | # Default-Stop: 0 1 6 | ||
| 9 | # Short-Description: neutron-server | ||
| 10 | # Description: Provides the Quantum networking service | ||
| 11 | ### END INIT INFO | ||
| 12 | |||
| 13 | DESC="neutron-server" | ||
| 14 | DAEMON="/usr/bin/neutron-server" | ||
| 15 | PIDFILE="/var/run/neutron-server.pid" | ||
| 16 | DAEMON_ARGS="--config-file=/etc/neutron/neutron.conf --config-file=@plugin@" | ||
| 17 | |||
| 18 | start() | ||
| 19 | { | ||
| 20 | if [ -e $PIDFILE ]; then | ||
| 21 | PIDDIR=/proc/$(cat $PIDFILE) | ||
| 22 | if [ -d ${PIDDIR} ]; then | ||
| 23 | echo "$DESC already running." | ||
| 24 | exit 1 | ||
| 25 | else | ||
| 26 | echo "Removing stale PID file $PIDFILE" | ||
| 27 | rm -f $PIDFILE | ||
| 28 | fi | ||
| 29 | fi | ||
| 30 | |||
| 31 | echo -n "Starting $DESC..." | ||
| 32 | |||
| 33 | start-stop-daemon --start --quiet --background \ | ||
| 34 | --pidfile ${PIDFILE} --make-pidfile --exec ${DAEMON} \ | ||
| 35 | -- $DAEMON_ARGS | ||
| 36 | |||
| 37 | if [ $? -eq 0 ]; then | ||
| 38 | echo "done." | ||
| 39 | else | ||
| 40 | echo "failed." | ||
| 41 | fi | ||
| 42 | } | ||
| 43 | |||
| 44 | stop() | ||
| 45 | { | ||
| 46 | echo -n "Stopping $DESC..." | ||
| 47 | start-stop-daemon --stop --quiet --pidfile $PIDFILE | ||
| 48 | if [ $? -eq 0 ]; then | ||
| 49 | echo "done." | ||
| 50 | else | ||
| 51 | echo "failed." | ||
| 52 | fi | ||
| 53 | rm -f $PIDFILE | ||
| 54 | } | ||
| 55 | |||
| 56 | case "$1" in | ||
| 57 | start) | ||
| 58 | start | ||
| 59 | ;; | ||
| 60 | stop) | ||
| 61 | stop | ||
| 62 | ;; | ||
| 63 | restart|force-reload) | ||
| 64 | stop | ||
| 65 | start | ||
| 66 | ;; | ||
| 67 | *) | ||
| 68 | echo "Usage: $0 {start|stop|force-reload|restart}" | ||
| 69 | exit 1 | ||
| 70 | ;; | ||
| 71 | esac | ||
| 72 | |||
| 73 | exit 0 | ||
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/ovs_neutron_plugin.ini b/meta-openstack/recipes-devtools/python/python-neutron/ovs_neutron_plugin.ini new file mode 100644 index 0000000..54f50b0 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-neutron/ovs_neutron_plugin.ini | |||
| @@ -0,0 +1,133 @@ | |||
| 1 | [DATABASE] | ||
| 2 | # This line MUST be changed to actually run the plugin. | ||
| 3 | # Example: | ||
| 4 | # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron | ||
| 5 | # Replace 127.0.0.1 above with the IP address of the database used by the | ||
| 6 | # main neutron server. (Leave it as is if the database runs on this host.) | ||
| 7 | |||
| 8 | # configs with listening issues, may need to use the localhost version | ||
| 9 | # sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@localhost/ovs_neutron | ||
| 10 | sql_connection = postgresql://%DB_USER%:%DB_PASSWORD%@%CONTROLLER_IP%/ovs_neutron | ||
| 11 | # Database reconnection retry times - in event connectivity is lost | ||
| 12 | # set to -1 implies an infinite retry count | ||
| 13 | # sql_max_retries = 10 | ||
| 14 | # Database reconnection interval in seconds - if the initial connection to the | ||
| 15 | # database fails | ||
| 16 | reconnect_interval = 2 | ||
| 17 | # Enable the use of eventlet's db_pool for MySQL. The flags sql_min_pool_size, | ||
| 18 | # sql_max_pool_size and sql_idle_timeout are relevant only if this is enabled. | ||
| 19 | # sql_dbpool_enable = False | ||
| 20 | # Minimum number of SQL connections to keep open in a pool | ||
| 21 | # sql_min_pool_size = 1 | ||
| 22 | # Maximum number of SQL connections to keep open in a pool | ||
| 23 | # sql_max_pool_size = 5 | ||
| 24 | # Timeout in seconds before idle sql connections are reaped | ||
| 25 | # sql_idle_timeout = 3600 | ||
| 26 | |||
| 27 | [OVS] | ||
| 28 | # (StrOpt) Type of network to allocate for tenant networks. The | ||
| 29 | # default value 'local' is useful only for single-box testing and | ||
| 30 | # provides no connectivity between hosts. You MUST either change this | ||
| 31 | # to 'vlan' and configure network_vlan_ranges below or change this to | ||
| 32 | # 'gre' and configure tunnel_id_ranges below in order for tenant | ||
| 33 | # networks to provide connectivity between hosts. Set to 'none' to | ||
| 34 | # disable creation of tenant networks. | ||
| 35 | # | ||
| 36 | # Default: tenant_network_type = local | ||
| 37 | # Example: tenant_network_type = gre | ||
| 38 | tenant_network_type = gre | ||
| 39 | |||
| 40 | # (ListOpt) Comma-separated list of | ||
| 41 | # <physical_network>[:<vlan_min>:<vlan_max>] tuples enumerating ranges | ||
| 42 | # of VLAN IDs on named physical networks that are available for | ||
| 43 | # allocation. All physical networks listed are available for flat and | ||
| 44 | # VLAN provider network creation. Specified ranges of VLAN IDs are | ||
| 45 | # available for tenant network allocation if tenant_network_type is | ||
| 46 | # 'vlan'. If empty, only gre and local networks may be created. | ||
| 47 | # | ||
| 48 | # Default: network_vlan_ranges = | ||
| 49 | # Example: network_vlan_ranges = physnet1:1000:2999 | ||
| 50 | |||
| 51 | # (BoolOpt) Set to True in the server and the agents to enable support | ||
| 52 | # for GRE networks. Requires kernel support for OVS patch ports and | ||
| 53 | # GRE tunneling. | ||
| 54 | # | ||
| 55 | # Default: enable_tunneling = False | ||
| 56 | enable_tunneling = True | ||
| 57 | |||
| 58 | # (ListOpt) Comma-separated list of <tun_min>:<tun_max> tuples | ||
| 59 | # enumerating ranges of GRE tunnel IDs that are available for tenant | ||
| 60 | # network allocation if tenant_network_type is 'gre'. | ||
| 61 | # | ||
| 62 | # Default: tunnel_id_ranges = | ||
| 63 | # Example: tunnel_id_ranges = 1:1000 | ||
| 64 | tunnel_id_ranges = 1:1000 | ||
| 65 | |||
| 66 | # Do not change this parameter unless you have a good reason to. | ||
| 67 | # This is the name of the OVS integration bridge. There is one per hypervisor. | ||
| 68 | # The integration bridge acts as a virtual "patch bay". All VM VIFs are | ||
| 69 | # attached to this bridge and then "patched" according to their network | ||
| 70 | # connectivity. | ||
| 71 | # | ||
| 72 | # Default: integration_bridge = br-int | ||
| 73 | |||
| 74 | # Only used for the agent if tunnel_id_ranges (above) is not empty for | ||
| 75 | # the server. In most cases, the default value should be fine. | ||
| 76 | # | ||
| 77 | # Default: tunnel_bridge = br-tun | ||
| 78 | |||
| 79 | # Peer patch port in integration bridge for tunnel bridge | ||
| 80 | # int_peer_patch_port = patch-tun | ||
| 81 | |||
| 82 | # Peer patch port in tunnel bridge for integration bridge | ||
| 83 | # tun_peer_patch_port = patch-int | ||
| 84 | |||
| 85 | # Uncomment this line for the agent if tunnel_id_ranges (above) is not | ||
| 86 | # empty for the server. Set local-ip to be the local IP address of | ||
| 87 | # this hypervisor. | ||
| 88 | # | ||
| 89 | # Default: local_ip = | ||
| 90 | |||
| 91 | # (ListOpt) Comma-separated list of <physical_network>:<bridge> tuples | ||
| 92 | # mapping physical network names to the agent's node-specific OVS | ||
| 93 | # bridge names to be used for flat and VLAN networks. The length of | ||
| 94 | # bridge names should be no more than 11. Each bridge must | ||
| 95 | # exist, and should have a physical network interface configured as a | ||
| 96 | # port. All physical networks listed in network_vlan_ranges on the | ||
| 97 | # server should have mappings to appropriate bridges on each agent. | ||
| 98 | # | ||
| 99 | # Default: bridge_mappings = | ||
| 100 | # Example: bridge_mappings = physnet1:br-eth1 | ||
| 101 | |||
| 102 | [AGENT] | ||
| 103 | # Agent's polling interval in seconds | ||
| 104 | polling_interval = 2 | ||
| 105 | |||
| 106 | [SECURITYGROUP] | ||
| 107 | # Firewall driver for realizing neutron security group function | ||
| 108 | # firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver | ||
| 109 | |||
| 110 | #----------------------------------------------------------------------------- | ||
| 111 | # Sample Configurations. | ||
| 112 | #----------------------------------------------------------------------------- | ||
| 113 | # | ||
| 114 | # 1. With VLANs on eth1. | ||
| 115 | # [DATABASE] | ||
| 116 | # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron | ||
| 117 | # [OVS] | ||
| 118 | # network_vlan_ranges = default:2000:3999 | ||
| 119 | # tunnel_id_ranges = | ||
| 120 | # integration_bridge = br-int | ||
| 121 | # bridge_mappings = default:br-eth1 | ||
| 122 | # [AGENT] | ||
| 123 | # Add the following setting, if you want to log to a file | ||
| 124 | # | ||
| 125 | # 2. With tunneling. | ||
| 126 | # [DATABASE] | ||
| 127 | # sql_connection = mysql://root:nova@127.0.0.1:3306/ovs_neutron | ||
| 128 | # [OVS] | ||
| 129 | # network_vlan_ranges = | ||
| 130 | # tunnel_id_ranges = 1:1000 | ||
| 131 | # integration_bridge = br-int | ||
| 132 | # tunnel_bridge = br-tun | ||
| 133 | # local_ip = 10.0.0.3 | ||
