]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoFixes Multiple External Networks issue with DVR
Swaminathan Vasudevan [Thu, 18 Dec 2014 01:15:07 +0000 (17:15 -0800)]
Fixes Multiple External Networks issue with DVR

Current L3 agents can support more than one
external network when configured properly.

On DVR routers, router-gateway-set was
returning a 500 error, when two external
networks were configured in the system.

The problem resides in the scheduler where the
bind_router is called twice when the
reschedule_router is called from update_router.

The _schedule_router binds the snat
and the qrouter with the respective agents.

But after scheduling it does not return agent.

And in the case of two external networks, the
get_candidates always returns a valid candidate
to be processed and hence the bind_router is
called twice.

This patch fixes the _schedule_router function
and hence avoids the multiple calls to
bind_router.

This prevents the update_router from failing
and causing the nested rollback for the
transactions.

Change-Id: I24d44c60a3ea5bbc9e3f44aa5191deff315723ca
Closes-Bug: #1374473

9 years agohyperv: drop usage of SecurityGroupServerRpcApiMixin
Russell Bryant [Fri, 16 Jan 2015 14:09:48 +0000 (09:09 -0500)]
hyperv: drop usage of SecurityGroupServerRpcApiMixin

Drop usage of SecurityGroupServerRpcApiMixin in the hyperv plugin.
This is required to be able to eventually move this API into a
messaging namespace.  It needs to use its own messaging client
instance, instead of a different one it gets after being used as a
mixin.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: Idad9732be1c225262b39e07455d41bd61477c39d

9 years agobigswitch: drop usage of SecurityGroupServerRpcApiMixin
Russell Bryant [Fri, 16 Jan 2015 13:52:40 +0000 (08:52 -0500)]
bigswitch: drop usage of SecurityGroupServerRpcApiMixin

Drop usage of SecurityGroupServerRpcApiMixin in the bigswitch plugin.
This is required to be able to eventually move this API into a
messaging namespace.  It needs to use its own messaging client
instance, instead of a different one it gets after being used as a
mixin.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: Ib1c06d5b79c51fb63131efdf6ed83a7e85a7b820

9 years agoCreate SecurityGroupServerRpcApi and add some docs
Russell Bryant [Tue, 13 Jan 2015 18:06:44 +0000 (13:06 -0500)]
Create SecurityGroupServerRpcApi and add some docs

Create SecurityGroupServerRpcApi, which is intended to replace
SecurityGroupServerRpcApiMixin over time.  The new class is the same
code, but used as a standalone class.  This is needed to be able to
eventually move this API into a messaging namespace.

In passing, add docstrings that show where to find the corresponding
other side of this interface in the code base.

Part of blueprint rpc-docs-and-namespaces.

Change-Id: If959b2f8bf21b4963bf6876a3eedc0a4b06c6400

