]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoOpencontrail plug-in implementation for core resources
Praneet Bachheti [Thu, 29 May 2014 23:11:39 +0000 (16:11 -0700)]
Opencontrail plug-in implementation for core resources

Adds Opencontrail plug-in implementation with unit tests
This patch has no dependency on any other blueprints
The link below describes how to install VIF driver for opencontrail
https://github.com/Juniper/contrail-controller/wiki/
OpenContrail-bring-up-and-provisioning

- The contrail_plugin_core.py is the main interface for neutron common
  infrastructure. It relays API requests to the opencontrail controller

DocImpact
Change-Id: I501bf669b2a999a171f9a3ee3e9893d4ead50e3b
Implements: blueprint juniper-plugin-with-extensions

10 years agoMerge "Preserve link local IP allocations for DVR fip ns across restart"
Jenkins [Thu, 14 Aug 2014 20:12:03 +0000 (20:12 +0000)]
Merge "Preserve link local IP allocations for DVR fip ns across restart"

10 years agoMerge "l2pop: get_agent_ports: Don't yield (None, {})"
Jenkins [Thu, 14 Aug 2014 17:53:47 +0000 (17:53 +0000)]
Merge "l2pop: get_agent_ports: Don't yield (None, {})"

10 years agoMerge "ML2: Make get_device_details report mac address as well"
Jenkins [Thu, 14 Aug 2014 17:49:58 +0000 (17:49 +0000)]
Merge "ML2: Make get_device_details report mac address as well"

10 years agoMerge "Fix session's InvalidRequestError because of nested rollback"
Jenkins [Thu, 14 Aug 2014 17:10:15 +0000 (17:10 +0000)]
Merge "Fix session's InvalidRequestError because of nested rollback"

10 years agoMerge "Predictable field and filter ordering"
Jenkins [Thu, 14 Aug 2014 13:52:40 +0000 (13:52 +0000)]
Merge "Predictable field and filter ordering"

10 years agoMerge "Use jsonutils instead of stdlib json"
Jenkins [Thu, 14 Aug 2014 13:12:34 +0000 (13:12 +0000)]
Merge "Use jsonutils instead of stdlib json"

10 years agoUse jsonutils instead of stdlib json
Ihar Hrachyshka [Thu, 7 Aug 2014 22:04:44 +0000 (00:04 +0200)]
Use jsonutils instead of stdlib json

jsonutils provides multiple benefits in comparison to pure stdlib json
(like using simplejson on Python 2.6).

Similar patch was already merged before [1], but since it lacked hacking
rule to enforce jsonutils usage, new occurrences of stdlib json module
usage were introduced.

This patch switches all the code to using jsonutils and adds a hacking
rule to enforce the rule.

The hacking rule requires that jsonutils module does not mimic as 'json'
thru using import renames, so the code was updated not to rename the
module when doing import.

The hacking rule was shamelessly copied from the corresponding nova
review [2].

[1]: https://review.openstack.org/#/c/99760/
[2]: https://review.openstack.org/111296/

Change-Id: Ie7a5bb76445e15cde9fbf9ff3d2101a014637b37

10 years agoMerge "Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint"
Jenkins [Thu, 14 Aug 2014 10:28:43 +0000 (10:28 +0000)]
Merge "Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint"

10 years agoMerge "Fix interface add for dvr with gateway"
Jenkins [Thu, 14 Aug 2014 05:22:36 +0000 (05:22 +0000)]
Merge "Fix interface add for dvr with gateway"

10 years agoMerge "Delete DVR namespaces on node after removing last VM"
Jenkins [Thu, 14 Aug 2014 04:41:39 +0000 (04:41 +0000)]
Merge "Delete DVR namespaces on node after removing last VM"

10 years agoMerge "VPNaaS: Cisco fix validation for GW IP"
Jenkins [Thu, 14 Aug 2014 04:31:25 +0000 (04:31 +0000)]
Merge "VPNaaS: Cisco fix validation for GW IP"

10 years agoMerge "Remove ignored do_request timeout argument"
Jenkins [Thu, 14 Aug 2014 03:50:17 +0000 (03:50 +0000)]
Merge "Remove ignored do_request timeout argument"

10 years agoMerge "Fix KeyError during sync_routers"
Jenkins [Thu, 14 Aug 2014 02:09:30 +0000 (02:09 +0000)]
Merge "Fix KeyError during sync_routers"

10 years agoMerge "Fix PortNotFound exception during sync_routers"
Jenkins [Thu, 14 Aug 2014 01:13:34 +0000 (01:13 +0000)]
Merge "Fix PortNotFound exception during sync_routers"

10 years agoFix interface add for dvr with gateway
rajeev [Tue, 12 Aug 2014 00:42:18 +0000 (20:42 -0400)]
Fix interface add for dvr with gateway

