]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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"

10 years agoMerge "Make sure that gateway is in CIDR range by default"
Jenkins [Tue, 5 Aug 2014 07:54:22 +0000 (07:54 +0000)]
Merge "Make sure that gateway is in CIDR range by default"

10 years agol3_db: refactor L3_NAT_DB_mixin
Isaku Yamahata [Tue, 22 Jul 2014 08:24:41 +0000 (17:24 +0900)]
l3_db: refactor L3_NAT_DB_mixin

This patch refactors L3_NAT_DB_mixin to split out db operation and
rpc notification.

l3 plugin for routervm will implement the method for REST resource
operation as something like
    def op_resource():
        additional operation
        with session
            additional db operation
            db operation of super class => super().db_op_resoruce
            additional db operation
        additional operation
        l3 rpc notification

However, The current L3_NAT_DB_mixin intermixes db operations with l3 rpc.
So it is difficult to reuse the db operation code without l3 rpc.
This patch splits db operation from l3 rpc notification so that
db operation logic can be reused easily. Thus the l3 plugin for routervm
will be simplified with this patch.

Related to blueprint cisco-routing-service-vm
Related to blueprint l3-plugin-brocade-vyatta-vrouter

Change-Id: I88f6574f921596426e1a31c9ff2251aa6f4674b8

10 years agoOVS flows apply concurrently using a deferred OVSBridge
cedric.brandily [Fri, 16 May 2014 20:18:45 +0000 (16:18 -0400)]
OVS flows apply concurrently using a deferred OVSBridge

This change is an improvement of the commit
501213686886baccd3280e10b8856a25d3517519 and provides a cleaner
implementation. Previously flows were applied on
OVSBridge.defer_apply_off which could be called by an other
greenthread: it was impossible to ensure that all flows are applied
in a unique OVSBridge.defer_apply_off call. This change ensures that
all flows defined using a DeferredOVSBridge are applied on
DeferredOVSBridge.apply_flows or DeferredOVSBridge.__exit__ if not
exception is raised.

Author:         Cedric Brandily <zzelle@gmail.com>
Co-Authored-By: Edouard Thuleau <edouard.thuleau@cloudwatt.com>
Related-bug: #1263866
Change-Id: I1f260629ef95b98ee80e2ff946c3606da8fe7608

10 years agoMerge "ofagent: Desupport ancillary bridges"
Jenkins [Mon, 4 Aug 2014 21:22:46 +0000 (21:22 +0000)]
Merge "ofagent: Desupport ancillary bridges"

10 years agoMerge "Add a tox test environment for random hashseed testing"
Jenkins [Mon, 4 Aug 2014 21:17:49 +0000 (21:17 +0000)]
Merge "Add a tox test environment for random hashseed testing"

10 years agoDo not assume order of network_uuid's
Pritesh Kothari [Mon, 4 Aug 2014 20:37:56 +0000 (13:37 -0700)]
Do not assume order of network_uuid's

This fixes the neutron.tests.unit.test_linux_dhcp.TestDnsmasq
.test_existing_dhcp_networks unit test that breaks with a
randomized PYTHONHASHSEED (see the bug report).

The test assumed that the network_uuid's 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.

Partial-bug: #1348818
Change-Id: Ia6f742e1fae0687164b841beebb4efcf31ff2625

