]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "NSX: Avoid floating IP status reset"
Jenkins [Fri, 22 Aug 2014 07:13:56 +0000 (07:13 +0000)]
Merge "NSX: Avoid floating IP status reset"

10 years agoMerge "Fixes Hyper-V issue due to ML2 RPC versioning"
Jenkins [Fri, 22 Aug 2014 02:46:40 +0000 (02:46 +0000)]
Merge "Fixes Hyper-V issue due to ML2 RPC versioning"

10 years agoMerge "A10 Networks LBaaS v1 Driver"
Jenkins [Thu, 21 Aug 2014 21:32:12 +0000 (21:32 +0000)]
Merge "A10 Networks LBaaS v1 Driver"

10 years agoMerge "Ensure ip6tables are used only if ipv6 is enabled in kernel"
Jenkins [Thu, 21 Aug 2014 21:28:00 +0000 (21:28 +0000)]
Merge "Ensure ip6tables are used only if ipv6 is enabled in kernel"

10 years agoRename range to avoid shadowing the builtin
Carl Baldwin [Tue, 19 Aug 2014 03:58:22 +0000 (03:58 +0000)]
Rename range to avoid shadowing the builtin

This refactor supports a patch I was reviewing [1].  I thought it
better to apply this consistently in this file as a separate refactor
so that that patch could be done cleaner.

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

Change-Id: Ida58758504e868dc731e97d7bce53d4849998723

10 years agoMerge "corrects the typos in l3_router_plugin's comments"
Jenkins [Thu, 21 Aug 2014 06:58:44 +0000 (06:58 +0000)]
Merge "corrects the typos in l3_router_plugin's comments"

10 years agoMerge "Expand arp_responder help text"
Jenkins [Thu, 21 Aug 2014 04:41:24 +0000 (04:41 +0000)]
Merge "Expand arp_responder help text"

10 years agoFixes Hyper-V issue due to ML2 RPC versioning
Alessandro Pilotti [Wed, 20 Aug 2014 22:48:34 +0000 (01:48 +0300)]
Fixes Hyper-V issue due to ML2 RPC versioning

The ML2 RPC version 1.1 breaks the hyper-v agent and
consequentially the RPC version in the Hyper-V agent needs
to be set to 1.1 to match the ML2 RPC base API version.

Change-Id: Idc4ae8d7dcff4331aca148a8f2a7a2b01679b3a8
Closes-Bug: #1353697

10 years agoA10 Networks LBaaS v1 Driver
Doug Wiegley [Tue, 12 Aug 2014 23:34:30 +0000 (17:34 -0600)]
A10 Networks LBaaS v1 Driver

Change-Id: I32438c33ea28031c0d600e2a9266580e52dfbf54
Implements: blueprint a10networks-lbaas-driver

10 years agoMerge "Fix bigswitch setup.cfg lines"
Jenkins [Wed, 20 Aug 2014 17:39:02 +0000 (17:39 +0000)]
Merge "Fix bigswitch setup.cfg lines"

10 years agoRemove unused network parameter from _allocate_ips_for_port
Carl Baldwin [Tue, 19 Aug 2014 05:07:47 +0000 (05:07 +0000)]
Remove unused network parameter from _allocate_ips_for_port

I found this in the context of a patch that I was reviewing [1].  I
found that patch left a few loose ends and so I thought it would be
better to remove the parameter as a separate refactor so that it can
be carefully reviewed.  The other patch [1] should be rebased to this
one.

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

Change-Id: I75115fa46ea3340ef0f13feb28ad2cdb0387fed7

10 years agocorrects the typos in l3_router_plugin's comments
Prasoon Telang [Wed, 20 Aug 2014 09:01:29 +0000 (14:31 +0530)]
corrects the typos in l3_router_plugin's comments

there were some typos in the docstring of the function
create_floatingip(). This patch corrects them

Change-Id: I869567d5470a27ff037feeabfc1057b8e2da38b7
Closes-Bug: #1359113

10 years agoFix bigswitch setup.cfg lines
Kris Lindgren [Wed, 20 Aug 2014 01:33:22 +0000 (19:33 -0600)]
Fix bigswitch setup.cfg lines

Bigswitch was not correctly creating the bigswitch/ssl/ca_certs and
host_certs directories when running the setup.py install step.  This
makes it difficult to correctly package the plugin because it has
missing files/directories.

Fixes bug 1358982

Change-Id: I78c6e96887340ea90494ed9e109b3b7fda6653c9

