]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoAvoid DetachedInstanceError after session rollback
Eugene Nikanorov [Mon, 23 Feb 2015 10:29:08 +0000 (13:29 +0300)]
Avoid DetachedInstanceError after session rollback

In some cases this exception is thrown while accessing Agent
object from logging statement after a transaction was rolled back.
There is a unit test that covers thsi code patch, but the issue
is not reproducible with sqlite.
Just avoid accessing db object after session had been closed.

Change-Id: Iff6b72156b08f177bd0c71f6ba93d3bf46c82fa4
Closes-Bug: #1424578

9 years agoMerge "Remove remaining do_delete from unit tests"
Jenkins [Sun, 22 Feb 2015 10:39:58 +0000 (10:39 +0000)]
Merge "Remove remaining do_delete from unit tests"

9 years agoMerge "VMware NSXv: Add configuration options to nsx.ini"
Jenkins [Sun, 22 Feb 2015 08:48:37 +0000 (08:48 +0000)]
Merge "VMware NSXv: Add configuration options to nsx.ini"

9 years agoMerge "Move Floating IP processing to Router classes"
Jenkins [Sun, 22 Feb 2015 06:11:26 +0000 (06:11 +0000)]
Merge "Move Floating IP processing to Router classes"

9 years agoMerge "Improve exception handling in _process_router_update()"
Jenkins [Sat, 21 Feb 2015 08:54:12 +0000 (08:54 +0000)]
Merge "Improve exception handling in _process_router_update()"

9 years agoMerge "adopt namespace-less oslo imports"
Jenkins [Sat, 21 Feb 2015 05:32:54 +0000 (05:32 +0000)]
Merge "adopt namespace-less oslo imports"

9 years agoadopt namespace-less oslo imports
ronak [Thu, 19 Feb 2015 00:50:29 +0000 (16:50 -0800)]
adopt namespace-less oslo imports

Changing the leftovers that I found with latest code.
link: https://review.openstack.org/#/c/147215/
Change-Id: I5adbed9bbe9cb6e819dd2a8a72e7fbeee06fbf00
Closes-bug: #1423389

9 years agoMerge "Remove reference to self.services_sync"
Jenkins [Sat, 21 Feb 2015 00:08:16 +0000 (00:08 +0000)]
Merge "Remove reference to self.services_sync"

9 years agoMerge "VMWare NSXv: Add configuration params to nsx.ini"
Jenkins [Sat, 21 Feb 2015 00:07:06 +0000 (00:07 +0000)]
Merge "VMWare NSXv: Add configuration params to nsx.ini"

9 years agoMerge "VMWare NSXv: id fields should be nullable"
Jenkins [Sat, 21 Feb 2015 00:04:56 +0000 (00:04 +0000)]
Merge "VMWare NSXv: id fields should be nullable"

9 years agoMerge "Remove remaining uses of passing root_helper"
Jenkins [Sat, 21 Feb 2015 00:04:41 +0000 (00:04 +0000)]
Merge "Remove remaining uses of passing root_helper"

9 years agoMerge "Remove versioning import of novaclient"
Jenkins [Fri, 20 Feb 2015 23:23:08 +0000 (23:23 +0000)]
Merge "Remove versioning import of novaclient"

9 years agoMerge "Stale VXLAN and GRE tunnel port/flow deletion"
Jenkins [Fri, 20 Feb 2015 21:25:45 +0000 (21:25 +0000)]
Merge "Stale VXLAN and GRE tunnel port/flow deletion"

9 years agoMerge "Refactor to facilitate DVR scale performance"
Jenkins [Fri, 20 Feb 2015 21:22:28 +0000 (21:22 +0000)]
Merge "Refactor to facilitate DVR scale performance"

9 years agoMerge "Cisco Nexus ML2 Vendor decomposition"
Jenkins [Fri, 20 Feb 2015 21:02:15 +0000 (21:02 +0000)]
Merge "Cisco Nexus ML2 Vendor decomposition"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 20 Feb 2015 18:35:22 +0000 (18:35 +0000)]
Merge "Updated from global requirements"

9 years agoMove Floating IP processing to Router classes
Carl Baldwin [Thu, 18 Dec 2014 17:48:19 +0000 (17:48 +0000)]
Move Floating IP processing to Router classes