9 years agoMerge "Updated from global requirements"
Jenkins [Wed, 21 Jan 2015 05:41:07 +0000 (05:41 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Improve test coverage of dhcp agent scheduling"
Jenkins [Wed, 21 Jan 2015 04:12:51 +0000 (04:12 +0000)]
Merge "Improve test coverage of dhcp agent scheduling"

9 years agoMerge "Remove unused self.sync_progress attribute"
Jenkins [Wed, 21 Jan 2015 01:17:41 +0000 (01:17 +0000)]
Merge "Remove unused self.sync_progress attribute"

9 years agoMerge "Switch to using abc in the retargetable client"
Jenkins [Tue, 20 Jan 2015 22:42:16 +0000 (22:42 +0000)]
Merge "Switch to using abc in the retargetable client"

9 years agoMerge "Catch StaleDataError in update_device_down"
Jenkins [Tue, 20 Jan 2015 22:35:02 +0000 (22:35 +0000)]
Merge "Catch StaleDataError in update_device_down"

9 years agoMerge "Fix outstanding failures with Neutron API job"
Jenkins [Tue, 20 Jan 2015 22:34:48 +0000 (22:34 +0000)]
Merge "Fix outstanding failures with Neutron API job"

9 years agoMerge "common_db_mixin.py: simplify CommonDbMixin"
Jenkins [Tue, 20 Jan 2015 22:32:41 +0000 (22:32 +0000)]
Merge "common_db_mixin.py: simplify CommonDbMixin"

9 years agoMerge "Fix pylint unbalanced-tuple-unpacking warning"
Jenkins [Tue, 20 Jan 2015 21:21:21 +0000 (21:21 +0000)]
Merge "Fix pylint unbalanced-tuple-unpacking warning"

9 years agoMerge "tools/split.sh: Tweak commit message"
Jenkins [Tue, 20 Jan 2015 21:19:03 +0000 (21:19 +0000)]
Merge "tools/split.sh: Tweak commit message"

9 years agoMerge "make delete_router send delete_port to core_plugin"
Jenkins [Tue, 20 Jan 2015 18:55:49 +0000 (18:55 +0000)]
Merge "make delete_router send delete_port to core_plugin"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Tue, 20 Jan 2015 17:03:52 +0000 (17:03 +0000)]
Updated from global requirements

Change-Id: I175e1423cbc9f69ded8baf8b8398cc33285c87e3

9 years agoImprove test coverage of dhcp agent scheduling
Numan Siddique [Thu, 11 Sep 2014 14:55:20 +0000 (20:25 +0530)]
Improve test coverage of dhcp agent scheduling

This patch adds few unit test cases and functional test cases
for schedule() and auto_schedule_networks() of DHCP agent
ChanceScheduler.

Change-Id: I6ed7c48bcf5fc43d805c7898c7d6f019b6792e18
Closes-bug: #1331516

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 20 Jan 2015 06:08:27 +0000 (06:08 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I6148f56f1a6bc4e541745f4a536c3c38e3badaac

9 years agotools/split.sh: Tweak commit message
YAMAMOTO Takashi [Tue, 20 Jan 2015 05:19:16 +0000 (14:19 +0900)]
tools/split.sh: Tweak commit message

No period in the summary line.

Change-Id: Ic79bc85a92b43c60894b9e7e3423beeca5d832a8
Related: blueprint core-vendor-decomposition

9 years agoSwitch to using abc in the retargetable client
Maru Newby [Tue, 20 Jan 2015 02:23:48 +0000 (02:23 +0000)]
Switch to using abc in the retargetable client

abc is preferable to raising NotImplementedError because it will
prevent instantiation of a subclass that doesn't implement the
required methods rather than failing only when a missing method is
called.

Change-Id: I1043eefde675dd3b653d5b508be22cfd52d2fe8f
Implements: bp retargetable-functional-testing

9 years agoMerge "Move Monkey patch back to being as early as possible"
Jenkins [Tue, 20 Jan 2015 01:59:26 +0000 (01:59 +0000)]
Merge "Move Monkey patch back to being as early as possible"

9 years agocommon_db_mixin.py: simplify CommonDbMixin
Isaku Yamahata [Mon, 22 Sep 2014 03:05:13 +0000 (12:05 +0900)]
common_db_mixin.py: simplify CommonDbMixin

Simplfy register_model_query_hook() and register_dict_extend_funcs().
Move register_dict_extend_funcs() into CommonDbMixin attribute
because the related class attribute, _dict_extend_functions, is
defined in CommonDbMixin. They should be defined in same class.

Change-Id: Ib7b6df0c236f1d0804941147cc7cd7902a611311

9 years agoMerge "Fix missing spaces in error messages"
Jenkins [Tue, 20 Jan 2015 00:49:20 +0000 (00:49 +0000)]
Merge "Fix missing spaces in error messages"

9 years agoMerge "Drop _test_rootwrap_exec test"
Jenkins [Mon, 19 Jan 2015 18:47:35 +0000 (18:47 +0000)]
Merge "Drop _test_rootwrap_exec test"

9 years agoMerge "Migrate to oslo.concurrency"
Jenkins [Mon, 19 Jan 2015 09:33:46 +0000 (09:33 +0000)]
Merge "Migrate to oslo.concurrency"

9 years agoDrop _test_rootwrap_exec test
Ihar Hrachyshka [Sun, 18 Jan 2015 11:59:39 +0000 (12:59 +0100)]
Drop _test_rootwrap_exec test

It's not a unit test and didn't participate in gating. The test would belong to
functional suite, though since it's pretty trivial, and rootwrap is already
tested as part of other functional tests, it's better to drop it then adopt to
new requirements.

Change-Id: I1667f2127b045cf002ae8516624afe9efe919fb7

9 years agoFix pylint unbalanced-tuple-unpacking warning
Cedric Brandily [Fri, 16 Jan 2015 23:41:16 +0000 (23:41 +0000)]
Fix pylint unbalanced-tuple-unpacking warning

Pylint last version(1.4.1), at least, reports an
unbalanced-tuple-unpacking warning[1] in keepalived[2] module because
self.authentication is defined as an empty tuple in __init__ method and
unpacked in build_config method as if it was a 2-tuple.

self.authentication references an empty tuple (defined in __init__
method) or a 2-tuple (updated in set_authentication method). Such
warning is a false positive because the unpacking is only performed if
self.authentication is not evaluated to false which only appends if
self.authentication is a 2-tuple.

Defining self.authentication as None in __init__ avoids such warning
without disabling unbalanced-tuple-unpacking warning check.

[1]
W:252,12: Possible unbalanced tuple unpacking with sequence defined at
line 153: left side has 2 label(s), right side has 0 value(s)
(unbalanced-tuple-unpacking)

[2] neutron.agent.linux.keepalived

Change-Id: Ifcdf08e574ef44a65c6d121323cbe31d9af2f921
Closes-Bug: #1411865

9 years agoRemove unused self.sync_progress attribute
Ihar Hrachyshka [Fri, 16 Jan 2015 19:04:09 +0000 (20:04 +0100)]
Remove unused self.sync_progress attribute

It was never used for anything since initial commit and is a leftover from one
of intermediate patchsets of I0978d1c38ac5c38c4548e5b1877857bb5cac3b81.

Change-Id: I3732aebf9029f62b4c5beb18dea4216804f9aa5d

9 years agoMerge "Revert "Change transaction isolation so retry logic could work properly""
Jenkins [Sat, 17 Jan 2015 08:58:09 +0000 (08:58 +0000)]
Merge "Revert "Change transaction isolation so retry logic could work properly""

9 years agoMove Monkey patch back to being as early as possible
armando-migliaccio [Sat, 17 Jan 2015 08:14:28 +0000 (00:14 -0800)]
Move Monkey patch back to being as early as possible

Commit 6ca8cb84fd8 moved the patching early in the loading process.
After some reshuffling in the agents, this might not be as early
as possible, so move them closer to their main()'s.

Change-Id: Ifddd3a3d87ef6cc06788e9b4c40d6a6d981ebe0c

9 years agoFix outstanding failures with Neutron API job
armando-migliaccio [Wed, 7 Jan 2015 00:31:02 +0000 (16:31 -0800)]
Fix outstanding failures with Neutron API job

In order to run the API job successfully, must be installed and
configured. Today when using devstack-vm-gate.sh this means that
Tempest will run as well, which we do not want. To fix this problem
there are changes needed both in project-config and devstack-gate.

As a stop-gap solution, we bring in the scripts required and run
them directly within the gate hooks that we already have.

Once changes in devstack-gate and project-config will be accepted, this
solution can be dropped.

Supports-blueprint: retargetable-functional-testing

Change-Id: If04641ca6a12e956d7baff427e50816fd1a65fbe

9 years agoDisable unbalanced-tuple-unpacking
Carl Baldwin [Fri, 16 Jan 2015 23:40:13 +0000 (23:40 +0000)]
Disable unbalanced-tuple-unpacking

This check seems to have changed and started to break in Neutron.
Disabling it is one way we could get back to good.

Change-Id: I6d06d43cb2e78501cd69fcb3940694d04d936fa8
Closes-bug: #1411865

9 years agoRevert "Change transaction isolation so retry logic could work properly"
armando-migliaccio [Fri, 16 Jan 2015 21:39:50 +0000 (13:39 -0800)]
Revert "Change transaction isolation so retry logic could work properly"

This reverts commit 6617f8fccc8d99520a87cd84a598c4f9a1a43761.

Nip bug #1411816 in the bud, until we figure out what's going on.

Change-Id: Iccae2e06d79221583c79bd9fab4f5eda52979124

9 years agoMerge "Refactor the _get_external_device_interface_name method"
Jenkins [Fri, 16 Jan 2015 16:38:49 +0000 (16:38 +0000)]
Merge "Refactor the _get_external_device_interface_name method"

9 years agoMerge "Refactor of floating ip processing in L3 Agent"
Jenkins [Fri, 16 Jan 2015 16:35:23 +0000 (16:35 +0000)]
Merge "Refactor of floating ip processing in L3 Agent"

9 years agoChange transaction isolation so retry logic could work properly
Eugene Nikanorov [Mon, 17 Nov 2014 07:00:49 +0000 (11:00 +0400)]
Change transaction isolation so retry logic could work properly

Lower isolation level from REPEATABLE READ to READ COMMITTED for
transaction that is used to create a network.
This allows retry logic to see changes done in other connections
while doing the same query.
Perform that only for mysql db backend.

Change-Id: I6b9d9212c37fe028566e0df4a3dfa51f284ce6e9
Closes-Bug: #1382064

9 years agoMerge "base.py: Improve exception handling"
Jenkins [Fri, 16 Jan 2015 08:17:42 +0000 (08:17 +0000)]
Merge "base.py: Improve exception handling"

9 years agoMerge "Specify prefix length for IPv6 subnets"
Jenkins [Fri, 16 Jan 2015 08:17:14 +0000 (08:17 +0000)]
Merge "Specify prefix length for IPv6 subnets"

9 years agoMerge "Clarify misleading iptables comment"
Jenkins [Fri, 16 Jan 2015 08:16:48 +0000 (08:16 +0000)]
Merge "Clarify misleading iptables comment"

9 years agoMerge "Enable adding new tag with options"
Jenkins [Fri, 16 Jan 2015 08:16:19 +0000 (08:16 +0000)]
Merge "Enable adding new tag with options"

9 years agoMerge "Fix some assertEqual argument orders"
Jenkins [Fri, 16 Jan 2015 08:15:20 +0000 (08:15 +0000)]
Merge "Fix some assertEqual argument orders"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 16 Jan 2015 04:55:59 +0000 (04:55 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 16 Jan 2015 03:09:02 +0000 (03:09 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Replace missing space in error message"
Jenkins [Fri, 16 Jan 2015 03:08:36 +0000 (03:08 +0000)]
Merge "Replace missing space in error message"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 16 Jan 2015 01:15:55 +0000 (01:15 +0000)]
Updated from global requirements

Change-Id: Ie811ae25482ac292a87a8e3b6799333cf48454d5

9 years agoRefactor the _get_external_device_interface_name method
Sylvain Afchain [Fri, 12 Dec 2014 09:52:43 +0000 (09:52 +0000)]
Refactor the _get_external_device_interface_name method

Currently this method does two things. It returns the
external interface name as its name indicates and
creates some interfaces in the case of the dvr mode.
This patch split these two things into two methods and
refactor a bit the code according to this change.

Related-Bug: #1375994
Change-Id: I7dc2c03457cbb209c84584c2badffd12048e9617

9 years agoRefactor of floating ip processing in L3 Agent
Miguel Lavalle [Thu, 18 Dec 2014 01:21:53 +0000 (19:21 -0600)]
Refactor of floating ip processing in L3 Agent

Breaks down the processing of floating ip processing in 3 methods. A key goal
is to make the handling of ip tables application deferal more logically cohesive
in the process_router method

Partially-Implements: bp restructure-l3-agent

Change-Id: I7594c16a3ee3b9c988c7db856f9f401e4742f4c2

9 years agoFix some assertEqual argument orders
YAMAMOTO Takashi [Fri, 16 Jan 2015 00:31:17 +0000 (09:31 +0900)]
Fix some assertEqual argument orders

Perform assertEqual(expected, observed) police
in neutron.tests.unit.test_attributes.

This is a preparation to introduce more assertions there
in a later patch.

Change-Id: I87d7e356798b108952535b351e30c2f2cf01f98d

9 years agoMerge "Move non-bridge-related OVSBridge methods to BaseOVS"
Jenkins [Thu, 15 Jan 2015 22:41:14 +0000 (22:41 +0000)]
Merge "Move non-bridge-related OVSBridge methods to BaseOVS"

9 years agoMigrate to oslo.concurrency
Ihar Hrachyshka [Fri, 5 Dec 2014 17:17:15 +0000 (18:17 +0100)]
Migrate to oslo.concurrency

Namespaces are not used anymore, so imports are for oslo_concurrency,
not oslo.concurrency.

lockutils direct call is not supported anymore, so using shipped
lockutils-wrapper instead.

Use ExternalLockFixture to set lock_path for unit testing.

Updated cache and cache/_backends module from oslo-incubator to use
oslo.concurrency and not incubator version of lockutils module.

Dropped lockutils incubator module that is now moved to oslo.concurrency. Not
dropping fixture module that includes lockutils fixture since other fixtures
are still used in the tree.

Closes-Bug: #1387092
Change-Id: I2ba2295f8f5d55f272a9d23555940586b25b5a1c

9 years agoMerge "VMWare-NSXv: VMWare NSXv extensions"
Jenkins [Thu, 15 Jan 2015 19:47:59 +0000 (19:47 +0000)]
Merge "VMWare-NSXv: VMWare NSXv extensions"

9 years agoMerge "Correct _test_delete_ports_by_device_id_second_call_failure"
Jenkins [Thu, 15 Jan 2015 17:51:39 +0000 (17:51 +0000)]
Merge "Correct _test_delete_ports_by_device_id_second_call_failure"

9 years agoMerge "Code improvement in type_vxlan.py and type_gre.py files"
Jenkins [Thu, 15 Jan 2015 17:51:20 +0000 (17:51 +0000)]
Merge "Code improvement in type_vxlan.py and type_gre.py files"

9 years agoMerge "Service split: cleaned up setup.cfg"
Jenkins [Thu, 15 Jan 2015 17:50:49 +0000 (17:50 +0000)]
Merge "Service split: cleaned up setup.cfg"

9 years agoMerge "Remove main alias for bw compat with vpn agent"
Jenkins [Thu, 15 Jan 2015 17:50:25 +0000 (17:50 +0000)]
Merge "Remove main alias for bw compat with vpn agent"

9 years agoMerge "Dropped fixture module"
Jenkins [Thu, 15 Jan 2015 17:49:55 +0000 (17:49 +0000)]
Merge "Dropped fixture module"

9 years agoReplace missing space in error message
John Davidge [Thu, 15 Jan 2015 17:45:47 +0000 (09:45 -0800)]
Replace missing space in error message

The error message on line 746 was missing a space before the
linebreak.

Change-Id: Ifd5b6ef5566adb52d6b5c1d1ee9280e63dac0463
Closes-bug: 1411347

9 years agoClarify misleading iptables comment
Kevin Benton [Thu, 15 Jan 2015 07:45:14 +0000 (23:45 -0800)]
Clarify misleading iptables comment

Update the comment for the iptables rule matching the
conntrack INVALID state. The previous entry was misleading
because it sounded like it dropped all new connections.

Change-Id: I793c1a7d9fbc261ac361305524de8ad67477815b

9 years agoFix missing spaces in error messages
Bradley Jones [Thu, 15 Jan 2015 15:25:56 +0000 (07:25 -0800)]
Fix missing spaces in error messages

Change-Id: If29a7ebe0b3ad44b728e17ce0c8ceb271a08f684
Closes-bug: 1411441

9 years agomake delete_router send delete_port to core_plugin
mathieu-rohon [Thu, 15 Jan 2015 15:19:08 +0000 (16:19 +0100)]
make delete_router send delete_port to core_plugin

Have delete_router API call also delete the gateway port if needed.
Currently, the db_base_plugin_v2 method is called, bypassing the
core_plugin overload of this method. The consequence is that,
in ML2, mechanism drivers are not aware of the port deletion.

In this patch, tha gateway port is deleted through a common
method. This method checks if floating IP and VPN are attached
to the router, so those checks are removed from the delete_router
method.

Closes-Bug: #1361540

Change-Id: Iae98f3fe89126a76f16ed9c5230ce299a09ce8d8

9 years agoMerge "Initial thin ML2 mechanism driver"
Jenkins [Thu, 15 Jan 2015 15:17:28 +0000 (15:17 +0000)]
Merge "Initial thin ML2 mechanism driver"

9 years agoVMWare-NSXv: VMWare NSXv extensions
Gary Kotton [Mon, 29 Dec 2014 09:38:25 +0000 (01:38 -0800)]
VMWare-NSXv: VMWare NSXv extensions

For Kilo, the vendor-specific code should be moved to stackforge repo,
excluding the extensions (https://review.openstack.org/#/c/134680/).

This patch adds the extensions VMWare NSXv plugin from
stackforge/vmware-nsx repo.

There are 2 new extensions:
1. advanced_service_providers - this is required to enabled the NSXv to provide
                                metadata support (there is no metadata agent)
2. vnic_index - the security group support for the NSXv requires the vNIC index

Change-Id: I8c7aa95db1caf020afaa217d9c543b9031fab371
Partially-Implements: blueprint vmware-nsx-v

9 years agoDropped fixture module
Ihar Hrachyshka [Fri, 5 Dec 2014 21:41:02 +0000 (22:41 +0100)]
Dropped fixture module

The only single remaining usage of those fixtures in the tree was for
oslo.config fixture, which is now available via oslo.config library
itself.

Change-Id: I997a3a086598a8addf093790db102cd130588d95
Closes-Bug: #1399804

9 years agobase.py: Improve exception handling
Sergey Belous [Thu, 15 Jan 2015 11:47:42 +0000 (14:47 +0300)]
base.py: Improve exception handling

When logging exceptions the exception handling should make use
of save_and_reraise.

Change-Id: I3fd3aea1719d493b4184247991e2e5f79c4218aa
Closes-bug: #1305032

9 years agoCorrect _test_delete_ports_by_device_id_second_call_failure
Cedric Brandily [Mon, 12 Jan 2015 13:10:03 +0000 (13:10 +0000)]
Correct _test_delete_ports_by_device_id_second_call_failure

Currently the test assumes delete_ports_by_device_id deletes ports in
the order they were created but nothing ensures it. This change
updates _test_delete_ports_by_device_id_second_call_failure to avoid
such (incorrect) assumption. The assumption is in general broken in
daughter change which adds a unique constraint on Port table.

Change-Id: I387354eb8c02b614321ace5a105253d7504d5119

9 years agoMerge "Move postcommit ops out of transaction for bulk"
Jenkins [Thu, 15 Jan 2015 10:28:03 +0000 (10:28 +0000)]
Merge "Move postcommit ops out of transaction for bulk"

9 years agoMerge "Speed up initial L3 full sync time"
Jenkins [Thu, 15 Jan 2015 10:11:11 +0000 (10:11 +0000)]
Merge "Speed up initial L3 full sync time"

9 years agoMerge "Midonet plugin decomposition"
Jenkins [Thu, 15 Jan 2015 10:03:03 +0000 (10:03 +0000)]
Merge "Midonet plugin decomposition"

9 years agoMerge "VMWare-NSXv: VMWare NSXv configuration file"
Jenkins [Thu, 15 Jan 2015 09:50:23 +0000 (09:50 +0000)]
Merge "VMWare-NSXv: VMWare NSXv configuration file"

9 years agoMerge "Remove _delete_port_security_group_bindings from delete_port"
Jenkins [Thu, 15 Jan 2015 08:55:48 +0000 (08:55 +0000)]
Merge "Remove _delete_port_security_group_bindings from delete_port"

9 years agoMerge "Create arping helper in ip_lib"
Jenkins [Thu, 15 Jan 2015 08:55:23 +0000 (08:55 +0000)]
Merge "Create arping helper in ip_lib"

9 years agoMerge "tests: don't restore stopped mock that is set in setUp()"
Jenkins [Thu, 15 Jan 2015 08:55:01 +0000 (08:55 +0000)]
Merge "tests: don't restore stopped mock that is set in setUp()"

9 years agoMerge "Support 'alive' filter for get_agents() in agents_db"
Jenkins [Thu, 15 Jan 2015 08:52:08 +0000 (08:52 +0000)]
Merge "Support 'alive' filter for get_agents() in agents_db"

9 years agoVMWare-NSXv: VMWare NSXv configuration file
Roey Chen [Tue, 6 Jan 2015 12:34:58 +0000 (04:34 -0800)]
VMWare-NSXv: VMWare NSXv configuration file

For Kilo, the vendor-specific code should be moved to stackforge repo,
excluding the configuration files (https://review.openstack.org/#/c/134680/).

This patch adds config options for vmware NSXv plugin

Partially-Implements: blueprint vmware-nsx-v

Change-Id: Ibf8e9e1983d47b23397d00dfd4123a39049b0af2
Signed-off-by: Roey Chen <roeyc@vmware.com>
9 years agoMerge "Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp"
Jenkins [Thu, 15 Jan 2015 07:29:57 +0000 (07:29 +0000)]
Merge "Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp"

9 years agoMerge "Fixs shared networks in Arista ML2 driver"
Jenkins [Thu, 15 Jan 2015 07:16:06 +0000 (07:16 +0000)]
Merge "Fixs shared networks in Arista ML2 driver"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 15 Jan 2015 06:10:37 +0000 (06:10 +0000)]
Imported Translations from Transifex

For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iecf11df0efaf1c186170e5d196c9b2cc67de0a94

9 years agoCreate arping helper in ip_lib
Carl Baldwin [Mon, 12 Jan 2015 16:36:40 +0000 (16:36 +0000)]
Create arping helper in ip_lib

In trying to restructure the L3 agent in to more modules, some helpers
like arping will be used by several modules.  It is better to relocate
it to a common module which all of them will import and use.

Since there is only one spot which passed 'distributed=True', I chose
to break the utility in to two.  Also, 'distributed' doesn't really
describe what that argument is for.  So, I named the second utility
differently to indicate that it is for sending garps when proxyarp is
in use for the address on the interface.

Change-Id: Icfdf41917e9e2e0dcd2be19297aee5ac89e96e94
Partially-Implements: blueprint restructure-l3-agent

9 years agoInitial thin ML2 mechanism driver
Kyle Mestery [Mon, 8 Dec 2014 02:18:53 +0000 (02:18 +0000)]
Initial thin ML2 mechanism driver

This commit thins the in-tree OpenDaylight ML2 MechanismDriver. A matching
change to the stackforge/networking-odl project has the backend logic
there.

Closes-Bug: #1409151

Change-Id: Ic9c6565489e56a7e84b14fd2bba55f4b35f977ea

9 years agoEnable adding new tag with options
Tan Lin [Thu, 23 Oct 2014 11:00:22 +0000 (19:00 +0800)]
Enable adding new tag with options

It is useful to add a new tag when update the options
with dnsmasq.
We have a use case in Ironic to support ipxe with dnsmasq.
It looks like this:
dhcp_opts.append({'opt_name': 'tag:!ipxe,bootfile-name',
                  'opt_value': CONF.pxe.pxe_bootfile_name})

Change-Id: Idfaae9e8f8b7582f988e9da8707ef7d4823c6ff4
Closes-Bug: #1384577

9 years agoCall on dhcp-agent DhcpLocalProcess.restart() breaks dhcp
Miguel Angel Ajo [Thu, 15 Jan 2015 00:23:29 +0000 (00:23 +0000)]
Call on dhcp-agent DhcpLocalProcess.restart() breaks dhcp

The bugfix implemented on Ib37651f7f802debd472ab292b148c2a2496063a3
creates the network_conf_dir only during __init__, and restart()
method calls disable(), then enable(), where disable will remove
the config directory and all configuration files.

Previous implementation re-created the network_conf_dir on the
interface_name setter (called from enable) with ensure_conf_dir=True.

Change-Id: I6afaea062c9eed5c63fc64fb0113f460b2cf35c5
Closes-Bug: 1410982

9 years agoFixs shared networks in Arista ML2 driver
Sukhdev [Sat, 10 Jan 2015 01:02:53 +0000 (17:02 -0800)]
Fixs shared networks in Arista ML2 driver

When a shared network is created, it is stored
in arista_provisioned_nets under the tenant_id of
owner of the network. Later, when a different
tenant launches an instance on the shared network,
above mentioned DB is looked to find the network
under requesting tenant's ID, and it is not found,
and hence, the request is rejected.

The fix is made such that when a network is not
found under the requesting tenant's ID, check if
this network is shared network. If yes, then
check the DB to ensure that owner tenant exists
in the DB. If yes, then this is a valid request
and do not reject it. Otherwise reject it - as an
unknown tenant or network is specified in the
request.

Change-Id: I8f25d8f84af844afdb3b607bd8ade32f0f5e81fb
Closes-bug: 1409176

9 years agoMerge "Move agent cleanup scripts to cmd module"
Jenkins [Wed, 14 Jan 2015 23:28:14 +0000 (23:28 +0000)]
Merge "Move agent cleanup scripts to cmd module"

9 years agoMerge "[apic ml2] Bind ports regardless of the owner"
Jenkins [Wed, 14 Jan 2015 23:15:35 +0000 (23:15 +0000)]
Merge "[apic ml2] Bind ports regardless of the owner"

9 years agoMerge "misc-sanity-checks.sh: Some cleanups"
Jenkins [Wed, 14 Jan 2015 21:47:17 +0000 (21:47 +0000)]
Merge "misc-sanity-checks.sh: Some cleanups"

9 years agoMerge "Validate local_ip for Linuxbridge agent"
Jenkins [Wed, 14 Jan 2015 21:42:26 +0000 (21:42 +0000)]
Merge "Validate local_ip for Linuxbridge agent"

9 years agoMerge "Run only one instance of Nuage sync cycle at a time"
Jenkins [Wed, 14 Jan 2015 18:59:49 +0000 (18:59 +0000)]
Merge "Run only one instance of Nuage sync cycle at a time"

9 years agoMerge "Rename qexception->nexception"
Jenkins [Wed, 14 Jan 2015 18:59:32 +0000 (18:59 +0000)]
Merge "Rename qexception->nexception"

9 years agoMerge "Log iptables rules in a readable format"
Jenkins [Wed, 14 Jan 2015 18:54:33 +0000 (18:54 +0000)]
Merge "Log iptables rules in a readable format"

9 years agoMove agent cleanup scripts to cmd module
armando-migliaccio [Fri, 9 Jan 2015 18:02:19 +0000 (10:02 -0800)]
Move agent cleanup scripts to cmd module

Ensure naming consistency across the various entry points.

This patch better separates active elements of Neutron agents from
operator's utilities.

Along with [1,2,3], this is done to better delineate what the agent
module inner boundaries are about. More to follow to finish off the
cleanup.

[1] https://review.openstack.org/#/c/146024/
[2] https://review.openstack.org/#/c/145979/
[3] https://review.openstack.org/#/c/146239/

Change-Id: I1d2d2938aa7fa1c60e0f0dc70997778a1930efef

9 years agotests: don't restore stopped mock that is set in setUp()
Ihar Hrachyshka [Wed, 14 Jan 2015 15:22:52 +0000 (16:22 +0100)]
tests: don't restore stopped mock that is set in setUp()

setUp() will be called for each new test case, so there is no need to
explicitly restore the mock.

Change-Id: I92d41706df19d028269f074937343dd18aa140a0

9 years agomisc-sanity-checks.sh: Some cleanups
YAMAMOTO Takashi [Wed, 24 Dec 2014 08:21:35 +0000 (17:21 +0900)]
misc-sanity-checks.sh: Some cleanups

Some cleanups for commit 4fdda65a5b9f379af997e1e971865ccfa7a93156.

- Don't assume the path of mktemp command.  It's /usr/bin/mktemp
  for some platforms. eg. NetBSD.  Also, always provide a template
  as it's necessary for some platforms, eg. OS X.  This snippet was
  taken from the example in NetBSD's mktemp(1).
- Move a comment to the appropriate place.
- Improve a regex to ignore more comments.
- As the pattern for find -path is not a regex, no escape is necessary
  for period.

Closes-Bug: #1405584
Change-Id: Ia8358f0f7ebe9bc445ce5aa3c4f340546f37db05

9 years agoLog iptables rules in a readable format
armando-migliaccio [Wed, 14 Jan 2015 00:45:16 +0000 (16:45 -0800)]
Log iptables rules in a readable format

When troubleshooting issues having to parse the \n mentally is kind of
difficult. Be nice to the user and have the newlines interpreted correctly.
It's fine if we waste some spaces in the logs, storage is cheap these days.

Related-bug: #1403291

Change-Id: Ia6c651ae0d17c0165e4fe833c523061a66f7d7d1

9 years agoMerge "Allow IptablesManager to manage mangle table"
Jenkins [Wed, 14 Jan 2015 00:38:28 +0000 (00:38 +0000)]
Merge "Allow IptablesManager to manage mangle table"

9 years agoRemove main alias for bw compat with vpn agent
armando-migliaccio [Mon, 12 Jan 2015 17:52:28 +0000 (09:52 -0800)]
Remove main alias for bw compat with vpn agent

The alias becomes no longer necessary when [1] merges.

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

Partially-Implements: bp restructure-l3-agent

Change-Id: I4f3498b4ecb6539c96e31baf972ac715443bc93c

9 years agoMerge "Remove redundant tunnel ids from ovs agent"
Jenkins [Tue, 13 Jan 2015 21:10:03 +0000 (21:10 +0000)]
Merge "Remove redundant tunnel ids from ovs agent"

9 years agoMerge "VMWare NSXv DB model bugfix"
Jenkins [Tue, 13 Jan 2015 18:19:28 +0000 (18:19 +0000)]
Merge "VMWare NSXv DB model bugfix"

9 years agoMidonet plugin decomposition
Jaume Devesa [Wed, 24 Dec 2014 09:45:05 +0000 (09:45 +0000)]
Midonet plugin decomposition

Remove the midonet plugin code and add the requirements.txt file to
set the dependency to the vendor plugin. Dependency is not pinned: we
will use the newest library during the Kilo cycle and we will submit a
patch with the pinned version a bit before the Kilo code freeze.

Vendor plugin code is available here:
https://github.com/midonet/python-neutron-plugin-midonet

Plugin already available in pypi:
https://pypi.python.org/pypi/neutron-plugin-midonet/

DocImpact
Partially-implements: blueprint core-vendor-decomposition
Closes-bug: #1408339

Change-Id: I867ab6753cd45abb65e850cd6aaef7bb0c5bbddb

9 years agoFix topic for provider security group update
Kevin Benton [Tue, 13 Jan 2015 16:05:19 +0000 (08:05 -0800)]
Fix topic for provider security group update

Commit 8098b6bd20bb12520e438ef9125dc7b96664f712 accidentally changed
the topic for the provider security group update to a regular member
update. This resulted in the L2 agent not asking for the latest
security group rules after a DHCP port was created. If a regular
compute port was brought online and wired up by the L2 agent
before the DHCP port was created, the VM would never get its allow
rule to communicate with the DHCP server.

Co-bug-squasher: Armando

Closes-Bug: #1403291
Change-Id: I382f2e1390c9a3ff558e152eeb76f0f827266cb4

9 years agoSpecify prefix length for IPv6 subnets
Alexey I. Froloff [Tue, 30 Sep 2014 12:37:19 +0000 (16:37 +0400)]
Specify prefix length for IPv6 subnets

If Network contains dhcpv6-stateful Subnet with prefix other than /64,
dnsmasq refuses to start if prefix-len is not specified in dhcp-range
option.  From dnsmasq(8) manpage:

    For IPv6, the parameters are slightly different: instead of netmask
    and broadcast address, there is an optional prefix length which must
    be equal to or larger then the prefix length on the local interface.
    If not given, this defaults to 64. Unlike the IPv4 case, the prefix
    length is not automatically derived from the interface
    configuration. The mimimum size of the prefix length is 64.

It is safe to always specify prefix length, so dnsmasq will use correct
configuration.

Change-Id: Ibef1f55926585016f0054accd7f7ef5a022e3fe1
Closes-Bug: #1372883

9 years agoMerge "hacking: enable H238 (old style class declaration, use new style)"
Jenkins [Tue, 13 Jan 2015 13:48:06 +0000 (13:48 +0000)]
Merge "hacking: enable H238 (old style class declaration, use new style)"