]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoSync gettextutils from oslo
Luis A. Garcia [Wed, 18 Sep 2013 23:11:06 +0000 (23:11 +0000)]
Sync gettextutils from oslo

Some Messages, such as those created from Invalid exceptions, use a
Message within a Message, and we were only translating the base Message
but not the Message substitution within.

Fixes bug: #1221808

Change-Id: Ic3119df23a090cfaa160c1461e955f0af55fe1cf

11 years agoMerge "Dynamically adjust max number of leases"
Jenkins [Wed, 18 Sep 2013 14:37:49 +0000 (14:37 +0000)]
Merge "Dynamically adjust max number of leases"

11 years agoMerge "BigSwitch plugin: allow 'external' keyword in router rules"
Jenkins [Wed, 18 Sep 2013 13:57:35 +0000 (13:57 +0000)]
Merge "BigSwitch plugin: allow 'external' keyword in router rules"

11 years agoMerge "Make router-interface-delete work in N1kv plugin"
Jenkins [Wed, 18 Sep 2013 13:57:27 +0000 (13:57 +0000)]
Merge "Make router-interface-delete work in N1kv plugin"

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

11 years agoMerge "Port binding registration with NeutronDbPlugin causes Neutron crash"
Jenkins [Wed, 18 Sep 2013 13:14:17 +0000 (13:14 +0000)]
Merge "Port binding registration with NeutronDbPlugin causes Neutron crash"

11 years agoMerge "Prevent update_port ip_address from matching address_pair"
Jenkins [Wed, 18 Sep 2013 11:16:11 +0000 (11:16 +0000)]
Merge "Prevent update_port ip_address from matching address_pair"

11 years agoMerge "Fixing two comments regarding bind_port in ml2"
Jenkins [Wed, 18 Sep 2013 10:44:33 +0000 (10:44 +0000)]
Merge "Fixing two comments regarding bind_port in ml2"

11 years agoMerge "BigSwitch plugin: passes context to all update_network calls"
Jenkins [Wed, 18 Sep 2013 06:35:17 +0000 (06:35 +0000)]
Merge "BigSwitch plugin: passes context to all update_network calls"

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

Change-Id: I4210dec928be0490517665470d08c37df806fb59

11 years agoPort binding registration with NeutronDbPlugin causes Neutron crash
sukhdev [Mon, 16 Sep 2013 19:00:13 +0000 (12:00 -0700)]
Port binding registration with NeutronDbPlugin causes Neutron crash

fixes bug: 1226169

port binding feature of ML2 plugin registers a callback function with
db_base_plugin_v2.NeutronDbPluginV2, which is invoked during a query of
port DB. This function is registered by name instead by refefence. This
causes wrong context to be passed to the function upon invocation, which
causes the exception. If this query is made during neutron
initilization, Neutron service will fail to start.

This fix changes the registration from function name to function
pointer

Change-Id: I44f7f1a222f80c9ce35f7d49610e52170f76dfd1

11 years agoFixing two comments regarding bind_port in ml2
Mohammad Banikazemi [Tue, 17 Sep 2013 19:56:01 +0000 (15:56 -0400)]
Fixing two comments regarding bind_port in ml2

Fixes two comment lines regarding when bind_port
is called. The correct comment should indicate that
bind_port is called prior to "create_port_precommit or
update_port_precommit" rather than
"create_network_precommit or update_network_precommit".

Change-Id: I5c0cb49efb43b15fdc5a7f88569e19fcf8d72819

11 years agoMerge "Support advanced NVP LBaaS Service"
Jenkins [Wed, 18 Sep 2013 00:14:50 +0000 (00:14 +0000)]
Merge "Support advanced NVP LBaaS Service"

11 years agoMerge "Support for NVP advanced FwaaS service"
Jenkins [Wed, 18 Sep 2013 00:14:41 +0000 (00:14 +0000)]
Merge "Support for NVP advanced FwaaS service"

11 years agoBigSwitch plugin: passes context to all update_network calls
Kevin Benton [Tue, 17 Sep 2013 20:22:32 +0000 (13:22 -0700)]
BigSwitch plugin: passes context to all update_network calls

There were a few calls to update the network on the backend
that were not having the context passed to them so they were
incorrectly using the admin context. This patch corrects that
by passing the context to all network update calls. It also
disallows calls to _send_update_network that don't provide
the context because there is not a use case for that condition.

