]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoOptionally delete namespaces when they are no longer needed
Carl Baldwin [Tue, 12 Nov 2013 19:31:45 +0000 (19:31 +0000)]
Optionally delete namespaces when they are no longer needed

Adds a configuration option to tell the network agents to delete
namespaces when they are no longer in use.  The option defaults to
False so that the agent will not attempt to delete namespaces in
environments where this is not safe.

This has been working well in deployments where iproute2 has been
patched with commit 58a3e8270fe72f8ed92687d3a3132c2a708582dd or it is
new enough to include it without being patched.

Change-Id: Ice5242c6f0446d16aaaa7ee353d674310297ef72
Closes-Bug: #1250596
Related-Bug: #1052535

10 years agoCall _destroy_metadata_proxy from _destroy_router_namespaces
Carl Baldwin [Tue, 19 Nov 2013 17:47:43 +0000 (17:47 +0000)]
Call _destroy_metadata_proxy from _destroy_router_namespaces

Refactor _spawn/destroy_metadata_proxy so that it can be called
with only the namespace and the router_id.

Change-Id: Id1c33b22c7c3bd35c54a7c9ad419831bfed8746b
Closes-Bug: #1252856

10 years agoMerge "Do not run "ovs-ofctl add-flow" with an invalid in_port"
Jenkins [Mon, 18 Nov 2013 06:18:48 +0000 (06:18 +0000)]
Merge "Do not run "ovs-ofctl add-flow" with an invalid in_port"

10 years agoMerge "Round-robin SVI switch selection fails on Cisco Nexus plugin"
Jenkins [Sun, 17 Nov 2013 18:04:00 +0000 (18:04 +0000)]
Merge "Round-robin SVI switch selection fails on Cisco Nexus plugin"

10 years agoMerge "Removes unused nvp plugin config param"
Jenkins [Sun, 17 Nov 2013 17:01:40 +0000 (17:01 +0000)]
Merge "Removes unused nvp plugin config param"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 17 Nov 2013 06:41:30 +0000 (06:41 +0000)]
Imported Translations from Transifex

Change-Id: If02d797b5d423db899bba128e2efedfd4afb1ad3

10 years agoMerge "Add log statements for policy check failures"
Jenkins [Sun, 17 Nov 2013 05:22:18 +0000 (05:22 +0000)]
Merge "Add log statements for policy check failures"

10 years agoMerge "Lower severity of log trace for DB integrity error"
Jenkins [Sat, 16 Nov 2013 04:07:51 +0000 (04:07 +0000)]
Merge "Lower severity of log trace for DB integrity error"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 15 Nov 2013 23:26:40 +0000 (23:26 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "Refactor configuring of floating ips on a router"
Jenkins [Fri, 15 Nov 2013 20:40:51 +0000 (20:40 +0000)]
Merge "Refactor configuring of floating ips on a router"

10 years agoMerge "Fix import log_handler error with publish_errors set"
Jenkins [Fri, 15 Nov 2013 13:52:27 +0000 (13:52 +0000)]
Merge "Fix import log_handler error with publish_errors set"

10 years agoMerge "Cleanup HACKING.rst"
Jenkins [Fri, 15 Nov 2013 10:24:48 +0000 (10:24 +0000)]
Merge "Cleanup HACKING.rst"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 15 Nov 2013 06:40:44 +0000 (06:40 +0000)]
Imported Translations from Transifex

Change-Id: I38683ac890169536497e2c1ed9178d00a441328b

10 years agoAdd log statements for policy check failures
armando-migliaccio [Wed, 30 Oct 2013 01:20:53 +0000 (18:20 -0700)]
Add log statements for policy check failures

Misconfiguration of the policy.json file may
cause policy check failures. It's kind to the
developer to log the underlying exception
so that he/she can have more information as to
how to address the problem.

Closes bug: #1246139

Change-Id: I8664959cb98b3a41d159db3acb91da9baba810ae

10 years agoLower severity of log trace for DB integrity error
armando-migliaccio [Fri, 15 Nov 2013 02:22:26 +0000 (18:22 -0800)]
Lower severity of log trace for DB integrity error

LOG.exception is not appropriate, since a concurrent
port creation can occur and it has been dealt with
in the except block.

This avoids spooking users who are on the hunt for
real bugs.

Supports fix for 1239637

Change-Id: I9489702ee63db0b004fe41195fa4727af261d514

10 years agoMerge "Remove deprecated fields in keystone auth middleware"
Jenkins [Fri, 15 Nov 2013 00:12:38 +0000 (00:12 +0000)]
Merge "Remove deprecated fields in keystone auth middleware"

