]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
11 years agoMerge "Port Cisco nexus and network db UT to ML2 mech driver UT"
Jenkins [Mon, 23 Sep 2013 15:58:50 +0000 (15:58 +0000)]
Merge "Port Cisco nexus and network db UT to ML2 mech driver UT"

11 years agoMerge "Ensure names are truncated to accommodate NVP limit"
Jenkins [Mon, 23 Sep 2013 14:14:56 +0000 (14:14 +0000)]
Merge "Ensure names are truncated to accommodate NVP limit"

11 years agoMerge "Fix usage of _fields method in provider_configuration.py"
Jenkins [Mon, 23 Sep 2013 14:12:03 +0000 (14:12 +0000)]
Merge "Fix usage of _fields method in provider_configuration.py"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 23 Sep 2013 14:11:54 +0000 (14:11 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Flip to pythonic method names for context unit tests"
Jenkins [Mon, 23 Sep 2013 12:22:28 +0000 (12:22 +0000)]
Merge "Flip to pythonic method names for context unit tests"

11 years agoMerge "Use built-in print() instead of print statement"
Jenkins [Mon, 23 Sep 2013 08:32:50 +0000 (08:32 +0000)]
Merge "Use built-in print() instead of print statement"

11 years agoMerge "Handle long integer conversion in NEC portinfo validation tests"
Jenkins [Mon, 23 Sep 2013 06:35:37 +0000 (06:35 +0000)]
Merge "Handle long integer conversion in NEC portinfo validation tests"

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

Change-Id: I625bfc9c649f6f25f706a8696406a7962bc6f0a9

11 years agoFix usage of _fields method in provider_configuration.py
Eugene Nikanorov [Fri, 20 Sep 2013 03:15:38 +0000 (07:15 +0400)]
Fix usage of _fields method in provider_configuration.py

Apply _fields() method to each dict in the list.

Change-Id: I9357212e203843ffa4a05216d9c79fe8831971a5
Closes-Bug: #1227971

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

Change-Id: I3f3a7af761414c22066278cae9452a6917d4340a

11 years agoFlip to pythonic method names for context unit tests
armando-migliaccio [Sun, 22 Sep 2013 01:37:31 +0000 (18:37 -0700)]
Flip to pythonic method names for context unit tests

Fixes bug #1228738

Change-Id: Ia1864e64d7d2848f5892484eb5ad592a1f523fae

11 years agoMerge "NVP plugin: Set default max_lp_per_bridged_ls to 5000"
Jenkins [Sat, 21 Sep 2013 22:47:56 +0000 (22:47 +0000)]
Merge "NVP plugin: Set default max_lp_per_bridged_ls to 5000"

11 years agoHandle long integer conversion in NEC portinfo validation tests
Matt Riedemann [Fri, 20 Sep 2013 15:47:25 +0000 (08:47 -0700)]
Handle long integer conversion in NEC portinfo validation tests

There are a couple of tests for NEC portinfo validation that pass an id
which gets converted to a base-16 integer and then that gets converted
to a hex string. The problem is the integer conversion can make it a
long integer and then the hex built-in appends 'L' to the string, and
the tests do not account for that. This patch handles that case.

Closes-Bug: #1228212

Change-Id: Id3aed686329dae9cc4777213a4d2bcf406652e15

11 years agoMerge "Fix URL used in NCS mechanism driver sync_full() operation"
Jenkins [Sat, 21 Sep 2013 17:24:31 +0000 (17:24 +0000)]
Merge "Fix URL used in NCS mechanism driver sync_full() operation"

11 years agoUse built-in print() instead of print statement
Chang Bo Guo [Wed, 18 Sep 2013 09:35:53 +0000 (02:35 -0700)]
Use built-in print() instead of print statement

In python 3 print statement is not supported, so we should use
only print() functions.

This patch also removes print in unit test, left by accident

Fixes bug 1226943

Change-Id: I5ace50cb9e149682344b4c986ef9318f8dc50f72

11 years agoMerge "Remove ununsed method update_providers"
Jenkins [Sat, 21 Sep 2013 13:12:24 +0000 (13:12 +0000)]
Merge "Remove ununsed method update_providers"

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

Change-Id: I9c87eada75602c2754b95577b35a50f773cdfac0

11 years agoPort Cisco nexus and network db UT to ML2 mech driver UT
Dane LeBlanc [Fri, 20 Sep 2013 03:30:56 +0000 (23:30 -0400)]
Port Cisco nexus and network db UT to ML2 mech driver UT

Fixes bug 1227964

This fix ports the Cisco Nexus database and network database
unit tests to the Cisco ML2 mechanism driver UT.
The existing test scripts which are ported:
    neutron/tests/unit/cisco/test_nexus_db.py
    neutron/tests/unit/cisco/test_network_db.py
The new test scripts are:
    neutron/tests/unit/ml2/drivers/test_cisco_nexus_db.py
    neutron/tests/unit/ml2/drivers/test_cisco_network_db.py

Note that the QoS database related tests in
test_network_db.py are not ported because QoS is
not currently supported in the Cisco ML2
mechanism driver.

Change-Id: Ib47dab9dafde7c4b8cf0a4930379750f00b9455c

11 years agoRemove ununsed method update_providers
Aaron Rosen [Fri, 20 Sep 2013 20:09:01 +0000 (13:09 -0700)]
Remove ununsed method update_providers

Fixes bug: 1228370

Change-Id: Ie9182718dc87217c05d8f0d4d1a10bb538cfb8cc

11 years agoMerge "Allow non-admin user to list service providers"
Jenkins [Fri, 20 Sep 2013 18:50:25 +0000 (18:50 +0000)]
Merge "Allow non-admin user to list service providers"

11 years agoNVP plugin: Set default max_lp_per_bridged_ls to 5000
Salvatore Orlando [Thu, 19 Sep 2013 12:02:12 +0000 (05:02 -0700)]
NVP plugin: Set default max_lp_per_bridged_ls to 5000

This patch increases the default value from 64 to 5000

Bug 1227592

Change-Id: I19baa6dc48541ee5238748d21e8c410e4cdb5c00

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

Change-Id: Ibb176fafb9d27baccb95ef4e6616c9aedbf86ba5

11 years agoEnsure names are truncated to accommodate NVP limit
armando-migliaccio [Fri, 20 Sep 2013 00:27:29 +0000 (17:27 -0700)]
Ensure names are truncated to accommodate NVP limit

Switches created through Advanced Plugin should have
their name truncated as well. To this aim, move things
around to avoid awkward imports or code duplications

Fixes bug #1227927

Change-Id: I3cc69356227d3bd63603ee1e53d82e6561f4cad0

11 years agoMerge "Change daemon Pidfile class to not use root_helper"
Jenkins [Thu, 19 Sep 2013 21:21:12 +0000 (21:21 +0000)]
Merge "Change daemon Pidfile class to not use root_helper"

11 years agoMerge "Do not apply security groups to logical ports"
Jenkins [Thu, 19 Sep 2013 21:18:51 +0000 (21:18 +0000)]
Merge "Do not apply security groups to logical ports"

11 years agoMerge "Fix handling of floating IP association info in Nicira plugin"
Jenkins [Thu, 19 Sep 2013 21:18:43 +0000 (21:18 +0000)]
Merge "Fix handling of floating IP association info in Nicira plugin"

11 years agoMerge "Fix ovs-vsctl call in add_tunnel_port()"
Jenkins [Thu, 19 Sep 2013 19:03:59 +0000 (19:03 +0000)]
Merge "Fix ovs-vsctl call in add_tunnel_port()"

11 years agoMerge "Change header from LLC to Foundation"
Jenkins [Thu, 19 Sep 2013 19:02:50 +0000 (19:02 +0000)]
Merge "Change header from LLC to Foundation"

11 years agoMerge "Cisco plugin portbinding extension support"
Jenkins [Thu, 19 Sep 2013 19:01:43 +0000 (19:01 +0000)]
Merge "Cisco plugin portbinding extension support"

11 years agoChange header from LLC to Foundation
ZhiQiang Fan [Thu, 19 Sep 2013 17:29:20 +0000 (01:29 +0800)]
Change header from LLC to Foundation

Change-Id: I11d7e734ae56568f2387a208efe0d1487377cbf9
Closes-Bug: #1214176

11 years agoMerge "Sync gettextutils from oslo"
Jenkins [Thu, 19 Sep 2013 16:01:41 +0000 (16:01 +0000)]
Merge "Sync gettextutils from oslo"

11 years agoCisco plugin portbinding extension support
Arvind Somya [Thu, 29 Aug 2013 17:23:52 +0000 (13:23 -0400)]
Cisco plugin portbinding extension support

This commit adds portbinding extension support to the Cisco plugin.

Change-Id: I87554607860b040b693edeecc2706ca8edbe49b6
Fixes: Bug #1218033
11 years agoMerge "FWaaS - fix reordering of rules in policy"
Jenkins [Thu, 19 Sep 2013 14:55:04 +0000 (14:55 +0000)]
Merge "FWaaS - fix reordering of rules in policy"

11 years agoMerge "Fix bridge logical chaining"
Jenkins [Thu, 19 Sep 2013 14:51:19 +0000 (14:51 +0000)]
Merge "Fix bridge logical chaining"

11 years agoFix ovs-vsctl call in add_tunnel_port()
Roman Podolyaka [Thu, 19 Sep 2013 13:57:49 +0000 (16:57 +0300)]
Fix ovs-vsctl call in add_tunnel_port()

When a new GRE tunnel is created OVS agent calls ovs-vsctl
incorrectly. Command:

    sudo ovs-vsctl --timeout=2 --may-exist add-port br-tun gre-1

is produced instead of correct one:

   sudo ovs-vsctl --timeout=2 -- --may-exist add-port br-tun gre-1

Fixes bug 1227675

Change-Id: I010961658a37028e41621c4a529b5a14e7587c7f

11 years agoAllow non-admin user to list service providers
Eugene Nikanorov [Thu, 19 Sep 2013 13:45:39 +0000 (17:45 +0400)]
Allow non-admin user to list service providers

Add get_service_provider rule to policy.json

Change-Id: If4f8103231694fbf79088f7a95a277d68eecce0f
Closes-Bug: #1227697

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

Change-Id: I24a354aae33cd01f97cf4edb0fde4f193b0eb320

11 years agoFix bridge logical chaining
Aaron Rosen [Wed, 18 Sep 2013 23:13:08 +0000 (16:13 -0700)]
Fix bridge logical chaining

network param was not being passed to self._convert_to_nvp_transport_zone

Fixes bug: 1227405

Change-Id: Id6f8ad96f68bee4ab2f31daa73870ca841dece62

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 agoFix KeyError for NVP plugin during portbinding update
armando-migliaccio [Wed, 18 Sep 2013 19:41:01 +0000 (12:41 -0700)]
Fix KeyError for NVP plugin during portbinding update

Add missing unit test coverage, that unveiled the issue.

Closes-Bug: 1227247

Change-Id: I0d5a3b637d86308d82bf96bdb07928b19fd1b284

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 agoFix URL used in NCS mechanism driver sync_full() operation
Luke Gorrie [Fri, 13 Sep 2013 14:30:28 +0000 (14:30 +0000)]
Fix URL used in NCS mechanism driver sync_full() operation

The URL was incorrect due to a simple argument-passing bug.

Change-Id: I2fabacdb2838022a1d187ceb70cb090c15457b7c
Closes-Bug: #1224981

11 years agoFWaaS - fix reordering of rules in policy
Sumit Naiksatam [Wed, 18 Sep 2013 06:27:20 +0000 (23:27 -0700)]
FWaaS - fix reordering of rules in policy

Due to a recent change, reodering of rules within the
same policy was failing. This is fixed by checking if
the rules belong to the same policy we allow reordering.

There was also a missing call to reorder due to which
the position number on the rules was not reflected correctly
after the reordering. This is also fixed.

Closes bug: #1226941

Change-Id: I7f52e8b9d578c290ace3bb615bf68bd213398303

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