when an interface is added after router gateway set, external
connectivity using snat fails. Instead of just adding the snat port for
the new subnet, method internal_network_added(..) incorrectly re-adds
all the snat ports with wrong cidr.

Change-Id: I7bfe266288670fba0c90990bf350f43ef7829bad
Closes-bug: #1355087

10 years agol2pop: get_agent_ports: Don't yield (None, {})
YAMAMOTO Takashi [Sun, 10 Aug 2014 23:39:59 +0000 (08:39 +0900)]
l2pop: get_agent_ports: Don't yield (None, {})

There's no point to yield None lvm with empty entries.

Closes-Bug: #1355759
Related: blueprint ofagent-l2pop
Change-Id: I42aeb48a062d35038116978d70c8dac4139a5583

10 years agoML2: Make get_device_details report mac address as well
YAMAMOTO Takashi [Wed, 30 Apr 2014 05:39:10 +0000 (14:39 +0900)]
ML2: Make get_device_details report mac address as well

This will be used by ofagent to route packets to local VMs.

Partially-implements: blueprint ofagent-merge-bridges
Change-Id: Icaa26448a370dd75d09e95ed439df5b486a862cf

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 13 Aug 2014 23:16:20 +0000 (23:16 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix 404 error fetching metadata when using DVR"
Jenkins [Wed, 13 Aug 2014 23:16:11 +0000 (23:16 +0000)]
Merge "Fix 404 error fetching metadata when using DVR"

10 years agoDelete DVR namespaces on node after removing last VM
Stephen Ma [Wed, 6 Aug 2014 22:33:32 +0000 (22:33 +0000)]
Delete DVR namespaces on node after removing last VM

After removing the last VM using a distributed router,
the router's namespaces are still present on the VM host
The problem is that the neutron API server sent the router
remove notification to the L3 agent using the name of the
host running the L3 agent instead of the agent's uuid. This
caused an error when sending the notification. So the L3
agent never had the chance to cleanup the namespace.
This problem is fixed here.

Afterwards, it was found that the notification was still not
sent. The reason is that the router/L3-agent binding has
already been deleted before the routine that sends the
router removed notification was called. The notifier routine
errored out when it tried to delete the same router/L3 agent
binding. This problem is fixed in this patch by removing the
binding removal step from the DVR scheduler.

Change-Id: I6323d7ff438bb6c31e4a794bd3da96bf132fdc85
Closes-Bug: 1353165

10 years agoMerge "add auth token to context"
Jenkins [Wed, 13 Aug 2014 17:33:49 +0000 (17:33 +0000)]
Merge "add auth token to context"

10 years agoRemove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint
Cedric Brandily [Mon, 7 Jul 2014 22:05:21 +0000 (00:05 +0200)]
Remove SELECT FOR UPDATE use in ML2 tunnel driver add_endpoint

SELECT FOR UPDATE expression, which is triggered with the use of the
SQLAlchemy Query object's with_lockmode('update') method, is
detrimental to performance and scalability of the database
performance code in Neutron due to the lock contention it produces.

SELECT FOR UPDATE can be entirely avoided in add_endpoint methods
with the use of single-shot SELECT and INSERT expressions and the
correction of VxlanEndpoint primary key: indeed previously it was not
possible to create multiple endpoints with the same ip, now the model
primary key constraint ensures it.

Change-Id: Id69fbc15c8f51b4b275cd742312e6ff6802d8c0f
Partial-Bug: #1330562

10 years agoFix KeyError during sync_routers
armando-migliaccio [Tue, 12 Aug 2014 16:11:50 +0000 (09:11 -0700)]
Fix KeyError during sync_routers

Method sync_routers is used by the L3 agent to query
routers it knows about. Routers and GW ports lists
are populated in two different times, which means that
they can be interleaved by a delete request which
results in gateway ports being missing in one of the
two data structures.

This patch takes care of the race condition.

Closes-bug: #1355409

Change-Id: Id3a6fe145058f690e107bfe7023980ede61cff90

10 years agoFix PortNotFound exception during sync_routers
armando-migliaccio [Tue, 12 Aug 2014 05:43:31 +0000 (22:43 -0700)]
Fix PortNotFound exception during sync_routers

This trace is observed when an L3 agent invokes
sync_routers right about the same time a port
interface is removed from a router.

Related-bug: #1355409

Change-Id: I825b25080cbf054462318fc01248692b9e0e4ecb

10 years agoVPNaaS: Cisco fix validation for GW IP
Paul Michali [Wed, 13 Aug 2014 01:26:27 +0000 (21:26 -0400)]
VPNaaS: Cisco fix validation for GW IP

The validation to check that the router has a GW IP
for the Cisco service driver was trying to directly
get the gw_port information, which is not available, as
the validator only has a dict of the vpn_service info.

Modified validator to get the router object (not a
dict representation), using the vpn_service's router_id
and then check the attributes for the router directly.

Change-Id: I48286cda23d9737ddd90251dc0d1db1c310e7784
Closes-Bug: 1356127

10 years agoMerge "NSX: unify the two distributed routing extensions"
Jenkins [Wed, 13 Aug 2014 12:40:54 +0000 (12:40 +0000)]
Merge "NSX: unify the two distributed routing extensions"

10 years agoMerge "Remove unneeded device_owner field from l2pop tuple"
Jenkins [Wed, 13 Aug 2014 06:23:25 +0000 (06:23 +0000)]
Merge "Remove unneeded device_owner field from l2pop tuple"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 13 Aug 2014 06:05:49 +0000 (06:05 +0000)]
Imported Translations from Transifex

