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

9 years agoRemove RPC dependency to create FIP agent gw port
Swaminathan Vasudevan [Fri, 6 Feb 2015 23:07:40 +0000 (15:07 -0800)]
Remove RPC dependency to create FIP agent gw port

The Floatingip Agent Gateway port was initially
created when the agent requests one through an
RPC exchange.

We are seeing more failures in this area of the
code where there is delay in getting the agent
gateway port from the plugin through RPC.

Change-Id: Ieaa79c8bf2b1e03bc352f9252ce22286703e3715
Related-bug: #1415522

9 years agoFix typo in bash tool
Joe Gordon [Fri, 13 Feb 2015 23:51:54 +0000 (15:51 -0800)]
Fix typo in bash tool

Testing out I638ac2d35c33eef02e2c6872ea3bd4a3d644da58

So grenade,tempest,and rally should not run on this patch.

Change-Id: I3bdd9be8a6b2a23cdea527686e7ccc61d041f773

9 years agoMerge "Add the rebinding chance in _bind_port_if_needed"
Jenkins [Fri, 13 Feb 2015 15:35:57 +0000 (15:35 +0000)]
Merge "Add the rebinding chance in _bind_port_if_needed"

9 years agoFix usage drop_constraint in 2a1ee2fb59e0 migration
Ann Kamyshnikova [Fri, 13 Feb 2015 12:52:49 +0000 (15:52 +0300)]
Fix usage drop_constraint in 2a1ee2fb59e0 migration

Downgrade for migration 2a1ee2fb59e0_add_mac_address_unique_constraint
fails as it gets wrong parameters name, source and local_cols,
although it expects name, source and type_.

Also as MySQL creates index for unique constraint it should be used
"with migration.remove_fks_from_table".

Closes-bug: #1421631

Change-Id: Id86b2f339a6fb33fc4fd637ffbfc2cb6e75ef4fb

9 years agoFix index name in downgrade 26b54cf9024d migration
Ann Kamyshnikova [Fri, 13 Feb 2015 11:53:00 +0000 (14:53 +0300)]
Fix index name in downgrade 26b54cf9024d migration

In downgrade of migration 26b54cf9024d_add_index_on_allocated is
trying to drop index 'ix_ml2_vxlan_allocations_allocated',
which is not exits.

Closes-bug: #1421618

Change-Id: I4c75e78512cc6d112a23ab5c7de6e8ca104891b0

9 years agoRemove root_helper arg from linux interface
Terry Wilson [Wed, 11 Feb 2015 03:36:58 +0000 (21:36 -0600)]
Remove root_helper arg from linux interface

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

9 years agoRemove root_helper arg from L3 Agent
Terry Wilson [Tue, 10 Feb 2015 13:37:34 +0000 (07:37 -0600)]
Remove root_helper arg from L3 Agent

Remove the root_helper arg from the L3 agent.

Change-Id: Ib66813d9823618cdc3caf48673721173f0bdf5fc
Partially-Implements: blueprint rootwrap-daemon-mode
Depends-On: I1e3b64e5a1d6cff2aebc638710487bbdbdba61d4

9 years agoMerge "Remove unused RPC methods from l3_rpc"
Jenkins [Fri, 13 Feb 2015 08:57:07 +0000 (08:57 +0000)]
Merge "Remove unused RPC methods from l3_rpc"

9 years agoMerge "OVS DVR: Remove dead code"
Jenkins [Fri, 13 Feb 2015 08:51:12 +0000 (08:51 +0000)]
Merge "OVS DVR: Remove dead code"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 13 Feb 2015 08:50:57 +0000 (08:50 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Cleanup in keepalived tests"
Jenkins [Fri, 13 Feb 2015 05:19:55 +0000 (05:19 +0000)]
Merge "Cleanup in keepalived tests"

9 years agoMerge "Fix AttributeError exception for API's test_network_lifecycle"
Jenkins [Fri, 13 Feb 2015 03:39:58 +0000 (03:39 +0000)]
Merge "Fix AttributeError exception for API's test_network_lifecycle"

9 years agoOVS DVR: Remove dead code
YAMAMOTO Takashi [Fri, 13 Feb 2015 02:09:37 +0000 (11:09 +0900)]
OVS DVR: Remove dead code

This is a leftover from commit e90ea7ce3f1aae1dce216618da49d37a64d3bb91 .

Change-Id: I13d10d00f86659bc7c76df9be0cd8b8ec6713bc6

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Fri, 13 Feb 2015 01:54:07 +0000 (01:54 +0000)]
Updated from global requirements

