]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoMultiple Neutron operations using script fails on Brocade Plugin
Shiv Haris [Mon, 16 Sep 2013 23:36:09 +0000 (16:36 -0700)]
Multiple Neutron operations using script fails on Brocade Plugin

Fixes bug: 1223754

Change-Id: Ifdeed8407a1cb3df9f17267ea582caab385a63f3

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 16 Sep 2013 16:40:38 +0000 (16:40 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix haproxy agent unit test to be runnable alone by tox"
Jenkins [Mon, 16 Sep 2013 09:41:32 +0000 (09:41 +0000)]
Merge "Fix haproxy agent unit test to be runnable alone by tox"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 16 Sep 2013 06:09:44 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I3eebef458f0501227d971d455c00b98bb295dfed

11 years agoMerge "Enhance exception translation to better handle NeutronExceptions"
Jenkins [Sun, 15 Sep 2013 23:44:34 +0000 (23:44 +0000)]
Merge "Enhance exception translation to better handle NeutronExceptions"

11 years agoMerge "Don't need to init testr in run_tests.sh"
Jenkins [Sun, 15 Sep 2013 23:44:18 +0000 (23:44 +0000)]
Merge "Don't need to init testr in run_tests.sh"

11 years agoMerge "Add router ownership check on vpnservice creation"
Jenkins [Sun, 15 Sep 2013 23:10:26 +0000 (23:10 +0000)]
Merge "Add router ownership check on vpnservice creation"

11 years agoMerge "Using constant error codes instead of hard-coded"
Jenkins [Sun, 15 Sep 2013 22:46:31 +0000 (22:46 +0000)]
Merge "Using constant error codes instead of hard-coded"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sun, 15 Sep 2013 22:43:07 +0000 (22:43 +0000)]
Merge "Imported Translations from Transifex"

11 years agoUsing constant error codes instead of hard-coded
Evgeny Fedoruk [Sun, 15 Sep 2013 10:48:41 +0000 (03:48 -0700)]
Using constant error codes instead of hard-coded

Change all hard-coded error codes to be constants
from webob.exc.py in test_db_plugin.py

Fixes bug: #1225614

Change-Id: I9e58bb84afc66293afa56968a745b798bb88bf16

11 years agoMerge "Don't add neutron metadata_nat_rules if disable metadata proxy"
Jenkins [Sun, 15 Sep 2013 08:38:34 +0000 (08:38 +0000)]
Merge "Don't add neutron metadata_nat_rules if disable metadata proxy"

11 years agoMerge "Stop popen patch correctly in test_agent_linux_utils"
Jenkins [Sun, 15 Sep 2013 08:31:30 +0000 (08:31 +0000)]
Merge "Stop popen patch correctly in test_agent_linux_utils"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 15 Sep 2013 06:09:53 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I182234e0d9a95feda9d8cfb17c6be9f2da3d03f6

11 years agoMerge "Add new L3 RPC topic support to Ryu plugin"
Jenkins [Sat, 14 Sep 2013 21:53:02 +0000 (21:53 +0000)]
Merge "Add new L3 RPC topic support to Ryu plugin"

11 years agoMerge "Use same hostname function as nova"
Jenkins [Sat, 14 Sep 2013 19:53:19 +0000 (19:53 +0000)]
Merge "Use same hostname function as nova"

11 years agoFix haproxy agent unit test to be runnable alone by tox
Eugene Nikanorov [Sat, 14 Sep 2013 10:26:53 +0000 (14:26 +0400)]
Fix haproxy agent unit test to be runnable alone by tox

haproxy agent uses periodic_interval option that can interfere
with the same option declared in neutron/service.py when running
'tox services.loadbalancer'

Change-Id: Ibcc91d603f5f31c7a376e0c735e8bf566198231d
Closes-Bug: #1221726

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 14 Sep 2013 06:09:52 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I29024cf2b1f8bf04e7fd57066142665add77eef4

11 years agoMerge "Prevent stale DHCP directories for dhcp agent nodes"
Jenkins [Sat, 14 Sep 2013 03:24:58 +0000 (03:24 +0000)]
Merge "Prevent stale DHCP directories for dhcp agent nodes"

11 years agoUse same hostname function as nova
Bob Kukura [Fri, 13 Sep 2013 20:12:30 +0000 (16:12 -0400)]
Use same hostname function as nova