Change-Id: Id0822f1c3d586c813a09e4b442a21d3cb52943d0
Partially-Implements: bp/restructure-l3-agent

9 years agoMerge "Enable pylint unnecessary-pass"
Jenkins [Fri, 20 Feb 2015 16:42:45 +0000 (16:42 +0000)]
Merge "Enable pylint unnecessary-pass"

9 years agoMerge "Enable pylint no-value-for-parameter"
Jenkins [Fri, 20 Feb 2015 16:38:53 +0000 (16:38 +0000)]
Merge "Enable pylint no-value-for-parameter"

9 years agoMerge "Enable pylint bad-super-call"
Jenkins [Fri, 20 Feb 2015 16:30:16 +0000 (16:30 +0000)]
Merge "Enable pylint bad-super-call"

9 years agoMerge "Enable 'free' pylint checks"
Jenkins [Fri, 20 Feb 2015 16:29:59 +0000 (16:29 +0000)]
Merge "Enable 'free' pylint checks"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 20 Feb 2015 15:46:56 +0000 (15:46 +0000)]
Updated from global requirements

Change-Id: I32d3f4333e5ac6e70f68580b9629cde0e1481ecf

9 years agoMerge "fix for _get_external_device_interface_name trace"
Jenkins [Fri, 20 Feb 2015 15:42:24 +0000 (15:42 +0000)]
Merge "fix for _get_external_device_interface_name trace"

9 years agoImprove exception handling in _process_router_update()
Oleg Bondarev [Fri, 20 Feb 2015 14:11:44 +0000 (17:11 +0300)]
Improve exception handling in _process_router_update()

in _process_router_update() where _process_router_if_compatible()
method is called only RouterNotCompatibleWithAgent exception is handled.
In case any other (intermittent) exception happens inside
_process_router_if_compatible() (e.g. MessagingTimeout on fetching
external net from server) it results in a situation where agent completely
forgets about the router and continues working as usual while server
shows router hosted by agent.

This patch adds handler for broader exception there and set
fullsync = True like it's done earlier in _process_router_update()
when getting routers from server.

Change-Id: I5bfc540a926349848702100744f97c597b852604
Closes-Bug: #1423571

9 years agoCisco Nexus ML2 Vendor decomposition
Sam Betts [Wed, 4 Feb 2015 15:58:42 +0000 (15:58 +0000)]
Cisco Nexus ML2 Vendor decomposition

This adds a thin shim replacing the Cisco Nexus mech driver so that it
may use the code now stored in the networking-cisco stackforge. The code
for this driver that has been moved into the stackforge is also removed by
this patch.

Partial-Implements: blueprint core-vendor-decomposition
Change-Id: Ib88fd121509e96be42fb0bd22422ccaa7d4eb0f1
Closes-Bug: 1419010

9 years agoMerge "Unify logic that determines liveliness of DHCP agent"
Jenkins [Fri, 20 Feb 2015 10:33:53 +0000 (10:33 +0000)]
Merge "Unify logic that determines liveliness of DHCP agent"

9 years agoMerge "Mock link local allocator write so UT doesn't write a file"
Jenkins [Fri, 20 Feb 2015 08:08:56 +0000 (08:08 +0000)]
Merge "Mock link local allocator write so UT doesn't write a file"

9 years agoRemove versioning import of novaclient
Andrey Kurilin [Wed, 4 Feb 2015 13:10:57 +0000 (15:10 +0200)]
Remove versioning import of novaclient

novaclient has specific function novaclient.client.Client for obtaining
client object. This fuction should be used instead of direct import.
Also, contrib path dependends on version, so we should get it based on
versioned client.

Change-Id: If9c55446c4d10a58e9723f5c333082bcacb431b8
Closes-Bug: #1418017

9 years agoRemove remaining uses of passing root_helper
Terry Wilson [Wed, 11 Feb 2015 06:53:57 +0000 (00:53 -0600)]
Remove remaining uses of passing root_helper

This should remove the last bits of passing root_helper around
for execute(). Some tests store and pass the root_helper argument
outside of this, and have been left alone.

