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

10 years agoMerge "Fix enums usage for postgres in migrations"
Jenkins [Fri, 1 Aug 2014 22:27:48 +0000 (22:27 +0000)]
Merge "Fix enums usage for postgres in migrations"

10 years agoMerge "Audited attribute for policy update not changing"
Jenkins [Fri, 1 Aug 2014 22:25:30 +0000 (22:25 +0000)]
Merge "Audited attribute for policy update not changing"

10 years agoMerge "Use correct section for log message if interface_driver import fails"
Jenkins [Fri, 1 Aug 2014 22:23:16 +0000 (22:23 +0000)]
Merge "Use correct section for log message if interface_driver import fails"

10 years agoMerge "Allow unsharing a network used as gateway/floatingip"
Jenkins [Fri, 1 Aug 2014 22:22:53 +0000 (22:22 +0000)]
Merge "Allow unsharing a network used as gateway/floatingip"

10 years agoRemove reference to cisco_cfg_agent.ini from setup.cfg
Henry Gessau [Fri, 1 Aug 2014 21:04:02 +0000 (17:04 -0400)]
Remove reference to cisco_cfg_agent.ini from setup.cfg

No sample .ini file is included, causing install to fail.
Remove the reference for now.

Change-Id: I6dc88062cfd47ecee7ca9fc4e6ba64ce65d8ef07
Closes-bug: #1351466

10 years agoMerge "Fix-DVR Gateway clear doesn't delete csnat port"
Jenkins [Fri, 1 Aug 2014 20:43:12 +0000 (20:43 +0000)]
Merge "Fix-DVR Gateway clear doesn't delete csnat port"

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 1 Aug 2014 20:06:00 +0000 (20:06 +0000)]
Merge "Imported Translations from Transifex"

10 years agoExit Firewall Agent if config is invalid
sridhargaddam [Sun, 27 Apr 2014 00:55:28 +0000 (06:25 +0530)]
Exit Firewall Agent if config is invalid

When fwaas config file is not provided to the agent,
but the service is enabled in neutron.conf file the
agent should exit with an error message and should
not proceed further. This patch adds the necessary fix.

Change-Id: Iaced777e3a34e9405050252b17a203689e1c1fc0
Closes-Bug: #1310857

10 years agoMerge "Use storage engine when creating tables in migrations"
Jenkins [Fri, 1 Aug 2014 17:51:30 +0000 (17:51 +0000)]
Merge "Use storage engine when creating tables in migrations"

10 years agoMerge "Configuration agent for Cisco devices"
Jenkins [Fri, 1 Aug 2014 17:51:01 +0000 (17:51 +0000)]
Merge "Configuration agent for Cisco devices"

10 years agoFix spelling mistakes
sanuptpm [Thu, 31 Jul 2014 17:44:15 +0000 (23:14 +0530)]
Fix spelling mistakes

Change-Id: Idedb39b43bc71db0a7e331cc23535d162177c8b5

10 years agoFix DB Duplicate error when scheduling distributed routers
armando-migliaccio [Fri, 1 Aug 2014 02:20:00 +0000 (19:20 -0700)]
Fix DB Duplicate error when scheduling distributed routers

The error was caused by binding the router to an agent
candidate that was already selected during the scheduling
process.

A DB lookup was also saved by passing the router object
around; this led to a minor style cleanup.

Closes-bug: #1351123

Change-Id: Ib71a0140c8a7fbd5b230609d33487f8adba252e7

10 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 1 Aug 2014 06:06:53 +0000 (06:06 +0000)]
Imported Translations from Transifex

Change-Id: Ic168d306e76c0404184bb3636f51e257749cb8b0

10 years agoMake ML2 ensure_dvr_port_binding more robust
armando-migliaccio [Fri, 4 Jul 2014 00:00:44 +0000 (17:00 -0700)]
Make ML2 ensure_dvr_port_binding more robust

There is a remote chance that this operation may
be prone to DB integrity errors, in case the binding
is attempted on the same port twice.

Ideally getter methods should not create, but this
is a common Neutron (anti)-pattern that would be
difficult to eradicate (at least in a single patch);
so for now let's make this code more defensive.

Related-bug: #1269131
Related-bug: #1335226

Change-Id: Ie6c57fd46f0752839814dbac5b14fae2364f973d

