]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoDelete a broken subnet delete unit test
Kevin Benton [Thu, 18 Sep 2014 20:46:51 +0000 (13:46 -0700)]
Delete a broken subnet delete unit test

A test to delete a subnet in use was incorrectly
calling 'subnet' instead of 'subnets' in the API request
and asserting a 404 instead of a 409. Even the correct
version of this test is already covered by the
'test_port_prevents_subnet_deletion' method so this
commit just removes the broken test.

Change-Id: I3eac35abbb1d6f8429b4331948aecfc952284219

10 years agoMerge "Update URL of Ryu official site in ofagent README files"
Jenkins [Thu, 18 Sep 2014 08:14:57 +0000 (08:14 +0000)]
Merge "Update URL of Ryu official site in ofagent README files"

10 years agoMerge "NSX plugin: set VNIC_TYPE port binding attribute"
Jenkins [Thu, 18 Sep 2014 07:26:52 +0000 (07:26 +0000)]
Merge "NSX plugin: set VNIC_TYPE port binding attribute"

10 years agoMerge "Add endpoint_type parameter to MetaInterfaceDriver"
Jenkins [Thu, 18 Sep 2014 07:25:26 +0000 (07:25 +0000)]
Merge "Add endpoint_type parameter to MetaInterfaceDriver"

10 years agoUpdate URL of Ryu official site in ofagent README files
YAMAMOTO Takashi [Fri, 5 Sep 2014 06:03:09 +0000 (15:03 +0900)]
Update URL of Ryu official site in ofagent README files

Change-Id: I1e9bdc3dffb8be705c0fcaf88bd914d27e10936d

10 years agoSet dsvm-functional job to use system packages
Maru Newby [Wed, 17 Sep 2014 19:48:41 +0000 (19:48 +0000)]
Set dsvm-functional job to use system packages

The functional job was breaking due to the interaction between
devstack installing neutron system-wide in editable mode (pip install
-e) and tox packaging in the same path.  Installing in editable
mode meant that neutron.egg-info/PKG_INFO could be updated (in this
case by tox) to change the installed version of the neutron package
without updating scripts that depended on the installed version
(e.g. rootwrap).  This fix is to set the dsvm-functional env to
use system packages and avoid having tox update PKG_INFO.

Change-Id: Icc38cacd69bc5843ccfcc60237a7102df6d8597f
Closes-bug: #1370347

10 years agoNSX plugin: set VNIC_TYPE port binding attribute
Salvatore [Tue, 16 Sep 2014 15:28:55 +0000 (17:28 +0200)]
NSX plugin: set VNIC_TYPE port binding attribute

A recent change has made this attribute required for nova
integration.
This patch adds this attribute to responses generated by the NSX
plugin, and also ensures relevant unit tests are executed for the
vmware NSX plugin.

Change-Id: Ieebab01b406909f66a40cc683763292a9ef6f218
Closes-Bug: #1370112

10 years agoMerge "Remove @author(s) from copyright statements"
Jenkins [Tue, 16 Sep 2014 13:30:38 +0000 (13:30 +0000)]
Merge "Remove @author(s) from copyright statements"

10 years agoMerge "Fix DVR to service DHCP Ports"
Jenkins [Tue, 16 Sep 2014 13:26:05 +0000 (13:26 +0000)]
Merge "Fix DVR to service DHCP Ports"

10 years agoMerge "Fail on None before iteration attempt"
Jenkins [Tue, 16 Sep 2014 12:17:25 +0000 (12:17 +0000)]
Merge "Fail on None before iteration attempt"

10 years agoMerge "Allow DHCPv6 reply from server to client"
Jenkins [Tue, 16 Sep 2014 07:52:52 +0000 (07:52 +0000)]
Merge "Allow DHCPv6 reply from server to client"

10 years agoMerge "Avoid an extra database query in schedule_snat_router"
Jenkins [Tue, 16 Sep 2014 06:42:21 +0000 (06:42 +0000)]
Merge "Avoid an extra database query in schedule_snat_router"

10 years agoMerge "Tunnel ID range validation for VXLAN/GRE networks"
Jenkins [Tue, 16 Sep 2014 00:39:53 +0000 (00:39 +0000)]
Merge "Tunnel ID range validation for VXLAN/GRE networks"

10 years agoFix DVR to service DHCP Ports
Vivekanandan Narasimhan [Wed, 27 Aug 2014 09:07:37 +0000 (02:07 -0700)]
Fix DVR to service DHCP Ports