Change-Id: I71dc194a5ced63b8549f8bffb82d22774d3da74b

10 years agoMerge "NSX: fix wording for configuration option"
Jenkins [Wed, 13 Aug 2014 01:36:53 +0000 (01:36 +0000)]
Merge "NSX: fix wording for configuration option"

10 years agoMerge "Raise exception for network delete with subnets presents"
Jenkins [Wed, 13 Aug 2014 01:36:44 +0000 (01:36 +0000)]
Merge "Raise exception for network delete with subnets presents"

10 years agoMerge "Make plugin and l3plugin available as mixin's properties"
Jenkins [Wed, 13 Aug 2014 01:36:35 +0000 (01:36 +0000)]
Merge "Make plugin and l3plugin available as mixin's properties"

10 years agoMerge "Return port context from _bind_port_if_needed"
Jenkins [Wed, 13 Aug 2014 01:13:05 +0000 (01:13 +0000)]
Merge "Return port context from _bind_port_if_needed"

10 years agoMerge "MLNX Agent: ensure removed ports get treated on resyncs"
Jenkins [Tue, 12 Aug 2014 21:20:48 +0000 (21:20 +0000)]
Merge "MLNX Agent: ensure removed ports get treated on resyncs"

10 years agoPreserve link local IP allocations for DVR fip ns across restart
Carl Baldwin [Fri, 25 Jul 2014 03:57:40 +0000 (03:57 +0000)]
Preserve link local IP allocations for DVR fip ns across restart

The L3 agent allocates link local address pairs used in connecting the
routers to the floating ip namespace.  When those allocations are
forgetten by restarting the L3 agent they all get rewired on restart.
This change preserves the allocations using a file in the local file
system.  Storing them in the database would be overkill and would
affect system performance.

Change-Id: I39614c7ea2a7dcc35bf969c90045adc5926ea9df
Closes-Bug: #1348306
Partially-Implements: blueprint neutron-ovs-dvr
Co-Authored-By: Rajeev Grover <rajeev.grover@hp.com>
10 years agoFix 404 error fetching metadata when using DVR
armando-migliaccio [Wed, 6 Aug 2014 17:13:32 +0000 (10:13 -0700)]
Fix 404 error fetching metadata when using DVR

The metadata agent was unable to find networks
attached to the DVR router because it was only
filtering ports for 'centralized' routers.

To fix the issue, this patch expands the search
filters to include DVR router interfaces during
the network lookup operation.

The extra filter cause no evident performance
loss while serving the request; a different
approach would require to pass the router type
around to narrow down the search filter, but it
sounds like an overkill.

Closes-bug: #1353271

Change-Id: Iefbefa1ff300adad48ab9fc472d5eb1913fbe488

10 years agoRaise exception for network delete with subnets presents
Marga Millet [Fri, 1 Aug 2014 17:41:45 +0000 (10:41 -0700)]
Raise exception for network delete with subnets presents

N1kv plugin should raise an exception during network delete
if there is a subnet that is tied to that network.

Changed the order of the Assert arguments since now it's encoraged to have <expected_value, actual_value> now.

Change-Id: I92f177af0e2a2fbc460e0d668989ce590b7d1cb2
Closes-Bug: 1336107

10 years agoMerge "Add delete operations for the ODL MechanismDriver"
Jenkins [Tue, 12 Aug 2014 15:06:19 +0000 (15:06 +0000)]
Merge "Add delete operations for the ODL MechanismDriver"

10 years agoMerge "Fixes an issue with FIP re-association"
Jenkins [Tue, 12 Aug 2014 05:54:12 +0000 (05:54 +0000)]
Merge "Fixes an issue with FIP re-association"

10 years agoMake plugin and l3plugin available as mixin's properties
armando-migliaccio [Mon, 11 Aug 2014 23:15:28 +0000 (16:15 -0700)]
Make plugin and l3plugin available as mixin's properties

This makes the code simpler and slightly more efficient.
This is a minor refactoring related to a race condition
observed when the agent is processing a router while its
interfaces are being removed.

Related-bug: #1355409

Change-Id: Ic0ce25aa6a977e28b1ab76081c74da4c46c2ca6b

