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

10 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"

10 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"

10 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

10 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"

10 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"

10 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+"

10 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

10 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"

10 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"

10 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"

10 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

10 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"

10 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

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

10 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

10 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"

10 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"

10 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"

10 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"

10 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"

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

10 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"

10 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"

10 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

10 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

10 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

10 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"

10 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"

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

10 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'"

10 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

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

10 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

10 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

10 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

10 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

10 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

10 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"

10 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

10 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

10 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

10 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

10 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

10 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

10 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"

10 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"

10 years agoUpdate send_arp_for_ha default in l3_agent.ini
Darragh O'Reilly [Mon, 21 Oct 2013 17:09:28 +0000 (17:09 +0000)]
Update send_arp_for_ha default in l3_agent.ini

The default for send_arp_for_ha was 3 and is now 0.
This patch changes the comment in l3_agent.ini to
show the new default.

Change-Id: I77370350ffee6ad7b94aa7db341c062ebc0b7d89

10 years agochange NetworkVxlanPortRangeError to base NeutronException
Yong Sheng Gong [Mon, 21 Oct 2013 15:34:53 +0000 (23:34 +0800)]
change NetworkVxlanPortRangeError to base NeutronException

Closes-Bug #1242756

Change-Id: I902fa12795cda5ca70defaeb3b6959e3a0824565

10 years agochange seld into self
Yong Sheng Gong [Mon, 21 Oct 2013 15:15:46 +0000 (23:15 +0800)]
change seld into self

Closes-Bug #1242745

Change-Id: If5cc2864dc966eacd4cf30757fd1de15d9992629

10 years agoFix a copy&paste typo
Francois Deppierraz [Sun, 20 Oct 2013 11:52:14 +0000 (13:52 +0200)]
Fix a copy&paste typo

Change-Id: I970d3cd51f83c963b04e24294e982a0807d1c1c3

10 years agoMerge "Fix lb doesn't remove vxlan int. if no int. map"
Jenkins [Sat, 19 Oct 2013 21:17:33 +0000 (21:17 +0000)]
Merge "Fix lb doesn't remove vxlan int. if no int. map"

