]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Correctly inherit __table_args__ from parent class" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:11:21 +0000 (00:11 +0000)]
Merge "Correctly inherit __table_args__ from parent class" into milestone-proposed

10 years agoMerge "Add a note that rpc_workers option is experimental" into milestone-proposed
Jenkins [Wed, 9 Apr 2014 00:08:11 +0000 (00:08 +0000)]
Merge "Add a note that rpc_workers option is experimental" into milestone-proposed

10 years agoMerge "Add L2 Agent side handling for non consistent security_group settings" into...
Jenkins [Tue, 8 Apr 2014 21:25:38 +0000 (21:25 +0000)]
Merge "Add L2 Agent side handling for non consistent security_group settings" into milestone-proposed

10 years agoCorrectly inherit __table_args__ from parent class
Darren Birkett [Thu, 6 Mar 2014 16:17:03 +0000 (16:17 +0000)]
Correctly inherit __table_args__ from parent class

Where unique constraints are added to certain tables by populating
__table_args__, we need to ensure we inherit the top level
__table_args__ that define the default storage engine to use when
creating tables.

Change-Id: Ib886b84922830b60282b4f882591e43f5041e713
Fixes: bug 1288358
(cherry picked from commit 72e37ddcd067432675543c8f4d327fe766bc8044)

10 years agoMerge "Delete routers that are requested but not reported as active" into milestone...
Jenkins [Tue, 8 Apr 2014 14:28:05 +0000 (14:28 +0000)]
Merge "Delete routers that are requested but not reported as active" into milestone-proposed

10 years agoAdd a note that rpc_workers option is experimental
Carl Baldwin [Thu, 3 Apr 2014 20:44:49 +0000 (20:44 +0000)]
Add a note that rpc_workers option is experimental

blueprint multiple-rpc-workers

Closes-Bug: 1304374
Change-Id: Id354b96fc591752e1e79b072997423b6447d5de9

10 years agoDelete routers that are requested but not reported as active
Carl Baldwin [Tue, 1 Apr 2014 22:02:17 +0000 (22:02 +0000)]
Delete routers that are requested but not reported as active

There are two cases that I can think of that result in a router being
requested but not reported as active.  One is that admin_state_up has
been set to False.  In this case, the router is never removed and
continues to be operational.

The other case is if a router is changed and then deleted before the
change is processed.  In this case, it is prudent to be sure that the
router is queued for deletion.

Change-Id: I4738f599a18f0d130cc8ad4d4dafc488eec75ffd
Closes-Bug: #1215387
(cherry picked from commit 9da60d0a417dd70c16ae34f5877c564e425e4cf8)

10 years agoFix _validate_mac_address method
Aaron Rosen [Sat, 15 Mar 2014 05:57:09 +0000 (22:57 -0700)]
Fix _validate_mac_address method

The method _validate_mac_address previously used: netaddr.EUI(data)
which would convert data passed in to the correct mac_address representation.
For example if data=123 it would return: EUI('00-00-00-00-00-7B'). To fix
this issue I used netaddr.valid_mac() instead which returns a bool if a mac is
valid or not and does not raise. Note this file needs some improvements to
improve how exception handling is done that will come later.

Change-Id: I4fb868e40abbad9e743028cc768f47ca9b3e0e70
Closes-bug: 1291163
(cherry picked from commit b9390333a146d0435710f85d365318268e267fc3)

10 years agoAdd L2 Agent side handling for non consistent security_group settings
Irena Berezovsky [Tue, 25 Mar 2014 07:30:17 +0000 (09:30 +0200)]
Add L2 Agent side handling for non consistent security_group settings

Add setting of the firewall_driver to NoopDriver when firewall_driver is None and
add warning if driver combination is not valid.
Modify is_valid_driver_combination to verify default settings: enable_security_group (True) and firewall_driver (None).

Change-Id: I841f9cf96ac6ee2ad17a4e8908d6c8a96f368cca
Closes-Bug: #1296957
(cherry picked from commit 5c6ff449bbd7386f0f3e41efc524024434f325df)

10 years agoFix wrong section name "security_group" in sample config files
Akihiro Motoki [Tue, 8 Apr 2014 01:31:06 +0000 (10:31 +0900)]
Fix wrong section name "security_group" in sample config files

The section name [security_group] in Sample config files of
ML2 and Big Switch plugins was wrong and it should be
[securitygroup].

Change-Id: I8204b2f37f96a5e46038e117853ac8637a9705fd
Closes-Bug: #1304105
(cherry picked from commit ec24d2cb3ac17a86ee5c4626c625131c10732143)

10 years agoMerge "Fix Jenkins translation jobs" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 15:11:58 +0000 (15:11 +0000)]
Merge "Fix Jenkins translation jobs" into milestone-proposed

10 years agoMerge "Updated from global requirements" into milestone-proposed
OpenStack Jenkins [Mon, 7 Apr 2014 10:06:37 +0000 (10:06 +0000)]
Merge "Updated from global requirements" into milestone-proposed