10 years agoMerge "SecurityGroupRuleExists should point out rule id inseand of group id"
Jenkins [Tue, 19 Aug 2014 21:50:02 +0000 (21:50 +0000)]
Merge "SecurityGroupRuleExists should point out rule id inseand of group id"

10 years agoEnsure ip6tables are used only if ipv6 is enabled in kernel
Jakub Libosvar [Thu, 7 Aug 2014 08:35:07 +0000 (10:35 +0200)]
Ensure ip6tables are used only if ipv6 is enabled in kernel

On systems where ipv6 module is not loaded in kernel we need to avoid
usage of ip6tables. This patch reads
/proc/sys/net/ipv6/conf/default/disable_ipv6 file and if ipv6 is
disabled then ip6tables are not used in IptablesManager

Closes-Bug: #1352893

Change-Id: I07e5851aa25eb98b7a97dff86b9850475df85f64

10 years agoMerge "Remove INACTIVE status from FWaaS"
Jenkins [Tue, 19 Aug 2014 10:11:58 +0000 (10:11 +0000)]
Merge "Remove INACTIVE status from FWaaS"

10 years agoMerge "Skip FWaaS config mismatch check if RPC method is unsupported"
Jenkins [Tue, 19 Aug 2014 08:12:42 +0000 (08:12 +0000)]
Merge "Skip FWaaS config mismatch check if RPC method is unsupported"

10 years agoMerge "Replace nullable from primary keys in tz_network_bindings with default"
Jenkins [Mon, 18 Aug 2014 15:05:44 +0000 (15:05 +0000)]
Merge "Replace nullable from primary keys in tz_network_bindings with default"

10 years agoMerge "Implement namespace cleanup for new DVR namespaces"
Jenkins [Mon, 18 Aug 2014 01:28:17 +0000 (01:28 +0000)]
Merge "Implement namespace cleanup for new DVR namespaces"

10 years agoMerge "Cisco N1kv plugin to send subtype on network profile creation"
Jenkins [Mon, 18 Aug 2014 01:28:04 +0000 (01:28 +0000)]
Merge "Cisco N1kv plugin to send subtype on network profile creation"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 18 Aug 2014 00:11:36 +0000 (00:11 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Do not assume order of new_peers list elements"
Jenkins [Sun, 17 Aug 2014 19:50:43 +0000 (19:50 +0000)]
Merge "Do not assume order of new_peers list elements"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 17 Aug 2014 06:06:09 +0000 (06:06 +0000)]
Imported Translations from Transifex

Change-Id: Idb90ce3c60dc6e668ee316cf36bde79268f95e63

10 years agoMerge "Option to remove routers from dead l3 agents"
Jenkins [Sun, 17 Aug 2014 05:17:11 +0000 (05:17 +0000)]
Merge "Option to remove routers from dead l3 agents"

10 years agoRemove auto-generation of db schema from models at startup
Salvatore Orlando [Mon, 5 Aug 2013 15:07:02 +0000 (08:07 -0700)]
Remove auto-generation of db schema from models at startup

This patch removes the Neutron capability of creating database tables
from sqlalchemy models for all those model classes for which
a table is not found in the database schema.
Migrations should be the official and only solution for creating and
managing the Neutron db schema.
This patch also adapts unit tests in order to ensure test schemas
are still correctly created.

DocImpact
Update deployment documentation accordingly.

Closes-Bug: #1207402

Change-Id: Ie4ee5507888ecad5f6dc32ce7a029c43014687a2
Co-Authored-By: Henry Gessau <gessau@cisco.com>
10 years agoCisco N1kv plugin to send subtype on network profile creation
Marga Millet [Fri, 15 Aug 2014 05:05:23 +0000 (22:05 -0700)]
Cisco N1kv plugin to send subtype on network profile creation

Make sure that the cisco n1kv neutron plugin sends the sub_type too
when a overlay network profile is created

Change-Id: I37e63131039077fa80a28fe725c09f0307acc2ea
Closes-Bug: 1357125

10 years agoMerge "correct getLoggers to use __name__ in code"
Jenkins [Fri, 15 Aug 2014 16:47:46 +0000 (16:47 +0000)]
Merge "correct getLoggers to use __name__ in code"

10 years agoImplement namespace cleanup for new DVR namespaces
Carl Baldwin [Thu, 10 Jul 2014 19:41:40 +0000 (19:41 +0000)]
Implement namespace cleanup for new DVR namespaces