10 years agoMerge "MLNX Agent: Process port_update notifications in the main agent loop"
Jenkins [Tue, 12 Aug 2014 04:04:30 +0000 (04:04 +0000)]
Merge "MLNX Agent: Process port_update notifications in the main agent loop"

10 years agoMerge "Implement Midonet Juno Network Api calls"
Jenkins [Tue, 12 Aug 2014 03:20:45 +0000 (03:20 +0000)]
Merge "Implement Midonet Juno Network Api calls"

10 years agoadd auth token to context
Isaku Yamahata [Mon, 4 Aug 2014 14:44:18 +0000 (23:44 +0900)]
add auth token to context

As discussed at
http://lists.openstack.org/pipermail/openstack-dev/2014-July/040644.html
SerivceVM project (and other routervm plugins) need auth token in context.
The first user will be l3 routervm plugin.

Closes-Bug: #1343854
Closes-Bug: #1352698
Change-Id: Id5a4c98059894eef33faf19d5ab063780b362f4a

10 years agoFixes an issue with FIP re-association
Michael Smith [Wed, 6 Aug 2014 22:02:35 +0000 (15:02 -0700)]
Fixes an issue with FIP re-association

When the last FIP is disassociated, the namespace and
interfaces should be removed. The internal interface
wasn't removed before without problems, but now the
namespace cannot be removed with that interface present.
The fix is to remove the internal FIP interface before
removing the namespace.

Change-Id: I021c658ecde584821f67b7a8de0205e8e938bb2d
Closes-bug: 1353287

10 years agoNSX: unify the two distributed routing extensions
armando-migliaccio [Fri, 18 Jul 2014 22:15:57 +0000 (15:15 -0700)]
NSX: unify the two distributed routing extensions

This is done by adopting the router_extra_attributes
models. However, the NSX 'distributed' extension is
slightly different in that it is visible to tenants
and prevents router conversion (allow_put=false).

PUT requests are made return the correct HTTP code;
The access control misalignments will need to be
adjusted via rules in policy.json. This will be
properly documented.

DocImpact

Supports-blueprint: neutron-ovs-dvr

Change-Id: I35a4b54318d8169eb2c73be77ca2f30bbee08b46

10 years agoNSX: fix wording for configuration option
Salvatore Orlando [Mon, 11 Aug 2014 23:29:42 +0000 (16:29 -0700)]
NSX: fix wording for configuration option

This patch clarifies that in order to use NSX distributed
routers, the replication_mode parameter should be set to
'service'. This is already its default value, so no further
change is needed beyond clarifying wording.

Change-Id: I446c428ecf8c0bf7f6947e69562d60a7fb4383ed
Closes-Bug: #1355502

10 years agoMerge "Remove duplicated check for router connect to external net"
Jenkins [Mon, 11 Aug 2014 19:13:55 +0000 (19:13 +0000)]
Merge "Remove duplicated check for router connect to external net"

10 years agoMLNX Agent: ensure removed ports get treated on resyncs
Roey Chen [Tue, 20 May 2014 14:10:17 +0000 (17:10 +0300)]
MLNX Agent: ensure removed ports get treated on resyncs

This patch ensures that removed ports will be cleaned up properly if exception
occurs in the daemon_loop.
It does the same for the mlnx-agent as was done for the lb-agent in
Ieada34ad315c0c29aa8462ebf041a448fde007b8.

Refactoring the daemon_loop and scan_ports in a way that -
If there's an exception, the ports that were flagged for cleaning will
be retreated in the following iteration,
unlike previous exception handling, where only existing ports
were treated in the following iteration.

Closes-Bug: 1287648
Change-Id: I3af505773aa3fdc0d17f2079ac1f1b3e93bb64a3
Signed-off-by: Roey Chen <roeyc@mellanox.com>
10 years agoAdd delete operations for the ODL MechanismDriver
Cédric Ollivier [Thu, 29 May 2014 10:01:28 +0000 (12:01 +0200)]
Add delete operations for the ODL MechanismDriver

This commit adds delete operations (networks, subnets and ports) for the ODL MechanismDriver.
It also modifies sync_single_resource to reduce db operations.

Change-Id: I03ca04c83ac2ef9c879fbd87e74bae495daea16d
Closes-Bug: #1324450
Partial-Bug: #1325184

10 years agoMerge "ofagent: Upgrade note about firewall_driver"
Jenkins [Mon, 11 Aug 2014 16:35:55 +0000 (16:35 +0000)]
Merge "ofagent: Upgrade note about firewall_driver"

10 years agoPredictable field and filter ordering
Sam Betts [Tue, 5 Aug 2014 23:05:05 +0000 (00:05 +0100)]
Predictable field and filter ordering

This fixes the fields and filters units tests that break with a
randomized PYTHONHASHSEED (see the bug report).

