]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Thu, 3 Apr 2014 18:10:34 +0000 (18:10 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "De-duplicate unit tests for ports in Big Switch"
Jenkins [Thu, 3 Apr 2014 18:08:10 +0000 (18:08 +0000)]
Merge "De-duplicate unit tests for ports in Big Switch"

10 years agoMerge "fixes tests using called_once_ without assert"
Jenkins [Thu, 3 Apr 2014 18:08:00 +0000 (18:08 +0000)]
Merge "fixes tests using called_once_ without assert"

10 years agoMerge "Fix quota_health_monitor opt name in neutron.conf"
Jenkins [Thu, 3 Apr 2014 18:07:48 +0000 (18:07 +0000)]
Merge "Fix quota_health_monitor opt name in neutron.conf"

10 years agoignore build directory for pep8
Sean Dague [Thu, 3 Apr 2014 13:56:14 +0000 (09:56 -0400)]
ignore build directory for pep8

this mirrors the excludes from nova.

Change-Id: I0ca5f02918842fc708c704fcf2845936dc1c5965

10 years agoMerge "Restore NOT NULL constraint lost by earlier migrations"
Jenkins [Thu, 3 Apr 2014 09:52:37 +0000 (09:52 +0000)]
Merge "Restore NOT NULL constraint lost by earlier migrations"

10 years agoMerge "Remove invalid copyright headers under API module"
Jenkins [Thu, 3 Apr 2014 08:15:56 +0000 (08:15 +0000)]
Merge "Remove invalid copyright headers under API module"

10 years agoMerge "Changed the message line of RouterInUse class"
Jenkins [Thu, 3 Apr 2014 07:35:11 +0000 (07:35 +0000)]
Merge "Changed the message line of RouterInUse class"

10 years agoMerge "Use os.uname() instead of calling uname in subprocess"
Jenkins [Thu, 3 Apr 2014 07:31:04 +0000 (07:31 +0000)]
Merge "Use os.uname() instead of calling uname in subprocess"

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 3 Apr 2014 06:32:23 +0000 (06:32 +0000)]
Imported Translations from Transifex

Change-Id: Ifcadfb837fc2864214c6d070d90388110742b537

10 years agoMerge "Explicitly import state_path opt in tests.base"
Jenkins [Thu, 3 Apr 2014 01:35:50 +0000 (01:35 +0000)]
Merge "Explicitly import state_path opt in tests.base"

10 years agoMerge "Remove last parts of Quantum compatibility shim"
Jenkins [Thu, 3 Apr 2014 01:04:53 +0000 (01:04 +0000)]
Merge "Remove last parts of Quantum compatibility shim"

10 years agoMerge "Revert changes removing OVSBridge return"
Jenkins [Wed, 2 Apr 2014 22:44:37 +0000 (22:44 +0000)]
Merge "Revert changes removing OVSBridge return"

10 years agoExplicitly import state_path opt in tests.base
Joe Gordon [Wed, 2 Apr 2014 18:25:27 +0000 (11:25 -0700)]
Explicitly import state_path opt in tests.base

This wasn't explicitly needed in the unit tests because
neutron.common.config was already loaded, but this broke for the
functional tests (which are non-voting) so add a CONF.import_opt line so
functional tests know where to find the definition for state_path.

Change-Id: I5b87a75317e2ba670adaa59b251bfa860920fd61

10 years agoMerge "Enable hacking H301 check"
Jenkins [Wed, 2 Apr 2014 20:39:05 +0000 (20:39 +0000)]
Merge "Enable hacking H301 check"

10 years agoMerge "Fixing Arista CLI command"
Jenkins [Wed, 2 Apr 2014 20:38:57 +0000 (20:38 +0000)]
Merge "Fixing Arista CLI command"

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

10 years agoMerge "update doc string - correct typo"
Jenkins [Wed, 2 Apr 2014 19:22:17 +0000 (19:22 +0000)]
Merge "update doc string - correct typo"

10 years agoMerge "NSX: Fix pagination support"
Jenkins [Wed, 2 Apr 2014 18:47:44 +0000 (18:47 +0000)]
Merge "NSX: Fix pagination support"

10 years agoRemove invalid copyright headers under API module
Doug Hellmann [Wed, 2 Apr 2014 18:09:03 +0000 (11:09 -0700)]
Remove invalid copyright headers under API module

Change-Id: I629b639f6c94654117fbafb8b21840f7ba6b045a
Partial-bug: #1262424

10 years agoupdate doc string - correct typo
Manish Godara [Wed, 2 Apr 2014 16:30:43 +0000 (09:30 -0700)]
update doc string - correct typo

Change-Id: I70503293cdd17a520dd9ec66ee297f2d36added6

10 years agoMerge "Only send notifications on uuid device_id's"
Jenkins [Wed, 2 Apr 2014 16:29:45 +0000 (16:29 +0000)]
Merge "Only send notifications on uuid device_id's"