This fix ensures that DHCP Ports that are
available on DVR routed subnets, are serviced
by DVR neutron infrastructure.

Here servicing by DVR means, creation of
DVR namespaces on such nodes holding DHCP
Ports and also applying DVR specific OVS
Rules to the br-int and br-tun bridges on
such nodes, to enable traffic to be routed
via DVR to such DHCP Ports.

Closes-Bug: #1358718

Change-Id: Ib6d5fbf883d6698f34f3a3b722e426e3285a5736

10 years agoMerge "use TRUE in SQL for boolean var"
Jenkins [Mon, 15 Sep 2014 17:32:36 +0000 (17:32 +0000)]
Merge "use TRUE in SQL for boolean var"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 15 Sep 2014 17:23:40 +0000 (17:23 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Remove faulty .assert_has_calls([])"
Jenkins [Mon, 15 Sep 2014 16:53:20 +0000 (16:53 +0000)]
Merge "Remove faulty .assert_has_calls([])"

10 years agoTunnel ID range validation for VXLAN/GRE networks
yangxurong [Thu, 24 Apr 2014 01:26:22 +0000 (09:26 +0800)]
Tunnel ID range validation for VXLAN/GRE networks

Currently, there is no check which validates the values of
tunnel range for VXLAN/GRE networks. The VXLAN VNI is 24 bit
which have range between 1 to 2^24 - 1. Similarly, GRE key field
is 32 bit which have range between 1 to 2^32 - 1.

Closes-Bug: #1306488

Co-Authored-By: romilg romilg@hp.com
Change-Id: Idb3d0f41166df589a1e90394d9319901b5f9b439

10 years agoMerge "shared policy shouldn't have unshared rules"
Jenkins [Mon, 15 Sep 2014 15:09:33 +0000 (15:09 +0000)]
Merge "shared policy shouldn't have unshared rules"

10 years agoMerge "Add unit-test assert to check dict is superset of dict"
Jenkins [Mon, 15 Sep 2014 14:33:01 +0000 (14:33 +0000)]
Merge "Add unit-test assert to check dict is superset of dict"

10 years agoMerge "Don't create unused ipset chain"
Jenkins [Mon, 15 Sep 2014 14:28:07 +0000 (14:28 +0000)]
Merge "Don't create unused ipset chain"

10 years agoRemove @author(s) from copyright statements
Gary Kotton [Wed, 6 Aug 2014 15:19:54 +0000 (08:19 -0700)]
Remove @author(s) from copyright statements

We have git to track authorship, so let's not pad source files
with it as well.

A hacking check has been added for this. The value is N322.

Change-Id: Iab0b64d417e0bb41a6b455e2ac377deee64ec3ee

10 years agoMerge "BSN: Add context to backend request for debugging"
Jenkins [Mon, 15 Sep 2014 12:34:12 +0000 (12:34 +0000)]
Merge "BSN: Add context to backend request for debugging"

10 years agoMerge "Remove logic for conditional migrations"
Jenkins [Mon, 15 Sep 2014 10:40:58 +0000 (10:40 +0000)]
Merge "Remove logic for conditional migrations"

10 years agoMerge "Stop using intersphinx"
Jenkins [Mon, 15 Sep 2014 09:09:48 +0000 (09:09 +0000)]
Merge "Stop using intersphinx"

10 years agoBSN: Add context to backend request for debugging
Kevin Benton [Tue, 2 Sep 2014 18:27:51 +0000 (11:27 -0700)]
BSN: Add context to backend request for debugging

Include the request context with calls to the backend
Big Switch controllers to assist with event correlation
and debugging object provenance. The auth token is
stripped since this information is sensitive and
these requests will appear in debug logs.

This also removes mutable objects from default arguments
in some of the server manager function definitions that
were interferring with the new use of the headers dict.

Closes-Bug: #1364696
Change-Id: I5b80b1596cc145742457b3603cbcd67f6e0d9f36

10 years agoMerge "Fix for floating ip association and deletion"
Jenkins [Mon, 15 Sep 2014 08:07:46 +0000 (08:07 +0000)]
Merge "Fix for floating ip association and deletion"

10 years agoMerge "Big Switch: Check for 'id' in port before lookup"
Jenkins [Mon, 15 Sep 2014 08:07:32 +0000 (08:07 +0000)]
Merge "Big Switch: Check for 'id' in port before lookup"

10 years agoMerge "Add requests_mock to test-requirements.txt"
Jenkins [Mon, 15 Sep 2014 08:07:18 +0000 (08:07 +0000)]
Merge "Add requests_mock to test-requirements.txt"

10 years agoDon't create unused ipset chain
shihanzhang [Mon, 15 Sep 2014 06:46:31 +0000 (14:46 +0800)]
Don't create unused ipset chain

when a security group don't have members, it should not create corresponding
ipset chain.

Change-Id: Ia04ffb3ac539c9a89a882e6dd91f373cb67c6f8b
Closes-bug: #1369431

10 years agoMerge "Cleanup floatingips also on router delete"
Jenkins [Mon, 15 Sep 2014 07:23:40 +0000 (07:23 +0000)]
Merge "Cleanup floatingips also on router delete"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 15 Sep 2014 06:11:19 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I6aacdfe6ced9645aaec56b5a2a0516c167a7b5fd

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 15 Sep 2014 06:09:37 +0000 (06:09 +0000)]
Merge "Imported Translations from Transifex"