10 years agoFix Jenkins translation jobs
Thierry Carrez [Mon, 7 Apr 2014 09:37:38 +0000 (11:37 +0200)]
Fix Jenkins translation jobs

The -propose-translation-update and -upstream-translation-update
jobs do not update from transifex since our po files contain
duplicate entries where obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the jobs.

Change-Id: I1ab0f23f5b1dc9a88636dab09fadb5d44008cf51
Closes-Bug: #1299349

10 years agoMerge "ML2: ODL driver sets port status" into milestone-proposed
Jenkins [Mon, 7 Apr 2014 09:31:06 +0000 (09:31 +0000)]
Merge "ML2: ODL driver sets port status" into milestone-proposed

10 years agoAdd missing comma in nsx router mappings migration
Henry Gessau [Sat, 5 Apr 2014 22:10:52 +0000 (18:10 -0400)]
Add missing comma in nsx router mappings migration

Change-Id: I85bcc9b7fe636f34dbdf6f8c3172352c8e586e2a
Closes-bug: #1303179
Related-bug: #1207402
(cherry picked from commit acae91475775a8c85598b1bfdc4910e5fe81ced9)

10 years agoML2: ODL driver sets port status
Robert Kukura [Thu, 3 Apr 2014 21:01:00 +0000 (17:01 -0400)]
ML2: ODL driver sets port status

The OpenDaylight mechanism driver does not depend on an L2 agent to
plug the port. Now that nova waits for notification that the port
status is ACTIVE, the ML2 driver API is extended so that the mechanism
driver that binds a port can optionally set the port status, and the
OpenDaylight mechanism driver uses this to set the port status to
ACTIVE.

Closes-Bug: 1301449
Change-Id: I171c405f36b4f2354d9585e8ae3dfa50ddaa9a7e
(cherry picked from commit a9e3074aa9f442c2fff1ba058ac8ed585c6caa24)

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 6 Apr 2014 14:22:16 +0000 (14:22 +0000)]
Updated from global requirements

Change-Id: I73c3798ede53e2c4d936f997d9a502e1b5cfa462

10 years agoMerge "Fix test MAC addresses to be valid" into milestone-proposed
Jenkins [Sun, 6 Apr 2014 05:13:57 +0000 (05:13 +0000)]
Merge "Fix test MAC addresses to be valid" into milestone-proposed

10 years agoMerge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 14:06:09 +0000 (14:06 +0000)]
Merge "Cisco VPN driver correct reporting for admin state chg" into milestone-proposed

10 years agoMerge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 07:10:43 +0000 (07:10 +0000)]
Merge "De-duplicate unit tests for ports in Big Switch" into milestone-proposed

10 years agoMerge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 03:15:25 +0000 (03:15 +0000)]
Merge "Add unit test for add_vxlan in test_linux_ip_lib" into milestone-proposed

10 years agoMerge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:25 +0000 (02:39 +0000)]
Merge "Add missing DB migrations for BSN ML2 plugin" into milestone-proposed

10 years agoMerge "Set ns_name in RouterInfo as attribute" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:39:15 +0000 (02:39 +0000)]
Merge "Set ns_name in RouterInfo as attribute" into milestone-proposed

10 years agoMerge "use floatingip's ID as key instead of itself" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:27:30 +0000 (02:27 +0000)]
Merge "use floatingip's ID as key instead of itself" into milestone-proposed

10 years agoMerge "fixes tests using called_once_ without assert" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 02:22:48 +0000 (02:22 +0000)]
Merge "fixes tests using called_once_ without assert" into milestone-proposed

10 years agoMerge "Only send notifications on uuid device_id's" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:31:24 +0000 (01:31 +0000)]
Merge "Only send notifications on uuid device_id's" into milestone-proposed

10 years agoMerge "NSX: Fix pagination support" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:16 +0000 (01:28 +0000)]
Merge "NSX: Fix pagination support" into milestone-proposed

10 years agoMerge "Update BigSwitch Name to its correct name" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:28:06 +0000 (01:28 +0000)]
Merge "Update BigSwitch Name to its correct name" into milestone-proposed

10 years agoMerge "Fixing Arista CLI command" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:49 +0000 (01:27 +0000)]
Merge "Fixing Arista CLI command" into milestone-proposed

10 years agoMerge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:39 +0000 (01:27 +0000)]
Merge "Stop using portbindings_db in BSN ML2 driver" into milestone-proposed

10 years agoMerge "Don't emit log for missing attribute check policy" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:29 +0000 (01:27 +0000)]
Merge "Don't emit log for missing attribute check policy" into milestone-proposed

10 years agoMerge "Fix function parsing the kernel version" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:18 +0000 (01:27 +0000)]
Merge "Fix function parsing the kernel version" into milestone-proposed

10 years agoMerge "Return 409 for second firewall creation" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:27:09 +0000 (01:27 +0000)]
Merge "Return 409 for second firewall creation" into milestone-proposed

10 years agoMerge "Redundant SG rule create calls in unit tests" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:59 +0000 (01:26 +0000)]
Merge "Redundant SG rule create calls in unit tests" into milestone-proposed

