]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoDon't spawn metadata-proxy for non-isolated nets
John Schwarz [Tue, 26 Aug 2014 08:43:11 +0000 (11:43 +0300)]
Don't spawn metadata-proxy for non-isolated nets

If the configuation option "enable_isolated_metadata = True" for the
DHCP agent is set, the neutron-ns-metadata-proxy process is spawned
for all networks, regardless if they are isolated or not. In case
the network is not isolated (ie. connected to a neutron router), the
L3 agent also spawns a proxy process, and the DHCP's proxy is left
unused. This patch adds a check prior to the spawning of new proxies:
if a network is not isolated, no proxy is spawned.

Change-Id: I9bdb8c3d37997b22435bca33ec47a67db08efa51
Closes-bug: #1361545

10 years agoMerge "ofagent: Enable local arp responder for local VMs"
Jenkins [Mon, 1 Sep 2014 11:20:50 +0000 (11:20 +0000)]
Merge "ofagent: Enable local arp responder for local VMs"

10 years agoMerge "ofagent: merge br-tun into br-int"
Jenkins [Mon, 1 Sep 2014 11:20:36 +0000 (11:20 +0000)]
Merge "ofagent: merge br-tun into br-int"

10 years agoMerge "Apic drivers enhancements (second approach): L3 refactor"
Jenkins [Mon, 1 Sep 2014 07:21:44 +0000 (07:21 +0000)]
Merge "Apic drivers enhancements (second approach): L3 refactor"

10 years agoMerge "Provide a quick way to run flake8"
Jenkins [Mon, 1 Sep 2014 06:46:55 +0000 (06:46 +0000)]
Merge "Provide a quick way to run flake8"

10 years agoMerge "Networks are not scheduled to DHCP agents for Cisco N1KV plugin"
Jenkins [Mon, 1 Sep 2014 02:17:28 +0000 (02:17 +0000)]
Merge "Networks are not scheduled to DHCP agents for Cisco N1KV plugin"

10 years agoofagent: Enable local arp responder for local VMs
YAMAMOTO Takashi [Mon, 11 Aug 2014 00:02:22 +0000 (09:02 +0900)]
ofagent: Enable local arp responder for local VMs

Because ofagent makes every arp requests packet-in and
perform packet-out anyway, just make it respond arp requests
for local VMs.  It would be simpler and more effective than
forwarding requests to the network as it did before this change.

Before this change:
    request: src VM -> switch -> controller -> switch -> target VM
    reply: target VM -> switch -> src VM

After this change:
    request: src VM -> switch -> controller
    reply: controller -> switch -> src VM

As a bonus, now we can test l2pop and local arp responder with
a single node setup, at least for some extents.

Related: blueprint ofagent-l2pop
Related: blueprint ofagent-merge-bridges
Change-Id: I606a238d8c2021ed908fbd89d3488768497f57c5

10 years agoofagent: merge br-tun into br-int
YAMAMOTO Takashi [Fri, 18 Apr 2014 06:48:20 +0000 (15:48 +0900)]
ofagent: merge br-tun into br-int

Highlights:
- Deprecate br-tun.
- Reduce the use of OFPP_NORMAL action.  Use mac address info
  obtained from get_device_details and l2-pop to reduce flooding.
- Use OpenFlow metadata instead of "internal" VLANs.
  Now tenant networks are VLAN transparent.

Implements: blueprint ofagent-port-monitor
Implements: blueprint ofagent-merge-bridges
Change-Id: I21ee1c6d141863182b487e10c7bfe911b1a472ab

10 years agoApic drivers enhancements (second approach): L3 refactor
Ivar Lazzaro [Fri, 22 Aug 2014 01:35:02 +0000 (18:35 -0700)]
Apic drivers enhancements (second approach): L3 refactor

- refactor to leverage Client's transactional capabilities
- General refactor to improve the driver's reliability

Implements blueprint: apic-driver-enhancements

Change-Id: I5a19039e82988a0570622bc1ddb1429e9833d478

10 years agoML2 Type Driver refactor part 2
Arvind Somya [Mon, 18 Aug 2014 15:59:44 +0000 (08:59 -0700)]
ML2 Type Driver refactor part 2

This commit builds on top of part 1 to introduce support for creating
dynamic network segments in ML2.

Change-Id: I399e1569baae6f24054aac15c4c51a2e44a20e5b
Partially implements: Blueprint ml2-type-driver-refactor

10 years agoAdds router service plugin for CSR1kv
Bob Melander [Wed, 25 Dec 2013 13:08:01 +0000 (14:08 +0100)]
Adds router service plugin for CSR1kv

Implements: blueprint cisco-routing-service-vm

Change-Id: Ifd021fa06ce34d622e61734aab94b4da32649c4a

10 years agoMerge "Support for extensions in ML2"
Jenkins [Sun, 31 Aug 2014 16:23:18 +0000 (16:23 +0000)]
Merge "Support for extensions in ML2"