10 years agoMerge "Replace a non-existing exception"
Jenkins [Thu, 14 Nov 2013 23:34:57 +0000 (23:34 +0000)]
Merge "Replace a non-existing exception"

10 years agoMerge "Arista ML2 mech driver cleanup and integration with portbindings"
Jenkins [Thu, 14 Nov 2013 22:56:14 +0000 (22:56 +0000)]
Merge "Arista ML2 mech driver cleanup and integration with portbindings"

10 years agoMerge "Tune up report and downtime intervals for l2 agent"
Jenkins [Thu, 14 Nov 2013 17:53:22 +0000 (17:53 +0000)]
Merge "Tune up report and downtime intervals for l2 agent"

10 years agoMerge "Fix DB integrity issues when using postgres"
Jenkins [Thu, 14 Nov 2013 17:37:02 +0000 (17:37 +0000)]
Merge "Fix DB integrity issues when using postgres"

10 years agoRound-robin SVI switch selection fails on Cisco Nexus plugin
Dane LeBlanc [Thu, 14 Nov 2013 04:10:21 +0000 (23:10 -0500)]
Round-robin SVI switch selection fails on Cisco Nexus plugin

Fixes bug 1250969

This fix addresses improper behavior with the Cisco Nexus plugin's
selection of Nexus switch on which to place a Switch Virtual Interface
(SVI) when round-robin switch placement is enabled.

The expected behavior when round-robin SVI switch selection is configured
via the cisco_plugins.ini file, i.e.:
    [cisco]
    nexus_l3_enable = True
    svi_round_robin = True
is that when a virtual router interface is created, the Nexus plugin should
select the Nexus switch with the least number of SVI interfaces configured
for creating the new SVI. The current selection is based on the first
entry in a dictionary, and is therefore indeterminate.

Similarly, this fix also addresses incorrect behavior when round-robin
selection is disabled. In this case, the desired behavior is that
the plugin should select the first switch which appears in the Nexus
switch configuration. Instead, the current selection is also based on the
first entry in a dictionary, and is likewise indeterminate.

Change-Id: I548c1efaa8b54695246251b6823ab59e077836fe

10 years agoTune up report and downtime intervals for l2 agent
armando-migliaccio [Fri, 1 Nov 2013 22:47:22 +0000 (15:47 -0700)]
Tune up report and downtime intervals for l2 agent

If the neutron server erroneously thinks than the l2 agent is down
it will fail to bind a port, which can lead to VM's spawn errors.
However, the issue is only transient because the agent effectively
is only 'late' in reporting back.

Best solution would be an alpha-count algorithm (so that we can detect
persistent failures more reliably), but for now let's be more tolerant
assuming that the agent is down by waiting at least twice the report
interval plus a tiny teeny bit.

Change-Id: I544135ce1f6b7eaefb34ac44af8f5844d92ddd95
Close-bug: #1244255

10 years agoFix DB integrity issues when using postgres
armando-migliaccio [Thu, 31 Oct 2013 23:53:31 +0000 (16:53 -0700)]
Fix DB integrity issues when using postgres

The IntegrityError faced on network deletion that
spooks Tempest tests is most likely caused by the
fact that the ml2 plugin does a dirty read. By
adding a 'select for update' we should be able to
address the issue once and for all.

Also, there's a chance that the dhcp port gets
reallocated while we are deleting the network. To
this aim, catch the integrity error and attempt
to recover from it.

This patch also removes the handling of errors
on concurrent reads that can no longer occur when
deleting the network.

(Hopefully) Closes-bug: #1239637

PS: This fix may be relevant for bugs #1243726 and #1246737

Change-Id: Iefae7fc8a903cc35d8bf80fc4cee533b7f64032c

11 years agoRemoves unused nvp plugin config param
armando-migliaccio [Thu, 14 Nov 2013 01:03:27 +0000 (17:03 -0800)]
Removes unused nvp plugin config param

nvp_cluster_uuid is no longer used; it was missed
during the configuration file tweaks that was done
during Havana.

Change-Id: Id6dd684833c99453cd97d88584be04d99fd21550
Closes-bug: #1251086

11 years agoMerge "Remove the warning for Scheduling Network"
Jenkins [Wed, 13 Nov 2013 02:12:54 +0000 (02:12 +0000)]
Merge "Remove the warning for Scheduling Network"

11 years agoArista ML2 mech driver cleanup and integration with portbindings
sukhdev [Tue, 12 Nov 2013 20:28:02 +0000 (12:28 -0800)]
Arista ML2 mech driver cleanup and integration with portbindings

