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

9 years agoMerge "Add run_as_root option to utils.execute"
Jenkins [Tue, 17 Feb 2015 23:59:28 +0000 (23:59 +0000)]
Merge "Add run_as_root option to utils.execute"

9 years agoUn-break tox for unit tests
Brian Haley [Tue, 17 Feb 2015 20:57:10 +0000 (15:57 -0500)]
Un-break tox for unit tests

Running 'tox -e py27 $some_unit_test' is always failing now
with tox 1.6.0, with this being printed at the beginning:

ERROR: InvocationError: could not find executable 'dsvm-functional:'

Seems commit 540e4d791ff2573aae38810f4c39f2d6f46d8898
(Automate host configuration for functional testing)
added some code to tox.ini that requires version 1.8 or later,
so make that the minimum.

Change-Id: I56313d0a22dbc4007142b8bb4890d1ac8bebff94

9 years agoMerge "Fix FIP agent gw port delete based on external net"
Jenkins [Tue, 17 Feb 2015 22:01:45 +0000 (22:01 +0000)]
Merge "Fix FIP agent gw port delete based on external net"

9 years agoMerge "Delete qg device during DVR-SNAT router deletion"
Jenkins [Tue, 17 Feb 2015 19:42:26 +0000 (19:42 +0000)]
Merge "Delete qg device during DVR-SNAT router deletion"

9 years agoFix FIP agent gw port delete based on external net
Swaminathan Vasudevan [Thu, 8 Jan 2015 17:44:01 +0000 (09:44 -0800)]
Fix FIP agent gw port delete based on external net

Today the FIP agent gateway port for DVR is deleted
based on the host. When there are multiple external
networks, then the port deletion for the second
external network may fail.

So the current fix checks for the valid host and
external network id and then deletes the FIP agent
gw port if it is the last one to be deleted.

Closes-Bug: #1421886

Change-Id: Ic5dfb88409c39d06d912263b338d0c5f7ebd3bcb

9 years agoSkip DBDuplicateEntry exception in security group creation
Ann Kamyshnikova [Fri, 13 Feb 2015 15:41:21 +0000 (18:41 +0300)]
Skip DBDuplicateEntry exception in security group creation

An DBDuplicateEntry expection appeared if it is attempted to
create secutity groups in more then one thread. In this situation
at one moment it is trying to be created 2 default security groups
which is not allowed. In this case exception should skipped with
a message about failed attempt.

Closes-bug: #1419723

Change-Id: Id6fe997ad3b72f875160e1e31a3dc17c3cc53b75

9 years agoMerge "Setup br-tun in secure fail mode to avoid broadcast storms"
Jenkins [Tue, 17 Feb 2015 15:44:50 +0000 (15:44 +0000)]
Merge "Setup br-tun in secure fail mode to avoid broadcast storms"

9 years agoMerge "Remove RPC dependency to create FIP agent gw port"
Jenkins [Tue, 17 Feb 2015 15:37:01 +0000 (15:37 +0000)]
Merge "Remove RPC dependency to create FIP agent gw port"

9 years agoHyper-V: Fixes security groups issue
Lucian Petrut [Tue, 27 Jan 2015 13:23:27 +0000 (15:23 +0200)]
Hyper-V: Fixes security groups issue

After this patch If19be8579ca734a899cdd673c919eee8165aaa0e refactored
securitygroups_rpc, prepare_devices_filter attempts to use methods
unimplemented by the HyperV security groups driver.

For this reason, binding ports fails with NotImplementedError if
security groups are enabled.

Until the HyperV security groups driver reaches parity, the
use_enhanced_rpc property should be set to False on the
HyperVSecurityAgent, falling back to the old behaviour.

Change-Id: I1a7ee2b92367d2d59932b8b39372a055bf19951b
Closes-Bug: #1415523

9 years agoMerge "OVS DVR: Use a right mac address value to compose a flow"
Jenkins [Tue, 17 Feb 2015 04:03:44 +0000 (04:03 +0000)]
Merge "OVS DVR: Use a right mac address value to compose a flow"

9 years agoFix the api job
Henry Gessau [Tue, 17 Feb 2015 01:34:29 +0000 (20:34 -0500)]
Fix the api job

The api tests were out sync with tempest. XML support has been dropped
so JSON no longer needs to be specified.

Change-Id: I040cc4dbca4e9706309495ac78e0492d74e0bf62

9 years agoSetup br-tun in secure fail mode to avoid broadcast storms
Miguel Angel Ajo [Thu, 12 Feb 2015 14:32:58 +0000 (14:32 +0000)]
Setup br-tun in secure fail mode to avoid broadcast storms

When not creating br-tun in secure fail mode, there are chances to
get a broadcast storm from br-tun.