10 years agoMerge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:48 +0000 (01:26 +0000)]
Merge "NSX plugin: return 400 for invalid gw certificate" into milestone-proposed

10 years agoMerge "fixes broken neutron-netns-cleanup" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 01:26:39 +0000 (01:26 +0000)]
Merge "fixes broken neutron-netns-cleanup" into milestone-proposed

10 years agoMerge "Log configuration values for OFA agent" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:24:14 +0000 (00:24 +0000)]
Merge "Log configuration values for OFA agent" into milestone-proposed

10 years agoMerge "Changed the message line of RouterInUse class" into milestone-proposed
Jenkins [Sat, 5 Apr 2014 00:11:42 +0000 (00:11 +0000)]
Merge "Changed the message line of RouterInUse class" into milestone-proposed

10 years agoSet ns_name in RouterInfo as attribute
Jakub Libosvar [Thu, 3 Apr 2014 12:52:59 +0000 (14:52 +0200)]
Set ns_name in RouterInfo as attribute

Closes-Bug: #1302007
Change-Id: I02a9b92eea06010569d3d9c5a987e69f89b23be5
(cherry picked from commit ceee7b4ac9d027499dfd2568868f1192bfb77879)

10 years agouse floatingip's ID as key instead of itself
Yong Sheng Gong [Wed, 19 Mar 2014 08:14:33 +0000 (16:14 +0800)]
use floatingip's ID as key instead of itself

Change-Id: I267f174a0e2e611ec007404c7b44e2c73a359c38
Closes-Bug: 1294526
(cherry picked from commit 7120325d37df414d8de084c5b41fdfbea3a06565)

10 years agoDe-duplicate unit tests for ports in Big Switch
Kevin Benton [Thu, 20 Mar 2014 14:24:33 +0000 (07:24 -0700)]
De-duplicate unit tests for ports in Big Switch

This eliminates the separate classes that existed
for the VIF type testing. Each class was going
through all of the port tests when none of the
logic those tests were exercising was affected by
the VIF types.

This cut the number of tests run in test_restproxy_plugin
by close to 44% without a reduction in code coverage.

Closes-Bug: #1295448
Change-Id: I8c84e1599568fad36b6dd3d51e4ba8a3c012c6c5
(cherry picked from commit 913f45bc16dd2c35f7be772d5867f9208064498a)

10 years agoNSX: Fix pagination support
armando-migliaccio [Fri, 21 Mar 2014 21:48:19 +0000 (14:48 -0700)]
NSX: Fix pagination support

Add pagination support to the base plugin,
leaving the service plugin unaltered.

Minor tweaks to the UT where required to
avoid intermittent failures caused by random
ordering.

Closes-bug: 1295854

Change-Id: I03e9e104967716046909d6120426e879f714a5c8
(cherry picked from commit 16ce0ae2c2b50b4317cdb95e62246d805b3d76a9)

10 years agofixes tests using called_once_ without assert
Miguel Angel Ajo [Mon, 31 Mar 2014 13:50:55 +0000 (15:50 +0200)]
fixes tests using called_once_ without assert

A few tests were using mock's called_once, or called_once_with_args
instead of assert_called_once or assert_called_once_with_args. Those
methods return a bool that needs to be actively checked.

The tests are fixed to avoid them from passing if the call condition
is not met.

Change-Id: I21e5257b26b2a08cc8f0b108233d1d5cc0b97b89
Closes-bug: #1297875
(cherry picked from commit c6c4a20777921dc1b21e80edb96ccd957a054c68)

10 years agoAdd missing DB migrations for BSN ML2 plugin
Kevin Benton [Tue, 1 Apr 2014 02:58:31 +0000 (19:58 -0700)]
Add missing DB migrations for BSN ML2 plugin

Adds missing database migrations for the Big Switch
ML2 driver and plugin.

Closes-Bug: #1298459
Change-Id: I6a46a53e069353501d85c4c8400f98514d6f0162
(cherry picked from commit d3be7b040eaa61a4d0ac617026cf5c9132d3831e)

10 years agoUpdate BigSwitch Name to its correct name
Kanzhe Jiang [Fri, 28 Mar 2014 18:31:56 +0000 (11:31 -0700)]
Update BigSwitch Name to its correct name

Update Neutron documentation and code comments to replace
"BigSwitch" name to "Big Switch"

Closes-Bug: #1299145
Change-Id: I7c14f6170871b361c8929898ee6af5d1a1f41714
(cherry picked from commit 408ef55d4ef1a9d246571511203ab337ba5346c6)

10 years agoStop using portbindings_db in BSN ML2 driver
Kevin Benton [Tue, 1 Apr 2014 08:05:29 +0000 (01:05 -0700)]
Stop using portbindings_db in BSN ML2 driver

Avoids using the portbindings_db in the Big Switch
ML2 driver since ML2 has deprecated that database for
its own version that tracks the same information.

Also eliminates unnecessary 'binding_host' field since
it is now always the same as as the 'portbinding:host_id'
field.