10 years agoMerge "Add error log for SystemExit in dhcp-agent"
Jenkins [Sat, 19 Oct 2013 20:04:46 +0000 (20:04 +0000)]
Merge "Add error log for SystemExit in dhcp-agent"

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Sat, 19 Oct 2013 19:36:44 +0000 (19:36 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Fix to not send fdb updates when no port changes"
Jenkins [Sat, 19 Oct 2013 19:21:07 +0000 (19:21 +0000)]
Merge "Fix to not send fdb updates when no port changes"

10 years agoUpdated from global requirements
OpenStack Jenkins [Sat, 19 Oct 2013 15:38:27 +0000 (15:38 +0000)]
Updated from global requirements

Change-Id: Ica7315effe308bd739e90f885849fac27a3c542b

10 years agoMake test_nvp_sync.SyncLoopingCallTestCase reliable
Salvatore Orlando [Sat, 19 Oct 2013 09:06:37 +0000 (02:06 -0700)]
Make test_nvp_sync.SyncLoopingCallTestCase reliable

This patch removes the previous check that verified the mocked
looping call had an exact number of calls, and replaces it with a
simpler check that just verifies that the mock has been called.

As a consequence, this patch also shortens the test duration.

Closes-Bug: 1241969

Change-Id: Ia7bc66e1f2f631e46ddcbe0eacc1d5b2481274cb

10 years agoFix incorrect indentations found by Pep 1.4.6+
Dirk Mueller [Sat, 19 Oct 2013 08:50:16 +0000 (10:50 +0200)]
Fix incorrect indentations found by Pep 1.4.6+

Pep 1.4.5 had several bugs with checking indentation of
hanging and nested sets. Fix fallout.

Change-Id: Ibcb1679e0bd283feb3c1568ba214bc525575fd43

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 19 Oct 2013 06:34:33 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: If712213da453f2263b7c5f7fec5bf9f644f5b70a

10 years agoFix to not send fdb updates when no port changes
Sylvain Afchain [Fri, 18 Oct 2013 23:12:58 +0000 (01:12 +0200)]
Fix to not send fdb updates when no port changes

Fixes bug: 1241874
Change-Id: Ibba11db0d7972dfba819347f7cb1397e1d34f218

10 years agoMerge "avoid changing the rule's own action"
Jenkins [Fri, 18 Oct 2013 13:39:49 +0000 (13:39 +0000)]
Merge "avoid changing the rule's own action"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 18 Oct 2013 06:34:11 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: I682bf1fe6796b7bf894dc6e2968fe424b08178ff

10 years agoMerge "Set wsgi logger to use __name__"
Jenkins [Fri, 18 Oct 2013 04:42:51 +0000 (04:42 +0000)]
Merge "Set wsgi logger to use __name__"

10 years agoMerge "Fix L2pop to not send updates for unrelated networks"
Jenkins [Fri, 18 Oct 2013 01:41:19 +0000 (01:41 +0000)]
Merge "Fix L2pop to not send updates for unrelated networks"

10 years agoMerge "nvp:log only in rm router iface if port not found"
Jenkins [Fri, 18 Oct 2013 00:03:33 +0000 (00:03 +0000)]
Merge "nvp:log only in rm router iface if port not found"

10 years agoDetect and process live-migration in Cisco plugin
Baodong Li [Tue, 8 Oct 2013 15:19:32 +0000 (15:19 +0000)]
Detect and process live-migration in Cisco plugin

With Cisco/Nexus plugin, migration is not fully supported. Logic to detect
port binding change needs to be added in update_port(), and provisioning of
nexus switch(es) should be done accordingly

added test code for update_port() in the model layer and the db layer

Closes-Bug: #1229217

Change-Id: I2bd76030711c9d15462e91da9e4c0836a424834f

10 years agoSpawn arping in thread to speed-up floating IP
Brian Haley [Fri, 27 Sep 2013 14:57:40 +0000 (10:57 -0400)]
Spawn arping in thread to speed-up floating IP

Change _send_gratuitous_arp_packet() to spawn a thread to call
arping after a floating IP is assigned.  This way it doesn't
stall _process_routers() from returning quickly due to calling
pool.waitall().

Fixes Bug: 1233391

Change-Id: Id1f5eb75c222ba6a0935a294e3973292f50d0559

10 years agonvp:log only in rm router iface if port not found
Salvatore Orlando [Wed, 16 Oct 2013 22:11:34 +0000 (15:11 -0700)]
nvp:log only in rm router iface if port not found

The code currently raises when it's not able to find the port to be
deleted on the backend. This might happen, for instance, when the
port is manually removed or, in some cases, if port creation failed
in the first place.

There's little sense in raising when a resource to be removed is not
found; therefore this patch replaces the raise statement with a log
statement.

Bug 1240720

Change-Id: Ifa756b07ef41346a44325341c8e0e8994dc64dde

10 years agoavoid changing the rule's own action
Yong Sheng Gong [Thu, 17 Oct 2013 05:54:25 +0000 (13:54 +0800)]
avoid changing the rule's own action

fixes Bug #1240812

When iterating through the rule list, we should not change the rule itself.
So that we can use the rule data for the second router.

Change-Id: I613438507949007bec41416e7f8530693e4d5129

10 years agoFix L2pop to not send updates for unrelated networks
Sylvain Afchain [Wed, 16 Oct 2013 21:28:44 +0000 (23:28 +0200)]
Fix L2pop to not send updates for unrelated networks

With this patch L2 population mechanism driver
sends updates only with ports related to the
network id of the port which is being updated.

Fixes bug: 1240744
Change-Id: If7d51ce26bf0d0837a00da07fe85f48d55e681c6

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 17 Oct 2013 06:34:13 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Ide68c511286feddf695153369c8bed007c528932

10 years agoFix lb doesn't remove vxlan int. if no int. map
Sylvain Afchain [Thu, 17 Oct 2013 00:16:15 +0000 (02:16 +0200)]
Fix lb doesn't remove vxlan int. if no int. map

LinuxBridge agent doesn't remove vxlan interfaces
if interface_mappings is not set.

Fixes bug: 1240742
Change-Id: I163f1ac8cbd46b8d8836152e2be8cb7608a8ca22

10 years agoMerge "Cleanup and make HACKING.rst DRYer"
Jenkins [Wed, 16 Oct 2013 17:17:12 +0000 (17:17 +0000)]
Merge "Cleanup and make HACKING.rst DRYer"

10 years agoMerge "Update Cisco N1KV plugin to VSM REST api calls"
Jenkins [Wed, 16 Oct 2013 15:42:47 +0000 (15:42 +0000)]
Merge "Update Cisco N1KV plugin to VSM REST api calls"

10 years agoMerge "Fix IP recycling on exhausted pool"
Jenkins [Wed, 16 Oct 2013 15:42:35 +0000 (15:42 +0000)]
Merge "Fix IP recycling on exhausted pool"

10 years agoMerge "use proxy mode on vxlan interface only when l2-population is activated"
Jenkins [Wed, 16 Oct 2013 15:31:21 +0000 (15:31 +0000)]
Merge "use proxy mode on vxlan interface only when l2-population is activated"

10 years agoFix IP recycling on exhausted pool
Salvatore Orlando [Wed, 16 Oct 2013 10:14:16 +0000 (03:14 -0700)]
Fix IP recycling on exhausted pool

When recycling an IP, allocation pools are loaded with an inner
join with ip avaiblity ranges. However, if the pool is exhausted,
there will be no availability ranges and the query will return
no results because of the inner join. It will therefore be
impossible to reuse IP addresses once the pool has been exhausted.

This patch tries to reload allocation pools without joining on
IP avaiability ranges if the first query did not return any result.
Replacing an inner join with an outer join will not be possible
as postgresql backend does not support 'SELECT ... FOR UPDATE' with
outer joins (for more info see bug 1215350).

The patch also contains unit tests for verifying IP are recycled
correctly even when the pool is exhausted.

Bug 1240353

Change-Id: I87f274bd759cb47be77717f0760d3704f9f34ade

10 years agoCleanup and make HACKING.rst DRYer
Keshava Bharadwaj [Wed, 16 Oct 2013 11:00:23 +0000 (16:30 +0530)]
Cleanup and make HACKING.rst DRYer

Reference the OpenStack hacking guide in HACKING.rst and remove
duplicate entries. Adds placeholder section for neutron specific
rules.

Change-Id: I4bfbab50b77e7592178dda44c7f4f52edc7fdc21

10 years agoMerge "Add port bindings to ports created in Midonet"
Jenkins [Wed, 16 Oct 2013 05:45:59 +0000 (05:45 +0000)]
Merge "Add port bindings to ports created in Midonet"

10 years agoMerge "Handle VLAN interfaces with Linux IP wrapper"
Jenkins [Wed, 16 Oct 2013 03:43:13 +0000 (03:43 +0000)]
Merge "Handle VLAN interfaces with Linux IP wrapper"

10 years agoMerge "Removing rpc communication from db transaction"
Jenkins [Wed, 16 Oct 2013 02:59:39 +0000 (02:59 +0000)]
Merge "Removing rpc communication from db transaction"

10 years agoUpdate Cisco N1KV plugin to VSM REST api calls
Abhishek Raut [Thu, 3 Oct 2013 06:32:02 +0000 (23:32 -0700)]
Update Cisco N1KV plugin to VSM REST api calls

Modify the existing REST calls from the plugin to VSM to update the
attributes and use UUIDs as index, instead of string names, for all
the resources.

Change-Id: Icb4950ea7c6f036e9a25ee79e3f5fe30d40f47de
Closes-Bug: 1233802

10 years agoSet wsgi logger to use __name__
Joe Gordon [Tue, 15 Oct 2013 01:46:14 +0000 (18:46 -0700)]
Set wsgi logger to use __name__

Although underneath this is the eventlet.wsgi.server server, Other
OpenStack projects, don't use that logger instead they use there own.

This will also mean the wsgi server will stop logging on just the
warning level.  We want wsgi server to at least log on info level
so it will log when a request is processed and what the return code is.

Change-Id: I96fd73b84b4550f85ad96030fea815376901813a

10 years agoMerge "Fix access to lifetime dict in update_ipsecpolicy method"
Jenkins [Tue, 15 Oct 2013 20:40:39 +0000 (20:40 +0000)]
Merge "Fix access to lifetime dict in update_ipsecpolicy method"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 15 Oct 2013 18:06:24 +0000 (18:06 +0000)]
Merge "Imported Translations from Transifex"