fixes bug: 1215097

This patch addresses minor cleanups which are the diff between the
original version of the patch which was merged into havana master
branch and the patch that is submitted for merge into stable/havana.

The original patch that was merged into havana master branch is at:
https://review.openstack.org/#/c/49086/
The new patch which has been submitted as havana-backport-potential is:
https://review.openstack.org/#/c/54447/

This whole excercise came into play because the original patch was not
picked up in havana-rc2 because of missing tag in the bug. Therefore, the
need to submit new patch against stable/havana.

When the new patch was submitted for havana-backport-potential, few very
minor previously commented cleanups were incorporated as well. This
patch brings these minor cleanups into master branch as well. Therefore,
merge of these two patches will bring both master branch and
stable/havana at parity.

Change-Id: I4ec5273c26a27ca52b430a6c7485a44e880a1787

11 years agoMerge "Remove database section from plugin.ini"
Jenkins [Tue, 12 Nov 2013 09:12:34 +0000 (09:12 +0000)]
Merge "Remove database section from plugin.ini"

11 years agoRemove the warning for Scheduling Network
chen-li [Tue, 12 Nov 2013 01:17:17 +0000 (09:17 +0800)]
Remove the warning for Scheduling Network

when a new port is created, the schedule_network in agentschedulers_db is called.
Since this network may already be hosted, it will directly return None in dhcp_agent_scheduler,
which cause the agentschedulers_db.schedule_network log a warning message.

This is really annoying and making users confused.
And, real warnings are already addressed in the real scheduler function.
which is neutron.scheduler.dhcp_agent_scheduler.ChanceScheduler.schedule by default.

Change-Id: I11bdbe47c2cc0fc45fb143970fb6762678bc27e5
Closes-Bug: #1192786

11 years agoDo not run "ovs-ofctl add-flow" with an invalid in_port
Arata Notsu [Fri, 25 Oct 2013 07:34:22 +0000 (16:34 +0900)]
Do not run "ovs-ofctl add-flow" with an invalid in_port

Since ofport is a string, we have to convert it to integer to
check it expresses a negative number or not.

Also unit tests are added/corrected.

Change-Id: If85595f1b8ecb40ea41edda52706fb1bd41cb1ab
Related-Bug: 1238445

11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Tue, 12 Nov 2013 05:17:23 +0000 (05:17 +0000)]
Merge "Updated from global requirements"

11 years agoReplace a non-existing exception
Yong Sheng Gong [Mon, 21 Oct 2013 12:26:36 +0000 (20:26 +0800)]
Replace a non-existing exception

Closes-Bug: #1242662

Change-Id: Ie44023c0fd9ba1373ec6e62d9245884b9f719b7e

11 years agoMerge "DHCP agent scheduler support for BigSwitch plugin"
Jenkins [Mon, 11 Nov 2013 22:19:24 +0000 (22:19 +0000)]
Merge "DHCP agent scheduler support for BigSwitch plugin"

11 years agoUpdated from global requirements
OpenStack Jenkins [Mon, 11 Nov 2013 18:48:49 +0000 (18:48 +0000)]
Updated from global requirements

Change-Id: I36e3ce085af0b1e9a7dfd91141789fdfbc2049a8

11 years agoCleanup HACKING.rst
Joe Gordon [Mon, 11 Nov 2013 18:32:34 +0000 (10:32 -0800)]
Cleanup HACKING.rst