10 years agocentralized router is incorrectly scheduled
Michael Smith [Thu, 31 Jul 2014 06:17:47 +0000 (23:17 -0700)]
centralized router is incorrectly scheduled

When agent_mode=dvr only distributed routers should be
scheduled to that agent.  This change fixes this problem
by not allowing centralized routers to be scheduled
to an agent configured with agent_mode=dvr

Closes-bug: 1350667
Change-Id: I34e118535094520f2cee853f39d582a625acde20

10 years agoFix-DVR Gateway clear doesn't delete csnat port
Swaminathan Vasudevan [Tue, 29 Jul 2014 23:34:58 +0000 (16:34 -0700)]
Fix-DVR Gateway clear doesn't delete csnat port

When a gateway is set to a distributed router,
the router checks for the interfaces associated
with the router and based on the number of
interfaces the router creates "csnat" interface
ports that would be used by the SNAT service in
the Service Node.

When a gateway is cleared, the plugin should
delete the "csnat" interface ports. In the
current code, it is deleting the port and
re-creating the port with a different id.

A check need to be made before it creates a new
port to make sure that the router has a valid
gateway port.

This is a bug and this patch fixes this issue.

Change-Id: I84f1795360b3693a025b5fa3454bf9efc7e503ae
Closes-Bug: #1350089

10 years agoFix spelling in get_plugin_interface docstring
Stanislav Kudriashev [Thu, 31 Jul 2014 13:41:53 +0000 (16:41 +0300)]
Fix spelling in get_plugin_interface docstring

Change-Id: I2d0910091184ceb183019778fb1adcc3baf8676d

10 years agoUse storage engine when creating tables in migrations
Jakub Libosvar [Tue, 22 Jul 2014 16:50:07 +0000 (18:50 +0200)]
Use storage engine when creating tables in migrations

Although __table_args__ is set correctly in the base model, existing
migration scripts were not generated with the mysql_engine option in
the alembic output, likely due to:

https://bitbucket.org/zzzeek/alembic/issue/110/

This adds the mysql_engine option to each table creation operation.

Change-Id: I990e8d64bcadf2be4e1e319319bc23225123b304
Closes-Bug: #1288358

10 years agoRemoved configobj from test requirements
Ihar Hrachyshka [Thu, 31 Jul 2014 13:31:48 +0000 (15:31 +0200)]
Removed configobj from test requirements

This module is not longer used by any code in the tree since
f164a60f15ea042b04b250ffc2001beda4f3e4bc.

Also removed a reference to the module from a README file.

Change-Id: I66c4935cb2e119bc96109416df7116d8c09e24e4

10 years agoMerge "Add missing ml2 plugin to migration 1fcfc149aca4"
Jenkins [Thu, 31 Jul 2014 01:16:23 +0000 (01:16 +0000)]
Merge "Add missing ml2 plugin to migration 1fcfc149aca4"

10 years agoMerge "Do not schedule network when creating reserved DHCP port"
Jenkins [Wed, 30 Jul 2014 18:39:29 +0000 (18:39 +0000)]
Merge "Do not schedule network when creating reserved DHCP port"

10 years agoMerge "Move ARP responder test to sanity command"
Jenkins [Wed, 30 Jul 2014 17:36:44 +0000 (17:36 +0000)]
Merge "Move ARP responder test to sanity command"

10 years agoMerge "Add L3 Scheduler Changes for Distributed Routers"
Jenkins [Wed, 30 Jul 2014 17:35:21 +0000 (17:35 +0000)]
Merge "Add L3 Scheduler Changes for Distributed Routers"

10 years agoMerge "Fix ML2 Plugin binding:profile update"
Jenkins [Wed, 30 Jul 2014 16:12:44 +0000 (16:12 +0000)]
Merge "Fix ML2 Plugin binding:profile update"

10 years agoAdd missing ml2 plugin to migration 1fcfc149aca4
Eugene Nikanorov [Wed, 30 Jul 2014 13:11:10 +0000 (17:11 +0400)]
Add missing ml2 plugin to migration 1fcfc149aca4

Migration 1fcfc149aca4_agents_unique_by_type_and_host
shouldbe applied to ml2 plugin as well.

Change-Id: I3f5a2fcfec49316fbe06d6221d003aeb2599bca7
Closes-Bug: #1350326

10 years agoUse correct section for log message if interface_driver import fails
Jakub Libosvar [Wed, 30 Jul 2014 08:42:14 +0000 (10:42 +0200)]
Use correct section for log message if interface_driver import fails