10 years agoAvoid an extra database query in schedule_snat_router
Michael Smith [Tue, 2 Sep 2014 17:09:12 +0000 (17:09 +0000)]
Avoid an extra database query in schedule_snat_router

bind_snat_servicenode already knows the chosen_agent.  By waiting
until after it is called, we can use it to avoid another db query.

Closes-bug: #1353266
Closes-bug: #1356639
Co-Authored-By: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Change-Id: Iba5668b2717e188d5289ede982bfc1b46f4eeb5b

10 years agoMerge "Make Juno migrations config independent"
Jenkins [Mon, 15 Sep 2014 04:04:55 +0000 (04:04 +0000)]
Merge "Make Juno migrations config independent"

10 years agoMerge "Introduce havana initial state"
Jenkins [Mon, 15 Sep 2014 04:04:45 +0000 (04:04 +0000)]
Merge "Introduce havana initial state"

10 years agoMerge "Fix a test_db_plugin unit test side_effect usage"
Jenkins [Mon, 15 Sep 2014 04:04:30 +0000 (04:04 +0000)]
Merge "Fix a test_db_plugin unit test side_effect usage"

10 years agoAdd HA support to the l3 agent
Sylvain Afchain [Wed, 6 Aug 2014 12:32:51 +0000 (15:32 +0300)]
Add HA support to the l3 agent

* Add HA mixins used by RouterInfo and LNAT3Agent
* For HA routers: Internal, external and floating IP addresses are no
  longer configured by the agent. Instead the interfaces and addresses
  are passed to a keepalived configuration, which configures the
  addresses when the router transitions to the master state.
* Only the master instance of the router opens the metadata proxy.
  This happens due to keepalived notification scripts that are
  called upon state transitions.
* Extra routes are handled via keepalived virtual routes and are
  no longer configured by the agent.
* HA routers create a 'HA device' on a VRRP-traffic only HA-network.
* Functional testing: Add two new tests to the L3 agent:
    1) Translation of a router configuration to a keepalived
       configuration.
    2) HA specific events when creating a HA router - Assert that
       keepalived is up, etc.

Change-Id: I83f2a5d2af42164c42773b385ba7b00872eed54e
Implements: blueprint l3-high-availability
Co-Authored-By: Assaf Muller <amuller@redhat.com>
10 years agoFix a test_db_plugin unit test side_effect usage
Kevin Benton [Sun, 14 Sep 2014 09:22:57 +0000 (02:22 -0700)]
Fix a test_db_plugin unit test side_effect usage

One of the unit tests didn't correctly use the side_effect
parameter for a mock to return different responses to multiple
calls, which resulted in an extra try-except block and an inline
note. This commit fixes the side_effect and removes the extra
catching code.

Change-Id: Ifa1a6a15025b710ecbba956b5b848e32314cf0cf

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 14 Sep 2014 06:11:25 +0000 (06:11 +0000)]
Imported Translations from Transifex

Change-Id: I323501dc17aedb1819d1f797c9988fec4b1ce695

10 years agoMerge "Fix KeyError on missing gw_port_host for L3 agent in DVR mode"
Jenkins [Sat, 13 Sep 2014 20:07:37 +0000 (20:07 +0000)]
Merge "Fix KeyError on missing gw_port_host for L3 agent in DVR mode"