The RESOURCE_ATTRIBUTE_MAP is stored as a dict leading to an
unpredictable output order. Values in kvp strings are being stored as
sets underpinned by dicts when converted, leading to unpredictable
ordering of values when read.

Discovered with PYTHONHASHSEED = 2455351445 on these tests:
test_api_v2.APIv2TestCase.test_fields
test_api_v2.APIv2TestCase.test_fields_multiple
test_api_v2.FiltersTestCase.test_attr_info_with_convert_list_to
test_api_v2.APIv2TestCase.test_filters_with_fields
test_api_v2.APIv2TestCase.test_fields_multiple_with_empty

There are 3 parts to this fix:
1. Update the APIv2TestCase _do_field_list function to construct
field list in the same order as the controller constructs its list.
2. Ensure the APIv2TestCase _get_collection_kwargs maintains order
throughout.
3. Use new assertOrderedEqual function to sort values before assertion
in test_attr_info_with_convert_list_to

Change-Id: I547cfa80cf83b0340b459279df9283443562326b
Partial-bug: #1348818

10 years agoMerge "Enabled Cisco ML2 driver to use new upstream ncclient"
Jenkins [Mon, 11 Aug 2014 15:39:49 +0000 (15:39 +0000)]
Merge "Enabled Cisco ML2 driver to use new upstream ncclient"

10 years agoRemoves extra indents from TestSubresourcePlugin
Sam Betts [Mon, 11 Aug 2014 09:57:40 +0000 (10:57 +0100)]
Removes extra indents from TestSubresourcePlugin

Removed extra indents from in front of each function in the
TestSubresourcePlugin class in test_api_v2.py so that it
meets pep8 requirements and matches up with the rest of the code.

Change-Id: Id194514d47508f8915aca18347a3c404b91a7abd
Closes-Bug: 1355100

10 years agoofagent: Upgrade note about firewall_driver
YAMAMOTO Takashi [Mon, 11 Aug 2014 07:48:27 +0000 (16:48 +0900)]
ofagent: Upgrade note about firewall_driver

The corresponding devstack change: https://review.openstack.org/#/c/108915/

Related: blueprint ofagent-port-monitor
Change-Id: Ic917692d50461b1d5c4a07c988839e9f886b91d5

10 years agoReturn port context from _bind_port_if_needed
Eugene Nikanorov [Sun, 10 Aug 2014 18:54:37 +0000 (22:54 +0400)]
Return port context from _bind_port_if_needed

Previously port was returned causing exception being thrown
in rpc handling code.

Change-Id: Iba498d0600d625f0469392b99ac0bc8c1f1ecff7
Closes-Bug: #1354912

10 years agoMerge "ofagent: Update a comment in port_bound"
Jenkins [Sun, 10 Aug 2014 20:02:42 +0000 (20:02 +0000)]
Merge "ofagent: Update a comment in port_bound"

10 years agoMLNX Agent: Process port_update notifications in the main agent loop
Roey Chen [Sun, 18 May 2014 08:44:00 +0000 (11:44 +0300)]
MLNX Agent: Process port_update notifications in the main agent loop

This patch changes the way mlnx agent process port_update notifications.
It does the same for the mlnx agent as was done for the ovs-agent in
I219c6bdf63b0b5e945b655677f9e28fa591f03cd.
Processing a port_update notification directly in the RPC
call may cause competition with the main RPC loop.
To prevent this problem, the actual process of ports updates is done
in the main RPC loop, whereas the RPC call merely adds the updated
port MAC address to a set of updated ports.
port_update notifications received within a single main loop iteration
will be coalesced and processed only once.

Closes-Bug: 1279655
Change-Id: I63dda60cb3cf171e5e9111a1ecf95e45e1d86362
Signed-off-by: Roey Chen <roeyc@mellanox.com>
10 years agoMerge "Proper validation for inserting firewall rule"
Jenkins [Sat, 9 Aug 2014 01:07:37 +0000 (01:07 +0000)]
Merge "Proper validation for inserting firewall rule"

10 years agoFix session's InvalidRequestError because of nested rollback
armando-migliaccio [Fri, 8 Aug 2014 00:07:21 +0000 (17:07 -0700)]
Fix session's InvalidRequestError because of nested rollback

This patch addresses the issue by removing the extra nesting
(which is effectively redundant).

The longer story about this patch is the following:

Race conditions may cause DBDuplicateEntry exceptions that
require a transaction to be rollbacked back, and yet make
the whole operation succeed. A classic example is what has
been solved in commit fbc6b99. If the rollback is done in a
nested transaction, the above mentioned exception is raised.

To address the problem, we could use savepoints by means of
sqlalchemy's begin_nested(); Even though this approach is
preferable, it causes quite a bit of changes in the unit
tests (because of sqlite); it may also require that certain
DBMS, or certain DB backend configurations, support savepoints.

In the end, the simpler approach was chosen.