If import of interface_driver in namespace_driver fails then message for
logger raises exception because of taking interface_driver from haproxy
section while actual interface_driver is in default section.

Closes-Bug: #1350320
Change-Id: Ic1e73c0cdccb2fff02f2adfbad677503c29ba88a

10 years agoMake sure that gateway is in CIDR range by default
Assaf Muller [Wed, 7 May 2014 15:05:42 +0000 (18:05 +0300)]
Make sure that gateway is in CIDR range by default

Git commit c3706fa2 introduced the force_gateway_on_subnet
option that verified that the defined gateway is in the CIDR
range of a newly created or updated subnet. However, the default
value was False for backwards compatability reasons. The default
will change to True and the option will be marked as deprecated.

For IPv6, the gateway must be in the CIDR only if the gateway
is not a link local address.

DocImpact
Change-Id: I04fd1caec6da5dceee3f736b3f91f2468150ba2a
Closes-Bug: #1304181

10 years agoMerge "Pass filters in arrays in get_agent_gw_ports_exist_for_network"
Jenkins [Wed, 30 Jul 2014 09:04:17 +0000 (09:04 +0000)]
Merge "Pass filters in arrays in get_agent_gw_ports_exist_for_network"

10 years agoMerge "Bump hacking to version 0.9.2"
Jenkins [Wed, 30 Jul 2014 08:24:22 +0000 (08:24 +0000)]
Merge "Bump hacking to version 0.9.2"

10 years agoMerge "Make dvr_vmarp_table_update call conditional to dvr extension"
Jenkins [Wed, 30 Jul 2014 08:24:13 +0000 (08:24 +0000)]
Merge "Make dvr_vmarp_table_update call conditional to dvr extension"

10 years agoMerge "Functional tests work fine with random PYTHONHASHSEED"
Jenkins [Wed, 30 Jul 2014 08:24:04 +0000 (08:24 +0000)]
Merge "Functional tests work fine with random PYTHONHASHSEED"

10 years agoMerge "Replaced the strings with respective constants"
Jenkins [Wed, 30 Jul 2014 08:21:27 +0000 (08:21 +0000)]
Merge "Replaced the strings with respective constants"

10 years agoMerge "Call config_parse in base test setup"
Jenkins [Wed, 30 Jul 2014 08:21:18 +0000 (08:21 +0000)]
Merge "Call config_parse in base test setup"

10 years agoMerge "neutron.conf does not have the definition of firewall quotas"
Jenkins [Wed, 30 Jul 2014 06:47:11 +0000 (06:47 +0000)]
Merge "neutron.conf does not have the definition of firewall quotas"

10 years agoAdd L3 Scheduler Changes for Distributed Routers
Murali Birru [Tue, 22 Apr 2014 20:45:31 +0000 (13:45 -0700)]
Add L3 Scheduler Changes for Distributed Routers

This patch implements the L3 Scheduler changes for the
Distributed Virtual Routers.

Partially-implements: blueprint neutron-ovs-dvr

Change-Id: I407c3d639ebdf885b1418bceac7cfc251e7eba1f
Co-Authored-By: Carl Baldwin <carl.baldwin@hp.com>
Co-Authored-By: Armando Migliaccio <armamig@gmail.com>
10 years agoMerge "Race condition of L3-agent to add/remove routers"
Jenkins [Wed, 30 Jul 2014 06:02:57 +0000 (06:02 +0000)]
Merge "Race condition of L3-agent to add/remove routers"

10 years agoPass filters in arrays in get_agent_gw_ports_exist_for_network
Carl Baldwin [Wed, 30 Jul 2014 00:45:54 +0000 (00:45 +0000)]
Pass filters in arrays in get_agent_gw_ports_exist_for_network

Change-Id: I8925d7072b7cae7645e772b8a769a7e6f03ec64f
Closes-Bug: #1350119

10 years agoMerge "Check that router info is set before calling _update_arp_entry"
Jenkins [Wed, 30 Jul 2014 00:37:51 +0000 (00:37 +0000)]
Merge "Check that router info is set before calling _update_arp_entry"

10 years agoMerge "Fix deprecated opt in haproxy driver"
Jenkins [Wed, 30 Jul 2014 00:37:35 +0000 (00:37 +0000)]
Merge "Fix deprecated opt in haproxy driver"