10 years agoMerge "Updated from global requirements"
Jenkins [Sat, 13 Sep 2014 18:47:36 +0000 (18:47 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Add functional testing to ipset_manager"
Jenkins [Sat, 13 Sep 2014 18:37:37 +0000 (18:37 +0000)]
Merge "Add functional testing to ipset_manager"

10 years agoFix KeyError on missing gw_port_host for L3 agent in DVR mode
armando-migliaccio [Sat, 13 Sep 2014 06:25:03 +0000 (23:25 -0700)]
Fix KeyError on missing gw_port_host for L3 agent in DVR mode

The order of Mixin imports broke the MRO, which caused some methods
in the L3 hierarchy to be ignored. In particular, _build_routers_list
for DVR was no longer called, which led to the stacktrace observed on
the L3 agent side.

Closes-bug: 1369012

Change-Id: I23cd9813fb9b67e9029d222d5f72733ecec3febb

10 years agoMerge "Remove the Cisco Nexus monolithic plugin"
Jenkins [Sat, 13 Sep 2014 15:44:26 +0000 (15:44 +0000)]
Merge "Remove the Cisco Nexus monolithic plugin"

10 years agoMerge "L3 Metering label as shared"
Jenkins [Sat, 13 Sep 2014 15:44:12 +0000 (15:44 +0000)]
Merge "L3 Metering label as shared"

10 years agoMerge "Clarify message when no probes are cleared"
Jenkins [Sat, 13 Sep 2014 15:29:24 +0000 (15:29 +0000)]
Merge "Clarify message when no probes are cleared"

10 years agoMerge "Add a new scheduler for the l3 HA"
Jenkins [Sat, 13 Sep 2014 13:06:47 +0000 (13:06 +0000)]
Merge "Add a new scheduler for the l3 HA"

10 years agoMerge "Remove hints from schedule_router"
Jenkins [Sat, 13 Sep 2014 13:02:30 +0000 (13:02 +0000)]
Merge "Remove hints from schedule_router"

10 years agoMerge "BSN: Allow concurrent reads to consistency DB"
Jenkins [Sat, 13 Sep 2014 12:41:22 +0000 (12:41 +0000)]
Merge "BSN: Allow concurrent reads to consistency DB"

10 years agoMerge "Adds ipset support for Security Groups"
Jenkins [Sat, 13 Sep 2014 10:56:39 +0000 (10:56 +0000)]
Merge "Adds ipset support for Security Groups"

10 years agoMerge "Don't allow user to set firewall rule with port and no protocol"
Jenkins [Sat, 13 Sep 2014 10:44:46 +0000 (10:44 +0000)]
Merge "Don't allow user to set firewall rule with port and no protocol"

10 years agoMerge "Refactor l3_agent.process_router_floating_ip_addresses"
Jenkins [Sat, 13 Sep 2014 08:12:41 +0000 (08:12 +0000)]
Merge "Refactor l3_agent.process_router_floating_ip_addresses"

10 years agoStop using intersphinx
Andreas Jaeger [Sat, 13 Sep 2014 07:29:37 +0000 (09:29 +0200)]
Stop using intersphinx

Remove intersphinx from the docs build as it triggers network calls that
occasionally fail, and we don't really use intersphinx (links other
sphinx documents out on the internet)

This also removes the requirement for internet access during docs build.

This can cause docs jobs to fail if the project errors out on
warnings.

Change-Id: I71e941e2a639641a662a163c682eb86d51de42fb
Related-Bug: #1368910

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 13 Sep 2014 07:23:23 +0000 (07:23 +0000)]
Updated from global requirements

Change-Id: I7a53aedccdd62fafd0da2679e84345e71da5493d

10 years agoMerge "Subnets with prefix length 0 are invalid"
Jenkins [Sat, 13 Sep 2014 07:18:21 +0000 (07:18 +0000)]
Merge "Subnets with prefix length 0 are invalid"

10 years agoMerge "Big Switch: Retry on 503 errors from backend"
Jenkins [Sat, 13 Sep 2014 02:29:07 +0000 (02:29 +0000)]
Merge "Big Switch: Retry on 503 errors from backend"

10 years agoRemove the Cisco Nexus monolithic plugin
Pritesh Kothari [Thu, 21 Aug 2014 06:51:16 +0000 (23:51 -0700)]
Remove the Cisco Nexus monolithic plugin