10 years agoHandle VLAN interfaces with Linux IP wrapper
Édouard Thuleau [Tue, 15 Oct 2013 15:41:32 +0000 (15:41 +0000)]
Handle VLAN interfaces with Linux IP wrapper

Check if the interface name contains '@' character and use the part
before that character as interface name.

Change-Id: I09eb52f4d41054a76fd140d3a3476c6cfe05226b
Closes-Bug: #1240125

10 years agoMerge "Avoid suppressing underlying error when deploy.loadapp fails"
Jenkins [Tue, 15 Oct 2013 15:15:45 +0000 (15:15 +0000)]
Merge "Avoid suppressing underlying error when deploy.loadapp fails"

10 years agoMerge "Add the option to minimize ovs l2 polling"
Jenkins [Tue, 15 Oct 2013 11:03:27 +0000 (11:03 +0000)]
Merge "Add the option to minimize ovs l2 polling"

10 years agoMerge "Improve ovs_lib bridge management"
Jenkins [Tue, 15 Oct 2013 11:00:34 +0000 (11:00 +0000)]
Merge "Improve ovs_lib bridge management"

10 years agoAdd error log for SystemExit in dhcp-agent
Hui HX Xiang [Sat, 12 Oct 2013 04:45:45 +0000 (21:45 -0700)]
Add error log for SystemExit in dhcp-agent

The SystemExit exception should be logged in dhcp-agent, the
operator may miss the useful exception messages to debug.

* Add error log for SystemExit in dhcp-agent.
* Add addCleanup(mock.patch.stopall) in setup()
* Remove teardown()
* Add unit test for None and nonexistent interface_driver.