Closes-Bug: #1300628
Change-Id: I17d47cb446cdd2e989c3e0d01b797a81309faaa7
(cherry picked from commit c70c2719d700902854ef0381cb725722ac2da05e)

10 years agoFix function parsing the kernel version
Simon Pasquier [Tue, 1 Apr 2014 13:55:55 +0000 (15:55 +0200)]
Fix function parsing the kernel version

Change-Id: Id56efb476144a18cd9eb7279bc0f602760a86173
Closes-Bug: #1300808
(cherry picked from commit d4fdac7ae596888b8e83d9559019eafb728cd3fe)

10 years agoFixing Arista CLI command
sukhdev [Wed, 2 Apr 2014 02:01:50 +0000 (19:01 -0700)]
Fixing Arista CLI command

A minor change is made to the Arista API between ML2 Driver and the
back-end. This fix addresses this change to align Icehouse release with
Arista EOS releases.

Change-Id: Ia7cd3701c76d920a7e0d1334290c73ce7e8e5576
Closes-Bug: 1301093
(cherry picked from commit f3e9b6d6dc53d2e85c9085a1e3ec11b51f803948)

10 years agoReturn 409 for second firewall creation
Akihiro Motoki [Wed, 2 Apr 2014 02:34:01 +0000 (11:34 +0900)]
Return 409 for second firewall creation

Second firewall creation returns 500, but it is an expected behavior
of firewall reference implementation and an internal server error
should not be returned.

Change-Id: I9f537b238007d35172e2504591d9d3568ba3a41a
Closes-Bug: #1301105
(cherry picked from commit 9df867c672bfb3f80511086c889b744113c56604)

10 years agoDon't emit log for missing attribute check policy
Salvatore Orlando [Fri, 4 Apr 2014 10:30:12 +0000 (03:30 -0700)]
Don't emit log for missing attribute check policy

A missing policy for validating whether an attribute should
be visible or not is a perfectly normal condition, and
there is no value in logging it.

Writing this information to the log is also having a
considerable performance impact on list operations.

Change-Id: Ie9d3ae6b249a5c49f6d81c1e56915174d8479a07
Closes-Bug: 1302467
(cherry picked from commit ef01fb553a141c012c8d8600edd6b709c5807111)

10 years agoFix test MAC addresses to be valid
Brian Haley [Mon, 31 Mar 2014 16:14:59 +0000 (12:14 -0400)]
Fix test MAC addresses to be valid

MAC addresses should have 6 octets - 'ff:ff:ff:ff:ff:ff'.

Change-Id: I9c2457d978ccce15549d3258961093a130375bff
Closes-bug: #1302282
(cherry picked from commit 5f042a64308cb00698b454da09b4a87f2ac3fafd)

10 years agoRedundant SG rule create calls in unit tests
sridhargaddam [Thu, 3 Apr 2014 17:59:37 +0000 (23:29 +0530)]
Redundant SG rule create calls in unit tests

This patch removes the redundant calls in the test cases.

Closes-Bug: #1302091
Change-Id: I509843b427dc454c0e6b2fd2cbff1bbbb284337f
(cherry picked from commit c49ec8b3ba10bb414a0f135d29ff3685e26d58b3)

10 years agoNSX plugin: return 400 for invalid gw certificate
Salvatore Orlando [Sat, 15 Mar 2014 00:43:42 +0000 (17:43 -0700)]
NSX plugin: return 400 for invalid gw certificate

Gateway certificates are validated by the NSX backend.
The code currently treats a failure in certification
validation as a backend failure and therefore returns
a 500 status code.

This patch changes this behaviour by returning a 400
status code and an appropriate error description.
To this aim a handler for 400 errors has been added to
the NSX API client.

Closes-Bug: #1293508

Change-Id: I196f14337e47cd40710a6d8a30bbe1cac5ffe05b
(cherry picked from commit 13c9f3b813f5bb368e311ba0d428fa759d68289a)

10 years agoAdd unit test for add_vxlan in test_linux_ip_lib
Sphoorti Joglekar [Fri, 14 Mar 2014 12:52:43 +0000 (18:22 +0530)]
Add unit test for add_vxlan in test_linux_ip_lib

This patch adds unit tests for the add_vxlan function in the test_linux_ip_lib.py
file.

Fixes bug: 1291974

Change-Id: I0238bedab7a3566aff1115a091ada494a01d2e02
(cherry picked from commit dd52ddb1e9322b3985ceba2db842e8201220f67f)

10 years agofixes broken neutron-netns-cleanup
Miguel Angel Ajo [Tue, 18 Mar 2014 12:33:19 +0000 (13:33 +0100)]
fixes broken neutron-netns-cleanup

Some configuration parameters used in neutron.agent.linux.utils
were missing. The namespace attribute in the FakeNetwork object
was missing, and used in neutron.agent.linux.dhcp. Also, the
plugin object was missing for release_dhcp_port operation.

We provide a fake plugin object to accept current and any future
plugin calls as this is meant to be an standalone tool that
should work without any RPC connectivity.

FakeNetwork was switched for neutron.agent.linux.dhcp.NetModel
to follow any future changes in NetModel.