The Cisco Nexus monolithic plugin does not work without the Open
vSwitch plugin. The Open vSwitch plugin is scheduled to be removed
as per #1323729. This patch removes the Nexus Hardware switch
related plugin code. The N1KV virtual switch related code will
still remain in the tree as it doesn't depend on Open vSwitch
plugin.

Closes-Bug: #1350387
Change-Id: I2542e92c25e9280e975c3903afb9114e850a966a

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 12 Sep 2014 20:13:33 +0000 (20:13 +0000)]
Merge "Imported Translations from Transifex"

10 years agoL3 Metering label as shared
Sylvain Afchain [Thu, 30 Jan 2014 10:42:08 +0000 (11:42 +0100)]
L3 Metering label as shared

With this patch metering labels can be set
as shared so that the rules associated with
this label will be applied to all routers for
all tenants.

Also changed all attributes on metering labels
to not allow updates ('allow_put': False),
since there are no update methods.

Partially implements
blueprint l3-metering-mgnt-ext

DocImpact

Change-Id: Ice405585fc50786d52eecc35c01605ac0e9550ac

10 years agoMerge "Remove useless check in _rpc_update_firewall"
Jenkins [Fri, 12 Sep 2014 17:41:35 +0000 (17:41 +0000)]
Merge "Remove useless check in _rpc_update_firewall"

10 years agoMerge "Passing admin tenant name to EOS"
Jenkins [Fri, 12 Sep 2014 17:33:06 +0000 (17:33 +0000)]
Merge "Passing admin tenant name to EOS"

10 years agoMerge "Use renamed _fail_second_call() in cisco nexus tests"
Jenkins [Fri, 12 Sep 2014 17:32:49 +0000 (17:32 +0000)]
Merge "Use renamed _fail_second_call() in cisco nexus tests"

10 years agoAdd a new scheduler for the l3 HA
Sylvain Afchain [Mon, 20 Jan 2014 22:38:29 +0000 (23:38 +0100)]
Add a new scheduler for the l3 HA

This patch updates all schedulers in order to support the
scheduling of HA routers. It also refactors and adds tests for
the auto scheduling part.

The schedulers aren't expected to work when creating a router
that's both distributed and highly available. Specific issues
will be reported as bugs and fixed in a future patch.

Partially-implements: blueprint l3-high-availability
Change-Id: I2f80f45adeffa1a4eebcb375a4c8326177e84e83
Co-Authored-By: Assaf Muller <amuller@redhat.com>
10 years agoMerge "Add L3 VRRP HA base classes"
Jenkins [Fri, 12 Sep 2014 13:12:30 +0000 (13:12 +0000)]
Merge "Add L3 VRRP HA base classes"

10 years agoMerge "UTs: Disable auto deletion of ports/subnets/nets"
Jenkins [Fri, 12 Sep 2014 12:51:41 +0000 (12:51 +0000)]
Merge "UTs: Disable auto deletion of ports/subnets/nets"

10 years agoMerge "ofagent: Remove broken XenAPI support"
Jenkins [Fri, 12 Sep 2014 12:30:57 +0000 (12:30 +0000)]
Merge "ofagent: Remove broken XenAPI support"

10 years agoMerge "ofagent: Clean up logging"
Jenkins [Fri, 12 Sep 2014 12:30:42 +0000 (12:30 +0000)]
Merge "ofagent: Clean up logging"

10 years agoAdd functional testing to ipset_manager
Miguel Angel Ajo [Tue, 9 Sep 2014 13:22:03 +0000 (15:22 +0200)]
Add functional testing to ipset_manager

Add functional testing to the ipset_manager module to verify
it works as expected in combination with iptables matching.

Implements:  blueprint add-ipset-to-security

Change-Id: Iec791ec30f87f6c00805f1d52c23b84aa7bc19de

10 years agoRemove logic for conditional migrations
Salvatore [Fri, 29 Aug 2014 23:49:03 +0000 (01:49 +0200)]
Remove logic for conditional migrations

This patch removes the logic for handling conditional migrations
and adjusts all the patches where it was used accordingly.

The alembic environment has been update to not send anymore
the active plugins list to migrations.

This patch also removes the vestigial 'options' parameter which
was sent to every migration but always set to None and never
used by any migration.

Implements blueprint bp/reorganize-migrations

Change-Id: I7285e0276b262a9ea5d22c456a5a8cf34c461a0c