* Point to new location for hacking doc
(http://docs.openstack.org/developer/hacking/)
* Remove openstack-common section because already in main hacking doc

Change-Id: I7fbcfe13469a75fed08700ccbe07fefbee33db22

11 years agoMerge "Remove confusing comment and code for LBaaS"
Jenkins [Mon, 11 Nov 2013 16:54:47 +0000 (16:54 +0000)]
Merge "Remove confusing comment and code for LBaaS"

11 years agoMerge "Simplify using external routers and metadata"
Jenkins [Mon, 11 Nov 2013 13:06:44 +0000 (13:06 +0000)]
Merge "Simplify using external routers and metadata"

11 years agoRemove confusing comment and code for LBaaS
Arata Notsu [Mon, 11 Nov 2013 11:33:43 +0000 (20:33 +0900)]
Remove confusing comment and code for LBaaS

The comment "the driver is optional" is inconsistent with what actually
done. And "vif_driver = None" after raising an exception makes no sense.
So this patch removes these lines.

Change-Id: I7f3d5b6df61037307e952a478f47c59485601847

11 years agoMerge "Don't shadow str"
Jenkins [Mon, 11 Nov 2013 07:26:48 +0000 (07:26 +0000)]
Merge "Don't shadow str"

11 years agoMerge "ExtraRoute: fix _get_extra_routes_by_router_id()"
Jenkins [Mon, 11 Nov 2013 04:01:58 +0000 (04:01 +0000)]
Merge "ExtraRoute: fix _get_extra_routes_by_router_id()"

11 years agoDon't shadow str
Chang Bo Guo [Sun, 10 Nov 2013 07:48:10 +0000 (23:48 -0800)]
Don't shadow str

In the  agent/linux/ovs_lib.py we were shadowing the str keyword with
local variable. Let's not do that.

Change-Id: If800804b1e1f12d782bac524c92f300bd77fdd3c

11 years agoMerge "Support uncompressed ipv6 address and abbreviated ipv4 address"
Jenkins [Fri, 8 Nov 2013 09:56:46 +0000 (09:56 +0000)]
Merge "Support uncompressed ipv6 address and abbreviated ipv4 address"

11 years agoExtraRoute: fix _get_extra_routes_by_router_id()
Oleg Bondarev [Thu, 7 Nov 2013 09:35:27 +0000 (13:35 +0400)]
ExtraRoute: fix _get_extra_routes_by_router_id()

router_id filter wasn't properly applied to the query
so the func returned all extra routes of all routers.

Closes-Bug: #1248219
Change-Id: I77733ee7994c8fccbbc966ccabd83b8fe4def8d5

11 years agoRefactor configuring of floating ips on a router
Carl Baldwin [Fri, 27 Sep 2013 04:04:31 +0000 (04:04 +0000)]
Refactor configuring of floating ips on a router

This approach to configuring floating ips is stateless and idempotent.
This allows it to handle corner cases, such as reusing a floating ip
address with a different floating ip id in a way that is easier to
understand.

The concept is to wipe the floating ips clean and rebuild them each
time with the following optimizations.  To avoid bad performance in
manipulating iptables, it is called in the context of a call to
defer_apply_on.  To avoid a disruption in network flow a set
difference is use to determine the set of addresses that no longer
belong on the inteface rather than removing them all blindly.

Change-Id: I98aacbbb52b35688036990961d02e0b273504a77
Fixes: Bug #1209011
11 years agoRemove database section from plugin.ini
Andreas Jaeger [Sun, 3 Nov 2013 16:31:29 +0000 (17:31 +0100)]
Remove database section from plugin.ini

Change https://review.openstack.org/#/c/34515 moved the database
config items to neutron.conf but left some commented out
[database] items. Remove them as well.

Closes-Bug: #1247589
Change-Id: I05913d0c27a683cec30cae31a1978612aa1e1360

11 years agoFix import log_handler error with publish_errors set
Chang Bo Guo [Wed, 6 Nov 2013 06:37:57 +0000 (22:37 -0800)]
Fix import log_handler error with publish_errors set

Sync from Olso.
Commit Id is Ibf28ba17f81b5ddeda653f6a3501ecac18ffcd42

This handler sends all error logs as rpc notifications.
Note: when using publish_errors you also need to set the
notification_driver option too.

Closes-bug: #1240349
Change-Id: Ie66b23af8da2e439e0ac2f5677f6a064e3dd3133

11 years agoMerge "Fix segment range in N1KV test to remove overlap"
Jenkins [Wed, 6 Nov 2013 05:46:00 +0000 (05:46 +0000)]
Merge "Fix segment range in N1KV test to remove overlap"

11 years agoDHCP agent scheduler support for BigSwitch plugin
Kevin Benton [Tue, 29 Oct 2013 06:06:42 +0000 (23:06 -0700)]
DHCP agent scheduler support for BigSwitch plugin

Adds support for the Neutron DHCP agent scheduler to the BigSwitch
plugin to support multiple neutron DHCP agents.

Implements: blueprint bsn-dhcp-agent-scheduler
Change-Id: I629ce73c0b97c2409b37afb85639282a116560b7

11 years agoFix segment range in N1KV test to remove overlap
Kevin Benton [Tue, 5 Nov 2013 02:00:44 +0000 (18:00 -0800)]
Fix segment range in N1KV test to remove overlap

Adjusts a segment range in an N1KV unit test so
it doesn't overlap with a segment range in another
test that may be executed simultaneously.

Closes-Bug: #1248377
Change-Id: I84a15a2c772f01d7be7ba91aa86de09b934ef5e9

11 years agoMerge "Fix query error on dhcp release port for postgresql"
Jenkins [Fri, 1 Nov 2013 19:37:37 +0000 (19:37 +0000)]
Merge "Fix query error on dhcp release port for postgresql"

11 years agoMerge "sync log from oslo"
Jenkins [Fri, 1 Nov 2013 12:29:00 +0000 (12:29 +0000)]
Merge "sync log from oslo"

11 years agoFix query error on dhcp release port for postgresql
Armando Migliaccio [Thu, 31 Oct 2013 14:55:30 +0000 (07:55 -0700)]
Fix query error on dhcp release port for postgresql

This is achieved by disabling eager loading and
hence by avoiding incurring in left outer joins
that cannot be applied because of a nullable
side.

Closes-bug: #1246788

Change-Id: I16bcc738a43609f715c2561413c6387f443bd99c

11 years agoMerge "Avoid dhcp agent race condition on subnet and network delete"
Jenkins [Thu, 31 Oct 2013 09:19:56 +0000 (09:19 +0000)]
Merge "Avoid dhcp agent race condition on subnet and network delete"

11 years agosync log from oslo
Chang Bo Guo [Thu, 31 Oct 2013 05:10:34 +0000 (22:10 -0700)]
sync log from oslo

5fef5a8105 allow keeping of existing loggers with fileConfig
fb8075a19d Add amqp=WARN,qpid=WARN to default_log_levels
4654a5d247 Don't override default value for eventlet.wsgi.server logging
41ddd7a975 _get_log_file_path explictly return, when logfile/logdire unset
e12e6b45f8 Make openstack.common.log Python 3 compatible
572cfecb4d Make Messages unicode before hitting logging
3243cdfbe9 python3: handle module moves in log

DocImpact

Change-Id: I63e21a4fbcc633e68a37a549508f971ac0704a6f

11 years agoMerge "Creates multiple worker processes for API server"
Jenkins [Thu, 31 Oct 2013 01:39:19 +0000 (01:39 +0000)]
Merge "Creates multiple worker processes for API server"

11 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 30 Oct 2013 06:35:14 +0000 (06:35 +0000)]
Imported Translations from Transifex