Two wrong called_once_with_args calls without assert were fixed.

Change-Id: Ia51ea9bd4c8eea6b250858964ad5286c933702e0
Closes-Bug: #1291915
Partial-Bug: #1297875
(cherry picked from commit 907bf41afbdb9f565c45a535f637c8928d0be52a)

10 years agoCisco VPN driver correct reporting for admin state chg
Paul Michali [Fri, 21 Mar 2014 13:14:07 +0000 (13:14 +0000)]
Cisco VPN driver correct reporting for admin state chg

Depends on reference implementation change (81124 review) that will pass VPN
service admin up/down changes to the service driver (for subsequent passing
to the device driver).

This change will save the runtime state of the IPSec connections that have
been removed due to a VPN service down change, so that this can be reported
to the plugin properly. Otherwise, without the change, there is no info
on the downed connection and no change report so the plugin thinks the
connection is still active.

In addition, the status for the VPN service will reflect whether there are
any IPSec connections ACTIVE. If one or more are acive, the service will
be active, otherwise it will be DOWN.

Updated UT to add tests for admin state and status reporting. Also changed
some IPSec create UTs because they were not cleaning up correctly upon test
failures (only seen with a live CSR).

In the future, when the Cisco CSR REST API supports admin up/down support,
the IPSec connections will not be deleted, but instead will be shut down, in
response to an admin down event (and then brought up, for admin up). During
the down time, the state will be reported correctly and no run-time state
recording needed.

Change-Id: I294bfb400c31ef36dfe5d9e85b34845e5aef8515
Closes-Bug: 1291619
(cherry picked from commit c1ccc585bda70925a4cffe617743ef6472fe60c4)

10 years agoLog configuration values for OFA agent
fumihiko kakuma [Fri, 7 Mar 2014 05:03:14 +0000 (14:03 +0900)]
Log configuration values for OFA agent

When other agents start up, they log the configuration values
to their logs. This patch adds the same feature to the
Openflow agent.

fixes bug 1289139

Change-Id: Ibab20154805a12ec265a2499cbfd6c376c376130
(cherry picked from commit 7d1e49a08a170ecf4e2546b25c67d4a8d41fd34a)

10 years agoOnly send notifications on uuid device_id's
Aaron Rosen [Mon, 31 Mar 2014 18:03:48 +0000 (11:03 -0700)]
Only send notifications on uuid device_id's

Neutron assumes that all ports with the device_owner that start with
'compute:' are ports created by nova compute. Thus, when the debug agent
creates a port with device_owner = compute:probe the nova notifier
feature tells nova when this port is wired even though nova does not know
about it (doesn't really matter we just log an error). This patch adds a check
to make sure the device_id is a uuid as nova only uses uuids and the debug
agent uses the hostname for device_id.

Change-Id: I04e7195a1fb30bc37e1c0141315c053174f8722c
Closes-bug: #1288582
(cherry picked from commit 6b4fecb9de0aa80e66b31555001dca95d14c789f)

10 years agoChanged the message line of RouterInUse class
sushma_korati [Thu, 27 Mar 2014 09:33:45 +0000 (15:03 +0530)]
Changed the message line of RouterInUse class

Implements: Changed the message line of RouterInUse class,
so user will not get confused with active or inactive ports
while deleting the router.

Closes-Bug: #1236372
Change-Id: I7a82550e2c6051f9e4940a8f1dd4401059e0a8d8
(cherry picked from commit 238689570145fdafe8e61967bb56133f167d39ab)

10 years agoReplace HTTPSConnection in NEC plugin
Daniel Gollub [Sun, 2 Mar 2014 08:33:38 +0000 (09:33 +0100)]
Replace HTTPSConnection in NEC plugin

Replace HTTPSConnection in NEC plugin PFC driver with Requests.

SSL Verification is from now on enabled by default.

This changes the default behaviour and is the primary intention of this
change: verify SSL certificates.

This might break existing configuration/setups where the SSL certificate
used by the NEC PFC driver would not pass the verification.

SecurityImpact
DocImpact
Partial-Bug: 1188189

Change-Id: I1e5fdc9c2ed5b812aa6509d1639bd499acc5c337
(cherry picked from commit 264b4a2523c165640f17aa4837f87ddfd0b49640)

10 years agoUse a temp dir for CONF.state_path
Joe Gordon [Tue, 1 Apr 2014 22:06:36 +0000 (15:06 -0700)]
Use a temp dir for CONF.state_path

external_pids will defaults to $state_path(/var/lib/neutron)/external/pids
which isn't accessible when running unit tests so use a tempdir for
CONF.state_path. This bug arose when oslo.config 1.3.0 came out which
fixed bug #1282250 (I4324bda6f3de3cdf05f8eb3cf16052c04018dec8) and
caused this issue.

Change-Id: I253c5ea85c51eff94399da0b9462d10a9c509a0f
Closes-Bug: #1301027

10 years agoMerge "Invoke _process_l3_create within plugin session"
Jenkins [Tue, 1 Apr 2014 11:47:19 +0000 (11:47 +0000)]
Merge "Invoke _process_l3_create within plugin session"

10 years agoBigSwitch: Semaphore on port status update
Kevin Benton [Tue, 1 Apr 2014 06:32:41 +0000 (23:32 -0700)]
BigSwitch: Semaphore on port status update

Adds a semaphore to the _set_port_status
function used by the Big Switch ML2 driver and
plugin. Without it, the async threads are
susceptible to deadlocking and causing the
known eventlet/mysql timeout exception.

Closes-Bug: #1300607
Change-Id: Ie89213a0bef37f9e7a30945df39c0f1b87a33b82

10 years agoMerge "Add Icehouse no-op migration"
Jenkins [Mon, 31 Mar 2014 22:58:16 +0000 (22:58 +0000)]
Merge "Add Icehouse no-op migration"

10 years agoMerge "Cancelling thread start while unit tests running"
Jenkins [Mon, 31 Mar 2014 20:31:00 +0000 (20:31 +0000)]
Merge "Cancelling thread start while unit tests running"

10 years agoMerge "Synced rpc and gettextutils modules from oslo-incubator"
Jenkins [Mon, 31 Mar 2014 19:30:57 +0000 (19:30 +0000)]
Merge "Synced rpc and gettextutils modules from oslo-incubator"

10 years agoMerge "Delete duplicate external devices in router namespace"
Jenkins [Mon, 31 Mar 2014 17:56:11 +0000 (17:56 +0000)]
Merge "Delete duplicate external devices in router namespace"

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Mon, 31 Mar 2014 15:02:24 +0000 (15:02 +0000)]
Merge "Imported Translations from Transifex"