10 years agoMake Juno migrations config independent
Salvatore Orlando [Wed, 23 Jul 2014 19:16:21 +0000 (12:16 -0700)]
Make Juno migrations config independent

This patch amends migrations added after the icehouse release
and before the healing migration.
Migrations are changed in a way that they are not anymore
dependent on configuration parameters but are anyway aware of
the fact that the database has not yet been healed.

To this aim, amended migrations now will need to inspect the
current schema and cannot be anymore be used in offline mode;
this is consistent with the behaviour of the healing migration.

This patch does not remove the logic for generating and
managing configuration-dependent migrations. For this reason
upgrade and downgrade routines still accept the active_plugins
parameter, which will not be used.

Change-Id: I9d55a01c64ef555b7774099f497c9eea596aea6e
Partially-implements: blueprint reorganize-migrations

10 years agoIntroduce havana initial state
Salvatore Orlando [Tue, 5 Aug 2014 15:03:01 +0000 (08:03 -0700)]
Introduce havana initial state

This patch replaces folsom initial state and all migrations
from folsom to havana, with a new, configuration independent
initial db state, corresponding to the havana release.

In order to avoid large modules, "init ops" modules have been
created for all plugins, service plugins, and extensions.

Some migrations after the havana release were amended or
removed to reflect the new initial state being introduced.

Partially-implements: blueprint reorganize-migrations

Change-Id: I47bfd0d26fad1373013ae0d5716266ca40c493c6

10 years agoAdds ipset support for Security Groups
shihanzhang [Mon, 4 Aug 2014 09:31:01 +0000 (17:31 +0800)]
Adds ipset support for Security Groups

Iptables chain is linear storage and filtering, when iptables rules are
large, the load of l2 agent is heavy, this patch introduces ipset to
security group for improving the security group performance.

Change-Id: I6ff0ac519d0b9034d3bb5270885ed3cc1805674d
Implements: blueprint add-ipset-to-security
DocImpact

10 years agoMerge "Remove binding:profile update from Mellanox ML2 MD"
Jenkins [Fri, 12 Sep 2014 01:07:02 +0000 (01:07 +0000)]
Merge "Remove binding:profile update from Mellanox ML2 MD"

10 years agoRefactor l3_agent.process_router_floating_ip_addresses
Assaf Muller [Tue, 9 Sep 2014 18:20:03 +0000 (21:20 +0300)]
Refactor l3_agent.process_router_floating_ip_addresses

Split it out to several functions.

Change-Id: I2b5ec4f0fba04576886f08a346c504212849121a

10 years agoMerge "Add the unit tests for ml2.rpc module"
Jenkins [Thu, 11 Sep 2014 19:14:57 +0000 (19:14 +0000)]
Merge "Add the unit tests for ml2.rpc module"

10 years agoCleanup floatingips also on router delete
rajeev [Thu, 11 Sep 2014 16:03:00 +0000 (12:03 -0400)]
Cleanup floatingips also on router delete

In router remove path process_router(), processing of floating ips
is getting skipped. This change adds processing of floating ips
if the external gateway for the router was previously set. Since
DVR uses FIP namespaces and agent gateway ports, this change ensures
such ports and namespaces are removed.

Change-Id: Ib1d8fb54adcd8aab411dced695d171376687c980
Partial-bug: #1367588

10 years agoMerge "Remove absolute path in KillFilter for metadata-proxy"
Jenkins [Thu, 11 Sep 2014 18:22:16 +0000 (18:22 +0000)]
Merge "Remove absolute path in KillFilter for metadata-proxy"

10 years agoMerge "NSX: Correct allowed_address_pair return value on create_port"
Jenkins [Thu, 11 Sep 2014 15:34:26 +0000 (15:34 +0000)]
Merge "NSX: Correct allowed_address_pair return value on create_port"

10 years agouse TRUE in SQL for boolean var
Bernhard M. Wiedemann [Thu, 11 Sep 2014 09:09:21 +0000 (11:09 +0200)]
use TRUE in SQL for boolean var

The "allocated" variable was defined to be a boolean type
and in postgresql this type is enforced,
while in mysql this just maps to tinyint and accepts both numbers and bools

Closes-Bug: #1368251
Change-Id: If324c8b83e490e150085d044ac61360b647522ac