Certain plugin implementations of port binding depend on the port's
binding:host_id set by nova matching the compute node's hostname
reported by neutron agents in agents_db. Nova uses
socket.gethostname() to obtain the hostname, so this changes neutron
to also use socket.gethostname(), instead of socket.getfqdn() to
obtain the default hostname. If deployments require a specific
hostname format or value, the hostname can be specified in nova and
neutron configuration files.

Closes-Bug: 1223000
Change-Id: I5de9c6b0df16eca482037a5bdc3a77dc52f4adba

11 years agoMerge "Fixes Hyper-V agent unsopported network_type issue"
Jenkins [Fri, 13 Sep 2013 18:42:00 +0000 (18:42 +0000)]
Merge "Fixes Hyper-V agent unsopported network_type issue"

11 years agoMerge "Add NvpPluginV2 to migration 4a666eb208c2"
Jenkins [Fri, 13 Sep 2013 18:39:13 +0000 (18:39 +0000)]
Merge "Add NvpPluginV2 to migration 4a666eb208c2"

11 years agoPrevent stale DHCP directories for dhcp agent nodes
armando-migliaccio [Wed, 11 Sep 2013 18:49:48 +0000 (11:49 -0700)]
Prevent stale DHCP directories for dhcp agent nodes

This change fixes an issue that is most acute in test/dev
environments but that may affect production environments
as well: the presence of DHCP directories that no longer
represent networks that exist in the Neutron DB. This
issue can manifest itself over time if you delete networks
from the Server while the Agent node is down.

Without this fix, at the agent start-up the method
existing_dhcp_networks will return an empty list, and
as a consequence the directories that belong to networks
that have been removed from the server will stay because
the sync logic will not process them as it only looks at
the mismatch between active networks on the agent and
active networks on the server. With the fix instead, we
return *all* existing dhcp networks; if they are meant to
be active, the agent will bring them up, if they no longer
exist on the server, then the agent will dispose of the
resources. The dnsmasq driver will do the right thing when
enabling or disabling the process.

Fixes bug #1195770

Change-Id: I194064a449801713051d01193adc706bcb687c82

11 years agoMerge "Fix incorrect comment re:distributed router in nicira plugin"
Jenkins [Fri, 13 Sep 2013 17:51:00 +0000 (17:51 +0000)]
Merge "Fix incorrect comment re:distributed router in nicira plugin"

11 years agoMerge "Hash device_id only if it is longer than the allowed MAX size for NVP"
Jenkins [Fri, 13 Sep 2013 17:15:46 +0000 (17:15 +0000)]
Merge "Hash device_id only if it is longer than the allowed MAX size for NVP"

11 years agoAdd router ownership check on vpnservice creation
Nachi Ueno [Thu, 12 Sep 2013 01:52:01 +0000 (18:52 -0700)]
Add router ownership check on vpnservice creation

Router ownership must be checked on vpnservice creation.
In this commit, we added the check.

Fixes bug 1224196

Change-Id: I14b18225f82ebe691f253fbd7645ecfc7f12faad

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 13 Sep 2013 17:09:14 +0000 (17:09 +0000)]
Merge "Imported Translations from Transifex"

11 years agoFixes Hyper-V agent unsopported network_type issue
Alessandro Pilotti [Fri, 13 Sep 2013 16:44:22 +0000 (19:44 +0300)]
Fixes Hyper-V agent unsopported network_type issue

Fixes an issue when an exception is raised in case of not
supported network types.

Fixes bug: #1224583

Change-Id: I847aa825fbf5b7086c9960c051014cc1d7515f62

11 years agoFix incorrect comment re:distributed router in nicira plugin
Salvatore Orlando [Fri, 13 Sep 2013 15:28:52 +0000 (08:28 -0700)]
Fix incorrect comment re:distributed router in nicira plugin

Change-Id: I22445cc477a86cb99e97740fd8a9ddb796c1ebac

11 years agoStop popen patch correctly in test_agent_linux_utils
armando-migliaccio [Fri, 13 Sep 2013 14:44:40 +0000 (07:44 -0700)]
Stop popen patch correctly in test_agent_linux_utils

Fixes bug #1225009

Change-Id: Ic9f3491be2fb7481bbf3fd843a421d66d9248a20