10 years agoAdd Icehouse no-op migration
Mark McClain [Fri, 28 Mar 2014 14:31:38 +0000 (10:31 -0400)]
Add Icehouse no-op migration

This migration marks the database migration timeline milestone for
Icehouse.

Change-Id: I8be0322843e506c07e83dc4ba1c135f36a6e2505

10 years agoMerge "Delete subnet fails if assoc port has IPs from another subnet"
Jenkins [Mon, 31 Mar 2014 08:43:23 +0000 (08:43 +0000)]
Merge "Delete subnet fails if assoc port has IPs from another subnet"

10 years agoMerge "Add missing parameters for port creation"
Jenkins [Mon, 31 Mar 2014 08:11:15 +0000 (08:11 +0000)]
Merge "Add missing parameters for port creation"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Mon, 31 Mar 2014 06:32:24 +0000 (06:32 +0000)]
Imported Translations from Transifex

Change-Id: I3039f6c62ac35200b47f9e73760f9ef33dd5efee

10 years agoMerge "UT: do not hide an original error in test resource ctxtmgr"
Jenkins [Mon, 31 Mar 2014 06:32:15 +0000 (06:32 +0000)]
Merge "UT: do not hide an original error in test resource ctxtmgr"

10 years agoInvoke _process_l3_create within plugin session
Hemanth Ravi [Mon, 31 Mar 2014 00:48:21 +0000 (17:48 -0700)]
Invoke _process_l3_create within plugin session

_process_l3_create should be invoked with a plugin session, else
externalnetworks table is not populated for networks with
router:external=True. Added the missing plugin session.

Change-Id: I09c49dea9474f91a70aef829c1596fbb9089d6cf
Closes-Bug: #1299946

10 years agoMerge "Disable XML tests on Py26"
Jenkins [Sun, 30 Mar 2014 18:54:13 +0000 (18:54 +0000)]
Merge "Disable XML tests on Py26"

10 years agoMerge "Fix namespace exist() method"
Jenkins [Sat, 29 Mar 2014 20:05:52 +0000 (20:05 +0000)]
Merge "Fix namespace exist() method"

10 years agoAdd missing parameters for port creation
Sourabh Patwardhan [Mon, 10 Mar 2014 21:27:26 +0000 (14:27 -0700)]
Add missing parameters for port creation

Recent API changes in N1KV controller require parameters such as
subnet id and IP address to handle port creation successfully.
Without these mandatory paramters, the REST call fails.
This patch addresses that by passing in the missing parameters
in the REST body.

Change-Id: I4cec6868051f492b9d1245ab201ff6c1a0837848
Closes-Bug: #1290561

10 years agoMerge "Fix segment allocation tables in Cisco N1kv plugin"
Jenkins [Fri, 28 Mar 2014 20:37:46 +0000 (20:37 +0000)]
Merge "Fix segment allocation tables in Cisco N1kv plugin"

10 years agoMerge "Migrate data from cap_port_filter to vif_details"
Jenkins [Fri, 28 Mar 2014 17:41:28 +0000 (17:41 +0000)]
Merge "Migrate data from cap_port_filter to vif_details"

10 years agoCancelling thread start while unit tests running
Evgeny Fedoruk [Tue, 18 Mar 2014 17:55:11 +0000 (10:55 -0700)]
Cancelling thread start while unit tests running

This change modifies the Radware driver and its unit testing code
to not start operations completion thread while unit tests are running.