10 years agoMerge "Cisco DFA ML2 Mechanism Driver"
Jenkins [Sun, 31 Aug 2014 16:22:54 +0000 (16:22 +0000)]
Merge "Cisco DFA ML2 Mechanism Driver"

10 years agoMerge "metering driver default value is different in code and config file"
Jenkins [Sun, 31 Aug 2014 13:33:32 +0000 (13:33 +0000)]
Merge "metering driver default value is different in code and config file"

10 years agoMerge "Datacenter moid should not be tuple"
Jenkins [Sun, 31 Aug 2014 13:29:49 +0000 (13:29 +0000)]
Merge "Datacenter moid should not be tuple"

10 years agoSupport for extensions in ML2
Nader Lahouti [Sat, 19 Apr 2014 23:01:05 +0000 (16:01 -0700)]
Support for extensions in ML2

The current ML2 plugin supports only extensions defined in the plugin and it
does not support any extensions in the mechanism drivers. The changes in this
commit allows mechanism drivers to define new extensions.

Change-Id: I28da19fabf6de2e9f0d687f875aaaa24c8bbc4f0
Implements: blueprint extensions-in-ml2

10 years agoCisco DFA ML2 Mechanism Driver
Nader Lahouti [Sat, 28 Jun 2014 01:09:19 +0000 (18:09 -0700)]
Cisco DFA ML2 Mechanism Driver

Part 1:
This commit contains changes to support ML2 mechanism driver for Cisco
DFA. For more details please see the blueprint which has more description and
link to document with requirements.