Depends-On: I1e3b64e5a1d6cff2aebc638710487bbdbdba61d4
Depends-On: I5d51fa5edc7f427d84d7ae49d3a4c972dca8ac37
Depends-On: I21c6e7795c8b2e8f87bbd2b00a8eb7cb215ece74
Depends-On: I6566e17a1ce07a3bebf2a1a3653ad7e7f397f0b9
Change-Id: I38c901c65fb0c8598589ec56d5afd50d2f882f4f
Partially-Implements: blueprint rootwrap-daemon-mode

9 years agoRemove root_helper arg from sanity checks
Terry Wilson [Wed, 11 Feb 2015 14:03:13 +0000 (08:03 -0600)]
Remove root_helper arg from sanity checks

Change-Id: I0e0791b9a04750968675d21b93cee412c50fdd51
Partially-Implements: blueprint rootwrap-daemon-mode

9 years agoMerge "Fix type of exception in ml2 l2pop"
Jenkins [Fri, 20 Feb 2015 02:36:23 +0000 (02:36 +0000)]
Merge "Fix type of exception in ml2 l2pop"

9 years agoEnable pylint unnecessary-pass
Assaf Muller [Fri, 20 Feb 2015 00:38:02 +0000 (19:38 -0500)]
Enable pylint unnecessary-pass

Change-Id: I5ba003286a9abdcd92c08d9a164282a03eb1144a

9 years agoEnable pylint no-value-for-parameter
Assaf Muller [Fri, 20 Feb 2015 00:20:45 +0000 (19:20 -0500)]
Enable pylint no-value-for-parameter

Change-Id: I532dc0c8f0f9f8c92b47a51138d5162bc506016b

9 years agoEnable pylint bad-super-call
Assaf Muller [Thu, 19 Feb 2015 23:43:03 +0000 (18:43 -0500)]
Enable pylint bad-super-call

Change-Id: I408ce142a2f2145ac442ad4130681b135f9d52cf

9 years agoEnable 'free' pylint checks
Assaf Muller [Fri, 20 Feb 2015 00:00:52 +0000 (19:00 -0500)]
Enable 'free' pylint checks

Change-Id: I4aa1e4a43c50b8ac0f4e97b84479c66d78407625

9 years agoMerge "Remove remaining root_helper args from plugins"
Jenkins [Fri, 20 Feb 2015 00:37:36 +0000 (00:37 +0000)]
Merge "Remove remaining root_helper args from plugins"

9 years agoMerge "Improve robustness of network failover"
Jenkins [Thu, 19 Feb 2015 23:49:36 +0000 (23:49 +0000)]
Merge "Improve robustness of network failover"

9 years agoRemove reference to self.services_sync
Carl Baldwin [Thu, 19 Feb 2015 22:17:25 +0000 (22:17 +0000)]
Remove reference to self.services_sync

This is an implementation detail of fwaas and shouldn't be referenced
here.  There is no need to call self.process_services_sync on super.

Change-Id: I8797e40480c8c43788f4c192abddaf5d3e146e4c
Partially-Implements: bp/restructure-l3-agent
Depends-On: I6091ca2c03f2b5ffef453dea1152d2ac53bb7f14

9 years agoFix type of exception in ml2 l2pop
Assaf Muller [Thu, 19 Feb 2015 21:47:33 +0000 (16:47 -0500)]
Fix type of exception in ml2 l2pop

Closes-Bug: #1423703
Change-Id: Ie6e2b33a8084381c01a35e3ded6b021f540ef42e

9 years agoMerge "ML2: remove underscore from public method"
Jenkins [Thu, 19 Feb 2015 19:40:25 +0000 (19:40 +0000)]
Merge "ML2: remove underscore from public method"

9 years agoMerge "Remove error logs for a common situation (non created ipsets)"
Jenkins [Thu, 19 Feb 2015 19:07:26 +0000 (19:07 +0000)]
Merge "Remove error logs for a common situation (non created ipsets)"

9 years agoMerge "Remove root_helper arg from linux interface"
Jenkins [Thu, 19 Feb 2015 17:58:13 +0000 (17:58 +0000)]
Merge "Remove root_helper arg from linux interface"