Closes-Bug #1239030

Change-Id: I01bef69adecaaf8d8a919034d33c60a43e4469a7

10 years agoRemoving rpc communication from db transaction
Jakub Libosvar [Thu, 3 Oct 2013 17:45:09 +0000 (19:45 +0200)]
Removing rpc communication from db transaction

In a transaction context of ExtraRoute_db_mixin.update_router() was
called super method that uses subtransaction and communication with l3
agent. In case of agent's heartbeat happens while there is running
transaction, update heartbeat in agents table gets stuck in a deadlock.

Closes-Bug: #1211915
Change-Id: I96e6a9d7172d5a0e3e720a81fcd10f04c40aef07

10 years agoAdd port bindings to ports created in Midonet
Joe Mills [Thu, 3 Oct 2013 16:55:18 +0000 (01:55 +0900)]
Add port bindings to ports created in Midonet

Currently Midokura uses its own script (mm-ctl) to bind ports. However, support
for using this script is left out of the nova and neutron projects. This causes
confusion and makes deployments unnecessarily complicated for customers using
Havana. This fix is to change Neutron to properly set up port bindings to use
the "midonet" vif driver when creating a port. Corresponding changes will be
submitted to the devstack and Nova projects.

Change-Id: I91f2e4fe7135da0c22fb408081efdc63fff748df
Closes-Bug: 1235134

10 years agoMerge "Remove obsolete redhat-eventlet.patch"
Jenkins [Tue, 15 Oct 2013 08:11:11 +0000 (08:11 +0000)]
Merge "Remove obsolete redhat-eventlet.patch"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 15 Oct 2013 06:34:31 +0000 (06:34 +0000)]
Imported Translations from Transifex

Change-Id: Iff70e2ff357cea655ec8ccf0374540db9ee47668

10 years agoEnable one disabled tests in NEC plugin that blocked by 1229954
zhhuabj [Tue, 15 Oct 2013 05:55:13 +0000 (13:55 +0800)]
Enable one disabled tests in NEC plugin that blocked by 1229954

Enable the disabled tests in NEC plugin that blocked by 1229954
https://github.com/openstack/neutron/blob/master/neutron
/tests/unit/nec/test_security_group.py#L64

Change-Id: Id15c5b431773d05f13201cdcd126ff2fa9f6aa06
Related-Bug: #1229954

10 years agoUpdating address pairs with xml doesn't work
zhhuabj [Sat, 12 Oct 2013 09:31:38 +0000 (17:31 +0800)]
Updating address pairs with xml doesn't work

Below command can't work because list element
"allowed_address_pairs" hasn't been updated
into the varaiable "attr.PLURALS"
"neutron port-update <port-uuid> \
--allowed-address-pairs list=true type=dict \
ip_address=10.0.0.1 --request-format xml"

Change-Id: I0d7dcca5f4848bc968f5c86fbeb46569c70c8fcd
Closes-Bug: #1229954

10 years agoAdd the option to minimize ovs l2 polling
Maru Newby [Mon, 9 Sep 2013 10:06:49 +0000 (10:06 +0000)]
Add the option to minimize ovs l2 polling

This change adds the ability to monitor the local ovsdb for
interface changes so that the l2 agent can avoid unnecessary
polling.  Minimal changes are made to the agent so the risk
of breakage should be low.  Future efforts to make the agent
entirely event-based may be able to use OvsdbMonitor as a
starting point.

By default polling minimization is not done, and can only be
enabled by setting 'minimize_polling = True' in the ovs
section of the l2 agent's config file.

Closes-Bug: #1177973

Change-Id: I26c035b48a74df2148696869c5a9affae5ab3d27

10 years agoMerge "Add support for managing async processes"
Jenkins [Mon, 14 Oct 2013 22:18:49 +0000 (22:18 +0000)]
Merge "Add support for managing async processes"

10 years agoImprove ovs_lib bridge management
Maru Newby [Mon, 9 Sep 2013 09:58:12 +0000 (09:58 +0000)]
Improve ovs_lib bridge management

Add the ability to add and remove bridges, check for bridge
existence, and lookup the bridge associated with a port.

This change is in support of functional testing for an ovsdb
monitor.

Partial-Bug: #1177973

Change-Id: I419923d8d77983997cd347fcf063b0bc367c0bbc

10 years agoAvoid suppressing underlying error when deploy.loadapp fails
armando-migliaccio [Mon, 14 Oct 2013 19:37:24 +0000 (12:37 -0700)]
Avoid suppressing underlying error when deploy.loadapp fails

Raise log level at the first load attempt. If there is a
fundamental problem with the environment, a Lookup error
is not helpful in troubleshooting the problem further.

Fix bug 1210236

Change-Id: I55aa11a0e5a37dbef3f0c1b55aa4c9c11bbf55d9