11 years agoAdd NvpPluginV2 to migration 4a666eb208c2
Salvatore Orlando [Fri, 13 Sep 2013 09:35:48 +0000 (02:35 -0700)]
Add NvpPluginV2 to migration 4a666eb208c2

Bug 1224882

This migration alters a table used by NvpPluginV2 as well, so
it must be included in the plugin list.

Change-Id: Ifc5104d813c76fa8de000ec977ca3242e90e433d

11 years agoAdd new L3 RPC topic support to Ryu plugin
Yoshihiro Kaneko [Fri, 13 Sep 2013 05:56:22 +0000 (14:56 +0900)]
Add new L3 RPC topic support to Ryu plugin

fixes bug #1224796

This patch adds RPC consumer for the new topic for L3 callbacks to
Ryu plugin.

Change-Id: Id9b3af474e65ab4c5b58121e1dcb160f80a71633

11 years agoMerge "Fix incorrect NotImplementedError"
Jenkins [Fri, 13 Sep 2013 08:08:18 +0000 (08:08 +0000)]
Merge "Fix incorrect NotImplementedError"

11 years agoMerge "Fix error code for deletion of router which is in use by vpnservice"
Jenkins [Fri, 13 Sep 2013 07:46:26 +0000 (07:46 +0000)]
Merge "Fix error code for deletion of router which is in use by vpnservice"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 13 Sep 2013 06:10:16 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I4c978bcffa92b00deaf86a3da826ebe2a4ca0eb4

11 years agoMerge "Fix ovs_lib's issue of parsing flow proto field"
Jenkins [Fri, 13 Sep 2013 00:26:15 +0000 (00:26 +0000)]
Merge "Fix ovs_lib's issue of parsing flow proto field"

11 years agoMerge "pass default l3_gateway_service_uuid if not specified"
Jenkins [Thu, 12 Sep 2013 23:27:57 +0000 (23:27 +0000)]
Merge "pass default l3_gateway_service_uuid if not specified"

11 years agoMerge "Avoid performing extra query for fetching qos bindings"
Jenkins [Thu, 12 Sep 2013 23:27:49 +0000 (23:27 +0000)]
Merge "Avoid performing extra query for fetching qos bindings"

11 years agoMerge "Clean up code of virt_phy_sw_v2 module"
Jenkins [Thu, 12 Sep 2013 23:26:49 +0000 (23:26 +0000)]
Merge "Clean up code of virt_phy_sw_v2 module"

11 years agoMerge "Add (useful) missing headlines to nvp unit test files"
Jenkins [Thu, 12 Sep 2013 23:25:41 +0000 (23:25 +0000)]
Merge "Add (useful) missing headlines to nvp unit test files"

11 years agoMerge "Fix LinuxBridge test name from Openvswitch"
Jenkins [Thu, 12 Sep 2013 21:51:27 +0000 (21:51 +0000)]
Merge "Fix LinuxBridge test name from Openvswitch"

11 years agoAdd (useful) missing headlines to nvp unit test files
armando-migliaccio [Thu, 12 Sep 2013 21:33:17 +0000 (14:33 -0700)]
Add (useful) missing headlines to nvp unit test files

For Aaron Rosen's amusement, even though slightly ashamed.

Change-Id: Idadb7a86dddb2523987852179ebe23f6272846fb

11 years agopass default l3_gateway_service_uuid if not specified
Aaron Rosen [Thu, 12 Sep 2013 19:42:29 +0000 (12:42 -0700)]
pass default l3_gateway_service_uuid if not specified

Previously, if one created an external network of type l3_ext and did
not specify the default_gw_service_uuid via --provider:physical_network
an exception would be raised on the backend as we need to specify the
l3_gw_service_uuid we want nvp to use.

Fixes bug: 1224660

Change-Id: I6312956528c17d6a704d4e4ef629916f6463312a

11 years agoEnhance exception translation to better handle NeutronExceptions
Luis A. Garcia [Fri, 16 Aug 2013 16:07:47 +0000 (16:07 +0000)]
Enhance exception translation to better handle NeutronExceptions

NeutronExceptions have a 'message' class attribute that holds the
generic error message template, e.g. "Network %(network)s not found",
unfortunately, because the names are the same, it was overshadowing the
actual exception instance 'message', e.g. "Network 1 not found", after
translation when the exception was serialized to JSON.