For example, this occurs when at least three nodes have the br-tun
OpenFlow rules reset in and a broadcast/multicast packet enters br-tun.

This can happen if:
  * openvswitch is restarted, until the agent reloads the Openflow rules.
  * during neutron-openvswitch-agent restart, br-tun is reset, and there
is a few seconds timeframe where tunnel endpoints are plugged and OF
rules are reset.

Secure fail mode doesn't forward traffic by default if no rule is hit.

Change-Id: Iba5ded14179156decb16dcd4b898c026660f9653
Closes-bug: #1421232

9 years agoMerge "Automate host configuration for functional testing"
Jenkins [Mon, 16 Feb 2015 14:25:31 +0000 (14:25 +0000)]
Merge "Automate host configuration for functional testing"

9 years agoDelete qg device during DVR-SNAT router deletion
Assaf Muller [Fri, 13 Feb 2015 16:35:02 +0000 (11:35 -0500)]
Delete qg device during DVR-SNAT router deletion

In the DVR SNAT case, the 'qg' device was not deleted because
of patch:
https://review.openstack.org/#/c/151882/

During functional testing, the device is deleted
during the external bridge deletion. Because that happens after
the SNAT namespace is already deleted, it can cause a kernel
panic or ovs-vswitchd crash for certain OVS versions.

Also added assertions that all router interfaces were properly
cleaned up during functional testing, and enabled the unit tests
to catch this type of error.

Change-Id: Ica86a030860aa967d5b685b5bfb5546a85b2a809
Closes-Bug: #1418097

9 years agoMerge "ml2: Simplify _process_provider_create"
Jenkins [Sun, 15 Feb 2015 08:41:37 +0000 (08:41 +0000)]
Merge "ml2: Simplify _process_provider_create"

9 years agoMerge "ML2: Hierarchical port binding"
Jenkins [Sat, 14 Feb 2015 16:56:07 +0000 (16:56 +0000)]
Merge "ML2: Hierarchical port binding"

9 years agoMerge "ML2: DB changes for hierarchical port binding"
Jenkins [Sat, 14 Feb 2015 06:53:45 +0000 (06:53 +0000)]
Merge "ML2: DB changes for hierarchical port binding"

9 years agoAutomate host configuration for functional testing
Maru Newby [Fri, 9 Jan 2015 15:02:59 +0000 (15:02 +0000)]
Automate host configuration for functional testing

This change adds a new script, configure_for_func_testing.sh, that
automates configuration of a host to support functional testing.  The
script's functionality is consumed by a refactored version of
gate_hook.sh, and both minimizes runtime and removes the previous
dependency on the devstack-gate repo.

Additionally, the dsvm-functional tox env is no longer dependent on
devstack to deploy neutron's rootwrap configuration system-wide.
Rootwrap configuration is now deployed to the target tox venv on each
tox invocation.

Change-Id: Iaf43be458bdf3c4535f95ee5a3a3b47a744020a0

9 years agoML2: Hierarchical port binding
Robert Kukura [Fri, 22 Aug 2014 09:01:03 +0000 (05:01 -0400)]
ML2: Hierarchical port binding

The ML2 port binding logic is modified to support hierarchical
bindings. If a mechanism driver's bind_port() calls continue_binding()
rather than set_binding(), the supplied dynamic segments are used for
another level of binding.

Gerrit Spec: https://review.openstack.org/#/c/139886/

Implements: blueprint ml2-hierarchical-port-binding

Change-Id: Id741c2d6c443fa0eac5ecf8d964b3fc14b5d3abe

9 years agoML2: DB changes for hierarchical port binding
Robert Kukura [Thu, 21 Aug 2014 19:46:11 +0000 (15:46 -0400)]
ML2: DB changes for hierarchical port binding

To support hierarchical port binding, the driver and segment columns
are moved from the ml2_port_bindings and ml2_dvr_port_bindings tables
to a new ml2_port_binding_levels table. This new table can store
multiple levels of binding information for each port. It has the host
as part of its primary key so that it can be used for both normal and
DVR port bindings.

The cap_port_filter column is also removed from the
ml2_dvr_port_bindings table, since the adjacent driver and segment
columns are being moved, and this can trivially be done via the same
DB migration. It was included in the table by mistake and was never
used.

The logic required for hierarchical port binding will be implemented
in a dependent patch.

Gerrit Spec: https://review.openstack.org/#/c/139886/

Partially-implements: blueprint ml2-hierarchical-port-binding

Change-Id: I08ddc384763087fbac0fa3da3ed6e99b897df031

9 years agoMerge "Fix typo in bash tool"
Jenkins [Sat, 14 Feb 2015 01:59:19 +0000 (01:59 +0000)]
Merge "Fix typo in bash tool"