Change-Id: Ib0481b92221f1bb398d7888cb3da68d8a824c5f7

11 years agoMerge "Fix required enum's name in migration"
Jenkins [Tue, 29 Oct 2013 09:45:46 +0000 (09:45 +0000)]
Merge "Fix required enum's name in migration"

11 years agoMerge "Modified configuration group name to lowercase"
Jenkins [Tue, 29 Oct 2013 09:28:19 +0000 (09:28 +0000)]
Merge "Modified configuration group name to lowercase"

11 years agoMerge "Fix incorrect indentations found by Pep 1.4.6+"
Jenkins [Mon, 28 Oct 2013 22:04:19 +0000 (22:04 +0000)]
Merge "Fix incorrect indentations found by Pep 1.4.6+"

11 years agoModified configuration group name to lowercase
Sridhar S [Wed, 23 Oct 2013 10:33:40 +0000 (16:03 +0530)]
Modified configuration group name to lowercase

Most of the OpenStack project makes use of lower case for
configuration group names. But, 'neutron' was having group
names in either cases. Bug states it is fine to have group
name in upper case for [DEFAULT] but needs to be changed
for others. It was noted that [PLUMgridDirector] was having
characters.

Change-Id: I95f2dad6d5ae17f722202f4917b6ef460cd41e15
Closes-Bug: #1176683

11 years agoMerge "Fix error while creating l2 gateway services in nvp"
Jenkins [Sun, 27 Oct 2013 23:16:38 +0000 (23:16 +0000)]
Merge "Fix error while creating l2 gateway services in nvp"

11 years agoMerge "LBaaS: Fix incorrect pool status change"
Jenkins [Sun, 27 Oct 2013 07:47:12 +0000 (07:47 +0000)]
Merge "LBaaS: Fix incorrect pool status change"

11 years agoMerge "Ensure OVS plugin is loaded in OVS plugin test"
Jenkins [Sat, 26 Oct 2013 21:44:12 +0000 (21:44 +0000)]
Merge "Ensure OVS plugin is loaded in OVS plugin test"

11 years agoAvoid dhcp agent race condition on subnet and network delete
armando-migliaccio [Sat, 28 Sep 2013 01:38:16 +0000 (18:38 -0700)]
Avoid dhcp agent race condition on subnet and network delete

This patch ensures that, when the dhcp agent queries the server
to retrieve and delete its DHCP port, it does so by selecting
for update. This has been done by introducing a new method
that combines the get and delete in one shot.

Closes-Bug:1197627