This patch puts the exception's actual message in a new field called
'msg' and overwrites NeutronException unicode() so that 'msg' is used
during serialization and we'll get the correct message on the REST API
response.

Fixes bug: #1212882

Change-Id: I3965bffb1c2c2eee0af440d1ecd30ccb3bb958d5

11 years agoFix error code for deletion of router which is in use by vpnservice
Nachi Ueno [Wed, 11 Sep 2013 23:24:13 +0000 (16:24 -0700)]
Fix error code for deletion of router which is in use by vpnservice

In this commit, we check router is in use by a vpnservice or not when
we delete router.

Fixes bug 1224174

Change-Id: I55a4b9b93715fbb36816c69729d88eb494bcf15e

11 years agoFixed typo defult_tz_uuid
Aaron Rosen [Wed, 11 Sep 2013 18:24:54 +0000 (11:24 -0700)]
Fixed typo defult_tz_uuid

Fixes bug: 1224038

Change-Id: I0a4c7a63fefc02c4b8ae52d61fd036be8d375351

11 years agoFix LinuxBridge test name from Openvswitch
Aaron Rosen [Thu, 12 Sep 2013 17:30:30 +0000 (10:30 -0700)]
Fix LinuxBridge test name from Openvswitch

Fixes bug: 1224598

Change-Id: I791108f39e5fc7fcd9532b29d4b117d47907261c