10 years agoMerge "Fix wrong order of tables in downgrade"
Jenkins [Tue, 29 Jul 2014 22:59:59 +0000 (22:59 +0000)]
Merge "Fix wrong order of tables in downgrade"

10 years agoDo not schedule network when creating reserved DHCP port
Itsuro Oda [Thu, 5 Jun 2014 05:32:13 +0000 (14:32 +0900)]
Do not schedule network when creating reserved DHCP port

If device_id is DEVICE_ID_RESERVED_DHCP_PORT, do not schedule
network nor notify to dhcp-agent.

Closes-Bug: #1327000
Change-Id: Idf88767596bf0fc31bf856a423d35cb1575b57f3

10 years agoCheck that router info is set before calling _update_arp_entry
Carl Baldwin [Tue, 29 Jul 2014 20:34:01 +0000 (20:34 +0000)]
Check that router info is set before calling _update_arp_entry

Change-Id: Ieec6fb01a7d48bed1042114c27527fe6ec2555e0
Closes-bug: #1350028

10 years agoMerge "Set nullable=False on tenant_id in apic_contracts table"
Jenkins [Tue, 29 Jul 2014 19:20:23 +0000 (19:20 +0000)]
Merge "Set nullable=False on tenant_id in apic_contracts table"

10 years agoMove ARP responder test to sanity command
Assaf Muller [Thu, 22 May 2014 11:38:30 +0000 (14:38 +0300)]
Move ARP responder test to sanity command

Additionally, the patch improves the check itself:
To check if the currently installed OVS supports the ARP responder
feature, we try to add a flow that references an OpenFlow ARP
extension via ofctl. The test may fail due to an (expected)
Runtime error, or due to some other unexpected error.
In such a case the error was previously masked and tossed away.

* Clean up ARP responder unit test
* Extract ARP responder flow actions to be used by the unit
  tests, functional test as well as the ARP responder code itself

After this patch, if the sanity check returned False but the
user never ran it or ignored its results, the OVS agent will
output errors to the log every time an ARP entry is (attempted)
to be added or removed from the flow table.

Closes-Bug: #1323718
Change-Id: I428c954d6561cd398a1e580804a9482969a154af

10 years agoneutron.conf does not have the definition of firewall quotas
Liping Mao [Mon, 28 Jul 2014 09:24:32 +0000 (17:24 +0800)]
neutron.conf does not have the definition of firewall quotas

We have the definition of quotas for firewall/policy/role
in code, but we do not have them in neutron.conf.

Change-Id: I23ae4f5c00ccc62dd9f97c77011da4ce0bbf983e
Closes-Bug: #1349318

10 years agoFix wrong order of tables in downgrade
Ann Kamyshnikova [Tue, 29 Jul 2014 12:02:20 +0000 (16:02 +0400)]
Fix wrong order of tables in downgrade

Heal migration fix bug https://bugs.launchpad.net/neutron/+bug/1336177.
Now table ml2_brocadenetworks has foreign key and downgrade
of 492a106273f8_brocade_ml2_mech_dri fails. To fix this change order
of tables in downgrade is needed.

Closes-bug: #1349810

Change-Id: Ida2ba66d35a952381f213080d417e475e18c196d

10 years agoFix deprecated opt in haproxy driver
Jakub Libosvar [Tue, 29 Jul 2014 10:18:33 +0000 (12:18 +0200)]
Fix deprecated opt in haproxy driver

If Neutron was updated from Havana, lbaas config file defines user_group
and loadbalancer_state_path in default section but since Icehouse these
settings were moved to haproxy section.
This patch adds DEFAULT group to DeprecatedOpt.

Change-Id: Ic92d4bc81ff6a3b16799414d17ac52e7a4801796
Closes-bug: #1349767

10 years agoRace condition of L3-agent to add/remove routers
Li Ma [Fri, 21 Feb 2014 08:57:25 +0000 (00:57 -0800)]
Race condition of L3-agent to add/remove routers

This race condition happens when repeatedly calling
l3-agent-router-add and l3-agent-router-remove
by different neutron-servers at the same time.

The primary key constraint is added for the pair of
(router_id and l3_agent_id).

During migration, verification is done if the current
records violate the PK constraint defined in this bug
fix, and sanitize the data before schema modification.

Due to different dialects of database engines, different
sql statements are executed correspondingly to do
the verification.