Part 2: Changes in OVS neutron agent.
(http://review.openstack.org/110065)

Part 3: DFA extension driver.
(http://review.openstack.org/111761)

Part 4: DFA config profile service plugin.
(http://review.openstack.org/111863)

Change-Id: Ib53b6705948e1ed75059b85d8809562d9bb63f65
Partially Implements: blueprint ml2-mechanism-driver-for-cisco-dfa

10 years agoMerge "Make SecurityGroupsRpcCallback a separate callback class"
Jenkins [Sun, 31 Aug 2014 10:34:43 +0000 (10:34 +0000)]
Merge "Make SecurityGroupsRpcCallback a separate callback class"

10 years agoMerge "Adding mechanism driver in ML2 plugin for Nuage Networks"
Jenkins [Sun, 31 Aug 2014 10:21:34 +0000 (10:21 +0000)]
Merge "Adding mechanism driver in ML2 plugin for Nuage Networks"

10 years agoMerge "Apic drivers enhancements (second approach): L2 refactor"
Jenkins [Sun, 31 Aug 2014 08:32:26 +0000 (08:32 +0000)]
Merge "Apic drivers enhancements (second approach): L2 refactor"

10 years agoMerge "Inline "for val in [ref]" statements"
Jenkins [Sun, 31 Aug 2014 04:30:34 +0000 (04:30 +0000)]
Merge "Inline "for val in [ref]" statements"

10 years agoMerge "remove explicit include of the ovs plugin"
Jenkins [Sun, 31 Aug 2014 04:30:20 +0000 (04:30 +0000)]
Merge "remove explicit include of the ovs plugin"

10 years agoMerge "NSX: log request body to NSX as debug"
Jenkins [Sun, 31 Aug 2014 04:29:49 +0000 (04:29 +0000)]
Merge "NSX: log request body to NSX as debug"

10 years agoMerge "Remove ovs dependency in embrane plugin"
Jenkins [Sun, 31 Aug 2014 00:02:03 +0000 (00:02 +0000)]
Merge "Remove ovs dependency in embrane plugin"

10 years agoMerge "Block downgrade from icehouse to havana"
Jenkins [Sat, 30 Aug 2014 20:01:37 +0000 (20:01 +0000)]
Merge "Block downgrade from icehouse to havana"

10 years agoMerge "Fix state_path in tests"
Jenkins [Sat, 30 Aug 2014 18:37:23 +0000 (18:37 +0000)]
Merge "Fix state_path in tests"

10 years agoMerge "Add functional test for l3_agent"
Jenkins [Sat, 30 Aug 2014 18:34:57 +0000 (18:34 +0000)]
Merge "Add functional test for l3_agent"

10 years agoMerge "Fix IpNetnsCommand to execute without root_wrapper when no netns"
Jenkins [Sat, 30 Aug 2014 12:43:21 +0000 (12:43 +0000)]
Merge "Fix IpNetnsCommand to execute without root_wrapper when no netns"

10 years agoProvide a quick way to run flake8
Akihiro Motoki [Tue, 19 Aug 2014 15:54:30 +0000 (00:54 +0900)]
Provide a quick way to run flake8

"run_tests.sh -p" always checks every file for errors even though you
have probably only changed a handful. This patch adds "run_tests.sh -8"
which only checks the files that were modified in the HEAD commit or
in the current working tree.

It is borrowed from the recent nova commit b011325cc6.
The related ML post is:
http://lists.openstack.org/pipermail/openstack-dev/2014-August/043346.html

Change-Id: Ieeabf1b79a0790af8bde3144dca59b4245a0b79a

10 years agoApic drivers enhancements (second approach): L2 refactor
Ivar Lazzaro [Fri, 22 Aug 2014 01:17:03 +0000 (18:17 -0700)]
Apic drivers enhancements (second approach): L2 refactor

- refactor to leverage Client's transactional capabilities
- General refactor to improve the driver's reliability

Implements blueprint: apic-driver-enhancements

Change-Id: I4deb171381e62e70818218957d82b5e27954aeb9

10 years agoMerge "Fix heal_script for MySQL specifics"
Jenkins [Sat, 30 Aug 2014 06:36:29 +0000 (06:36 +0000)]
Merge "Fix heal_script for MySQL specifics"

10 years agoMake SecurityGroupsRpcCallback a separate callback class
Akihiro Motoki [Sat, 23 Aug 2014 09:16:18 +0000 (18:16 +0900)]
Make SecurityGroupsRpcCallback a separate callback class

RPC has a version of itself. In Neutron a plugin implements
several RPC interface, so a single RPC version doesn't work.
In Mixin callback class approach, RPC versioning depends on
each plugin implementation and it makes harder to maintain
RPC version appropriately. This patch series replaces mixin
RPC callback of server side with a separate class.

This commit handles server-side callback of security group
RPC interface.
* The server-side callback of Security group RPC is moved to
  api/rpc/handler and db/securitygroups_rpc_base now only
  contains a mixin class to add agent-based security group
  implementation with db operations.
* get_port_from_device method in server-side callback class
  is moved to a mixin class of plugin implementation
  (SecurityGroupServerRpcMixin) because it involves DB lookup
  and is tightly coupled with plugin implementation rather
  than RPC interface definition.

Most unit tests for SGServerRpcCallBackTestCase were skipped
in the base class before, but now they are no longer skipped.

The following items will be planned in later patches
to avoid drastic changes in a single patch.
* Merge security group RPC API and agent callback classes in
  agent/securitygroups_rpc into api/rpc/handlers/securitygroup_rpc
* Remove completely duplicated db access code in get_port_from_device
  and get_port_and_sgs

Partial-Bug: #1359416
Change-Id: Ia6535217d2e3b849a95667c1b53dd09675002892

10 years agoMerge "Check for IPv6 file before reading"
Jenkins [Sat, 30 Aug 2014 00:20:38 +0000 (00:20 +0000)]
Merge "Check for IPv6 file before reading"

10 years agoMerge "Fix InvalidRequestError in auto_schedule_routers"
Jenkins [Fri, 29 Aug 2014 22:44:01 +0000 (22:44 +0000)]
Merge "Fix InvalidRequestError in auto_schedule_routers"

10 years agoAdding mechanism driver in ML2 plugin for Nuage Networks
ronak [Wed, 30 Jul 2014 23:16:14 +0000 (16:16 -0700)]
Adding mechanism driver in ML2 plugin for Nuage Networks

This patchset introduces basic ml2 driver for nuage.
In Juno release, mechanism driver will support basic
L2 functionality as a stepping stone to enhance
it in later releases.

Implements blueprint: ml2-mech-driver-nuage
Change-Id: Idae4f88f3d21526f377ec0f81377cb90b9fc14e4

10 years agoMerge "Make DvrServerRpcCallback a separate callback class"
Jenkins [Fri, 29 Aug 2014 17:25:26 +0000 (17:25 +0000)]
Merge "Make DvrServerRpcCallback a separate callback class"

10 years agoMerge "Heal script: Drop fks before operating on columns"
Jenkins [Fri, 29 Aug 2014 16:25:23 +0000 (16:25 +0000)]
Merge "Heal script: Drop fks before operating on columns"

10 years agoFix state_path in tests
Assaf Muller [Fri, 29 Aug 2014 11:44:10 +0000 (14:44 +0300)]
Fix state_path in tests

cfg.CONF.state_path is set to a random temporary directory
in neutron.tests.base:BaseTestCase.setUp. This value was then
over written in neutron.tests.unit.__init__. Tests that need
to read or pass cfg.CONF.state_path were getting the directory
from which the tests were running and not the temporary directory
specially created for the current test run. Note that the usage
of state_path to set lock_path, dhcp state path and the likes
was working as expected, and was not affected by this bug.

Closes-Bug: #1363058
Change-Id: Ib45f663fadaf0f3b4a79a0db4128822187b61ecc

10 years agoAdd functional test for l3_agent
Assaf Muller [Sun, 27 Jul 2014 14:49:49 +0000 (17:49 +0300)]
Add functional test for l3_agent

In order to insert the HA related code into the L3
agent, as part of blueprint l3-high-availability,
it's important to add functional tests for the L3 agent.

The L3 HA patch will use the framework provided here
to implement additional HA specific tests.

Implements: blueprint l3-high-availability
Change-Id: I49ddc95a0c41330580fcec6ba05c72684248af5e

10 years agoremove explicit include of the ovs plugin
Prasoon Telang [Fri, 29 Aug 2014 13:55:35 +0000 (19:25 +0530)]
remove explicit include of the ovs plugin

On installing only neutron-linuxbridge-agent package, the
dhcp cannot start successfully because of the imports from
ovs plugin. This change removes the explicit include of the
ovs plugin from ovs_lib.py. INVALID_OFPORT has been moved to
ovs_lib.py while VXLAN_UDP_PORT has moved to
plugins/common/constants.py. The imports for these 2 constants
in files which uses it has been corrected to new location.

Closes-Bug: #1271449
Change-Id: I6559cb43d1b10b4f926c453a103b12017b59f259

10 years agoMerge "Increase ovsdb_monitor.SimpleInterfaceMonitor start timeout"
Jenkins [Fri, 29 Aug 2014 13:46:55 +0000 (13:46 +0000)]
Merge "Increase ovsdb_monitor.SimpleInterfaceMonitor start timeout"

10 years agoMerge "Change nexus_dict to accept port lists"
Jenkins [Fri, 29 Aug 2014 11:13:10 +0000 (11:13 +0000)]
Merge "Change nexus_dict to accept port lists"

10 years agoMerge "Apic drivers enhancements (second approach): Backend"
Jenkins [Fri, 29 Aug 2014 10:16:00 +0000 (10:16 +0000)]
Merge "Apic drivers enhancements (second approach): Backend"

10 years agoMerge "Refactor test_type_gre/vxlan to reduce duplicate code"
Jenkins [Fri, 29 Aug 2014 10:15:45 +0000 (10:15 +0000)]
Merge "Refactor test_type_gre/vxlan to reduce duplicate code"

10 years agoMerge "Add config for visibility of cisco-policy-profile"
Jenkins [Fri, 29 Aug 2014 09:15:49 +0000 (09:15 +0000)]
Merge "Add config for visibility of cisco-policy-profile"

10 years agoMerge "Make DhcpRpcCallback a separate callback class"
Jenkins [Fri, 29 Aug 2014 09:15:03 +0000 (09:15 +0000)]
Merge "Make DhcpRpcCallback a separate callback class"

10 years agoMerge "Adding support of DNS nameserver and Host routes for the Nuage Plugin"
Jenkins [Fri, 29 Aug 2014 09:13:24 +0000 (09:13 +0000)]
Merge "Adding support of DNS nameserver and Host routes for the Nuage Plugin"

10 years agoNSX: log request body to NSX as debug
Aaron Rosen [Fri, 22 Aug 2014 18:09:29 +0000 (11:09 -0700)]
NSX: log request body to NSX as debug

Previously we never logged the request body that we sent to NSX. This makes
things hard to debug when issues arise as we don't actually log the body of
the request that we made. This patch adds the body to our issue request log
statement.

Change-Id: I7d98e3d844ebe565fb5919aac3f9afd5b4040e69
Closes-bug: 1360394

10 years agoDatacenter moid should not be tuple
Yang Yu [Fri, 29 Aug 2014 06:05:26 +0000 (23:05 -0700)]
Datacenter moid should not be tuple

Remove the comma, because it will convert the string to tuple
Closes-bug: #1362480

Change-Id: I2debb76bae26fe3d437a431f2946f66a1cbe6851

10 years agoRemove ovs dependency in embrane plugin
Ignacio Scopetta [Sun, 20 Jul 2014 06:37:22 +0000 (23:37 -0700)]
Remove ovs dependency in embrane plugin

This patch changes the dependency of the embrane plugin from ovs to ml2.
Existing users of the old entry point will be upgraded on a case-by-case
base as needed, therefore no generic upgrade procedure is required.

Change-Id: Id192fc32bd6ba7a8926eff1190070b8df5327129
Closes-Bug: #1343024

10 years agoMerge "Use lockutils module for tox functional env"
Jenkins [Fri, 29 Aug 2014 03:57:42 +0000 (03:57 +0000)]
Merge "Use lockutils module for tox functional env"

10 years agoMerge "Set firewall state to CREATED when dealing with DVR"
Jenkins [Fri, 29 Aug 2014 03:55:48 +0000 (03:55 +0000)]
Merge "Set firewall state to CREATED when dealing with DVR"

10 years agoMerge "Fix func job hook script permission problems"
Jenkins [Fri, 29 Aug 2014 01:37:19 +0000 (01:37 +0000)]
Merge "Fix func job hook script permission problems"

10 years agoMerge "Do not use auto_schedule_routers to add router to agent"
Jenkins [Fri, 29 Aug 2014 01:34:19 +0000 (01:34 +0000)]
Merge "Do not use auto_schedule_routers to add router to agent"

10 years agoMerge "Fix config option names in ml2_conf_sriov.ini"
Jenkins [Thu, 28 Aug 2014 22:58:17 +0000 (22:58 +0000)]
Merge "Fix config option names in ml2_conf_sriov.ini"

10 years agoMerge "Fix l3 agent scheduling logic to avoid unwanted failures"
Jenkins [Thu, 28 Aug 2014 21:19:45 +0000 (21:19 +0000)]
Merge "Fix l3 agent scheduling logic to avoid unwanted failures"

10 years agoMerge "Raise NotImplementedError instead of NotImplemented"
Jenkins [Thu, 28 Aug 2014 18:26:29 +0000 (18:26 +0000)]
Merge "Raise NotImplementedError instead of NotImplemented"

10 years agoApic drivers enhancements (second approach): Backend
Ivar Lazzaro [Thu, 21 Aug 2014 23:34:27 +0000 (16:34 -0700)]
Apic drivers enhancements (second approach): Backend

- Move backend facing modules to a library

Implements blueprint: apic-driver-enhancements

Change-Id: Ia4553d3885ca1886ca6bc7ea5d96afeace5fc457

10 years agoMake DvrServerRpcCallback a separate callback class
Akihiro Motoki [Tue, 19 Aug 2014 12:16:19 +0000 (21:16 +0900)]
Make DvrServerRpcCallback a separate callback class

RPC has a version of itself. In Neutron a plugin implements
several RPC interface, so a single RPC version doesn't work.
In Mixin callback class approach, RPC versioning depends on
each plugin implementation and it makes harder to maintain
RPC version appropriately. This patch series replaces mixin
RPC callback of server side with a separate class.

This commit handles server-side callback of DVR ML2 RPC interface.

Partial-Bug: #1359416
Change-Id: I1b6383f7b0af5d9aed18eda3a15f21d3504d0347

10 years agoMake DhcpRpcCallback a separate callback class
Akihiro Motoki [Mon, 18 Aug 2014 19:14:31 +0000 (04:14 +0900)]
Make DhcpRpcCallback a separate callback class

RPC has a version of itself. In Neutron a plugin implements
several RPC interface, so a single RPC version doesn't work.
In Mixin callback class approach, RPC versioning depends on
each plugin implementation and it makes harder to maintain
RPC version appropriately. This patch series replaces mixin
RPC callback of server side with a separate class.

This commit handles server-side callback of dhcp-agent RPC interface.
DHCP-agent server-side callback class is moved from db/ to
api/rpc/handlers because it doesn't involve any db operations
and defining all RPC interfaces in a single place sounds reasonable.

Note that moving other DHCP-agent related RPC interface class
to api/rpc/handlers can be done in a separate patch as this patch
focuses on reorganizing the server-side RPC callback class.

Partial-Bug: #1359416
Change-Id: Ifb2a1bc0b7971995aae2856c9d4cd88c6dbc22d6

10 years agoAdding support of DNS nameserver and Host routes for the Nuage Plugin
Franck Yelles [Tue, 12 Aug 2014 01:18:15 +0000 (18:18 -0700)]
Adding support of DNS nameserver and Host routes for the Nuage Plugin

This commit will implement the following DHCP options:
 - DNS nameserver
 - Host routes

Implements: blueprint dhcp-host-routes-and-dns-support-for-nuage-plugin
Change-Id: Idbb04f46112cddd588cad88921210aa0f63645f6

10 years agoMerge "Ensure assertion matches dict iter order in test"
Jenkins [Thu, 28 Aug 2014 11:09:28 +0000 (11:09 +0000)]
Merge "Ensure assertion matches dict iter order in test"

10 years agoMerge "Add support for provider-network extension in nuage Plugin"
Jenkins [Thu, 28 Aug 2014 11:09:12 +0000 (11:09 +0000)]
Merge "Add support for provider-network extension in nuage Plugin"

10 years agoBlock downgrade from icehouse to havana
Ann Kamyshnikova [Wed, 20 Aug 2014 12:24:10 +0000 (16:24 +0400)]
Block downgrade from icehouse to havana

We are purging all downgrade methods from icehouse to havana because:
 1) havana is going to become unsupported during Kilo cycle.
 2) most people will upgrade from icehouse, while a minor percentage
    from havana
 3) downgrade use cases are mostly to revert after failed upgrades