The driver initialization changed not to start the operations completion thread,
the thread is started only when operation completion item is inserted into the queue
for the first time.
The operation completion functionality was moved to a new function which
is called by the operations completion thread run() function.
The run() function still have the functionality of popping operation completion
items out of the queue and push failed items back.

Unit testing code mocks the operation completion items queue
by calling the operations completion hanler new function when item
is added.

Start() and join() functions of the thread were mocked to do nothing.

All sleep() entrances were removed from the unit testing code.
All unnecessary mock_reset() calls were removed.

Change-Id: I72380bf223be690831aba1fc29c3dca910245516
Closes-Bug: #1245208

10 years agoMerge "Include cisco plugin in migration plugins with ovs"
Jenkins [Fri, 28 Mar 2014 16:13:43 +0000 (16:13 +0000)]
Merge "Include cisco plugin in migration plugins with ovs"

10 years agoDelete duplicate external devices in router namespace
Carl Baldwin [Thu, 27 Mar 2014 22:21:53 +0000 (22:21 +0000)]
Delete duplicate external devices in router namespace

When a router's gateway is removed during L3-agent restart, the agent
will fail to delete the old external device.  This device should be
identified and removed as soon as possible.

Change-Id: Ifd3e6ca009242138bea4a098e3fde258aeaa391e
Closes-Bug: #1298658

10 years agoMerge "BigSwitch: Move attr ref after error check"
Jenkins [Fri, 28 Mar 2014 11:07:06 +0000 (11:07 +0000)]
Merge "BigSwitch: Move attr ref after error check"

10 years agoUT: do not hide an original error in test resource ctxtmgr
Akihiro Motoki [Fri, 21 Mar 2014 23:17:20 +0000 (08:17 +0900)]
UT: do not hide an original error in test resource ctxtmgr

In unit tests, resource contextmanagers such as network(), subnet()
try to delete themselves after returning from yield even if an
exception occurs. However when an exception occurs, there is a case
where deletion fails. In this case original exception will be hidden
and it makes difficult to debug test failures.

Before each test starts, resources like database entries will be
recreated, so there is no need to try to delete resources even
when an exception occurs. This commit removes try-finally clause
from resource contextmanagers to make original errors visible.

Closes-Bug: #1295887
Change-Id: Ia844d2aa2c9fc036e643068c5284f64798963ee3

10 years agoMerge "Big Switch Plugin: No REST port delete on net del"
Jenkins [Fri, 28 Mar 2014 01:02:51 +0000 (01:02 +0000)]
Merge "Big Switch Plugin: No REST port delete on net del"

10 years agoBigSwitch: Move attr ref after error check
Kevin Benton [Fri, 28 Mar 2014 00:20:43 +0000 (17:20 -0700)]
BigSwitch: Move attr ref after error check

Change in Big Switch server manager module:
Moves an attribute reference to a line after
the error check that validates the object is
not None.

Closes-Bug: #1298699
Change-Id: I5f9abf3b456d5066e90c05bc6b3aa5adcecb7943

10 years agoMerge "Prevent cross plugging router ports from other tenants"
Jenkins [Thu, 27 Mar 2014 23:19:56 +0000 (23:19 +0000)]
Merge "Prevent cross plugging router ports from other tenants"

10 years agoMerge "Make dnsmasq aware of all names"
Jenkins [Thu, 27 Mar 2014 21:18:50 +0000 (21:18 +0000)]
Merge "Make dnsmasq aware of all names"

10 years agoFix namespace exist() method
Eugene Nikanorov [Wed, 19 Mar 2014 14:00:35 +0000 (18:00 +0400)]
Fix namespace exist() method

Fix namespace exist() method for it shall not be called with a root.
Also, don't run it under the namespace so garbage_collect_namespace
method can run without rootwrap and not withi a ns.

As a result of fixing namespace listing the patch also fixes the
regression introduced (bug/1294603) to loadbalancer agent respawning
haproxy due to inability to list namespaces properly.

Change-Id: I0dc4d01b0c1c04887ec6ad5766ec7c6c96903faa
Closes-Bug: #1297594
Closes-Bug: #1294603

10 years agoMerge "nec plugin: allow to delete resource with ERROR status"
Jenkins [Thu, 27 Mar 2014 16:54:05 +0000 (16:54 +0000)]
Merge "nec plugin: allow to delete resource with ERROR status"

10 years agoMerge "VPNaaS support for VPN service admin state change and reporting"
Jenkins [Thu, 27 Mar 2014 16:53:48 +0000 (16:53 +0000)]
Merge "VPNaaS support for VPN service admin state change and reporting"

10 years agoMerge "Correct OVS VXLAN version check"
Jenkins [Thu, 27 Mar 2014 16:28:46 +0000 (16:28 +0000)]
Merge "Correct OVS VXLAN version check"

10 years agoMerge "Import request_id middleware bug fix from oslo"
Jenkins [Thu, 27 Mar 2014 16:28:36 +0000 (16:28 +0000)]
Merge "Import request_id middleware bug fix from oslo"