Change-Id: Ia541e023b757b2e77c4eec9bb1670632c7a271fa
Closes-Bug: #1230323

10 years agoReplaced the strings with respective constants
Sitaram Dontu [Fri, 25 Jul 2014 23:39:56 +0000 (16:39 -0700)]
Replaced the strings with respective constants

Change-Id: Ie36fde1307a75c1485120d848f8bdb182e5e1fc0
Closes-Bug: 1344497

10 years agoMake dvr_vmarp_table_update call conditional to dvr extension
armando-migliaccio [Tue, 29 Jul 2014 03:09:04 +0000 (20:09 -0700)]
Make dvr_vmarp_table_update call conditional to dvr extension

Without making this call conditional, every l3plugin that
integrates with the ML2 plugin will need to implement this
method and this must not be necessary.

Closes-bug: #1349638

Change-Id: Ie9ba3bad4152810f5bfa530be54be70139cebc0c

10 years agoMerge "ML2 additions to support DVR"
Jenkins [Tue, 29 Jul 2014 01:12:03 +0000 (01:12 +0000)]
Merge "ML2 additions to support DVR"

10 years agoMerge "Updated from global requirements"
Jenkins [Mon, 28 Jul 2014 22:29:48 +0000 (22:29 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Changes to remove the use of mapping tables from Nuage plugin"
Jenkins [Mon, 28 Jul 2014 19:58:17 +0000 (19:58 +0000)]
Merge "Changes to remove the use of mapping tables from Nuage plugin"

10 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 28 Jul 2014 19:49:32 +0000 (19:49 +0000)]
Updated from global requirements

Change-Id: I4116476698feba5b17ed4443db75a27c53da8615

10 years agoMerge "Set promote_secondaries when creating namespaces"
Jenkins [Mon, 28 Jul 2014 14:35:52 +0000 (14:35 +0000)]
Merge "Set promote_secondaries when creating namespaces"

10 years agoMerge "Make test_l3_agent._prepare_router_data a module function"
Jenkins [Mon, 28 Jul 2014 14:35:05 +0000 (14:35 +0000)]
Merge "Make test_l3_agent._prepare_router_data a module function"

10 years agoMerge "Remove redundant code in tests/unit/test_l3_agent"
Jenkins [Mon, 28 Jul 2014 14:34:56 +0000 (14:34 +0000)]
Merge "Remove redundant code in tests/unit/test_l3_agent"

10 years agoSet promote_secondaries when creating namespaces
Zang MingJie [Thu, 17 Jul 2014 15:06:07 +0000 (23:06 +0800)]
Set promote_secondaries when creating namespaces

there is a sysconf entry which controls how deletion of the primary ip
is performed (/proc/sys/net/ipv4/conf/all/promote_secondaries). when set
instead of deleting the secondary addresses, one of them will be
promoted to primary ip.

Without it, when init_l3 called on a port, it may unexpectedly delete
some useful ips.

Change-Id: I0b1b3bd6ade21129532c842daa31059ea164719e
Closes-bug: 1343320

10 years agoMerge "Fixed audit notifications for dhcp-agent-network"
Jenkins [Mon, 28 Jul 2014 07:09:32 +0000 (07:09 +0000)]
Merge "Fixed audit notifications for dhcp-agent-network"

10 years agoFunctional tests work fine with random PYTHONHASHSEED
Henry Gessau [Mon, 28 Jul 2014 01:01:46 +0000 (21:01 -0400)]
Functional tests work fine with random PYTHONHASHSEED

Partial-bug: #1348818

Change-Id: Iccac403585635851c6d121d6e27c1c90b0de5acb

10 years agoCall config_parse in base test setup
Kevin Benton [Sat, 19 Jul 2014 07:54:09 +0000 (00:54 -0700)]
Call config_parse in base test setup

Some of the tests (e.g. NeutronDbPluginV2AsMixinTestCase) do not call
config_parse so if the database engine is not already been setup by another
test before the config object is reset on teardown, the database connection
will fail since the database config is then empty.

This patch adds a new setup_config method called during the base test case
setUp method which calls config_parse by default to load the default config.
Tests that couldn't use the default config were then modified to override the
setup_config method.

Some other unit tests were slightly adjusted to pass using the default config.

Closes-Bug: #1346673
Change-Id: I3724200fa932115c0a8c264640b1a9dbe431a1cc