Closes-bug: #1354072

Change-Id: Ic9393319e55f71d681124bd3052e939724ebab6b

10 years agoMerge "ofagent: Remove network_delete method"
Jenkins [Fri, 8 Aug 2014 19:32:32 +0000 (19:32 +0000)]
Merge "ofagent: Remove network_delete method"

10 years agoRemove unneeded device_owner field from l2pop tuple
Carl Baldwin [Fri, 8 Aug 2014 17:31:59 +0000 (17:31 +0000)]
Remove unneeded device_owner field from l2pop tuple

The DVR development added this device_owner to the middle of this
tuple during early development because it was thought to be needed.
Over the course of development, it was found to be unnecessary and
much of the code that read it from this value was removed or
obsoleted.  That job went unfinished and so this commit completes it.
This essentially restores the code to what it was before and fixes the
regression that was caused.

Change-Id: Ia901f925883b53e9880dd25688e16e0ffe402bf4
Partial-bug: #1352801

10 years agoMerge "Fix to throw correct error code for bad attribute"
Jenkins [Fri, 8 Aug 2014 17:03:09 +0000 (17:03 +0000)]
Merge "Fix to throw correct error code for bad attribute"

10 years agoofagent: Remove network_delete method
YAMAMOTO Takashi [Mon, 28 Jul 2014 08:43:10 +0000 (17:43 +0900)]
ofagent: Remove network_delete method

Removing local_vlan_map entry here makes later port_unbound no-op.
While it isn't a problem right now, it will be when per-port cleanup
is introduced.
This commit simply removes network_delete method.  The local_vlan_map
will be cleaned up when the last port on the network is removed.

Related: blueprint ofagent-merge-bridges
Change-Id: Ib1f1ee16e0178d0362ff2b731957f1f52dd9a596

10 years agoMerge "ofagent: Add a missing normalized_port_name"
Jenkins [Fri, 8 Aug 2014 15:31:44 +0000 (15:31 +0000)]
Merge "ofagent: Add a missing normalized_port_name"

10 years agoMerge "l3_db: refactor L3_NAT_DB_mixin"
Jenkins [Fri, 8 Aug 2014 07:16:20 +0000 (07:16 +0000)]
Merge "l3_db: refactor L3_NAT_DB_mixin"

10 years agoMerge "test_l3_plugin: L3AgentDbInteTestCase L3AgentDbSepTestCase fails"
Jenkins [Fri, 8 Aug 2014 06:30:00 +0000 (06:30 +0000)]
Merge "test_l3_plugin: L3AgentDbInteTestCase L3AgentDbSepTestCase fails"

10 years agoMerge "Improve external gateway update handling"
Jenkins [Fri, 8 Aug 2014 05:48:33 +0000 (05:48 +0000)]
Merge "Improve external gateway update handling"

10 years agoFix to throw correct error code for bad attribute
Sudipta Biswas [Tue, 5 Aug 2014 14:10:06 +0000 (19:40 +0530)]
Fix to throw correct error code for bad attribute

Currently the neutron network API throws up error code 500 for
the extended attribute for segmentation id. This can be reproduced
if the user types in a random string in place of an integer value
for the segmentation id. The proper behavior should throw an error
code 400 with the appropriate failure message. This patch fixes the
same issue and covers it with a test case.

Change-Id: I4735e20f5b8b23c5b2a9d896415c2e84561a279c
Closes-bug: #1348056

10 years agoMerge "Return 403 instead of 404 on attr policy failures"
Jenkins [Thu, 7 Aug 2014 22:01:41 +0000 (22:01 +0000)]
Merge "Return 403 instead of 404 on attr policy failures"

10 years agoMerge "Do not assume order of pci slot list"
Jenkins [Thu, 7 Aug 2014 22:00:08 +0000 (22:00 +0000)]
Merge "Do not assume order of pci slot list"

10 years agoMerge "Fix to enable L2pop to serve DVR"
Jenkins [Thu, 7 Aug 2014 19:05:00 +0000 (19:05 +0000)]
Merge "Fix to enable L2pop to serve DVR"

10 years agoImprove external gateway update handling
rajeev [Fri, 25 Jul 2014 22:50:34 +0000 (18:50 -0400)]
Improve external gateway update handling

Once gateway is set, external_gateway_added() was getting called every time
 a router update was received. The check for change in external
gateway compared previously cached copy of gateway port (ri.ex_gw_port) with
 the one passed in through update router (ri.router['gw_port']).
The cached copy was already being modified by code so the two values would
always appear to be different.
Making the change to compare correctly and remove actions not required
for gateway update.

Change-Id: I1a703b327e6c569dfaa8263a222e4bc797e5dbfd
Closes-Bug: 1348737

10 years agoDo not assume order of pci slot list
Pritesh Kothari [Mon, 4 Aug 2014 21:14:20 +0000 (14:14 -0700)]
Do not assume order of pci slot list