See discussion in https://review.openstack.org/109952 for details.

This change removes all downgrade code in this migrations and raises
an exception in downgrade of icehouse_release.

Partially-implements: blueprint reorganize-migrations

Change-Id: I874dd2475da0404370dc7e53d7c43e0a8dce0d56

10 years agoUse lockutils module for tox functional env
Maru Newby [Thu, 28 Aug 2014 09:17:45 +0000 (11:17 +0200)]
Use lockutils module for tox functional env

A previous change (I4d6076e5f7586a11ea5381f18774d4bab57b0081) added
lockutils to only the dsvm-functional tox env.  It also needs to be
added to the functional tox env.

Change-Id: I3a799692b2162b738a2b080e08602b403c171e4f
Closes-Bug: 1332380

10 years agoMerge "One Convergence: Skip all tests with 'v6' in name"
Jenkins [Thu, 28 Aug 2014 02:05:25 +0000 (02:05 +0000)]
Merge "One Convergence: Skip all tests with 'v6' in name"

10 years agoDo not use auto_schedule_routers to add router to agent
armando-migliaccio [Thu, 21 Aug 2014 01:04:33 +0000 (18:04 -0700)]
Do not use auto_schedule_routers to add router to agent

auto_schedule_routers makes a number of DB calls that are
unnecessary as they are already made during the validation
phase of add_router_to_l3_agent. Once the validation is
done, the only business left is to create the binding: this
is what this patch does.