10 years agoRevert changes removing OVSBridge return
Kyle Mestery [Wed, 2 Apr 2014 14:39:13 +0000 (14:39 +0000)]
Revert changes removing OVSBridge return

This reverts changes from this review [1] which incorrectly removed
the return of the OVSBridge object when calling BaseOVS.add_bridge.
This broke all functional tests relying on this return.

[1] https://review.openstack.org/#/c/71142/

Related-Bug: #1301363

Change-Id: If32e155cc2bd368b2e842f14b1d1da0827ccfeff

10 years agoMerge "Update BigSwitch Name to its correct name"
Jenkins [Wed, 2 Apr 2014 10:57:52 +0000 (10:57 +0000)]
Merge "Update BigSwitch Name to its correct name"

10 years agoMerge "Return 409 for second firewall creation"
Jenkins [Wed, 2 Apr 2014 10:12:58 +0000 (10:12 +0000)]
Merge "Return 409 for second firewall creation"

10 years agoMerge "Stop using portbindings_db in BSN ML2 driver"
Jenkins [Wed, 2 Apr 2014 10:06:32 +0000 (10:06 +0000)]
Merge "Stop using portbindings_db in BSN ML2 driver"

10 years agoMerge "Removing vim header lines"
Jenkins [Wed, 2 Apr 2014 08:57:02 +0000 (08:57 +0000)]
Merge "Removing vim header lines"

10 years agoMerge "NSX plugin: return 400 for invalid gw certificate"
Jenkins [Wed, 2 Apr 2014 08:56:01 +0000 (08:56 +0000)]
Merge "NSX plugin: return 400 for invalid gw certificate"

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

10 years agoMerge "Log configuration values for OFA agent"
Jenkins [Wed, 2 Apr 2014 05:45:18 +0000 (05:45 +0000)]
Merge "Log configuration values for OFA agent"

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

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 agoUse os.uname() instead of calling uname in subprocess
Jakub Libosvar [Tue, 1 Apr 2014 14:41:38 +0000 (16:41 +0200)]
Use os.uname() instead of calling uname in subprocess

Related-Bug: #1291535

Change-Id: I57e18c0b95904f318e3fff08cd18b32e28f48834

10 years agoMerge "Imported Translations from Transifex"
OpenStack Jenkins [Tue, 1 Apr 2014 18:13:39 +0000 (18:13 +0000)]
Merge "Imported Translations from Transifex"

10 years agoEnable hacking H301 check
Matthew Treinish [Mon, 31 Mar 2014 21:17:44 +0000 (17:17 -0400)]
Enable hacking H301 check

This commit enables the H301 hacking rule by removing all the
multiple imports in a single line from neutron.

Partial-Bug: #1291032

Change-Id: I7ba7f82fb36a433d73190eb3d568b6961ccb57c6

10 years agoMerge "Move test_ovs_lib to tests/unit/agent/linux"
Jenkins [Tue, 1 Apr 2014 16:33:29 +0000 (16:33 +0000)]
Merge "Move test_ovs_lib to tests/unit/agent/linux"

10 years agoMerge "Fix function parsing the kernel version"
Jenkins [Tue, 1 Apr 2014 16:27:45 +0000 (16:27 +0000)]
Merge "Fix function parsing the kernel version"

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

10 years agoMerge "Add missing DB migrations for BSN ML2 plugin"
Jenkins [Tue, 1 Apr 2014 15:34:05 +0000 (15:34 +0000)]
Merge "Add missing DB migrations for BSN ML2 plugin"

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

10 years agoRemoving vim header lines
Mohammad Banikazemi [Mon, 31 Mar 2014 17:01:47 +0000 (13:01 -0400)]
Removing vim header lines

Simply removes the vim header line and the empty line
following it (when present) for files in the api, db, and
extenssions base directories. In one single _init_ file in
this patchset, all comment lines are removed.

Change-Id: I81b7168dc2ad74b8c30a87e50a531e157851499e
Partial-Bug: 1229324

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

10 years agoMerge "Updated from global requirements"
OpenStack Jenkins [Tue, 1 Apr 2014 14:00:43 +0000 (14:00 +0000)]
Merge "Updated from global requirements"

10 years agoMerge "Add unit test for add_vxlan in test_linux_ip_lib"
Jenkins [Tue, 1 Apr 2014 12:21:55 +0000 (12:21 +0000)]
Merge "Add unit test for add_vxlan in test_linux_ip_lib"

10 years agoUpdated from global requirements
OpenStack Jenkins [Tue, 1 Apr 2014 11:51:30 +0000 (11:51 +0000)]
Updated from global requirements

Change-Id: I920146bc6ea4eb490f42e1293552536f62949316

10 years agoMerge "Open Juno development"
Jenkins [Tue, 1 Apr 2014 11:47:30 +0000 (11:47 +0000)]
Merge "Open Juno development"

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 agoRestore NOT NULL constraint lost by earlier migrations
AKamyshnikova [Thu, 6 Mar 2014 12:09:08 +0000 (16:09 +0400)]
Restore NOT NULL constraint lost by earlier migrations