This fixes the neutron.tests.unit.sriovnicagent.test_eswitch_manager
.TestEmbSwitch.test_get_pci_list unit test that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the pci slot list was sorted, so sort
the result before comparing.

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Change-Id: Ia2d879cc1251fb9cf9b653a41064e902b30005af
Partial-bug: #1348818

10 years agoDeferredBridge to allow add_tunnel_port passthru
Vivekanandan Narasimhan [Thu, 7 Aug 2014 10:58:49 +0000 (03:58 -0700)]
DeferredBridge to allow add_tunnel_port passthru

The DeferredBridge should allow add_tunnel_port
method as passthrough in addition to add_port
and delete_port. L2Pop uses add_tunnel_port to
dynamically establish tunnel endpoints on cloud
nodes.

Closes-Bug: #1353885

Change-Id: I2e6d82ee79814e500604f4951e7d89eab662047a

10 years agoMerge "Move from Python logging to Openstack logging"
Jenkins [Thu, 7 Aug 2014 09:20:35 +0000 (09:20 +0000)]
Merge "Move from Python logging to Openstack logging"

10 years agoEnabled Cisco ML2 driver to use new upstream ncclient
Juergen Brendel [Wed, 6 Aug 2014 01:23:52 +0000 (01:23 +0000)]
Enabled Cisco ML2 driver to use new upstream ncclient

The code is still able to handle the old, custom ncclient that
we used before. It uses the different function signatures
for the ncclient's connect() function to detect which version
is installed.

Change-Id: I09d81b424d86f4cd35ca048507f06471246b91d8
Closes-Bug: 1352635

10 years agoFix to enable L2pop to serve DVR
Vivekanandan Narasimhan [Tue, 5 Aug 2014 18:36:35 +0000 (11:36 -0700)]
Fix to enable L2pop to serve DVR

This change fixes the information used by the L2pop
driver to populate l2pop rules that enables DVR to
route packets across compute servers that have
tenant VMs that belong to different networks.
It also fixes the case where VMs were not able to
obtain IP Addresses when such VMs are on DVR
hosted subnets.

Change-Id: Ib630e57c186da60eb15f9ffa6b1b0bfa74f48caa
Closes-Bug: #1350485
Closes-Bug: #1352857

10 years agoRemove duplicated check for router connect to external net
Wei Wang [Wed, 6 Aug 2014 16:19:41 +0000 (00:19 +0800)]
Remove duplicated check for router connect to external net

In the function get_assoc_data, we check the router which get
from _get_router_for_floatingip whether connect to external net,
but as it has already checked in _get_router_for_floatingip.

Change-Id: I0c00c480273145538d19569dc0a679e9935ad8f9
Closes-bug: #1353414

10 years agoMerge "Simple refactor to stop passing around an unused parameter"
Jenkins [Wed, 6 Aug 2014 17:43:22 +0000 (17:43 +0000)]
Merge "Simple refactor to stop passing around an unused parameter"

10 years agoofagent: Add a missing normalized_port_name
YAMAMOTO Takashi [Mon, 28 Jul 2014 07:20:40 +0000 (16:20 +0900)]
ofagent: Add a missing normalized_port_name

Otherwise port_unbound can not find Port for non "tap" prefixed ports.

Closes-Bug: #1349898
Change-Id: I9ac7cc1e35205bddc64e7865c45e801df8cd6b33

10 years agoReturn 403 instead of 404 on attr policy failures
Kevin Benton [Fri, 1 Aug 2014 01:13:52 +0000 (18:13 -0700)]
Return 403 instead of 404 on attr policy failures

Return an HTTP Forbidden code (403) instead of an
HTTP Not Found code (404) if a tenant is trying to
update it's own object. This is a safe adjustment
since the tenant already knows this object exists
so pretending it doesn't isn't improving secuirty
as much as it is causing confusion.

Closes-Bug: #1352907
Change-Id: I021ba6f890dfbabddd53e75c63083f5da0ecfdec

10 years agoProper validation for inserting firewall rule
Koteswara Rao Kelam [Tue, 17 Jun 2014 14:03:10 +0000 (07:03 -0700)]
Proper validation for inserting firewall rule

Say rule r2 is associated with policy p2. If user tries to insert rule r1
into a policy p1 before/after r2, error should be thrown saying that rule
r2 is not associated with policy p1.

Change-Id: Ifa415acc9533b7a323f966ee42d476460e68c9d3
Closes-bug: 1330898

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 6 Aug 2014 13:10:35 +0000 (13:10 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix 500 error during router-update for dvr routers"
Jenkins [Wed, 6 Aug 2014 10:26:07 +0000 (10:26 +0000)]
Merge "Fix 500 error  during router-update for dvr routers"

10 years agoMerge "Make _build_uri_path output predictable"
Jenkins [Wed, 6 Aug 2014 10:19:27 +0000 (10:19 +0000)]
Merge "Make _build_uri_path output predictable"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Wed, 6 Aug 2014 06:04:23 +0000 (06:04 +0000)]
Imported Translations from Transifex