10 years agoRemove faulty .assert_has_calls([])
Jacek Swiderski [Thu, 11 Sep 2014 13:32:18 +0000 (15:32 +0200)]
Remove faulty .assert_has_calls([])

Some UT use <mock>.assert_has_calls([]) as a way to check if mock
wasn't called - this doesn't work because assert_has_calls only checks
if passed calls are present in mock_calls and hence it is always true
regardless of whether mock was called or not. This can lead to falsely
passed tests.

Change-Id: I1be5327854cc3dc2f5b3733f2bad78200cfbbfd2
Closes-Bug: #1368234

10 years agoFail on None before iteration attempt
Kevin Benton [Wed, 10 Sep 2014 09:15:02 +0000 (02:15 -0700)]
Fail on None before iteration attempt

Check for a 'None' value before trying to iterate over it
in the bulk code. Also eliminates an unneccessary anonymous
recursive function in the same bulk handling code.

Closes-Bug: #1368055
Change-Id: Id4aca81e4882a3cdf9c790bdea0b0b515abc9a8c

10 years agoMerge "Fix comments in api.rpc.handlers"
Jenkins [Thu, 11 Sep 2014 09:51:00 +0000 (09:51 +0000)]
Merge "Fix comments in api.rpc.handlers"

10 years agoMerge "Remove second call to get_subnets in delete_subnet"
Jenkins [Thu, 11 Sep 2014 09:32:01 +0000 (09:32 +0000)]
Merge "Remove second call to get_subnets in delete_subnet"

10 years agoMerge "Avoid auto-scheduling for distributed routers"
Jenkins [Thu, 11 Sep 2014 07:25:36 +0000 (07:25 +0000)]
Merge "Avoid auto-scheduling for distributed routers"

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 11 Sep 2014 06:07:03 +0000 (06:07 +0000)]
Imported Translations from Transifex

Change-Id: I72ae6c5d543baea1c11c3e0b31359d4af898dd2b

10 years agoofagent: Remove broken XenAPI support
YAMAMOTO Takashi [Thu, 11 Sep 2014 03:00:13 +0000 (12:00 +0900)]
ofagent: Remove broken XenAPI support

ofagent has code for agent-on-DomU support inherited from OVS agent.
However, it's incomplete and broken.  Because ofagent uses a direct
OpenFlow channel instead of ovs-ofctl command to program a switch,
the method to use the special rootwrap can not work.

Closes-Bug: #1368006
Change-Id: I0bb25a296d1f1e65c233ece6deaef6c095d78707

10 years agoMerge "Changes to support FWaaS in a DVR based environment"
Jenkins [Thu, 11 Sep 2014 00:28:51 +0000 (00:28 +0000)]
Merge "Changes to support FWaaS in a DVR based environment"

10 years agoPassing admin tenant name to EOS
Shashank Hegde [Mon, 8 Sep 2014 22:05:30 +0000 (15:05 -0700)]
Passing admin tenant name to EOS

The Arista ML2 plugin was not passing the admin tenant name to EOS without which
it is not possible to authenticate with keystone using just the admin name
and password. This patch passes the admin tenant name along with the admin
credentials.

Change-Id: I6c8b872087d17da2c3de43186d1916fc368dd786
Closes-Bug: 1359417

10 years agoFix for floating ip association and deletion
Sayaji [Wed, 30 Jul 2014 18:06:59 +0000 (11:06 -0700)]
Fix for floating ip association and deletion

Added code to associate fip to a vm in VSD, if
the fip was already associated with the vm port
in Neutron. Also added code in fip deletion,
to get the correct router id based on the check
if the fip is associated to a Neutron port or
not.
Closes-Bug: #1350469
Change-Id: I1aa24f420f656043086a4f501b15722216b843e9

10 years agoBSN: Allow concurrent reads to consistency DB
Kevin Benton [Wed, 13 Aug 2014 11:01:50 +0000 (04:01 -0700)]
BSN: Allow concurrent reads to consistency DB

Allow concurrent reads to the consistency DB since the
database lock the block was originally protecting against
is gone.

Closes-Bug: #1357102
Change-Id: I1618b4046e995c796757e723f99288e486683339

10 years agoRemove useless check in _rpc_update_firewall
Cedric Brandily [Wed, 27 Aug 2014 09:35:41 +0000 (11:35 +0200)]
Remove useless check in _rpc_update_firewall

Firewall_db_mixin.update_firewall returns an updated firewall or raises
an error (if the firewall is not found), that's why checking if its
result is evaluated to False is not required