11 years agoClean up code of virt_phy_sw_v2 module
Sahid Orentino Ferdjaoui [Thu, 12 Sep 2013 12:38:28 +0000 (14:38 +0200)]
Clean up code of virt_phy_sw_v2 module

 Removes two methods not used:
 * _get_all_segmentation_ids
 * _validate_vlan_id

 About log formatting:
 * In the __init__, '\n' can be removed from this line:
     LOG.debug(_("Loaded device plugin %s\n"),

Closes-Bug: 1180783

Change-Id: Ic0aea7e8016f198e2ba245c710e12bc490720039

11 years agoAvoid performing extra query for fetching qos bindings
Salvatore Orlando [Thu, 22 Aug 2013 16:08:52 +0000 (09:08 -0700)]
Avoid performing extra query for fetching qos bindings

Bug 1215872

Add a relationship with eager loading in the Port and Network models,
thus preventing the 'extend' functions from performing extra queries.
This patch also slight alters the methods for processing qos_queue
bindings in order to allow them for populating the qos_queue id in
the response being created.

Change-Id: Ie80d12aeed5de94afa61f23d7bcfc21372f23c4f

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 12 Sep 2013 06:09:42 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I92988cad8948c56116469793ebda55933d358d7e

11 years agoMerge "Vxlan / L2population support to Linuxbridge Agent"
Jenkins [Thu, 12 Sep 2013 03:53:40 +0000 (03:53 +0000)]
Merge "Vxlan / L2population support to Linuxbridge Agent"

11 years agoMerge "OVS agent implementation of l2-population"
Jenkins [Thu, 12 Sep 2013 03:07:58 +0000 (03:07 +0000)]
Merge "OVS agent implementation of l2-population"

11 years agoMerge "Add l2 population base classes"
Jenkins [Thu, 12 Sep 2013 02:31:39 +0000 (02:31 +0000)]
Merge "Add l2 population base classes"

11 years agoVxlan / L2population support to Linuxbridge Agent
Francois Eleouet [Wed, 11 Sep 2013 12:19:39 +0000 (14:19 +0200)]
Vxlan / L2population support to Linuxbridge Agent

This patch introduces VXLAN support for Linuxbridge agent alongside
with ml2 plugin support in linubridge mechnism driver.

A new vxlan configuration section is added for vxlan related parameters.

The agent also implements l2population RPC callbacks which allows ml2
plugin using l2population mechnism driver to populate vxlan forwarding
and neighbor tables following portbinding events. It allows agent to
respond locally to ARP requests for remote VMs and avoid dataplane based
learning. This should help limiting the use of multicast or flooding
for broadcast emulation in vxlan networks.

These changes should anyway have a limited risk, as agent behaviour
shouldn't be affected, except when vxlan is enabled alongside ml2 plugin.

Implements: blueprint l2-population

Change-Id: I99a961c53f9e451409f1affb079042936d8ae5c6

11 years agoMerge "Fix unable to ping floating ip from internal_ip"
Jenkins [Wed, 11 Sep 2013 23:51:12 +0000 (23:51 +0000)]
Merge "Fix unable to ping floating ip from internal_ip"

11 years agoOVS agent implementation of l2-population
Francois Eleouet [Thu, 22 Aug 2013 14:51:01 +0000 (16:51 +0200)]
OVS agent implementation of l2-population

This patchset implements l2-population RPC callbacks in OVS agents,
it enables plugin to populate forwarding table following portbindings
events.

For now, it doesn't include ARP responder implementation which is
deferred to a future patchset (As this feature isn't yet supported by
OVS, it will require the use of an external responder such as ebtables)

It anyway brings some improvements in tunnelling management, as agent
will tear-down unecessary tunnels, and flood packets on a per-network
basis rather than to all other agents.

These changes should anyway have a limited risk, as tunnel management
won't be affected as long as l2_population option is not set. This
option must be used in conjonction with ml2 plugin using l2population
mechanism driver.

Implements: blueprint l2-population

Change-Id: I5185eefedb0ff392bc8b99d16f810813e26ff58d

11 years agoAdd l2 population base classes
Sylvain Afchain [Mon, 22 Jul 2013 12:45:34 +0000 (14:45 +0200)]
Add l2 population base classes

This patch initiates the blueprint l2-population
Implemented as a ml2 Mechanism driver.

OVS & LinuxBridge drivers will be added as dependencies.

Rebased on ML2 Portbinding.

Change-Id: Ia2345aa262ec791c9f38b6e41e1e4b46f69cadac

11 years agobp: pxeboot-port, provide pxeboot on ports
dekehn [Wed, 11 Sep 2013 20:26:35 +0000 (14:26 -0600)]
bp: pxeboot-port, provide  pxeboot on ports

Add extra_dhcp_opts extension to Ml2 plugin.

Implements:bp:pxeboot-ports

Change-Id: Id1d3923c4d2e3cf86731e2f2e9013fbee4ed68c7

11 years agoFix unable to ping floating ip from internal_ip
Aaron Rosen [Thu, 5 Sep 2013 20:22:46 +0000 (13:22 -0700)]
Fix unable to ping floating ip from internal_ip

The following patch adds a no-dnat rule so that an internal_ip
can communicate with it's floatingip.

Fixes bug: 1221419

Change-Id: I3899b01f316902d1139e47b153aadb7ecb1ff983

11 years agoMerge "Support for NVP advanced service router"
Jenkins [Wed, 11 Sep 2013 17:52:32 +0000 (17:52 +0000)]
Merge "Support for NVP advanced service router"

11 years agoMerge "Ensure pid file is removed when metadata ns daemon receives SIGTERM"
Jenkins [Wed, 11 Sep 2013 17:45:19 +0000 (17:45 +0000)]
Merge "Ensure pid file is removed when metadata ns daemon receives SIGTERM"

11 years agoDon't need to init testr in run_tests.sh
Kui Shi [Wed, 11 Sep 2013 17:04:09 +0000 (01:04 +0800)]
Don't need to init testr in run_tests.sh

In run_tests.sh, function init_testr will initialize testr if the
directory .testrepository is not existed. Actually, testr will do
the check before run the test:

In Python package testrepository, setuptools_command.py:Testr.run

68 def run(self):
69     """Set up testr repo, then run testr"""
70     if not os.path.isdir(".testrepository"):
71         self._run_testr("init")

So, init_testr can be removed safely.

Fixes Bug #1224285

Change-Id: Ia74d9fff92b8efba9b72e5c7387f761144daa193

11 years agoDon't add neutron metadata_nat_rules if disable metadata proxy
Hui HX Xiang [Sun, 8 Sep 2013 02:51:42 +0000 (19:51 -0700)]
Don't add neutron metadata_nat_rules if disable metadata proxy

This patchset fixes this issue by adding a condition when adding nat
rules of neutron metadata proxy.

fixes bug #1212168

Change-Id: I99775aad73c49a8df3043690440d214614279a2b

11 years agoAdds support for L3 routing/NAT as a service plugin
Bob Melander [Wed, 3 Apr 2013 19:22:30 +0000 (21:22 +0200)]
Adds support for L3 routing/NAT as a service plugin

- Adds L3 routing/NAT service plugin
- Removes L3 routing/NAT from ML2 plugin
- Moves "router:external" attribute to new extension "External-net"
- Introduces separate RPC topic for L3 callbacks from L3 agent

Implements: blueprint quantum-l3-routing-plugin

Change-Id: Id9af10c2910f9a1730b163203a68d101ffc3b282

11 years agoSupport for NVP advanced service router
Kaiwei Fan [Fri, 23 Aug 2013 06:25:52 +0000 (23:25 -0700)]
Support for NVP advanced service router

When creating an LR:
    - deploy an Edge asynchronously
    - create a L2 switch for connecting LR and Edge
    - attach a router port to the L2 switch.
    - assign ip address 169.254.2.1/28 and nexthop 169.254.2.3 to LR
When set external gateway:
    - configure Edge interface and default gateway
    - Add static routes to Edge for all logic networks attached to LR via nexthop 169.254.2.1
    - configure SNAT rules for all logic networks attached to LR
When add router interface:
    - Add static route/SNAT rule for the network attached to LR
When associate floating IP address:
    - configure DNAT rule for the floating ip and the port

Tests being done:
    - Verified Edge is deployed asynchronously and LR is attached to the internal created L2 switch
    - Manually attach Edge's vNic to the L2 switch and Edge is able to ping 169.254.2.1
    - Verified router-delete deletes Edge asynchronously and remove the internal L2 switch
    - Verified SNAT/DNAT/static-routes rules are configured on Edge in correct order
    - Verified external vnic ip address/netmask and default gateway is configured

Implements: blueprint nvp-service-router
Change-Id: If9eff53df4d65cf4e318dedbfaafc742f6c6ab7f

11 years agoFix ovs_lib's issue of parsing flow proto field
Chengli XU [Wed, 11 Sep 2013 05:58:15 +0000 (13:58 +0800)]
Fix ovs_lib's issue of parsing flow proto field

When 'proto' other than 'ip' and nw_src/nw_dst are provided at the same
time, the proto parameter will be ignored.

Fixes bug: 1223668

Change-Id: Ie813e66995e2a9310ec4b48c0f7de673db2097f1

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Wed, 11 Sep 2013 07:38:53 +0000 (07:38 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Register an extend_dict function for ext_gw_mode extension"
Jenkins [Wed, 11 Sep 2013 07:16:50 +0000 (07:16 +0000)]
Merge "Register an extend_dict function for ext_gw_mode extension"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 11 Sep 2013 06:09:42 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I8de01b47a78ae301d9760ee8ab0e596e967e333f

11 years agoRegister an extend_dict function for ext_gw_mode extension
Salvatore Orlando [Tue, 10 Sep 2013 22:38:16 +0000 (15:38 -0700)]
Register an extend_dict function for ext_gw_mode extension

Bug 1223585wq

Use dict extension methods instead of overriding make_router_dict in
order to make this extension consistent with all the others.

Change-Id: I94fa7e70e5a869963ec4dfa9de85c8d922976843

11 years agoAdds help text to brocade configuration options
Justin Hammond [Tue, 3 Sep 2013 20:57:52 +0000 (15:57 -0500)]
Adds help text to brocade configuration options

Help text was added to the configuration options defined in the brocade neutron
plugin. This help text should assist users of the brocade plugin. The OSTYPE
configuration option was not used in the plugin and was labeled as such so a
user of the plugin would not worry about the meaning of it.

The example etc file /etc/neutron/plugins/brocade/brocade.ini has been updated
to share the same help values where applicable.

Fixes-Bug: #1157511

Change-Id: Ie068396e77902037a7a0b5334d4dfb0dcdd3575e

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 10 Sep 2013 16:16:18 +0000 (16:16 +0000)]
Merge "Imported Translations from Transifex"

11 years agoadd missing comma to supported alias string list
Mark McClain [Mon, 9 Sep 2013 18:04:50 +0000 (14:04 -0400)]
add missing comma to supported alias string list

Fixes bug: 1222949

Change-Id: Iac7f3b7605149e706e2ea8a30700dccd09f3c57e

11 years agoEnsure pid file is removed when metadata ns daemon receives SIGTERM
Darragh O'Reilly [Tue, 10 Sep 2013 09:06:28 +0000 (09:06 +0000)]
Ensure pid file is removed when metadata ns daemon receives SIGTERM

These files from the metadata namespace proxy are not being removed
because delete_pid() is registered with atexit. This means it only runs
when a process exits normally and won't run when a process receives a
signal.

This patch registers a signal handler for SIGTERM that calls exit()
to make the process exit normally so delete_pid() gets called.

Fixes bug: 1223250

Change-Id: I6309802e2109359560ccc084559ec8e4d310cce2

11 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 10 Sep 2013 06:09:56 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: Ib94bfe915a60c9c1a1d2375b9a15c666f065d865

11 years agoAvoid KeyError 'distributed' exception when using NVP <3.x
armando-migliaccio [Mon, 9 Sep 2013 21:54:32 +0000 (14:54 -0700)]
Avoid KeyError 'distributed' exception when using NVP <3.x

This patch fixes an issue found when creating routers with
NVP plugin and NVP platform 2.2

Fixes bug 1220931

Change-Id: Ia7b358b59e48a723c07efec015bb650accaa3322

11 years agoMerge "Make neutron.common.log.log print module path"
Jenkins [Mon, 9 Sep 2013 16:33:45 +0000 (16:33 +0000)]
Merge "Make neutron.common.log.log print module path"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 9 Sep 2013 15:31:16 +0000 (15:31 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Enhance unittest for hyperv_neutron_agent"
Jenkins [Mon, 9 Sep 2013 15:24:41 +0000 (15:24 +0000)]
Merge "Enhance unittest for hyperv_neutron_agent"

11 years agoMerge "Fix message i18n error"
Jenkins [Mon, 9 Sep 2013 15:03:30 +0000 (15:03 +0000)]
Merge "Fix message i18n error"

11 years agoMerge "LBaaS: Fix healthmonitor disassociation for non-admin"
Jenkins [Mon, 9 Sep 2013 12:46:04 +0000 (12:46 +0000)]
Merge "LBaaS: Fix healthmonitor disassociation for non-admin"

11 years agoMerge "Move declaration of int_br_device_count earlier"
Jenkins [Mon, 9 Sep 2013 09:03:01 +0000 (09:03 +0000)]
Merge "Move declaration of int_br_device_count earlier"

11 years agoLBaaS: Fix healthmonitor disassociation for non-admin
Eugene Nikanorov [Wed, 4 Sep 2013 18:00:40 +0000 (22:00 +0400)]
LBaaS: Fix healthmonitor disassociation for non-admin

Due to specifics of policy engine, checked object should have
tenant_id to be checked by rule admin_or_owner.
In 'disassociate' operation neutron API layer works with
PoolHealthMonitorAssociation which doesn't have tenant_id field.
Need to add it to resulting dict returned by get_pool_health_monitor.

Change-Id: I6c58558b09ff34dedd7da30866275de44d3ba993
Closes-bug: 1220668

11 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 9 Sep 2013 06:10:05 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I3f069fcb0ff5645581152ca33d12ed802d0779e5

11 years agoFix message i18n error
ZhiQiang Fan [Tue, 27 Aug 2013 00:02:04 +0000 (08:02 +0800)]
Fix message i18n error

Partial-Bug: #1217100

Using tools/check_i18n.py to scan source directory, and fix most of
the errors.

- Message internationalization
- First letter must be capital
- Using comma instead of percent in LOG.xxx

Note: all extension's description are not touched in this patch,
can be fixed after discussing.
Note: all nicira/check_nvp_config.py print messages are not fixed.

Change-Id: I79ef06fd42f6780beb5019c592662536c2a51864

11 years agoEnhance unittest for hyperv_neutron_agent
Hui HX Xiang [Mon, 19 Aug 2013 15:13:41 +0000 (08:13 -0700)]
Enhance unittest for hyperv_neutron_agent

Change-Id: Idc726ba668eba56a64dc498b49ec0e5e397590b5

11 years agoMerge "Enclose command args in with_venv.sh"
Jenkins [Sat, 7 Sep 2013 16:58:56 +0000 (16:58 +0000)]
Merge "Enclose command args in with_venv.sh"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Sat, 7 Sep 2013 16:58:03 +0000 (16:58 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix IF checks on spawned green thread instance"
Jenkins [Sat, 7 Sep 2013 16:57:54 +0000 (16:57 +0000)]
Merge "Fix IF checks on spawned green thread instance"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 7 Sep 2013 06:10:31 +0000 (06:10 +0000)]
Imported Translations from Transifex

Change-Id: I4602704b4a4f1be5a49f1431eebd58072dfb7704

11 years agoMerge "Mock midonetclient in test_midonet_lib"
Jenkins [Fri, 6 Sep 2013 23:37:45 +0000 (23:37 +0000)]
Merge "Mock midonetclient in test_midonet_lib"

11 years agoFix IF checks on spawned green thread instance
Kaiwei Fan [Thu, 5 Sep 2013 20:57:13 +0000 (13:57 -0700)]
Fix IF checks on spawned green thread instance

Initially the symptom looks like race condition between two threads when
stopping the task manager. After further analysis/troubleshooting, it
turns out that two threads are spawned if a task manager is stopped and
started again, causing unexpected errors.

The IF check on the spawned thread sometimes return True sometime return False
if not compared against None explicitly. This makes start() method
think no thread has been started or stop() method think no thread is started.
Change the check to compare against None.

Also fixed a problem in unit-test where a thread may never terminated when
a stop call is invoked during db access.

Closes-Bug: 1221486
Change-Id: I0d67bfe8fef7a390f0d6bc0f5a42835f86a9fb27

11 years agoPrevents 400 NVP errors caused by a None display_name
armando-migliaccio [Fri, 6 Sep 2013 19:57:48 +0000 (12:57 -0700)]
Prevents 400 NVP errors caused by a None display_name

The API forbids a resource name to be None, but the
Model does not. Such errors may  be induced by
programming directly against the plugin interface. With
this fix we avoid raising 400 faults which may be introduced
by involuntary programming errors.

Fixes bug 1221896

Change-Id: Ic1201c5af5691f2bed38753453f73c229858b10f

11 years agoMake neutron.common.log.log print module path
Akihiro MOTOKI [Fri, 6 Sep 2013 17:10:57 +0000 (02:10 +0900)]
Make neutron.common.log.log print module path

Closes-Bug: #1221663

neutron.common.log.log is useful for logging arguments of a method.
It outputs class name and method name, but module path is not output.
A module path is useful to search the log message.

Change-Id: Ic2903da750cc13980d5cdee153bb079f7d4ee122

11 years agoMerge "Replace assertEquals with assertEqual"
Jenkins [Fri, 6 Sep 2013 14:49:52 +0000 (14:49 +0000)]
Merge "Replace assertEquals with assertEqual"

11 years agoLoad ML2 mech drivers as listed in ml2_conf.ini
Rich Curran [Fri, 6 Sep 2013 12:45:18 +0000 (08:45 -0400)]
Load ML2 mech drivers as listed in ml2_conf.ini

stevedore requires an additional parameter to be used (name_order=True) to
sort the loaded extensions to match the order used in the parameter "names".

bug 1221490

Change-Id: I614716c45d91cdf152650fba5ec8ced1e9c5aad4

11 years agoMock midonetclient in test_midonet_lib
Rossella Sblendido [Fri, 6 Sep 2013 10:42:31 +0000 (10:42 +0000)]
Mock midonetclient in test_midonet_lib

Change-Id: Idb4de82c193b2f2589131b06bad04bc858499a21
Closes-bug: #1221674

11 years agoFix incorrect NotImplementedError
ZhiQiang Fan [Fri, 6 Sep 2013 05:27:19 +0000 (13:27 +0800)]
Fix incorrect NotImplementedError

neutron.common.exceptions doesn't define NotImplementedError, but
some codes still use it. We should use builtin
exceptions.NotImplementedError instead.

Note: this patch also fixes a never run code in nvp.

Closes-Bug: #1221500
Change-Id: I5f367ab5edc1e7fbbc2e4eba5fe36d148d4d062d

11 years agoReplace assertEquals with assertEqual
Zhongyue Luo [Fri, 6 Sep 2013 07:27:20 +0000 (15:27 +0800)]
Replace assertEquals with assertEqual

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases

Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

Fixes bug #1221601

Change-Id: Id502cfbc210c6c3fe0a256d5350e159ffa220141

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 6 Sep 2013 06:09:44 +0000 (06:09 +0000)]
Imported Translations from Transifex

Change-Id: I874308f83a54defeb77336acc1c0318172db1bb6

11 years agoMerge "vArmour gateway agent and FWaaS driver"
Jenkins [Fri, 6 Sep 2013 00:34:03 +0000 (00:34 +0000)]
Merge "vArmour gateway agent and FWaaS driver"