Change-Id: I1e8a87d7dc1a1cb9309aeefd41619e20f49f95a6

11 years agoMerge "NVP: Correct NVP router port mac to match neutron"
Jenkins [Sat, 26 Oct 2013 16:41:42 +0000 (16:41 +0000)]
Merge "NVP: Correct NVP router port mac to match neutron"

11 years agoEnsure OVS plugin is loaded in OVS plugin test
Akihiro MOTOKI [Fri, 18 Oct 2013 06:09:29 +0000 (15:09 +0900)]
Ensure OVS plugin is loaded in OVS plugin test

In TestOpenvswitchSGServerRpcCallBack and NetworkBindingsTest
in OVS plugin tests, OVS plugin was not loaded properly.

* For NetworkBindingsTest, it can be fixed by changing setUp()
  to take 'plugin' arguments in the base test classes
  SecurityGroupDBTestCase and SGServerRpcCallBackMixinTestCase.
  This fixes bug 1242510 in ML2 unit tests.

* For NetworkBindingsTest, it can be fixed by passing the plugin
  class to super.setUp(). The test itself needs to be updated
  because network binding is added when a network is created.

* NetworkBindingsTest in Linux Bridge plugin has the same issue,
  so it is also fixed in this patch.

Closes-Bug: #1230083
Closes-Bug: #1242510
Change-Id: I914876225480585d822748c188e9b69d1adf46f3

11 years agoRemove deprecated fields in keystone auth middleware
Akihiro MOTOKI [Sat, 26 Oct 2013 06:22:45 +0000 (15:22 +0900)]
Remove deprecated fields in keystone auth middleware

This commit makes the following changes:

Use X_PROJECT_ID instead of X_TENANT_ID:
  In the latest keystone auth_token middleware it is recommended to
  use X_PROJECT_ID instead of X_TENANT_ID. X_PROJECT_ID is supported
  in auth_token middleware for both keystone v2 and v3 API.
  The corresponding change was done in keystoneclient before Grizzly
  release, so we don't need to take care of X_TENANT_ID now.

USE X_ROLES instead of X_ROLE:
  X_ROLES is now recommended.
  X_ROLE exists just for diablo backward compatibility.

Remove X_TENANT and X_USER:
  X_TENANT and X_USER are for diablo backward compatibility.
  We no longer need take care of them in Icehouse Neutron.

Change-Id: Ie714b1323ff8c44dbee66b54e683226cf675b104
Closes-Bug: #1242447

11 years agoMerge "Utilizes assertIsNone and assertIsNotNone"
Jenkins [Sat, 26 Oct 2013 01:37:25 +0000 (01:37 +0000)]
Merge "Utilizes assertIsNone and assertIsNotNone"

11 years agoFix error while creating l2 gateway services in nvp
armando-migliaccio [Thu, 24 Oct 2013 15:17:17 +0000 (08:17 -0700)]
Fix error while creating l2 gateway services in nvp

Ensure that Conflict errors are not masked; also ensure
that coding errors do not mask NVP API errors.

Fixes bug #1244259

Change-Id: I27586d72af89fd39f6443dbab33f0e4e762b0c99

11 years agoMerge "Removing workflows from the Radware driver code"
Jenkins [Fri, 25 Oct 2013 21:38:22 +0000 (21:38 +0000)]
Merge "Removing workflows from the Radware driver code"

11 years agoMerge "fix nvp version validation for distributed router creation"
Jenkins [Fri, 25 Oct 2013 21:32:01 +0000 (21:32 +0000)]
Merge "fix nvp version validation for distributed router creation"

11 years agoMerge "Make test_nvp_sync.SyncLoopingCallTestCase reliable"
Jenkins [Fri, 25 Oct 2013 21:14:13 +0000 (21:14 +0000)]
Merge "Make test_nvp_sync.SyncLoopingCallTestCase reliable"

11 years agoMerge "Fix a copy&paste typo"
Jenkins [Fri, 25 Oct 2013 21:14:03 +0000 (21:14 +0000)]
Merge "Fix a copy&paste typo"

11 years agoMerge "Remove uneeded variable AGENT_NAME"
Jenkins [Fri, 25 Oct 2013 21:13:13 +0000 (21:13 +0000)]
Merge "Remove uneeded variable AGENT_NAME"

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Fri, 25 Oct 2013 19:57:11 +0000 (19:57 +0000)]
Merge "Imported Translations from Transifex"

11 years agoMerge "Fix update_device_up method of linuxbridge plugin"
Jenkins [Fri, 25 Oct 2013 19:49:27 +0000 (19:49 +0000)]
Merge "Fix update_device_up method of linuxbridge plugin"