Partial-bug: #1356121

Change-Id: Ia9be998c2b94416bc46ef78415099f0099b08c2a

10 years agoFix func job hook script permission problems
Maru Newby [Wed, 27 Aug 2014 15:33:29 +0000 (17:33 +0200)]
Fix func job hook script permission problems

- The hook script is the wrong place to unstack since
  it needs to run as the stack user with sudo privileges and those
  permissions are removed as part of the devstack-vm-gate.sh script.

- The functional job gate hook script needs to use sudo to
  install the test-only rootwrap filter.

Change-Id: Ib2e5ec016a5a414dd9675328650efb2b39b0e3fe
Related-Bug: #1360658

10 years agoCheck for IPv6 file before reading
Kevin Benton [Tue, 26 Aug 2014 08:52:00 +0000 (01:52 -0700)]
Check for IPv6 file before reading

Check to see if the IPv6 disabled flag file exists
before trying to read it. This file doesn't exist
on systems with the IPv6 module blacklisted.

Closes-Bug: #1361542
Change-Id: I4064b4189cc9d8f0f0e0e7025cf6f83d5b6ec276

10 years agoMerge "Make L3RpcCallback a separate callback class"
Jenkins [Wed, 27 Aug 2014 10:33:08 +0000 (10:33 +0000)]
Merge "Make L3RpcCallback a separate callback class"