10 years agoMake dnsmasq aware of all names
Yves-Gwenael Bourhis [Mon, 21 Oct 2013 14:14:06 +0000 (16:14 +0200)]
Make dnsmasq aware of all names

Each dnsmasq instance on a network is not aware of other dnsmasq's leases.

When dnsmasq is launched with --no-hosts and is not provided an --addn-hosts
file, it can resolve only the hosts to which it gives a dhcp lease and no more.
i.e.:
If dnsmasq service n°1 gives a lease to instance n°1, and dnsmasq service n°2
gives a lease to instance n°2, both VM instances and dnsmasq services being on
the same network: instance n°1 can not resolve instance n°2, because instance
n°1 queries dnsmasq n°1, and since it did not give the lease to instance n°2,
it can not resolve it (it is not aware of its existence). Same issue if
instance n°2 tries to resolve instance n°1.

The solution is to provide dnsmasq with an --addn-hosts file of all hosts on
the network. With an --addn-hosts file, each dnsmasq instance is aware of all
the hosts on the network even if they do not give the lease for a host,
therefore each dnsmasq instance can resolve any host on their network even if
they did not provide the lease for it themselves.

Change-Id: Ic6d4f7854d250889dded5491e4693fcdce32ed00
Fixes: bug #1242712
10 years agoPrevent cross plugging router ports from other tenants
Aaron Rosen [Wed, 26 Mar 2014 23:40:09 +0000 (16:40 -0700)]
Prevent cross plugging router ports from other tenants

Previously, a tenant could plug an interface into another tenant's
router if he knew their router_id by creating a port with the correct
device_id and device_owner. This patch prevents this from occuring
by preventing non-admin users from creating ports with device_owner
network:router_interface with a device_id that matches another tenants router.
In addition, it prevents one from updating a ports device_owner and device_id
so that the device_id won't match another tenants router with device_owner
being network:router_interface.

NOTE: with this change it does open up the possiblity for a tenant to discover
router_id's of another tenant's by guessing them and updating a port till
a conflict occurs. That said, randomly guessing the router id would be hard
and in theory should not matter if exposed. We also need to allow a tenant
to update the device_id on network:router_interface ports as this would be
used for by anyone using a vm as a service router. This issue will be fixed in
another patch upstream as a db migration is required but since this needs
to be backported to all stable branches this is not possible.

NOTE: The only plugins affect by this are the ones that use the l3-agent.

NOTE: **One should perform and audit of the ports that are already
        attached to routers after applying this patch and remove ports
        that a tenant may have cross plugged.**

Change-Id: I8bc6241f537d937e5729072dcc76871bf407cdb3
Closes-bug: #1243327

10 years agoMerge "LBaaS: make device driver decide whether to deploy instance"
Jenkins [Thu, 27 Mar 2014 11:33:25 +0000 (11:33 +0000)]
Merge "LBaaS: make device driver decide whether to deploy instance"

10 years agoAdds OVS_HYBRID_PLUG flag to portbindings
Kevin Benton [Thu, 27 Mar 2014 02:40:12 +0000 (02:40 +0000)]
Adds OVS_HYBRID_PLUG flag to portbindings

Adds a flag to the ML2, openvswitch, and BigSwitch
plugins to inform nova that the OVS hybrid plugging
strategy should be used.

Closes-Bug: #1112912
Change-Id: If004db60e084f4cea095ca9ecccb0537240d4183

10 years agoDisable XML tests on Py26
Mark McClain [Thu, 20 Mar 2014 17:49:13 +0000 (13:49 -0400)]
Disable XML tests on Py26

Unit testing on Py26 takes too long to run.  The code paths are the
same, so we'll temporarily skip tests is the class contains XML
formating since duplicate full stack JSON tests are run.

Change-Id: Ie8eddfe0b6af39f32380ce532e0c26acc0a6596d
Related-Bug: 1295281

10 years agoSubnets should be set as lazy='join'
Aaron Rosen [Wed, 26 Mar 2014 20:52:05 +0000 (13:52 -0700)]
Subnets should be set as lazy='join'

Currently if one does a net-list tons of queries are issued against the
database as the default query mode is 'select' which performs a query when
the field is actually accessed. In this patch I change the the mode to
'joined' so subnets are loaded as the networks are loaded. Usually, there
are only 1 or 2 subnets on a network so loading this data shouldn't hurt.
This patch in my setup with 5000 networks reduces the net-list call from 27
seconds to 7! Woot Woot :)

Change-Id: I10eec4d79b522dfd685d3d2aa93a8d643104bba7
Closes-bug: 1298053

10 years agonec plugin: allow to delete resource with ERROR status
Akihiro Motoki [Sat, 15 Mar 2014 15:16:23 +0000 (00:16 +0900)]
nec plugin: allow to delete resource with ERROR status

Previously if a resource is in ERROR status and there is no
corresponding resource on OpenFlow controller, the resource
cannot be deleted through an API request.
This commit rearrange ERROR status check to allow resource
with ERROR status to be deleted.

Closes-Bug: #1295754
Change-Id: I709f5e2066eb5d12ec0f42dff15797acddc2009e