11 years agoMerge "Enable one disabled tests in NEC plugin that blocked by 1229954"
Jenkins [Fri, 25 Oct 2013 18:56:40 +0000 (18:56 +0000)]
Merge "Enable one disabled tests in NEC plugin that blocked by 1229954"

11 years agoFix update_device_up method of linuxbridge plugin
Eugene Nikanorov [Sat, 19 Oct 2013 12:06:03 +0000 (16:06 +0400)]
Fix update_device_up method of linuxbridge plugin

Also add unit tests covering update_device_up and update_device_down
methods

Change-Id: I97f2f9249b684aa5350b3f0621754543e80bec70
Closes-Bug: #1241602

11 years agoLBaaS: Fix incorrect pool status change
Eugene Nikanorov [Tue, 22 Oct 2013 13:49:00 +0000 (17:49 +0400)]
LBaaS: Fix incorrect pool status change

Avoid incorrect status change when deleting the pool.
We can check for the conditions prior putting the pool
to PENDING_DELETE state, in case delete conditions are met
it is safe to change the state to PENDING_DELETE.
Also, change create_vip and update_vip operations to respect
PENDING_DELETE and avoid race conditions.

Change-Id: I9f526901eb85bdb83cf4ff8131460eb592c900f8
Closes-Bug: #1242338

11 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 25 Oct 2013 06:35:53 +0000 (06:35 +0000)]
Imported Translations from Transifex

Change-Id: Ibf9a7c3cdf6725807a2a3183937f0d8e99273744

11 years agoMerge "Handle 405 error codes correctly in NVP plugin"
Jenkins [Fri, 25 Oct 2013 02:57:16 +0000 (02:57 +0000)]
Merge "Handle 405 error codes correctly in NVP plugin"

11 years agoMerge "Fix argument mismatch failure for neutron-check-nvp-config"
Jenkins [Fri, 25 Oct 2013 02:46:36 +0000 (02:46 +0000)]
Merge "Fix argument mismatch failure for neutron-check-nvp-config"

11 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Fri, 25 Oct 2013 02:46:27 +0000 (02:46 +0000)]
Merge "Updated from global requirements"

11 years agoMerge "Fix TypeError: <MagicMock name='LinuxBridgeManager().local_ip'"
Jenkins [Fri, 25 Oct 2013 02:42:08 +0000 (02:42 +0000)]
Merge "Fix TypeError: <MagicMock name='LinuxBridgeManager().local_ip'"

11 years agoNVP: Correct NVP router port mac to match neutron
Aaron Rosen [Fri, 25 Oct 2013 00:22:56 +0000 (17:22 -0700)]
NVP: Correct NVP router port mac to match neutron

Previously when router ports were created the mac_address from neutron
was not passed to nvp so nvp generated it's own mac_address for the port.
This patch fixes this by passing the mac_address on the port to nvp.

Fixes bug: 1244481

Change-Id: I0d0e068923497a13915749f3781d54194cfcfe89

11 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 24 Oct 2013 18:19:50 +0000 (18:19 +0000)]
Merge "Imported Translations from Transifex"

11 years agoUpdated from global requirements
OpenStack Jenkins [Thu, 24 Oct 2013 13:16:21 +0000 (13:16 +0000)]
Updated from global requirements

Change-Id: Ifbcffab245f7dee50f5a84489011e220a3f8fea8

11 years agoRemoving workflows from the Radware driver code
Avishay Balderman [Tue, 15 Oct 2013 16:35:55 +0000 (18:35 +0200)]
Removing workflows from the Radware driver code

Removing workflows handling from the driver code.
Removing workflow related files
Modifying tests to support new behavior

Change-Id: Icbb6106db07e5b33c37192aa53d088e67bd4a795
Closes-bug: #1239288

11 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 24 Oct 2013 06:35:52 +0000 (06:35 +0000)]
Imported Translations from Transifex

Change-Id: Iacabec05e369340634cd36231d4e2ced64e0543c

11 years agochange assertEquals to assertEqual
Christian Berendt [Thu, 24 Oct 2013 05:34:40 +0000 (07:34 +0200)]
change assertEquals to assertEqual

According to http://docs.python.org/2/library/unittest.html
assertEquals is a deprecated alias of assertEqual.

Change-Id: I4030e9f9b184af60eb9253b3a1d7e1cc929d502d

11 years agoFix TypeError: <MagicMock name='LinuxBridgeManager().local_ip'
Aaron Rosen [Tue, 22 Oct 2013 22:33:45 +0000 (15:33 -0700)]
Fix TypeError: <MagicMock name='LinuxBridgeManager().local_ip'