9 years agoMerge "Remove root_helper arg from L3 Agent"
Jenkins [Thu, 19 Feb 2015 17:49:42 +0000 (17:49 +0000)]
Merge "Remove root_helper arg from L3 Agent"

9 years agoVMware NSXv: Add configuration options to nsx.ini
Roey Chen [Thu, 19 Feb 2015 11:50:04 +0000 (03:50 -0800)]
VMware NSXv: Add configuration options to nsx.ini

Adds option to control the use of spoofguard component in NSXv

Change-Id: Iaef46618887a2058b2f9fdbc4eabdb357c444cb3
Signed-off-by: Roey Chen <roeyc@vmware.com>
9 years agoMock link local allocator write so UT doesn't write a file
Carl Baldwin [Thu, 19 Feb 2015 16:35:01 +0000 (16:35 +0000)]
Mock link local allocator write so UT doesn't write a file

The UTs recently started writing a fip-linklocal-networks file in
test_l3_agent.  This is due to a recently added test.  This patch adds
a mock to it so that the file is not written.

Change-Id: I338a369fe25e64faa84cdec413d6bad7b315f890

9 years agoVMWare NSXv: Add configuration params to nsx.ini
Kobi Samoray [Thu, 19 Feb 2015 09:40:33 +0000 (11:40 +0200)]
VMWare NSXv: Add configuration params to nsx.ini

Adds some additional configuration parameters to nsx.ini, and their
description.
These parameters relate to NSXv metadata implementation.

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

9 years agoRemove error logs for a common situation (non created ipsets)
Miguel Angel Ajo [Tue, 17 Feb 2015 12:28:46 +0000 (12:28 +0000)]
Remove error logs for a common situation (non created ipsets)

The log message was initially added by me as part of a
iptables_firewall refactor.

Ipsets for empty IP address lists aren't currently created,
that means that we can't reference empty security groups
(as ipsets) via iptable rules, and that's a normal condition,
not an error.

Closes bug: #1421772
Change-Id: I6b1ae1fb505ce5e76ef8cf7ef7df38cff57e0000

9 years agoMerge "Fix usage drop_constraint in 2a1ee2fb59e0 migration"
Jenkins [Thu, 19 Feb 2015 14:33:39 +0000 (14:33 +0000)]
Merge "Fix usage drop_constraint in 2a1ee2fb59e0 migration"

9 years agoMerge "Combining sec groups member update RPC calls"
Jenkins [Thu, 19 Feb 2015 14:30:33 +0000 (14:30 +0000)]
Merge "Combining sec groups member update RPC calls"

9 years agoMerge "Fix static strings with labels for DVR"
Jenkins [Thu, 19 Feb 2015 09:58:59 +0000 (09:58 +0000)]
Merge "Fix static strings with labels for DVR"

9 years agoMerge "Enable super-on-old-class pylint check"
Jenkins [Thu, 19 Feb 2015 08:27:05 +0000 (08:27 +0000)]
Merge "Enable super-on-old-class pylint check"

9 years agoMerge "Added policy for lbaas v2 agent extension resource"
Jenkins [Thu, 19 Feb 2015 08:18:05 +0000 (08:18 +0000)]
Merge "Added policy for lbaas v2 agent extension resource"

9 years agoMerge "Fix index name in downgrade 26b54cf9024d migration"
Jenkins [Thu, 19 Feb 2015 07:51:56 +0000 (07:51 +0000)]
Merge "Fix index name in downgrade 26b54cf9024d migration"

9 years agoUnify logic that determines liveliness of DHCP agent
Eugene Nikanorov [Wed, 4 Feb 2015 12:05:36 +0000 (15:05 +0300)]
Unify logic that determines liveliness of DHCP agent

For DHCP agents sometimes it's not enough to check agent's last heartbeat
time because in its starting period the agent may fail to send state reports
because it's busy processing networks.
In rescheduling logic such DHCP agent is given additional time after start.
Additional time is proportional to amount of networks the agent is hosting.
Need to apply the same logic to DHCP agent scheduler to avoid a case
when starting agent is considered dead and a network gets more hosting
agents than configured.

Change-Id: I0fe6244c7d2ed42e4744351be34f251318322c54
Closes-Bug: #1417708