Change-Id: I571da230f66d270a44597a5869f1c818f792e4c0

10 years agoMerge "OVS flows apply concurrently using a deferred OVSBridge"
Jenkins [Tue, 5 Aug 2014 23:56:43 +0000 (23:56 +0000)]
Merge "OVS flows apply concurrently using a deferred OVSBridge"

10 years agoMerge "Exit Firewall Agent if config is invalid"
Jenkins [Tue, 5 Aug 2014 21:54:12 +0000 (21:54 +0000)]
Merge "Exit Firewall Agent if config is invalid"

10 years agoMerge "Move Cisco VPN RESTapi URI strings to constants"
Jenkins [Tue, 5 Aug 2014 17:59:46 +0000 (17:59 +0000)]
Merge "Move Cisco VPN RESTapi URI strings to constants"

10 years agoFix 500 error during router-update for dvr routers
armando-migliaccio [Tue, 5 Aug 2014 15:56:23 +0000 (08:56 -0700)]
Fix 500 error  during router-update for dvr routers

This was caused because the l3 service plugin was
erroneously calling a method on self, whereas the
method is implemented by the core plugin.

Closes-bug: #1352786

Change-Id: I0746eee314730370b2df4bef6d9fd41680e2e3d1

10 years agoSimple refactor to stop passing around an unused parameter
Carl Baldwin [Mon, 4 Aug 2014 19:29:33 +0000 (19:29 +0000)]
Simple refactor to stop passing around an unused parameter

There is no functional change in this patch.  However, this refactor
allows another patch [1] to make a simpler change to the code base.

This patch includes localizing the initialization of "internal_cidrs"
to a later spot in the "process_router" method.  This has the
advantage that it will be initialized under the same condition that it
will be used.

[1] https://review.openstack.org/#/c/109776

Change-Id: I3ca993d0a33b7c925526099e97999c9d9f76efc2

10 years agoMake _build_uri_path output predictable
armando-migliaccio [Mon, 4 Aug 2014 19:24:19 +0000 (12:24 -0700)]
Make _build_uri_path output predictable

This is done by ensuring that filters are
serialized in their alphabetical order.

Tweak tests affected by this.

This is done in the context as defined by
etherpad: neutron-random-hashseed

Partial-bug: #1348818

Change-Id: Ibe79716a340195ca0365f276ef6e3e728f1a94a1

10 years agoMerge "Radware: When a pip is needed, reuse the Port"
Jenkins [Tue, 5 Aug 2014 13:43:32 +0000 (13:43 +0000)]
Merge "Radware: When a pip is needed, reuse the Port"

10 years agoMerge "Remove redundant topic from rpc calls"
Jenkins [Tue, 5 Aug 2014 13:42:13 +0000 (13:42 +0000)]
Merge "Remove redundant topic from rpc calls"

10 years agoMerge "Big Switch: Only update hash header on success"
Jenkins [Tue, 5 Aug 2014 13:37:25 +0000 (13:37 +0000)]
Merge "Big Switch: Only update hash header on success"

10 years agoRadware: When a pip is needed, reuse the Port
Avishay Balderman [Tue, 29 Jul 2014 15:15:29 +0000 (18:15 +0300)]
Radware: When a pip is needed, reuse the Port

When a pip (Proxy IP) is needed by the driver, do not create
a new Neutron Port every time a pip is needed. Reuse the
existing Port.

Change-Id: I769a9d85e217b30a1ea4d09449ff39bf1ab23c5a
Closes-bug: #1349895

10 years agoMerge "ofagent: Stop monitoring ovsdb for port changes"
Jenkins [Tue, 5 Aug 2014 10:40:34 +0000 (10:40 +0000)]
Merge "ofagent: Stop monitoring ovsdb for port changes"

10 years agoRemove redundant topic from rpc calls
rossella [Wed, 23 Jul 2014 19:26:12 +0000 (19:26 +0000)]
Remove redundant topic from rpc calls

RpcProxy sets by default topic=self.topic, there's no need to specify
it explicitly in derived class, unless it is overridden

Change-Id: I19b9a67072a7f3c42e3b0e4ba412241a056a79a3
Closes-bug: 1348180

10 years agoMerge "NSX: remove duplicate call to set_auth_cookie()"
Jenkins [Tue, 5 Aug 2014 08:06:49 +0000 (08:06 +0000)]
Merge "NSX: remove duplicate call to set_auth_cookie()"

10 years agoMerge "Do not assume order of network_uuid's"
Jenkins [Tue, 5 Aug 2014 07:56:36 +0000 (07:56 +0000)]
Merge "Do not assume order of network_uuid's"