Change-Id: Ib4e2fa0920783728b8e1cc8597b3edf78e098b52

10 years agoUse renamed _fail_second_call() in cisco nexus tests
Henry Gessau [Wed, 10 Sep 2014 03:50:09 +0000 (23:50 -0400)]
Use renamed _fail_second_call() in cisco nexus tests

In commit 5e4b0c6fc6670ea036d801ce53444272bc311929 NeutronDbPluginV2TestCase
_do_side_effect() was renamed to _fail_second_call(), but the nexus test cases
were not updated. The tests still worked because they check for
HTTPInternalServerError which is the end result of the server encountering
"AttributeError: object has no attribute '_do_side_effect'". So the fault
injection still worked, but not in the way intended.

Note: the monolithic nexus plugin is not updated here since it is being
removed from the tree.

Closes-bug: #1367552

Change-Id: I083285fff5144d8dc35bd5b64faa7e400c68bcff

10 years agoAdd L3 VRRP HA base classes
Sylvain Afchain [Mon, 26 May 2014 12:28:06 +0000 (14:28 +0200)]
Add L3 VRRP HA base classes

Add L3 HA base classes on the plugin side. A new admin-only ha
attribute is added to the API router resource. Conversion from
or to HA router is possible. Each tenant gets a single network
used for HA traffic. The tenant_id for that network is set to
'' so that it isn't visible via the CLI or GUI. A new table
is added to map a tenant to its HA network. Specific HA
attributes are added to the extra router attributes table.
Finally, each HA router gets a port on the HA network, per
l3 agent it is scheduled on. A new table is added to track
these bindings. A new table is added in order to track
VRID allocations.

DVR integration is not expected to work. Any issues will
be reported as bugs and handled after the feature merges.
Migrating a router to HA or from HA works server side
but is not expected to work (Yet) agent side. This will be
dealt with as a bug in the future.

DocImpact
Partially-implements: blueprint l3-high-availability
Change-Id: I9d935cf5e0c231e8cb7af5f61b9a9fc552c3521e
Co-Authored-By: Assaf Muller <amuller@redhat.com>
10 years agoAllow DHCPv6 reply from server to client
Xu Han Peng [Tue, 1 Jul 2014 08:57:51 +0000 (16:57 +0800)]
Allow DHCPv6 reply from server to client

Add security group rule to allow DHCPv6 reply from dhcp server
link local addres port 547 to client port 546.

Change-Id: I5fd9561e855b1d3999649934977af659d5ca221f
Closes-Bug: 1335984

10 years agoDon't allow user to set firewall rule with port and no protocol
Bertrand Lallau [Tue, 9 Sep 2014 12:56:59 +0000 (14:56 +0200)]
Don't allow user to set firewall rule with port and no protocol

Creating firewall rules specifying a destination port and/or a source
port without a protocol, generates rules without src or dest port
restriction. This was a real security issue for cloud users.

This patch generates a 400 Bad request "Source/destination port
requires a protocol" in case of creation/update of firewall rules
specifying a destination port and/or a source port and without protocol.

DocImpact
Closes-Bug: #1365961

Change-Id: I4a3a1d9ae7ec4b2a864b3edc83d65ef7f80cbba5

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Wed, 10 Sep 2014 09:31:53 +0000 (09:31 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Neutron should not use the neutronclient utils module for import_class"
Jenkins [Wed, 10 Sep 2014 07:22:11 +0000 (07:22 +0000)]
Merge "Neutron should not use the neutronclient utils module for import_class"

10 years agoFix comments in api.rpc.handlers
Akihiro Motoki [Sat, 30 Aug 2014 16:47:24 +0000 (01:47 +0900)]
Fix comments in api.rpc.handlers

Follow-up patch of RPC refactoring of bug 1359416.
It addresses minor comments in the above patch series.

Change-Id: I2d6268db777f0f73fda61a5a7d0967a91bcb292b
Closes-Bug: #1359416

10 years agoofagent: Clean up logging
YAMAMOTO Takashi [Mon, 8 Sep 2014 02:29:05 +0000 (11:29 +0900)]
ofagent: Clean up logging

- Use _LI, _LW, _LE
- Remove localization from debug logs
- Replace LOG.debug calls with @log.log decorator where appropriate

Change-Id: I9c80c556003db7b0b8e99da0340a26beb1e00e16