9 years agoMerge "Tweak mocking logic for L3 plugin tests"
Jenkins [Thu, 19 Feb 2015 01:51:59 +0000 (01:51 +0000)]
Merge "Tweak mocking logic for L3 plugin tests"

9 years agoMerge "Moved several services into neutron.cmd.eventlet"
Jenkins [Thu, 19 Feb 2015 01:51:37 +0000 (01:51 +0000)]
Merge "Moved several services into neutron.cmd.eventlet"

9 years agoMerge "Check if routing rule exists before adding"
Jenkins [Thu, 19 Feb 2015 01:39:29 +0000 (01:39 +0000)]
Merge "Check if routing rule exists before adding"

9 years agoMerge "Add a functional test that checks HA router is configured on a restarted agent"
Jenkins [Thu, 19 Feb 2015 01:38:45 +0000 (01:38 +0000)]
Merge "Add a functional test that checks HA router is configured on a restarted agent"

9 years agoMerge "Remove root_helper arg from DHCP agent"
Jenkins [Thu, 19 Feb 2015 01:35:39 +0000 (01:35 +0000)]
Merge "Remove root_helper arg from DHCP agent"

9 years agoMerge "Remove root_helper arg from AsyncProcess"
Jenkins [Thu, 19 Feb 2015 01:35:09 +0000 (01:35 +0000)]
Merge "Remove root_helper arg from AsyncProcess"

9 years agoMerge "Remove root_helper arg from linuxbridge"
Jenkins [Thu, 19 Feb 2015 01:28:16 +0000 (01:28 +0000)]
Merge "Remove root_helper arg from linuxbridge"

9 years agoMerge "Update midonet plugin requirements"
Jenkins [Wed, 18 Feb 2015 21:42:52 +0000 (21:42 +0000)]
Merge "Update midonet plugin requirements"

9 years agofix for _get_external_device_interface_name trace
rajeev [Fri, 13 Feb 2015 21:58:53 +0000 (16:58 -0500)]
fix for _get_external_device_interface_name trace

On removal of external gateway from DVR the code path
external_gateway_removed(...) was trying to access the
agent gateway port interface even when no fip namespace exists.
This change checks for existence of namespace before
accessing the agent gateway port interface through
_get_external_device_interface_name(...) or looking for
floating ips that may have been configured on the
port.

Change-Id: Idcf28ff93f16f1d692fe7acb678fb90aabe5af5e
Closes-Bug: #1421497

9 years agoMerge "Get rid of rpc to fetch fip agent port on agent."
Jenkins [Wed, 18 Feb 2015 20:24:02 +0000 (20:24 +0000)]
Merge "Get rid of rpc to fetch fip agent port on agent."

9 years agoML2: remove underscore from public method
Manish Godara [Wed, 18 Feb 2015 19:46:12 +0000 (11:46 -0800)]
ML2: remove underscore from public method

In some refactors the private method was used from
outside the class but name wasn't updated.

Change-Id: I594af2661c4773e0d2c35ec924a4142057442086

9 years agoFix static strings with labels for DVR
Swaminathan Vasudevan [Sat, 20 Dec 2014 00:58:17 +0000 (16:58 -0800)]
Fix static strings with labels for DVR

There are couple of static strings introduced for
DVR configuration such as the L3 agent mode.

This patch would clean up the static strings with
the labels.

Closes-Bug: #1411351
Change-Id: I143262e62ee994e6c01d63e4ea7d5f6292de8286

9 years agoMerge "Monkey patch all the code inside neutron/cmd/eventlet/..."
Jenkins [Wed, 18 Feb 2015 18:52:26 +0000 (18:52 +0000)]
Merge "Monkey patch all the code inside neutron/cmd/eventlet/..."

9 years agoMerge "tests: monkey patch stdlib before importing other modules"
Jenkins [Wed, 18 Feb 2015 18:48:38 +0000 (18:48 +0000)]
Merge "tests: monkey patch stdlib before importing other modules"

9 years agoGet rid of rpc to fetch fip agent port on agent.
Swaminathan Vasudevan [Fri, 6 Feb 2015 23:59:06 +0000 (15:59 -0800)]
Get rid of rpc to fetch fip agent port on agent.