10 years agoMerge "Fix incorrect number of args to string format"
Jenkins [Wed, 27 Aug 2014 09:42:31 +0000 (09:42 +0000)]
Merge "Fix incorrect number of args to string format"

10 years agoMerge "Fix DVR to service LBaaS VIP Ports"
Jenkins [Wed, 27 Aug 2014 09:05:23 +0000 (09:05 +0000)]
Merge "Fix DVR to service LBaaS VIP Ports"

10 years agoMerge "Increase the default poll duration for Cisco n1kv"
Jenkins [Wed, 27 Aug 2014 06:15:10 +0000 (06:15 +0000)]
Merge "Increase the default poll duration for Cisco n1kv"

10 years agoMerge "Predictable iptables chains output order"
Jenkins [Wed, 27 Aug 2014 06:12:30 +0000 (06:12 +0000)]
Merge "Predictable iptables chains output order"

10 years agoFix l3 agent scheduling logic to avoid unwanted failures
Eugene Nikanorov [Tue, 19 Aug 2014 19:01:11 +0000 (23:01 +0400)]
Fix l3 agent scheduling logic to avoid unwanted failures

In case router is being added to l3 agent which is already hosting
the router it is fine to let such a request to succeed.
This patch also adds a check for unnecessary scheduling that might happen
twice in described case and lead to unwanted messages in the logs.

Change-Id: Id104b36ba7e1e6f6a9378ee600c33e9962230521
Closes-Bug: #1358636

10 years agoFix InvalidRequestError in auto_schedule_routers
armando-migliaccio [Fri, 22 Aug 2014 15:21:09 +0000 (08:21 -0700)]
Fix InvalidRequestError in auto_schedule_routers

This was discussed in review [1], and was deferred until the time was ripe
for the appropriate fix. As suggested and reported, auto_schedule_routers
is too affected by this error.

This patch takes care of the issue, in a similar way.

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

Related-bug: #1354072
Closes-bug: #1360104

Change-Id: Ie3cb0c31dfa571c694cd38e19f72ff8503815635

10 years agoMerge "Minor refactoring for add_router_to_l3_agent"
Jenkins [Wed, 27 Aug 2014 05:03:24 +0000 (05:03 +0000)]
Merge "Minor refactoring for add_router_to_l3_agent"