This patch fixes an error that does not result in a test failure but
causes the following error to be logged in the test logs:

TypeError: <MagicMock name='LinuxBridgeManager().local_ip' id='666599248'>
is not JSON serializable

Related-Bug: #1234857

Change-Id: I65cdd997745d8b760031f8f32e3c10682ad2288e

11 years agoMerge "Spawn arping in thread to speed-up floating IP"
Jenkins [Wed, 23 Oct 2013 21:23:38 +0000 (21:23 +0000)]
Merge "Spawn arping in thread to speed-up floating IP"

11 years agoFix argument mismatch failure for neutron-check-nvp-config
armando-migliaccio [Wed, 23 Oct 2013 19:13:39 +0000 (12:13 -0700)]
Fix argument mismatch failure for neutron-check-nvp-config

Use sys.argv directly.

Fix bug #1243888

Change-Id: I9cb6ca841d004baf72dd68e44be673c361c2ed05

11 years agofix nvp version validation for distributed router creation
armando-migliaccio [Wed, 23 Oct 2013 18:20:01 +0000 (11:20 -0700)]
fix nvp version validation for distributed router creation

Fix typo on major version. This was not caught during unit tests
so adds a few to ensure this does not regress.

Fix bug #1243862

Change-Id: Ie136aaa504939d8ac77dda07e3f955aed8c233f9

11 years agoHandle 405 error codes correctly in NVP plugin
armando-migliaccio [Tue, 22 Oct 2013 21:08:59 +0000 (14:08 -0700)]
Handle 405 error codes correctly in NVP plugin

When NVP returns a 405 error code no exception is
raised, causing the plugin to assume that everything
went well when it didn't.

Fixes bug #1243411

Change-Id: If70db05b8c6950bfa88a36c4f0c20ee80419d31d

11 years agoFix required enum's name in migration
Ann Kamyshnikova [Wed, 23 Oct 2013 11:58:35 +0000 (15:58 +0400)]
Fix required enum's name in migration

Enums must contain name parameter for PostgreSQL and need to be
deleted after dropping table.

Closes-Bug: #1243652
Closes-Bug: #1243213

Change-Id: I01d18ff25572bbe9e6a8b8c6ae27f250ab154734

11 years agoUtilizes assertIsNone and assertIsNotNone
Zhongyue Luo [Wed, 9 Oct 2013 01:44:01 +0000 (09:44 +0800)]
Utilizes assertIsNone and assertIsNotNone

Using assertEqual/assertNotEqual to test if an element
is or is not None is too python2.4.
Our unit testing framework supports assertIsNone and assertIsNotNone
which were created for these types of tests.

Partial-bug: #1230028

Change-Id: Ie0bddae642f7973ee8b0e00164415f8d87de387e

11 years agoSupport uncompressed ipv6 address and abbreviated ipv4 address
zhhuabj [Thu, 17 Oct 2013 14:58:48 +0000 (22:58 +0800)]
Support uncompressed ipv6 address and abbreviated ipv4 address

Now neutron supports zero-compressed ipv6 address like
'2001:db8::10:10:10:0/120' and unabbreviated ipv4 address
like '10.0.0.0/24'.
This path will make neutron also support uncompressed ipv6
address and abbreviated ipv4 address. for example:
1, uncompressed ipv6 address like 'fe80:0:0:0:0:0:0:0/128'
2, ipv6 address with multiple consecutive zero like
   '2001:0db8:0:0:1::1/128' or '2001::0:1:0:0:1100/120'
3, abbreviated ipv4 address like '10/24'

Change-Id: I755e38ea11c139e15488ec60e7d5682a244ab114
Closes-Bug: #1240790

11 years agoRemove uneeded variable AGENT_NAME
Aaron Rosen [Fri, 18 Oct 2013 22:36:58 +0000 (15:36 -0700)]
Remove uneeded variable AGENT_NAME

Fixes bug: 1243464

Change-Id: I833dd64e98c679c050aa958576c7726bfa15cc8e

11 years agoMerge "change NetworkVxlanPortRangeError to base NeutronException"
Jenkins [Tue, 22 Oct 2013 19:52:30 +0000 (19:52 +0000)]
Merge "change NetworkVxlanPortRangeError to base NeutronException"

11 years agoMerge "Update send_arp_for_ha default in l3_agent.ini"
Jenkins [Tue, 22 Oct 2013 18:51:56 +0000 (18:51 +0000)]
Merge "Update send_arp_for_ha default in l3_agent.ini"