This patch is dependent on the plugin side patch
Change-Id: Ieaa79c8bf2b1e03bc352f9252ce22286703e3715
for retrieving the fip agent port from the
router_update message.

This would reduce the wait time substantially.

Change-Id: I47bc43bab4bff59d14e2cdbce9f8b47826d392d9
Related-Bug: #1415522

9 years agoCombining sec groups member update RPC calls
Mohammad Banikazemi [Wed, 11 Feb 2015 21:47:21 +0000 (16:47 -0500)]
Combining sec groups member update RPC calls

This change allows combining multiple RPC calls for
security group member/provider updates that are needed
as a result of create bulk port operations.

Change-Id: Ibfe84f40e55a9847cbcaa4a7344988b2d3fb895e
Closes-Bug: #1373634

9 years agoVMWare NSXv: id fields should be nullable
Kobi Samoray [Wed, 18 Feb 2015 17:25:27 +0000 (19:25 +0200)]
VMWare NSXv: id fields should be nullable

To handle concurrency issues when two neutron nodes initialize at the same
time, we use the following solution:
- Each neutron node attempts to create a record with id value=NULL
- One which inserts successfully, resumes to create the resource and once
the resource is created, it updates its id in the database
- One which fails with duplicate entry exception, busy-waits until the id
field is populated, of terminates on timeout.

Relevant resources are internal edges, and internal networks.

To implement the above, id fields should be nullable.

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

9 years agoMerge "Don't monkey patch netns_cleanup"
Jenkins [Wed, 18 Feb 2015 17:25:26 +0000 (17:25 +0000)]
Merge "Don't monkey patch netns_cleanup"

9 years agoMerge "Remove root_helper arg from SecurityGroupAgentRpc"
Jenkins [Wed, 18 Feb 2015 16:09:18 +0000 (16:09 +0000)]
Merge "Remove root_helper arg from SecurityGroupAgentRpc"

9 years agoCheck if routing rule exists before adding
Brian Haley [Fri, 30 Jan 2015 18:22:17 +0000 (13:22 -0500)]
Check if routing rule exists before adding

Since there is no equivalent to 'ip route replace...' with
'ip rule...', we need to check the existence first before
adding, as otherwise we'll end up with multiple identical
routing rules.

Change-Id: I8f1f2424dd854fad8a72478463fa8fadd6a5c168
Closes-Bug: #1398865

9 years agoMerge "Remove root_helper arg from IpsetManager"
Jenkins [Wed, 18 Feb 2015 14:24:22 +0000 (14:24 +0000)]
Merge "Remove root_helper arg from IpsetManager"

9 years agoRemove root_helper arg from DHCP agent
Terry Wilson [Tue, 10 Feb 2015 07:58:26 +0000 (01:58 -0600)]
Remove root_helper arg from DHCP agent

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I394fc2bf8b9579203fc0a878047a57cf6e09927e

9 years agoRemove root_helper arg from AsyncProcess
Terry Wilson [Tue, 10 Feb 2015 06:32:13 +0000 (00:32 -0600)]
Remove root_helper arg from AsyncProcess

Removes the root_helper arg from AsyncProcess and areas whose use
of root_helper was soley for passing it to AsyncProcess.

Change-Id: I6c34f2d8466444c82f8712a2a765975695795fd7
Partially-Implements: rootwrap-daemon-mode

9 years agoMerge "Remove root_helper arg from IptablesManager"
Jenkins [Wed, 18 Feb 2015 14:16:47 +0000 (14:16 +0000)]
Merge "Remove root_helper arg from IptablesManager"

9 years agoMerge "Remove root_helper arg from external_process"
Jenkins [Wed, 18 Feb 2015 14:13:41 +0000 (14:13 +0000)]
Merge "Remove root_helper arg from external_process"

9 years agoMerge "Skip DBDuplicateEntry exception in security group creation"
Jenkins [Wed, 18 Feb 2015 13:46:42 +0000 (13:46 +0000)]
Merge "Skip DBDuplicateEntry exception in security group creation"