10 years agoFix incorrect number of args to string format
Angus Lees [Wed, 13 Aug 2014 05:39:36 +0000 (15:39 +1000)]
Fix incorrect number of args to string format

Since there wasn't already one, also add a unittest for
PortProfileBinding and repr() functions.

Change-Id: Ibd8c5a21a7743af4c1c302495a65eeb5e45f6315

10 years agoAdd support for provider-network extension in nuage Plugin
Divya ChanneGowda [Thu, 14 Aug 2014 19:03:13 +0000 (12:03 -0700)]
Add support for provider-network extension in nuage Plugin

This implements support for creating provider networks
with Nuage plugin.

Implements: blueprint providernet-ext-support-for-nuage-plugin
Change-Id: Ibabc1561fc7b6bd5ea38617f145af1d0d4545a4f

10 years agoMerge "Prefer "val !=/== ref" over "val (not) in [ref]" in conditions"
Jenkins [Wed, 27 Aug 2014 00:54:37 +0000 (00:54 +0000)]
Merge "Prefer "val !=/== ref" over "val (not) in [ref]" in conditions"

10 years agoMake L3RpcCallback a separate callback class
Akihiro Motoki [Mon, 18 Aug 2014 18:49:30 +0000 (03:49 +0900)]
Make L3RpcCallback a separate callback class

RPC has a version of itself. In Neutron a plugin implements
several RPC interface, so a single RPC version doesn't work.
In Mixin callback class approach, RPC versioning depends on
each plugin implementation and it makes harder to maintain
RPC version appropriately. This patch series replaces mixin
RPC callback of server side with a separate class.

This commit handles server-side callback of L3-agent RPC interface.
L3-agent server-side callback class is moved from db/ to
api/rpc/handlers because it doesn't involve any db operations
and defining all RPC interfaces in a single place sounds reasonable.

Note that moving other L3-agent related RPC interface class
to api/rpc/handlers will be done in a separate patch as this patch
focuses on reorganizing the server-side RPC callback class.

Partial-Bug: #1359416
Change-Id: Ie3f2c9b2ad907a1110e05fe94d42e41e93fbcaa7

10 years agoInline "for val in [ref]" statements
Cedric Brandily [Tue, 26 Aug 2014 18:10:15 +0000 (20:10 +0200)]
Inline "for val in [ref]" statements

This change increases readibility by inlining "for val in [ref]":

 for val in [ref]:
   f(val)

becomes:

 f(ref)

Change-Id: I8e1f95bd7eb99a25c6460beb2ac3230c53740181

10 years agoMinor refactoring for add_router_to_l3_agent
armando-migliaccio [Thu, 21 Aug 2014 00:36:06 +0000 (17:36 -0700)]
Minor refactoring for add_router_to_l3_agent

This method is more complicated than it needs
to be, and it makes it difficult to target
fixes for it.

Furthermore, this method calls into
auto_schedule_routers, which duplicates some
of the DB calls already made in the above
mentioned method. This refactoring
is done in preparation of the performance
improvement.

Partial-bug: #1356121
Related-Bug: #1358636

Change-Id: I9a0cfa41a5f067949b964d39157def55c40bf9af

10 years agoPredictable iptables chains output order
Henry Gessau [Sun, 27 Jul 2014 02:05:02 +0000 (22:05 -0400)]
Predictable iptables chains output order

This fixes the iptables unit tests that break with a randomized PYTHONHASHSEED
(see the bug report).

The chains for iptables are stored as sets to avoid duplicates. When they are
output by iptables_manager their order can therefore be unpredictable. This was
found hash seed 1016732220.

To fix this we:
 - Sort the chains output by iptables_manager
 - Update the unit tests to check for sorted chains

When multiple tables are processed, they can be processed in any order or
dumped in any order. Found with hash seed 3728666619.

To fix this we:
 - Traverse the tables in sorted order for dumping
 - Fix tests to allow for tables to be processed in any order

Note: There are several other unrelated unit tests that also break with a
randomized PYTHONHASHSEED, but they are not addressed here. They will be
addressed in separate patches.

Partial-bug: #1348818

Change-Id: Ic3f4cd85316c9fc2e78bc7f5e900cfac87baf39d

10 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 26 Aug 2014 20:25:02 +0000 (20:25 +0000)]
Merge "Imported Translations from Transifex"

10 years agoMerge "VPNaaS: Enable UT cases with newer oslo.messaging"
Jenkins [Tue, 26 Aug 2014 20:24:43 +0000 (20:24 +0000)]
Merge "VPNaaS: Enable UT cases with newer oslo.messaging"

10 years agoMerge "Add template attr. for subnet, router create in Nuage plugin"
Jenkins [Tue, 26 Aug 2014 20:24:06 +0000 (20:24 +0000)]
Merge "Add template attr. for subnet, router create in Nuage plugin"