Bring back nullable=False for columns in tables poolstatisticss
and ipsec_site_connections that disapeared because of
migrations abc88c33f74f and 338d7508968c correspondingly.

Closes-bug: #1288681

Change-Id: Idc4608616c2b4c06e7404157b2f708d46e91accc

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 agoRemove last parts of Quantum compatibility shim
Dan Wendlandt [Tue, 1 Apr 2014 06:31:00 +0000 (23:31 -0700)]
Remove last parts of Quantum compatibility shim

Goodbye Quantum!

Change-Id: Idbd0384a892beaff3a937444f04cfc433cb805eb
Closes-Bug:1299046

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 1 Apr 2014 06:30:53 +0000 (06:30 +0000)]
Imported Translations from Transifex

Change-Id: I58a1436d1e987e24423eba5d5b7c501fd86c9da9

10 years agoFix quota_health_monitor opt name in neutron.conf
Pierre RAMBAUD [Sun, 30 Mar 2014 10:06:53 +0000 (12:06 +0200)]
Fix quota_health_monitor opt name in neutron.conf

Reasons:
- quota_healt_monitor does not exist

Changes:
- Use quota_health_monitor instead of quota_health_monitors

Change-Id: I31d6a0394a786d26f7a063afbd3b6e07fae49b9b

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

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

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 agoMove test_ovs_lib to tests/unit/agent/linux
Ryan Petrello [Fri, 28 Mar 2014 20:57:36 +0000 (13:57 -0700)]
Move test_ovs_lib to tests/unit/agent/linux

Fixes bug 1295846

Change-Id: Ifd3576e9b549361a4baf9cfc2b9301bb45789474

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

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

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 agoOpen Juno development
Thierry Carrez [Thu, 27 Mar 2014 15:42:57 +0000 (16:42 +0100)]
Open Juno development

Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I0af1ee46e65149eb19731491242ddc2fdccd7a2e

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

10 years agoSynced rpc and gettextutils modules from oslo-incubator
Ihar Hrachyshka [Mon, 17 Mar 2014 13:18:28 +0000 (14:18 +0100)]
Synced rpc and gettextutils modules from oslo-incubator

The main reason for sync is to get the following oslo-rpc fixes in Neutron:
* I537015f452eb770acba41fdedfe221628f52a920 (reduces delays when reconnecting
  to Qpid in HA deployments)
* Ia148baa6e1ec632789ac3621c85173c2c16f3918 (fixed HA failover, Qpid part)
* I67923cb024bbd143edc8edccf35b9b400df31eb3 (fixed HA failover, RabbitMQ part)

Latest oslo-incubator commit at the moment of sync:
2eab986ef3c43f8d1e25065e3cbc1307860c25c7

Change-Id: I2f5bb0d195e050f755ecdbf06a6bbed587a04fbe
Closes-Bug: 1281148
Closes-Bug: 1261631

10 years agoImport request_id middleware bug fix from oslo
Akihiro Motoki [Wed, 26 Mar 2014 14:28:49 +0000 (23:28 +0900)]
Import request_id middleware bug fix from oslo

There is a bug in request-id middleware that a subsequent API request will
overwrite a request-id of a previous request when multiple API calls are
processed in parallel in request_id middleware.
This commit imports the fix in oslo.

cherry-picked from oslo-incubator d7bd9dc37ac3d6bc171cd2e290c772633ad20a32
Closes-Bug: #1289696
----
Don't store the request ID value in middleware as class variable

The original version of the request_id middleware generates a request ID during
process_request() and stores the value in a variable, so it can be attached as
header in process_request(). This is pretty dangerous, since subsequent
requests will overwrite this value, and the wrong request ID may be attached to
some responses. This is particularly apparent when requests arrive in parallel.

This change replaces process_request() and process_response() with an override
of __call__(). This allows the generated req_id to be used in the response
header without needing to save it as a class-level variable.
----

Change-Id: Ic20047f604394f1ce4900c3b6a00595223804cba

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

10 years agoMigrate data from cap_port_filter to vif_details
Jakub Libosvar [Wed, 26 Mar 2014 08:42:21 +0000 (09:42 +0100)]
Migrate data from cap_port_filter to vif_details

There was introduced a new column vif_details for ml2_port_binding table
and dropped cap_port_filter column. Data was lost during the migration
causing no data in vif_details.

This patch transforms data from cap_port_filter to vif_details column as
a part of db migration. MigrationContext.execute() calls underlaying
methods depending whether migration is online or offline therefore data
are migrated in offline migration too.

Partial-bug: #1235149
Change-Id: Icc5dc6e8221a542f5190d0222ac4d10197d15ac1

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 26 Mar 2014 06:29:27 +0000 (06:29 +0000)]
Imported Translations from Transifex

Change-Id: Ie0d4dc7afb8cb4f73f12ce2115d4c18f83df33c6