10 years agoMerge "Updated from global requirements"
Jenkins [Mon, 4 Aug 2014 21:13:41 +0000 (21:13 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Do not assume order of quotas dictionary elements"
Jenkins [Mon, 4 Aug 2014 21:06:09 +0000 (21:06 +0000)]
Merge "Do not assume order of quotas dictionary elements"

10 years agoBig Switch: Only update hash header on success
Kevin Benton [Fri, 25 Jul 2014 19:25:39 +0000 (12:25 -0700)]
Big Switch: Only update hash header on success

This patch moves the hash update call into the success block
of the server manager so the database isn't updated with
a hash header from an error response. Additionally, it prevents
the hash from being updated to an empty value if the hash header
is not present in the response.

Closes-Bug: #1348766
Change-Id: I512d01f9bb91b208dd58883d2464951ecc6748e1

10 years agoofagent: Stop monitoring ovsdb for port changes
YAMAMOTO Takashi [Thu, 31 Jul 2014 06:31:16 +0000 (15:31 +0900)]
ofagent: Stop monitoring ovsdb for port changes

Perform dumb polling instead.
Now ofagent port monitoring is mostly ovsdb-free.
(except _find_lost_vlan_port stuff, which is planned to be retired
by blueprint ofagent-merge-bridges)

Partially-Implements: blueprint ofagent-port-monitor
Change-Id: Ib4701f7c8ea0ee03229d207c0fbbf6f42a55aecb

10 years agoofagent: Desupport ancillary bridges
YAMAMOTO Takashi [Mon, 28 Jul 2014 01:50:10 +0000 (10:50 +0900)]
ofagent: Desupport ancillary bridges

Remove code to report port status for ancillary bridges because
it relies on ovsdb.  While we could adapt the code to use OFP in
a similar way we did for the integration bridge, it doesn't worth
the effort because the almost same functionality can be achieved
using provider network.  Update README to suggest the use of
provider network.

Partially-Implements: blueprint ofagent-port-monitor
Change-Id: Ia1329e36755b3e9a479a115dbd08aa3f4d6b55df

10 years agoAdd a tox test environment for random hashseed testing
Henry Gessau [Mon, 4 Aug 2014 12:47:08 +0000 (08:47 -0400)]
Add a tox test environment for random hashseed testing

The newer versions of tox by default enable a random PYTHONHASHSEED. However,
this breaks many Neutron unit tests, so PYTHONHASHSEED=0 is currently hard-
coded for Neutron's unit test environments.

We want to clean up the unit test cases that break with a random hashseed
(there are many). To be able to find the broken tests and then verify them,
we need to have an easy way of enabling random hashseed testing.

Partial-bug: #1348818

Change-Id: I51f05cdfa9f8728baabaf315b71e5defb26426b1

10 years agoOFAgent: Implement arp responder
fumihiko kakuma [Tue, 22 Apr 2014 00:55:51 +0000 (09:55 +0900)]
OFAgent: Implement arp responder

This is step 2 implementation of OFAgent l2-population.
This handles an arp packet responding locally to an arp request in such a way
that sends an arp request as a packet-in message to controller and
builds and sends an arp reply packet.
Currently this only supports tunnel.

Implements: blueprint ofagent-l2pop

Change-Id: Ida714f30c0f02c54dda3402c0dbf6047bc182b22

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 4 Aug 2014 03:24:23 +0000 (03:24 +0000)]
Updated from global requirements

Change-Id: I9865d4d0cdd475638ca49b0588ba880a52ee8897

10 years agoMerge "NSX: Correct default timeout params"
Jenkins [Mon, 4 Aug 2014 02:17:06 +0000 (02:17 +0000)]
Merge "NSX: Correct default timeout params"

10 years agoDo not assume order of quotas dictionary elements
Henry Gessau [Sun, 3 Aug 2014 17:40:01 +0000 (13:40 -0400)]
Do not assume order of quotas dictionary elements

This fixes the quotas db unit test that breaks with a randomized PYTHONHASHSEED
(see the bug report).

The test assumed that the quotas dictionary from plugin.get_all_quotas() had
elements in a particular order. Found with PYTHONHASHSEED=1235130571.

The fix refactors the test case to handle an unsorted quotas dictionary. Also
choose some different quota limits to make it clearer what is being verified.

Partial-bug: #1348818

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: I3892b51082629e6ebce175f64f501717741baa37

10 years agoMove Cisco VPN RESTapi URI strings to constants
Sridhar Ramaswamy [Sat, 2 Aug 2014 23:06:58 +0000 (16:06 -0700)]
Move Cisco VPN RESTapi URI strings to constants

Cisco VPN RESTapi URI strings are currently spread out
throughout the cisco vpn device driver code. This create
challenge towards consistently using REST resource identifiers
as this code gets enhanced in the future. This change moves
those URIs as string contents towards the top of the device
driver file.

This addresses the review comment received during the
cisco-vpnaas BP implementation.

Change-Id: I17e02cca95b1d14d9218f1a2745780bd14c9f89d
Closes-Bug: #1313801

10 years agoMerge "Fix spelling in get_plugin_interface docstring"
Jenkins [Sat, 2 Aug 2014 15:05:19 +0000 (15:05 +0000)]
Merge "Fix spelling in get_plugin_interface docstring"

10 years agoMerge "Fix spelling mistakes"
Jenkins [Sat, 2 Aug 2014 14:09:11 +0000 (14:09 +0000)]
Merge "Fix spelling mistakes"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Sat, 2 Aug 2014 13:48:59 +0000 (13:48 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Fix DB Duplicate error when scheduling distributed routers"
Jenkins [Sat, 2 Aug 2014 11:12:08 +0000 (11:12 +0000)]
Merge "Fix DB Duplicate error when scheduling distributed routers"

10 years agoMove from Python logging to Openstack logging
Akash Gangil [Sat, 2 Aug 2014 09:53:14 +0000 (02:53 -0700)]
Move from Python logging to Openstack logging

Replacing usage of python standard logging module
with Openstack common logging module. Apart from
the said replacements, this patch also removes
basicConfig() setup from a couple of modules since
its not needed. Also removes unused LOG & imports.

Change-Id: I6a391951e00fb63905b2027270af9f401841d5b9
Closes-Bug: #1350937

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sat, 2 Aug 2014 06:05:43 +0000 (06:05 +0000)]
Imported Translations from Transifex

Change-Id: Ib0cf4e06e80a5db9e659de9eae9bc68ce4905cc5

10 years agoMerge "Removed configobj from test requirements"
Jenkins [Sat, 2 Aug 2014 03:34:31 +0000 (03:34 +0000)]
Merge "Removed configobj from test requirements"

10 years agoMerge "Remove reference to cisco_cfg_agent.ini from setup.cfg"
Jenkins [Sat, 2 Aug 2014 02:09:01 +0000 (02:09 +0000)]
Merge "Remove reference to cisco_cfg_agent.ini from setup.cfg"

10 years agoMerge "Make ML2 ensure_dvr_port_binding more robust"
Jenkins [Sat, 2 Aug 2014 00:36:42 +0000 (00:36 +0000)]
Merge "Make ML2 ensure_dvr_port_binding more robust"

10 years agoMerge "centralized router is incorrectly scheduled"
Jenkins [Sat, 2 Aug 2014 00:20:19 +0000 (00:20 +0000)]
Merge "centralized router is incorrectly scheduled"

10 years agoNSX: remove duplicate call to set_auth_cookie()
Aaron Rosen [Tue, 22 Jul 2014 17:50:29 +0000 (10:50 -0700)]
NSX: remove duplicate call to set_auth_cookie()

Change-Id: Ie883f670aa18f1b8a2561e02b388f903f9cbd03b
Closes-bug: 1347078

10 years agoNSX: Correct default timeout params
Aaron Rosen [Fri, 11 Jul 2014 20:56:15 +0000 (13:56 -0700)]
NSX: Correct default timeout params

Previously, req_timeout and http_timeout were set to the same value
which is not correct. req_timeout is the total time limit for a cluster
request and  http_timeout is the time allowed before aborting a request on
an unresponsive controller. Since the default configuration allows 2
retries req_timeout should be double that of http_timeout because of this
this patch goes ahead and removes req_timeout as this should just be
http_timeout * retries.

Because prevouly req_timeout and http_timeout were the same this exposed
a corner case that when the nsx controller returned a 307 we would issue
the request against the redirected controller but in the case where the
session cookie had expire when the request was issued we would get a 401
response back and never retry the request. Now that the default values are
corrected this issue should no longer occur as the next time time we issue
the request we'll fetch a new auth cookie for the redirected controller.

This patch also bumps the timeout values to be higher. We've seen
more and more timeouts occur in our CI system largely because our
cloud is overloaded so increasing the default timeouts will *hopefully*
help reduce test failures.

DocImpact

Closes-bug: 1340969
Closes-bug: 1338846

Change-Id: Id7244cd4d9316931f4f7df1c3b41b3a894f2909a