9 years agoRemove root_helper arg from linuxbridge
Terry Wilson [Tue, 10 Feb 2015 04:19:03 +0000 (22:19 -0600)]
Remove root_helper arg from linuxbridge

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: Ie075cd4f505ed76e820e29cce1a55b6e8192b3df

9 years agoRemove root_helper arg from SecurityGroupAgentRpc
Terry Wilson [Tue, 10 Feb 2015 04:50:09 +0000 (22:50 -0600)]
Remove root_helper arg from SecurityGroupAgentRpc

Removes the root_helper argument from SecurityGroupAgentRpc and
removes usages of root_helper that were solely required for it.

Change-Id: If166fda9fac7718ae7bbc86756884ddea8dd70d5
Partially-Implements: blueprint rootwrap-daemon-mode

9 years agoMoved several services into neutron.cmd.eventlet
Ihar Hrachyshka [Wed, 18 Feb 2015 11:11:07 +0000 (12:11 +0100)]
Moved several services into neutron.cmd.eventlet

- dhcp-agent
- l3-agent
- metadata-agent
- metadata-proxy
- metering-agent
- server

This allows us to remove explicit monkey_patch() call.

Also removed ability to execute neutron-server avoiding a corresponding
entry point.

Depends-On: I2d7081dbd4cb532332e3b66667bb8c71aa5a6658

Related-Bug: #1418541
Change-Id: I89e3e8e23374ab1a9a1844b3caaa88e162418546

9 years agoMonkey patch all the code inside neutron/cmd/eventlet/...
Ihar Hrachyshka [Wed, 18 Feb 2015 10:42:43 +0000 (11:42 +0100)]
Monkey patch all the code inside neutron/cmd/eventlet/...

The directory is initially empty.

We are going to maintain entry points for all services and agents that
run in eventlet mode in this directory, and monkey patch them from
there, instead of spreading monkey_patch() calls throughout the library.

This will guarantee us that all the services that are maintained in this
part of the tree monkey patch stdlib properly, before doing any other
imports.

This is also useful to track which parts of the project require
eventlet.  This will later help to migrate services one by one out of
eventlet to real threads in case we decide to move this direction.

Related-Bug: #1417386
Related-Bug: #1418541
Change-Id: I2bc16ca4422c01d64e9fac4910214dbb0d0326ff

9 years agotests: monkey patch stdlib before importing other modules
Ihar Hrachyshka [Thu, 5 Feb 2015 13:21:38 +0000 (14:21 +0100)]
tests: monkey patch stdlib before importing other modules

Some oslo libraries assume that stdlib is already patched when they are
imported (f.e. oslo.concurrency.processutils currently checks whether
time module is monkey patched on import to detect which subprocess
module should be used).

For services, we achieve this by moving monkey_patch() calls as high in
import list as possible. But for tests, we don't control the order in
which testr loads test cases. So to be on safe side, we should make sure
any attempt to load a test case from the tree results in eventlet patch.

We can't put the monkey_patch() call into e.g. neutron/__init__.py to
reuse it both for tests and for services, because in that case we may
break flake8 that loads hacking checks from neutron.* namespace and
relies on proper (unpatched) subprocess module.

Closes-Bug: #1418541
Change-Id: Id58409000d0e086f3fb664a15935af4f1708c396

9 years agoDon't monkey patch netns_cleanup
Ihar Hrachyshka [Thu, 12 Feb 2015 12:51:21 +0000 (13:51 +0100)]
Don't monkey patch netns_cleanup

There is no reason to monkey patch the tool (it does not rely on any
special kind of model of concurrency). It's better to avoid eventlet
wherever possible, and there are discussions on whether we want to start
dropping eventlet usage agent by agent, so it's worth keeping as much of
code out of monkey business.

Related-Bug: #1418541
Change-Id: I1c1bb5a23e191da660efe9d4179ffaf5fec647f9

9 years agoRemove root_helper arg from IpsetManager
Terry Wilson [Tue, 10 Feb 2015 03:59:45 +0000 (21:59 -0600)]
Remove root_helper arg from IpsetManager

Change-Id: I174f109b5d60ec6d5514ffbcdbc097271ea41758
Partially-Implements: blueprint rootwrap-daemon-mode