10 years agoPrefer "val !=/== ref" over "val (not) in [ref]" in conditions
Cedric Brandily [Tue, 26 Aug 2014 17:45:22 +0000 (19:45 +0200)]
Prefer "val !=/== ref" over "val (not) in [ref]" in conditions

This change increases readibility with the following replacements in
conditions:

 * val in [ref] ==> val == ref
 * val not in [ref] ==> val != ref

Change-Id: I52a77aff60c8e46fa5f6290e3a565f58425d9a68

10 years agoMerge "Change autogenerate to be unconditional"
Jenkins [Tue, 26 Aug 2014 17:15:28 +0000 (17:15 +0000)]
Merge "Change autogenerate to be unconditional"

10 years agoHeal script: Drop fks before operating on columns
Salvatore Orlando [Thu, 7 Aug 2014 22:24:06 +0000 (15:24 -0700)]
Heal script: Drop fks before operating on columns

This patch fixes a small glitch in the healing script.
If the script detects that a foreign key must be removed,
and the columns that it references must be removed as well,
then the foreign key removal would fail as the column would
not exist anymore.

This patch simply ensures foreign key are dropped before all
the remaining table/column operations. New foreign keys are
instead added after all table/column operations are completed.

Change-Id: I3cce742146c70b71900cf53e50f9a6a61bc6a378
Closes-Bug: # 1354188

10 years agoFix DVR to service LBaaS VIP Ports
Swaminathan Vasudevan [Thu, 14 Aug 2014 06:38:56 +0000 (23:38 -0700)]
Fix DVR to service LBaaS VIP Ports

Currently, DVR router namespaces are created only
when there is a valid VM port on the compute
node, or for the gateway-port on the service node.
But when an LBaaS VIP port is created the l3 agent
does not create a DVR namespace to service the VIP port.
This fix enables DVR namespaces to be created to
service the LBaaS VIP port.

Also, this fix enables L2 Agent running in DVR
mode, to add-in OVS rules to enable packets to
be routed to such LBaaS VIP Ports which are
resident on DVR routed interfaces.

Therefore, with this fix both East-West and
North-South traffic will be serviced by DVR
for LBaas VIP Ports.

DocImpact

Authored-by: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Vivekanandan Narasimhan <vivekanandan.narasimhan@hp.com>
Change-Id: I698b971d50721fb0512a11569f7d3139d0d456f3
Closes-Bug: #1356464

10 years agoMerge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"
Jenkins [Tue, 26 Aug 2014 10:51:06 +0000 (10:51 +0000)]
Merge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"

10 years agoRefactor test_type_gre/vxlan to reduce duplicate code
Cedric Brandily [Tue, 19 Aug 2014 17:15:12 +0000 (19:15 +0200)]
Refactor test_type_gre/vxlan to reduce duplicate code

gre and vxlan type drivers have similar implementation for multiple
methods and associated tests. This change abstracts these tests.

Change-Id: Ic0e2119a81540c509c214008cce9dc50f55dd6de

10 years agoFix heal_script for MySQL specifics
Ann Kamyshnikova [Tue, 26 Aug 2014 08:24:20 +0000 (12:24 +0400)]
Fix heal_script for MySQL specifics

After running upgrade head->downgrade havana->upgrade head
on MySQL heal_script fails with several mistakes.

This change fix them. More details in related bug description.

Closes-bug: #1354218

Change-Id: I91cb21c4bc744f240bfb8bc6b2ed24b6e01f6095

10 years agoMerge "ext-gw update on dvr router improperly handled by l3-agent"
Jenkins [Tue, 26 Aug 2014 09:05:15 +0000 (09:05 +0000)]
Merge "ext-gw update on dvr router improperly handled by l3-agent"

10 years agoMerge "Use oslo.db create_engine instead of SQLAlchemy"
Jenkins [Tue, 26 Aug 2014 09:03:32 +0000 (09:03 +0000)]
Merge "Use oslo.db create_engine instead of SQLAlchemy"

10 years agoMerge "Log exceptions inside spawned functions"
Jenkins [Tue, 26 Aug 2014 09:03:18 +0000 (09:03 +0000)]
Merge "Log exceptions inside spawned functions"

10 years agoMerge "Removing sorted() function from assertEqual()"
Jenkins [Tue, 26 Aug 2014 09:03:04 +0000 (09:03 +0000)]
Merge "Removing sorted() function from assertEqual()"

10 years agoMerge "Do not assume order of parameters in OVSBridge.add_flow call"
Jenkins [Tue, 26 Aug 2014 09:02:49 +0000 (09:02 +0000)]
Merge "Do not assume order of parameters in OVSBridge.add_flow call"

10 years agoMerge "Ignore http_proxy while connecting to test WSGI server"
Jenkins [Tue, 26 Aug 2014 08:37:34 +0000 (08:37 +0000)]
Merge "Ignore http_proxy while connecting to test WSGI server"