DVR introduces a new namespace type called snat-<router_id>.  These
namespaces are not properly cleaned up when found stale after an agent
restart.  This patch fixes that.

Change-Id: I0d8b83e0b7838957742e72aa2f42b15e0ca67f04
Partially-implements: blueprint neutron-ovs-dvr

10 years agoMerge "Opencontrail plug-in implementation for core resources"
Jenkins [Fri, 15 Aug 2014 16:38:44 +0000 (16:38 +0000)]
Merge "Opencontrail plug-in implementation for core resources"

10 years agoMerge "Updated from global requirements"
Jenkins [Fri, 15 Aug 2014 16:25:38 +0000 (16:25 +0000)]
Merge "Updated from global requirements"

10 years agoNSX: Avoid floating IP status reset
Salvatore Orlando [Fri, 15 Aug 2014 11:20:26 +0000 (04:20 -0700)]
NSX: Avoid floating IP status reset

The method for setting the floating IP status in the NSX plugin
has a flaw that causes in some cases the status to be reset.
This patch removes this bug and also protects against regression
adding status check in the unit test covering floating ip
creation.

This patch also moves the above mentioned unit test in a more
suitable place in the test same module.

Change-Id: Ib08c421ade20ce23b5c08145203a2df6a8f3efa5
Closes-Bug: #1357514

10 years agoMerge "Fix duplicate function: test_getattr_unallowed_attr"
Jenkins [Fri, 15 Aug 2014 07:09:30 +0000 (07:09 +0000)]
Merge "Fix duplicate function: test_getattr_unallowed_attr"

10 years agocorrect getLoggers to use __name__ in code
Aaron Rosen [Fri, 15 Aug 2014 06:52:52 +0000 (23:52 -0700)]
correct getLoggers to use __name__ in code

Previousy the NSX plugin would log as NeutronPlugin. Now it contains
the whole class path like the rest of the log statements.

Change-Id: Ib27a2016a37c808c404489d11b56cc513c003ca1
Closes-bug: 1357214

10 years agoSkip FWaaS config mismatch check if RPC method is unsupported
Akihiro Motoki [Thu, 14 Aug 2014 06:53:47 +0000 (15:53 +0900)]
Skip FWaaS config mismatch check if RPC method is unsupported

In this commit FWaaS config check skip is skipped
if neutron server does not support this API.

Commit d6f014d introduced FWaaS config mismatch check between
server and agent. It added a new RPC method get_service_plugin_list
and bumped l3-agent RPC version to 1.3, but this version RPC is
only supported by L3 router service plugin and
it breaks existing plugins using L3 router mixin.

Bumping l3-agent RPC version requires detailed investigation on all
affected plugins and it can be done by plugin maintainer later.

Change-Id: I388a24b0c6a507203674ef108bb14cea0534f98c
Closes-Bug: #1353309

10 years agoMerge "Fix PortNotFound error during update_device_up for DVR"
Jenkins [Fri, 15 Aug 2014 05:36:03 +0000 (05:36 +0000)]
Merge "Fix PortNotFound error during update_device_up for DVR"

10 years agoMerge "Define some abstract methods in VpnDriver class"
Jenkins [Fri, 15 Aug 2014 05:07:20 +0000 (05:07 +0000)]
Merge "Define some abstract methods in VpnDriver class"

10 years agoMerge "Fixing neutron-db-manage with some options other than upgrade/downgrade"
Jenkins [Fri, 15 Aug 2014 00:19:00 +0000 (00:19 +0000)]
Merge "Fixing neutron-db-manage with some options other than upgrade/downgrade"

10 years agoMerge "NSX: lift restriction on DVR update"
Jenkins [Fri, 15 Aug 2014 00:11:40 +0000 (00:11 +0000)]
Merge "NSX: lift restriction on DVR update"

10 years agoNSX: lift restriction on DVR update
Salvatore Orlando [Thu, 14 Aug 2014 19:46:09 +0000 (12:46 -0700)]
NSX: lift restriction on DVR update

The restriction in place in the code is not justified considered
the capabilities of the DVR extension and the NSX backend.

Transformations of centralized routers into distributed should be
allowed.

Change-Id: I099b90d39247bc9a7adfb87344d77ccd8acfad9e
Closes-Bug: #1357048

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 14 Aug 2014 20:25:02 +0000 (20:25 +0000)]
Updated from global requirements