Closes-Bug: #1226803
Change-Id: I7f0cbb797df9f565d0a00a7c67278cd96301f244

11 years agoMerge "Fix error raised when router-interface-delete on no-snat routers"
Jenkins [Tue, 17 Sep 2013 20:46:55 +0000 (20:46 +0000)]
Merge "Fix error raised when router-interface-delete on no-snat routers"

11 years agoBigSwitch plugin: allow 'external' keyword in router rules
Kevin Benton [Tue, 17 Sep 2013 20:43:02 +0000 (13:43 -0700)]
BigSwitch plugin: allow 'external' keyword in router rules

Allows 'external' keyword in addition to 'any' keyword
in BigSwitch router rules support.

Closes-Bug: #1226814
Change-Id: Ia92513e89b0c95c5b3b98921e126fdd21cc4f405

11 years agoDynamically adjust max number of leases
Mark McClain [Fri, 13 Sep 2013 21:48:20 +0000 (17:48 -0400)]
Dynamically adjust max number of leases

This change dynamically adjusts the maximum number of leases based on
the size of the subnets associated with a network.  The upper bound is
limited by a configurable option to keep the max reasonable and prevent
denial of service.

Closes bug: 1225200

Change-Id: I75c3907bcf45cd991eadf5dd8c8ad7f1eaab3c85

11 years agoSupport advanced NVP LBaaS Service
linb [Tue, 20 Aug 2013 05:35:10 +0000 (13:35 +0800)]
Support advanced NVP LBaaS Service

The patch adds NVP advanced LBaaS service support for NVP with
VCNS:
        * NVP LBaaS is an advanced Service of NVP depending on NVP
          advanced service router
            - Once an advanced router id created, one corresponding
              vshield edge will be deployed, and then we can configure
              LB service On the vshield edge
        * NVP LBaaS service plugin still uses LBaaS DB service logic,
          while finally calling vShield Edge to support FWaaS service
            - When creating VIP object, service attaches the object to
              the advanced router with routedserviceinsertion service.
              Then before pushing VIP VCNS call, the server would first
              pushing associated POOL VCNS call and associated Monitor
              VCNS call to vShield Edge. Deleting VIP is opposite
              operation
            - Refering to CUD operation of other objects, service would
              first find the associated VIP object and then find the edge bound to
              the router which vip inserted. Then service would push corresponding
              VCNS call to Vshield Edge
        * on driver part, the driver will first convert the object
          to VSM known object input, and then send a synchronous JSON
          calling to VSM, and receive the result

Implements: blueprint nvp-lbaas-plugin
Change-Id: Iec41f2dc103daddf3bed4d09c147df3865b3dccd

11 years agoMake router-interface-delete work in N1kv plugin
Bob Melander [Tue, 17 Sep 2013 17:55:46 +0000 (19:55 +0200)]
Make router-interface-delete work in N1kv plugin

Fixes bug 1226729

Change-Id: If2c6bc544dfa45cb98d5951c99f158d49191b031

11 years agoSupport for NVP advanced FwaaS service
berlin [Thu, 22 Aug 2013 07:58:58 +0000 (15:58 +0800)]
Support for NVP advanced FwaaS service

The patch adds advanced FWaaS service support for NVP with
VCNS:
        * NVP FWaaS is an advanced Service of NVP depending on NVP
          advanced service router
            - Once an advanced router id created, one corresponding
              vshield edge will be deployed, and then we can configure
              FW service on the vshield edge
        * NVP FWaaS service plugin still uses FWaaS DB service logic,
          while finally calling vShield Edge to support FWaaS service
            - When firewall object is created, we will attach the
              object to the advanced router with routedserviceinsertion_db
              service
        * on driver part, the driver will first convert the object
          to VSM known object input, and then send a synchronous JSON
          calling to VSM, and receive the result

Implements: blueprint nvp-fwaas-plugin
Change-Id: Id43af8821f5c553356e3cc870993eef99ef7def3

11 years agoMerge "Increase size of peer_address attribute in VPNaaS"
Jenkins [Tue, 17 Sep 2013 15:57:56 +0000 (15:57 +0000)]
Merge "Increase size of peer_address attribute in VPNaaS"

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

11 years agoIncrease size of peer_address attribute in VPNaaS
Paul Michali [Mon, 16 Sep 2013 14:08:56 +0000 (10:08 -0400)]
Increase size of peer_address attribute in VPNaaS