Change-Id: Ic74d16fa084e598273a7c1f33fe67843757da6e1

9 years agoMerge "hacking: also catch 'import oslo.*' imports"
Jenkins [Fri, 13 Feb 2015 00:13:04 +0000 (00:13 +0000)]
Merge "hacking: also catch 'import oslo.*' imports"

9 years agoFix AttributeError exception for API's test_network_lifecycle
armando-migliaccio [Thu, 12 Feb 2015 23:20:29 +0000 (15:20 -0800)]
Fix AttributeError exception for API's test_network_lifecycle

Change I2be04f600e6bd8d7d78948d25395d8e04fa0dea3 moved the
exception to tempest_lib. We should use the new import.

Closes-bug: #1421454

Change-Id: Id9ec2537261f101b1bed895bfe5ef2943b8548d2

9 years agoRemove root_helper arg for ovs_lib
Terry Wilson [Mon, 9 Feb 2015 04:43:31 +0000 (22:43 -0600)]
Remove root_helper arg for ovs_lib

Stop passing root_helper in ovs_lib classes and instead rely on
execute() looking up the root_helper from the config.

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

9 years agoRaise timeout for test_conntrack_disassociate_fip
Ihar Hrachyshka [Thu, 12 Feb 2015 18:56:31 +0000 (19:56 +0100)]
Raise timeout for test_conntrack_disassociate_fip

It seems that 15 secs is not always enough, so raise the timeout to
something guaranteed to indicate a failure.

Change-Id: I4821983ebb2ef9483c0d35737794ddb45ddd4ac6
Closes-Bug: #1421354

9 years agoMerge "keepalived: use sh instead of bash for notifier scripts"
Jenkins [Thu, 12 Feb 2015 18:19:41 +0000 (18:19 +0000)]
Merge "keepalived: use sh instead of bash for notifier scripts"

9 years agoMerge "Check conntrack rule cleanup on floating IP disassociate"
Jenkins [Thu, 12 Feb 2015 18:13:54 +0000 (18:13 +0000)]
Merge "Check conntrack rule cleanup on floating IP disassociate"

9 years agoMerge "Revert "monkey patch stdlib before importing other modules""
Jenkins [Thu, 12 Feb 2015 17:30:06 +0000 (17:30 +0000)]
Merge "Revert "monkey patch stdlib before importing other modules""

9 years agoMerge "Remove deprecated DEFAULT.root_helper"
Jenkins [Thu, 12 Feb 2015 16:10:34 +0000 (16:10 +0000)]
Merge "Remove deprecated DEFAULT.root_helper"

9 years agoMerge "Scope state reporting rpc api using a messaging namespace"
Jenkins [Thu, 12 Feb 2015 15:53:24 +0000 (15:53 +0000)]
Merge "Scope state reporting rpc api using a messaging namespace"

9 years agoCleanup in keepalived tests
Assaf Muller [Wed, 11 Feb 2015 15:55:19 +0000 (10:55 -0500)]
Cleanup in keepalived tests

A recent patch introduced a new keepalived manager utility
function which returns the keepalived.conf file contents,
but the keepalived functional test was not updated to use it.
Also, a bunch of unneeded logging configuration was removed from
this test.

Additionally, the keepalived configuration functional test
in the L3 agent testing module compares expected configuration
to an in-memory representation of the configuration that will
be persisted to disk. It's better to compare the expected
configuation with what was actually written to disk.

Change-Id: I0d6f73c5326d2ba1960456a151a67517db5cce7a

9 years agoAdd run_as_root option to utils.execute
Terry Wilson [Wed, 21 Jan 2015 20:19:06 +0000 (14:19 -0600)]
Add run_as_root option to utils.execute

This change adds the run_as_root option that exists in the
processutils.execute method. This option makes it possible
to just look up the root_helper from the config when
necessary, while still making it possible to not use any
privilege escalation.

Currently, processutils.execute exposes some eventlet issues
in the neutron codebase, otherwise this patch would just move
us over to using it.

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

9 years agoMerge "Move NCS mech driver to its new home"
Jenkins [Thu, 12 Feb 2015 01:27:42 +0000 (01:27 +0000)]
Merge "Move NCS mech driver to its new home"