9 years agoRemove root_helper arg from IptablesManager
Terry Wilson [Tue, 10 Feb 2015 03:32:58 +0000 (21:32 -0600)]
Remove root_helper arg from IptablesManager

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I4b7da37df4256a1019f16c587e1738175861030e

9 years agoRemove root_helper arg from external_process
Terry Wilson [Tue, 10 Feb 2015 03:01:38 +0000 (21:01 -0600)]
Remove root_helper arg from external_process

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: Icdfc3ac4812154bcd628f9a224ef516d55b41cfd

9 years agoAdd a functional test that checks HA router is configured on a restarted agent
AKamyshnikova [Mon, 9 Feb 2015 08:54:43 +0000 (11:54 +0300)]
Add a functional test that checks HA router is configured on a restarted agent

Functional test should  validate the expected behavior of patch
https://review.openstack.org/#/c/148335/.

That test would pass if keepalived received the SIGHUP signal the
2nd time the router was configured on new agent,
and it would fail otherwise.

Closes-bug: #1413684

Change-Id: Iaa72402920cd0854e1738e7de87b8cba46ecd9f9

9 years agoUpdate midonet plugin requirements
Jaume Devesa [Wed, 18 Feb 2015 08:03:33 +0000 (09:03 +0100)]
Update midonet plugin requirements

Due a recent move to stackforge infrastructure, midonet plugin is
called now 'networking-midonet'

Change-Id: Id8799da15430b8888b57c3ff551f8ec3a540f69f

9 years agoMerge "Search in /sys/class/net for network devices"
Jenkins [Wed, 18 Feb 2015 06:58:08 +0000 (06:58 +0000)]
Merge "Search in /sys/class/net for network devices"

9 years agoMerge "Hyper-V: Fixes security groups issue"
Jenkins [Wed, 18 Feb 2015 06:36:16 +0000 (06:36 +0000)]
Merge "Hyper-V: Fixes security groups issue"

9 years agoMerge "Remove root_helper arg for ovs_lib"
Jenkins [Wed, 18 Feb 2015 05:38:08 +0000 (05:38 +0000)]
Merge "Remove root_helper arg for ovs_lib"

9 years agoMerge "Stop using passed root_helper in ip_lib"
Jenkins [Wed, 18 Feb 2015 04:52:26 +0000 (04:52 +0000)]
Merge "Stop using passed root_helper in ip_lib"

9 years agoMerge "OVS UT: Fix some confusions between local vlan id and segmentation id"
Jenkins [Wed, 18 Feb 2015 03:03:13 +0000 (03:03 +0000)]
Merge "OVS UT: Fix some confusions between local vlan id and segmentation id"

9 years agoMerge "Fix the api job"
Jenkins [Wed, 18 Feb 2015 03:02:51 +0000 (03:02 +0000)]
Merge "Fix the api job"

9 years agoStop using passed root_helper in ip_lib
Terry Wilson [Wed, 21 Jan 2015 22:11:37 +0000 (16:11 -0600)]
Stop using passed root_helper in ip_lib

This patch leaves the root_helper option, but stops using it as
a phased implementation of dropping the argument altogether.

Partially-Implements: blueprint rootwrap-daemon-mode
Change-Id: I1b729241aa76b2dcb053b51c69d28e1c5359b4f7

9 years agoOVS UT: Fix some confusions between local vlan id and segmentation id
YAMAMOTO Takashi [Tue, 17 Feb 2015 05:11:11 +0000 (14:11 +0900)]
OVS UT: Fix some confusions between local vlan id and segmentation id

Also, use different values for them to expose mistakes.

Details:

There are two kinds of vlan ids involved here:
* local vlan id, which is managed by each agents in a node-local manner.
* segmentation id, which is managed by the corresponding ML2 type driver.
These tests use the distinct variables for them.
(LV_ID and LS_ID respectively)
However, these variables are misused in some places, relying on the fact
that their values are same.  (42)

Change-Id: Ib2ba74be74c2c361d25821acab2083a17b1b0173

9 years agoMerge "Un-break tox for unit tests"
Jenkins [Wed, 18 Feb 2015 01:08:45 +0000 (01:08 +0000)]
Merge "Un-break tox for unit tests"