Increased the size so that peer_address could be FQDN. API
document changed constraint from IPAddress to string, however
in the plugin/service code, it is already a string and there is
no specific restriction on the value. Database migration will
be performed, due to the size change.

bug 1225128

Change-Id: Idc0d545491074fc0a1a3bd0256fdbba0a3a0718c

11 years agoMerge "Fixes hyperv neutron agent test, and removes exit"
Jenkins [Tue, 17 Sep 2013 13:58:23 +0000 (13:58 +0000)]
Merge "Fixes hyperv neutron agent test, and removes exit"

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

Change-Id: I32c66648232b2d01897889dc15d4498e1ac3de2e

11 years agoMerge "Fix failure in multi-chunk state sync for nicira plugin"
Jenkins [Tue, 17 Sep 2013 02:36:47 +0000 (02:36 +0000)]
Merge "Fix failure in multi-chunk state sync for nicira plugin"

11 years agoFix error raised when router-interface-delete on no-snat routers
Aaron Rosen [Mon, 16 Sep 2013 23:28:19 +0000 (16:28 -0700)]
Fix error raised when router-interface-delete on no-snat routers

Previously, a 500 error would be raised trying to remove a subnet
from a no-snat router because we were trying to remove the snat
rules that didn't exist in the router.

Fixes bug: 1226323

Change-Id: Ieff0ed4bdbac39ac07e597753272a4f5d40cb346

11 years agoFixes hyperv neutron agent test, and removes exit
Sean McCully [Sat, 14 Sep 2013 20:14:33 +0000 (15:14 -0500)]
Fixes hyperv neutron agent test, and removes exit

Fixes test for hyperv neutron agent, and removes
sys.exit from hyperv neutron agent

Fixes: bug #1225509
Change-Id: Icf67c6775b6a25a5223ffa7e2d863c2bc0486c2c

11 years agoMerge "_validate_network_tenant_ownership must be less strict"
Jenkins [Mon, 16 Sep 2013 18:14:18 +0000 (18:14 +0000)]
Merge "_validate_network_tenant_ownership must be less strict"

11 years agoMerge "FWaaS - fix policy association of firewall rule"
Jenkins [Mon, 16 Sep 2013 18:14:06 +0000 (18:14 +0000)]
Merge "FWaaS - fix policy association of firewall rule"

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 ago_validate_network_tenant_ownership must be less strict
Avishay Balderman [Wed, 11 Sep 2013 11:46:56 +0000 (13:46 +0200)]
_validate_network_tenant_ownership must be less strict

Neutron, currently does a strict validation code
so that for non-shared network the subnets and
ports must belong to the same tenant as the network. In
the case of a "service VM" created by
admin user, this function should return thus allowing
admin users to create ports and networks in a tenant
network.

Change-Id: Ied831402d56b98a1323d30eb6a769fd2df5278ee
Closes-Bug: #1221315

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 agoFWaaS - fix policy association of firewall rule
Sumit Naiksatam [Sat, 14 Sep 2013 20:38:08 +0000 (13:38 -0700)]
FWaaS - fix policy association of firewall rule

If an existing firewall rule already associated with a
firewall policy is associated with a different firewall
policy, the new association should fail. The check for
the existing association was not being made, hence the
firewall rule was being removed from the older policy
and being associated with the newer policy (incorrect
behavior). This is being fixed here.

If the association with the newer policy has to be made
the rule should first be removed from the existing policy
association.

Change-Id: I30c41d77e7fde673f0dccbc98e1cd7bd0d7b384f
Closes-Bug: #1223465

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 agoFix failure in multi-chunk state sync for nicira plugin
Salvatore Orlando [Thu, 12 Sep 2013 22:23:46 +0000 (15:23 -0700)]
Fix failure in multi-chunk state sync for nicira plugin

Bug 1224719

This patch ensures the 'result_count' attribute from NVP API responses
is properly handled, and adds support for '_page_cursor' request query
parameter in the fake nvp api client in order to ensure issues like this
are captured by unit tests.

Change-Id: I1d6179bd58a14d19729fc882f004b6d1afccbe3d

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 agoPrevent update_port ip_address from matching address_pair
Aaron Rosen [Wed, 11 Sep 2013 03:32:28 +0000 (20:32 -0700)]
Prevent update_port ip_address from matching address_pair

Previously one could update a port to match one of the address_pairs.
This patch prevents that.

Fixes bug: 1223646

Change-Id: Ic8cecfdb83b3fd9d2691bb41e0427cf578577fc8

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"