Change-Id: I3b7f5b18ef5b2bd257eb11669ec35397653cbc8b

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 agoRemove INACTIVE status from FWaaS
Xuhan Peng [Thu, 14 Aug 2014 03:21:53 +0000 (11:21 +0800)]
Remove INACTIVE status from FWaaS

DOWN status is introduced to replace INACTIVE status. There is one
place in FWaaS code which still checks INACTIVE status.

This commit removes INACTIVE status from FWaaS.

Change-Id: I896c81a6229978a46f8a88a31936920a1036f142
Partial-Bug: #1286048

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 agoFix PortNotFound error during update_device_up for DVR
armando-migliaccio [Wed, 13 Aug 2014 18:39:07 +0000 (11:39 -0700)]
Fix PortNotFound error during update_device_up for DVR

An agent's request to update the ARP entry for a VM port
may come after a deletion request has been processed,
resulting in a PortNotFound exception being raised.

This patch takes care of this condition. A test has
been added, which required a minor refactoring of the
test case class, in order to accommodate the use of
side effects for the objects being mocked.

Closes-bug: #1356120

Change-Id: I40d635bcf47c683663cb4dedf20323902dff2c7f

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 agoOption to remove routers from dead l3 agents
Kevin Benton [Wed, 30 Jul 2014 22:49:59 +0000 (15:49 -0700)]
Option to remove routers from dead l3 agents

Add a configuration-enabled periodic check to examine the
status of all L3 agents with routers scheduled to them and
admin_state_up set to True. If the agent is dead, the router
will be rescheduled to an alive agent.

Neutron considers and agent 'dead' when the server doesn't
receive any heartbeat messages from the agent over the
RPC channel within a given number of seconds (agent_down_time).
There are various false positive scenarios where the agent may
fail to report even though the node is still forwarding traffic.

This is configuration driven because a dead L3 agent with active
namespaces forwarding traffic and responding to ARP requests may
cause issues. If the network backend does not block the dead
agent's node from using the router's IP addresses, there will be
a conflict between the old and new namespace.

This conflict should not break east-west traffic because both
namespaces will be attached to the appropriate networks and
either can forward the traffic without state. However, traffic
being overloaded onto the router's external network interface
IP in north-south traffic will be impacted because the matching
translation for port address translation will only be present
on one router. Additionally, floating IPs associated to ports
after the rescheduling will not work traversing the old
namespace because the mapping will not be present.

DocImpact

Partial-Bug: #1174591
Change-Id: Id7d487f54ca54fdd46b7616c0969319afc0bb589

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 agoFix duplicate function: test_getattr_unallowed_attr
Angus Lees [Wed, 13 Aug 2014 05:50:39 +0000 (15:50 +1000)]
Fix duplicate function: test_getattr_unallowed_attr

This meant only one of the two test cases was ever being run.  Renamed
one.

Change-Id: I37cfe2bb531a3f5015e729bed93d6a59d7d9c15d

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 agoSecurityGroupRuleExists should point out rule id inseand of group id
Wei Wang [Tue, 12 Aug 2014 14:59:18 +0000 (22:59 +0800)]
SecurityGroupRuleExists should point out rule id inseand of group id

When we get a SecurityGroupRuleExists, we want to get the rule id
instaed of group id, and this is what the fucntion
_check_for_duplicate_rules() does.

Change-Id: I9b526d9829582cb26bfda98bcaf1704fe8681cbe
Closes-bug:  #1354343

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 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 agoDo not assume order of new_peers list elements
John Davidge [Tue, 5 Aug 2014 14:13:03 +0000 (15:13 +0100)]
Do not assume order of new_peers list elements

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

The test assumed that the new_peers list from self.new_update_request had
elements in a particular order. Found with PYTHONHASHSEED=2455351445.

The fix refactors the test case to handle an unsorted new_peers list by
sorting it before running the test.

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

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 agoFixing neutron-db-manage with some options other than upgrade/downgrade
ronak [Wed, 6 Aug 2014 00:40:24 +0000 (17:40 -0700)]
Fixing neutron-db-manage with some options other than upgrade/downgrade

"mysql-engine" argument was added to upgrade and downgrade option of
neutron-db-manage.
Reference commit: http://tinyurl.com/mzepbmq

migration environment's run_migration_offline/online() gets called
even for other neutron-db-manage options as well such as current,
history, stamp, branches etc. For those options since the argument
can not be set, it throws oslo.config.cfg.NoSuchOptError.
This fix tries to catch it and set the value accordingly.

Closes-bug: #1353180

Change-Id: I044daf04216ec61245ddb51689f8e50be5666e34

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