]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Fix docstring for l3_dvr_db.dvr_vmarp_table_update"
Jenkins [Mon, 6 Apr 2015 22:33:45 +0000 (22:33 +0000)]
Merge "Fix docstring for l3_dvr_db.dvr_vmarp_table_update"

9 years agoMerge "Allow metadata proxy running with nobody user/group"
Jenkins [Mon, 6 Apr 2015 21:12:33 +0000 (21:12 +0000)]
Merge "Allow metadata proxy running with nobody user/group"

9 years agoAllow metadata proxy running with nobody user/group
Cedric Brandily [Tue, 17 Mar 2015 15:20:07 +0000 (15:20 +0000)]
Allow metadata proxy running with nobody user/group

Currently metadata proxy cannot run with nobody user/group as metadata
proxy requires to connect to metadata_proxy_socket when queried.

This change allows to run metadata proxy with nobody user/group by
allowing to choose the metadata_proxy_socket mode with the new option
metadata_proxy_socket_mode (4 choices) in order to adapt socket
permissions to metadata proxy user/group.

This change refactors also where options are defined to enable
metadata_proxy_user/group options in the metadata agent.

In practice:
* if metadata_proxy_user is agent effective user or root, then:
  * metadata proxy is allowed to use rootwrap (unsecure)
  * set metadata_proxy_socket_mode = user (0o644)
* else if metadata_proxy_group is agent effective group, then:
  * metadata proxy is not allowed to use rootwrap (secure)
  * set metadata_proxy_socket_mode = group (0o664)
  * set metadata_proxy_log_watch = false
* else:
  * metadata proxy has lowest permissions (securest) but metadata proxy
    socket can be opened by everyone
  * set metadata_proxy_socket_mode = all (0o666)
  * set metadata_proxy_log_watch = false

An alternative is to set metadata_proxy_socket_mode = deduce, in such
case metadata agent uses previous rules to choose the correct mode.

DocImpact
Closes-Bug: #1427228
Change-Id: I235a0cc4f0cbd55ae4ec1570daf2ebbb6a72441d

9 years agoSkip example retargetable functional test
Maru Newby [Mon, 6 Apr 2015 16:28:00 +0000 (16:28 +0000)]
Skip example retargetable functional test

The example retargetable test that previously ran as part of the
functional suite is now skipped due to the fullstack example's db
fixture usage causing the test to fail if it the fullstack example
runs first on the same worker.

Change-Id: I0a34f9ba04c53a4291698be819070c66009c8b4a
Related-Bug: #1440797

9 years agoMerge "Prepare for unit test reorg"
Jenkins [Mon, 6 Apr 2015 13:37:14 +0000 (13:37 +0000)]
Merge "Prepare for unit test reorg"

9 years agoMerge "Store and log correct exception info"
Jenkins [Sun, 5 Apr 2015 05:43:37 +0000 (05:43 +0000)]
Merge "Store and log correct exception info"

9 years agoMerge "Always run dnsmasq as root"
Jenkins [Sun, 5 Apr 2015 05:40:37 +0000 (05:40 +0000)]
Merge "Always run dnsmasq as root"

9 years agoMerge "Move network MTU from core REST API to extension API"
Jenkins [Sat, 4 Apr 2015 20:13:55 +0000 (20:13 +0000)]
Merge "Move network MTU from core REST API to extension API"

9 years agoMerge "Refactoring cleanup for L3 agent callbacks"
Jenkins [Sat, 4 Apr 2015 04:55:20 +0000 (04:55 +0000)]
Merge "Refactoring cleanup for L3 agent callbacks"

9 years agoPrepare for unit test reorg
Maru Newby [Fri, 3 Apr 2015 23:42:31 +0000 (23:42 +0000)]
Prepare for unit test reorg

The unit test reorg is about moving files around so a test module is
clearly associated with the code module it targets, but the test
modules in this change needed to be manually merged because they both
targeted the same module.

test_api_v2 is also updated to use the path of neutron/tests/base.py
as the root of path to test implementations of extensions.

Change-Id: I432b84339e51c26ef0aa26d44e29b5a3311626ad
Implements: bp/reorganize-unit-test-tree

9 years agoMerge "Add API tests for subnet-create with subnetpool"
Jenkins [Fri, 3 Apr 2015 23:34:24 +0000 (23:34 +0000)]
Merge "Add API tests for subnet-create with subnetpool"

9 years agoMerge "Support multiple IPv6 prefixes on internal router ports"
Jenkins [Fri, 3 Apr 2015 21:49:21 +0000 (21:49 +0000)]
Merge "Support multiple IPv6 prefixes on internal router ports"

9 years agoMerge "Make L3 agent honor periodic_interval setting"
Jenkins [Fri, 3 Apr 2015 21:43:51 +0000 (21:43 +0000)]
Merge "Make L3 agent honor periodic_interval setting"

9 years agoRemove orphaned nuage unit test module
Maru Newby [Fri, 3 Apr 2015 17:26:33 +0000 (17:26 +0000)]
Remove orphaned nuage unit test module

Change I6d02df85c7a2c307ad11442d0afdd50c64210af4 implemented the
plugin decomp for nuage but one of the unit tests was missed.

Change-Id: I37e1b3f6645b5f7730218d5ef08ca28f72b91883

9 years agoMerge "IPv6 SLAAC subnet create should update ports on net"
Jenkins [Fri, 3 Apr 2015 16:46:02 +0000 (16:46 +0000)]
Merge "IPv6 SLAAC subnet create should update ports on net"

9 years agoAdd API tests for subnet-create with subnetpool
zengfagao [Thu, 2 Apr 2015 16:44:53 +0000 (09:44 -0700)]
Add API tests for subnet-create with subnetpool

With subnetpool, we can create subnet with subnetpool.
User can specify CIDR or prefixlen for subnet allocation.
If neither is specified, CIDR will be chosen from the
pool using the default-prefixlen of the pool.

Change-Id: I2c4d81496e10826bed83a977ff0398f781d16c33
Partially-Implements: blueprint subnet-allocation

9 years agoRefactoring cleanup for L3 agent callbacks
Paul Michali [Wed, 1 Apr 2015 17:47:43 +0000 (13:47 -0400)]
Refactoring cleanup for L3 agent callbacks

This commit completes the refactoring of the L3 agent callback mechanism.
The goal here is to also use the neutron/callbacks/ mechanism for L3 agent
notifications, instead of have two mechanisms.

[1] modified the L3 agent to send notifiactions for router create, udpate,
and delete events, using the neutron/callbacks/ mechanism.

[2] modified VPN to use this new mechanism, instead of the L3EventObservers
mechanism. Note:

[3] modified FW repo to no longer depended on the L3EventObserver and
related objects (it doesn't currently use the event notifications).

This commit removes the notifications for the L3EventObservers mechanism,
removed the related modules and tests, and adds in tests to verify that the
new notifications are called for the different events.

Once [1] and [2] are upstreamed, this commit can proceed.

Refs:
[1] https://review.openstack.org/#/c/164466/
[2] https://review.openstack.org/#/c/165226/
[3] https://review.openstack.org/#/c/167275/

Change-Id: I7c4b4ea5f9fb19abb812665cdae5fb70c84fe3ec
Depends-On: If5040a827a6903cc7cb5e59cdb7fb95f61b13d47
Closes-Bug: #1433552

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 3 Apr 2015 06:13:58 +0000 (06:13 +0000)]
Imported Translations from Transifex

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

Change-Id: I7ce3288f62fdd9ffae81c47f3bc1a359833839e4

9 years agoMerge "Add index for port"
Jenkins [Fri, 3 Apr 2015 03:32:07 +0000 (03:32 +0000)]
Merge "Add index for port"

9 years agoSupport multiple IPv6 prefixes on internal router ports
Andrew Boik [Mon, 23 Mar 2015 15:21:11 +0000 (11:21 -0400)]
Support multiple IPv6 prefixes on internal router ports

(Patch set #3 for the multiple-ipv6-prefixes blueprint)

Provides support for adding multiple IPv6 subnets to an internal router
port. The limitation of one IPv4 subnet per internal router port
remains, though a port may contain one IPv4 subnet with any number of
IPv6 subnets.

This changes the behavior of both the router-interface-add and
router-interface-delete APIs. When router-interface-add is called with
an IPv6 subnet, the subnet will be added to an existing internal port
on the router with the same network ID if the existing port already has
one or more IPv6 subnets. Otherwise, a new port will be created on the
router for that subnet. When calling the router-interface-add with a
port (one that has already been created using the port-create command),
that port will be added to the router if it meets the following
conditions:

        1. The port has no more than one IPv4 subnet.
        2. If the port has any IPv6 subnets, it must not have the same
           network ID as an existing port on the router if the existing
           port has any IPv6 subnets.

If the router-interface-delete command is called with a subnet, that
subnet will be removed from the router port to which it belongs. If the
subnet is the last subnet on a port, the port itself will be deleted
from the router. If the router-interface-delete command is called with
a port, that port will be deleted from the router.

This change also allows the RADVD configuration to support advertising
multiple prefixes on a single router interface.

DocImpact

Change-Id: I7d4e8194815e626f1cfa267f77a3f2475fdfa3d1
Closes-Bug: #1439824
Partially-implements: blueprint multiple-ipv6-prefixes

9 years agoMerge "Fix functional test using local timeout value"
Jenkins [Fri, 3 Apr 2015 03:07:30 +0000 (03:07 +0000)]
Merge "Fix functional test using local timeout value"

9 years agoMerge "Add API tests for Neutron DVR extension"
Jenkins [Fri, 3 Apr 2015 03:07:16 +0000 (03:07 +0000)]
Merge "Add API tests for Neutron DVR extension"

9 years agoFix functional test using local timeout value
Maru Newby [Fri, 3 Apr 2015 01:10:07 +0000 (01:10 +0000)]
Fix functional test using local timeout value

The ovsdb monitor test was using a timeout of 60s for monitor start.
This change sets the timeout to the global timeout value if it is
greater (it's 90s currently).

Closes-bug: #1439914

Change-Id: I95ee3d7dfdb5f010347a9d8db1b2bf610c0289d1

9 years agoAdd index for port
shihanzhang [Tue, 31 Mar 2015 08:14:12 +0000 (16:14 +0800)]
Add index for port

This patch will speed up SELECTs Port with filters by
'network_id + device_owner' and 'network_id + mac_address'.

Closes-bug: #1421089

Change-Id: Ied90b6304df971a6049871f65df3e1aaee624647

9 years agoMerge "Refactoring of L3 agent notifications for router"
Jenkins [Thu, 2 Apr 2015 20:35:46 +0000 (20:35 +0000)]
Merge "Refactoring of L3 agent notifications for router"

9 years agoAlways run dnsmasq as root
Hong Hui Xiao [Thu, 2 Apr 2015 15:24:35 +0000 (08:24 -0700)]
Always run dnsmasq as root

Regarding https://review.openstack.org/#/c/145829/
The old code of DnsMasq will always get root_helper from
neutron.agent.dhcp.agent.
However, new code will only set run_as_root when namespace
is used. That will cause permission error when namespace
is disabled and dnsmasq need to be started.

Change-Id: Ib00d6e54dba44dbbbec158b9e0518e6e42baceec
Closes-Bug: #1428007

9 years agoMerge "Remove auto deletion of routers in unit tests"
Jenkins [Thu, 2 Apr 2015 19:02:46 +0000 (19:02 +0000)]
Merge "Remove auto deletion of routers in unit tests"

9 years agoMerge "No IPv6 SLAAC addrs for create router intf without fixed_ips"
Jenkins [Thu, 2 Apr 2015 17:41:57 +0000 (17:41 +0000)]
Merge "No IPv6 SLAAC addrs for create router intf without fixed_ips"

9 years agoMove network MTU from core REST API to extension API
Tim Swanson [Tue, 31 Mar 2015 16:13:16 +0000 (12:13 -0400)]
Move network MTU from core REST API to extension API

The network MTU was added to the core REST API via
https://review.openstack.org/#/c/154921.  This commit
reverts that change and adds the network MTU to the
extension API.

Change-Id: I7a7d679f471ced3230f230684d5ae9789bcca305
Closes-bug: 1434671

9 years agoRefactoring of L3 agent notifications for router
Paul Michali [Thu, 26 Mar 2015 12:01:58 +0000 (08:01 -0400)]
Refactoring of L3 agent notifications for router

The goal of this refactoring is to reduce duplication by
replacing the L3EventObservers mechanism (a specific
mechanism for L3 agent notifications), with the
CallbacksManager mechanism (a more general mechanism
currently in use), so that there is one method
used.

This is the first part of refactoring the L3 agent so that
it uses the new neutron.callbacks mechanism. To do this,
duplicate calls will be made for notifications related to
the router, only using the new callback mechanism.

This commit does two things. First, it puts in place the
notifiers for the new callback mechanism. Second, it updates
the metatdata proxy agent (which is in the same repo) to
use the new callback mechanism.

Later commits will update other repos from the old to new
callback mechanism, and to then remove the old callback
mechanism, once no longer used.

Change-Id: If134947957fd671aa99a0b2d2b37f7ec65e37766
Partial-Bug: #1433552

9 years agoFix docstring for l3_dvr_db.dvr_vmarp_table_update
Assaf Muller [Thu, 2 Apr 2015 14:59:00 +0000 (10:59 -0400)]
Fix docstring for l3_dvr_db.dvr_vmarp_table_update

Change-Id: I783b0357833cda0e5143581284be720e5d4f3a97

9 years agoMerge "Treat all negative quota values as -1"
Jenkins [Thu, 2 Apr 2015 14:53:26 +0000 (14:53 +0000)]
Merge "Treat all negative quota values as -1"

9 years agoMerge "Move orphaned api test - deux"
Jenkins [Thu, 2 Apr 2015 12:44:32 +0000 (12:44 +0000)]
Merge "Move orphaned api test - deux"

9 years agoTreat all negative quota values as -1
Sudipta Biswas [Thu, 2 Apr 2015 09:36:35 +0000 (15:06 +0530)]
Treat all negative quota values as -1

Currently if the quota_port, quota_network, quota_subnet values
in the neutron.conf are set to a negative value not equal to -1,
neutron reports the values as is to consumers like Nova.
Nova treats -1 as the infinite quota indicator and doesn't expect
neutron to return any other non-negative value.

The fix allows the flexibility of having any negative number for the
quota parameters in the neutron.conf file and allows the nova boot
to succeed subsequently. The fix would report any negative value
as -1 for port, subnet and network.

Change-Id: Ib9a7136b0bfd01bdf04a5d0937854590029b1010
Closes-Bug: 1438738
Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
9 years agoMerge "Allow metadata proxy to log with nobody user/group"
Jenkins [Thu, 2 Apr 2015 11:39:27 +0000 (11:39 +0000)]
Merge "Allow metadata proxy to log with nobody user/group"

9 years agoMerge "Update .coveragerc after the removal of Cisco Nexus monolithic plugin"
Jenkins [Thu, 2 Apr 2015 07:16:58 +0000 (07:16 +0000)]
Merge "Update .coveragerc after the removal of Cisco Nexus monolithic plugin"

9 years agoMove orphaned api test - deux
armando-migliaccio [Thu, 2 Apr 2015 00:52:01 +0000 (17:52 -0700)]
Move orphaned api test - deux

According to changes [1,2], API tests' new home is under neutron/tests/api.
Change 92d2054f8a slipped through the cracks. It seems also that wrong
imports lead to tests silently dropped (i.e. not executed). This patch
rectifies the issue.

 [1] https://review.openstack.org/#/c/169850/
 [2] https://review.openstack.org/#/c/167320/

Change-Id: I64be376d7cff9512bd027720116dc039831e7955

9 years agoMerge "Fix error raising in security groups method"
Jenkins [Thu, 2 Apr 2015 02:24:04 +0000 (02:24 +0000)]
Merge "Fix error raising in security groups method"

9 years agoMerge "Add missing neutron/tests/unit/agent/common/__init__.py"
Jenkins [Thu, 2 Apr 2015 02:23:52 +0000 (02:23 +0000)]
Merge "Add missing neutron/tests/unit/agent/common/__init__.py"

9 years agoIPv6 SLAAC subnet create should update ports on net
Dane LeBlanc [Tue, 3 Mar 2015 03:03:10 +0000 (22:03 -0500)]
IPv6 SLAAC subnet create should update ports on net

If ports are first created on a network, and then an IPv6 SLAAC
or DHCPv6-stateless subnet is created on that network, then the
ports created prior to the subnet create are not getting
automatically updated (associated) with addresses for the
SLAAC/DHCPv6-stateless subnet, as required.

Change-Id: I5901db6655c045c0e78c7cb7fc51ce8c9a9e1933
Closes-Bug: 1427474

9 years agoAdd API tests for Neutron DVR extension
armando-migliaccio [Tue, 24 Mar 2015 18:30:08 +0000 (11:30 -0700)]
Add API tests for Neutron DVR extension

This patch adds a number of positive and negative tests for
the DVR functionality implemented by Neutron.

Generated using:

./tools/copy_api_tests_from_tempest.sh [path to tempest working directory]

Change-Id: Ia300b736250249ba54bd8fefa1307e6898f71652

9 years agoMerge "Define bridge/port fixtures for OVS/LinuxBridge/Veth backends"
Jenkins [Wed, 1 Apr 2015 22:40:23 +0000 (22:40 +0000)]
Merge "Define bridge/port fixtures for OVS/LinuxBridge/Veth backends"

9 years agoMerge "Update core reviewer responsibilities"
Jenkins [Wed, 1 Apr 2015 22:40:08 +0000 (22:40 +0000)]
Merge "Update core reviewer responsibilities"

9 years agoMerge "Add API tests for subnetpool allocation"
Jenkins [Wed, 1 Apr 2015 21:54:16 +0000 (21:54 +0000)]
Merge "Add API tests for subnetpool allocation"

9 years agoMerge "Implement default subnet pool configuration settings"
Jenkins [Wed, 1 Apr 2015 21:54:03 +0000 (21:54 +0000)]
Merge "Implement default subnet pool configuration settings"

9 years agoMerge "Move orphaned api test"
Jenkins [Wed, 1 Apr 2015 21:46:56 +0000 (21:46 +0000)]
Merge "Move orphaned api test"

9 years agoMerge "Fix reference to non-existent setup_dvr_flows_on_integ_tun_br"
Jenkins [Wed, 1 Apr 2015 21:21:48 +0000 (21:21 +0000)]
Merge "Fix reference to non-existent setup_dvr_flows_on_integ_tun_br"

9 years agoAdd missing neutron/tests/unit/agent/common/__init__.py
Cedric Brandily [Wed, 1 Apr 2015 20:43:13 +0000 (22:43 +0200)]
Add missing neutron/tests/unit/agent/common/__init__.py

neutron/tests/unit/agent/common directory defines tests but is not a
valid python2 package: __init___.py is missing.

Change-Id: Ida0055b64c23c4af3f4cdce2a777b19418451f33

9 years agoAllow metadata proxy to log with nobody user/group
Cedric Brandily [Tue, 3 Mar 2015 22:26:52 +0000 (22:26 +0000)]
Allow metadata proxy to log with nobody user/group

Currently metadata proxy cannot run with nobody user/group as
metadata proxy (as other services) uses WatchedFileHandler handler to
log to file which does not support permissions drop (the process must
be able to r/w after permissions drop to "watch" the file).

This change allows to enable/disable log watch in metadata proxies with
the new option metadata_proxy_log_watch. It should be disabled when
metadata_proxy_user/group is not allowed to read/write metadata proxy
log files. Option default value is deduced from metadata_proxy_user:

* True if metadata_proxy_user is agent effective user id/name,
* False otherwise.

When log watch is disabled and logrotate is enabled on metadata proxy
logging files, 'copytruncate' logrotate option must be used otherwise
metadata proxy logs will be lost after the first log rotation.

DocImpact
Change-Id: I40a7bd82a2c60d9198312fdb52e3010c60db3511
Partial-Bug: #1427228

9 years agoMove orphaned api test
Maru Newby [Wed, 1 Apr 2015 17:30:55 +0000 (17:30 +0000)]
Move orphaned api test

A recent change added a new api test to the old location that is no
longer used for discovery.  This change moves it to
neutron/tests/api/admin to ensure that it can be discovered and run.

Change-Id: Ifcada8f9b2178b3159151b0d1953fd841d82ffa6

9 years agoMerge "tests: don't rely on configuration files outside tests directory"
Jenkins [Wed, 1 Apr 2015 16:21:15 +0000 (16:21 +0000)]
Merge "tests: don't rely on configuration files outside tests directory"

9 years agoMerge "Remove "Arguments dropped when creating context" logging"
Jenkins [Wed, 1 Apr 2015 16:21:02 +0000 (16:21 +0000)]
Merge "Remove "Arguments dropped when creating context" logging"

9 years agoImplement default subnet pool configuration settings
Carl Baldwin [Thu, 26 Mar 2015 18:10:10 +0000 (18:10 +0000)]
Implement default subnet pool configuration settings

The default_ipv6_subnet_pool option was added [1] as an integration
point between prefix delegation work and subnet allocation work.  This
patch completes the integration with subnet allocation.  This
addresses the use case where a deployer wants all ipv6 addresses to
come -- by default -- from a globally routable pool of ipv6 addresses.

In a deployment with this option set, an API user can still access the
old behavior by passing None explicitly as subnetpool_id when creating
a subnet.

This patch also adds the default_ipv4_subnet_pool for completeness.

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

Change-Id: I301189b5cd31d7c5fa4a40fa3e04f8e6ac77592b
Partially-Implements: blueprint subnet-allocation

9 years agoMerge "Use 1/0 as booleans for DB2"
Jenkins [Wed, 1 Apr 2015 15:48:47 +0000 (15:48 +0000)]
Merge "Use 1/0 as booleans for DB2"

9 years agoDefine bridge/port fixtures for OVS/LinuxBridge/Veth backends
Cedric Brandily [Fri, 27 Feb 2015 14:08:23 +0000 (14:08 +0000)]
Define bridge/port fixtures for OVS/LinuxBridge/Veth backends

This change defines for OVS, LinuxBridge and veth[1] bridge and port
fixture classes in order to handle bridge and port setUp/cleanUp.

It allows to simplify BaseOVSLinuxTestCase[2] and remove
BaseBridgeTestCase[2].

[1] veth backend simulates a bridge with a veth
[2] in neutron.tests.functional.agent.linux.base

Change-Id: If34c9a8fb6fa584fb1e30173ec619d1aac9701f9

9 years agoUpdate core reviewer responsibilities
Kyle Mestery [Fri, 13 Mar 2015 14:54:37 +0000 (14:54 +0000)]
Update core reviewer responsibilities

This patch more clearly lays out who can merge code into the plethora
of Neutron repositories. It also clarifies a few things with the
existing text in places.

Change-Id: I2628dad7ba2bbc0b63dd9ed716db6221a5b30b2d

9 years agoRemove "Arguments dropped when creating context" logging
Assaf Muller [Wed, 1 Apr 2015 13:38:21 +0000 (09:38 -0400)]
Remove "Arguments dropped when creating context" logging

This log was previously reduced from warning to debug.
Cinder removed it entirely in:
https://bugs.launchpad.net/cinder/+bug/1329156

The root cause is this:
Agent heartbeats use an admin context. The context is serialized
with its to_dict method, which exposes 'tenant' and 'project_name'
(These are properties of the class that are calculated from other
attributes). In the controller, this dict is used to initialize a
ContextBase, which does not accept tenant and project_name as arguments,
de facto sending those values as key word arguments.

We can either handle 'tenant' and 'project_name' specially, fix
it any other way, or drop the logging entirely. Is this logging
ever useful?

Change-Id: Ifd51b62bae7b96de44f04836015d2ed939bcb650
Closes-Bug: #1255441

9 years agoMerge "Fix displaying of devref for TestModelsMigrations"
Jenkins [Wed, 1 Apr 2015 12:54:40 +0000 (12:54 +0000)]
Merge "Fix displaying of devref for TestModelsMigrations"

9 years agoMerge "Modify a different agent in test_update_agent_description"
Jenkins [Wed, 1 Apr 2015 12:54:28 +0000 (12:54 +0000)]
Merge "Modify a different agent in test_update_agent_description"

9 years agoMerge "Move API tests to neutron.test.api"
Jenkins [Wed, 1 Apr 2015 12:54:16 +0000 (12:54 +0000)]
Merge "Move API tests to neutron.test.api"

9 years agoMerge "Simple subnetpool allocation quotas"
Jenkins [Wed, 1 Apr 2015 10:22:08 +0000 (10:22 +0000)]
Merge "Simple subnetpool allocation quotas"

9 years agoMerge "Enable to apply policies to resources with special plural"
Jenkins [Wed, 1 Apr 2015 08:04:45 +0000 (08:04 +0000)]
Merge "Enable to apply policies to resources with special plural"

9 years agoFix reference to non-existent setup_dvr_flows_on_integ_tun_br
Assaf Muller [Fri, 20 Feb 2015 01:34:17 +0000 (20:34 -0500)]
Fix reference to non-existent setup_dvr_flows_on_integ_tun_br

Found via the pylint no-member check.

Co-authored-by: Kevin Benton <blak111@gmail.com>
Closes-Bug: #1423775
Change-Id: Id4104fa783aa8c34917df6d16ff1290882f93af5

9 years agoMerge "Make floatingip reachable from the same network"
Jenkins [Wed, 1 Apr 2015 04:00:59 +0000 (04:00 +0000)]
Merge "Make floatingip reachable from the same network"

9 years agoModify a different agent in test_update_agent_description
Henry Gessau [Fri, 27 Mar 2015 02:54:21 +0000 (22:54 -0400)]
Modify a different agent in test_update_agent_description

API test_update_agent_description modifies an agent's description, and
test_list_agent assumes the first agent is never modified. We make
sure that an agent other than the first one is modified.

Closes-bug: 1437124

Change-Id: I7593e2896ab7ef8a14ad35005314382e65e805cb

9 years agoMerge "Subnet allocation from a subnet pool"
Jenkins [Tue, 31 Mar 2015 23:41:30 +0000 (23:41 +0000)]
Merge "Subnet allocation from a subnet pool"

9 years agoMove API tests to neutron.test.api
Maru Newby [Tue, 24 Mar 2015 16:21:57 +0000 (16:21 +0000)]
Move API tests to neutron.test.api

To make api test development simpler, move the tests to
neutron.tests.api.  The neutron.tests.tempest subtree will remain
while work continues to transition the required functionality to
tempest-lib.

Change-Id: Ie90671fbfe2f633e851da82728e152482133fd87

9 years agoMerge "Simplify retargetable test framework"
Jenkins [Tue, 31 Mar 2015 23:00:33 +0000 (23:00 +0000)]
Merge "Simplify retargetable test framework"

9 years agoMerge "Decouple L3 and service plugins during DVR router migration"
Jenkins [Tue, 31 Mar 2015 21:42:32 +0000 (21:42 +0000)]
Merge "Decouple L3 and service plugins during DVR router migration"

9 years agoSimple subnetpool allocation quotas
Ryan Tidwell [Mon, 16 Mar 2015 18:02:13 +0000 (11:02 -0700)]
Simple subnetpool allocation quotas

Enables enforcement of allocation quotas on subnet pools. The quota
is pool-wide, with the value of allocation_quota applied to every
tenant who uses the pool. allocation_quota must be non-negative,
and is an optional attribute. If not supplied, no quotas are
enforced. Quotas are measured in prefix space allocated. For IPv4
subnet pools, the quota is measured in units of /32 ie each tenant
can allocate up to X /32's from the pool. For IPv6 subnet pools, the
quota is measured in units of /64 ie each tenant can allocate up to
X /64's from the pool. For backward-compatibility, allocation quotas
are not applied to the implicit (AKA null) pool. Standard subnet
quotas will continue to be applied to all requests.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I7e4641f47790414c693c7cc9b7a44b1889087801

9 years agoSubnet allocation from a subnet pool
Ryan Tidwell [Thu, 19 Feb 2015 23:29:08 +0000 (15:29 -0800)]
Subnet allocation from a subnet pool

Contains API changes, model changes, and logic required to enable a subnet to
be allocated from a subnet pool. Users can request a subnet allocation by
supplying subnetpool_id and optionally prefixlen or cidr. If cidr is
specified, an attempt is made to allocate the given CIDR from the pool. If
prefixlen is specified, an attempt is made to allocate any CIDR with the
given prefix length from the pool. If neither is specified, a CIDR is chosen
from the pool using the default prefix length for the pool.

ApiImpact
Partially-Implements: blueprint subnet-allocation
Change-Id: I59a221f4f434718fb77bd132dbbe1ff50fce4b0c

9 years agoMerge "Fix test case for DHCP agent interface restart"
Jenkins [Tue, 31 Mar 2015 20:32:03 +0000 (20:32 +0000)]
Merge "Fix test case for DHCP agent interface restart"

9 years agoSimplify retargetable test framework
Maru Newby [Tue, 24 Mar 2015 01:30:11 +0000 (01:30 +0000)]
Simplify retargetable test framework

The retargetable testing prototype previously relied on each test case
defining the 'scenarios' attribute used to parametize testing with
testscenarios.  Anticipating the requirement to retrofit the imported
tempest api test cases, this change moves scenario definition to a
base class since scenarios are common across all api tests.

This change also sets the retargetable test to skip when invoked
against rest.  Tempest uses class-level setup for auth and this needs
to be broken out into fixtures before the retargetable testing will
work again.

Change-Id: I70eb21db9b983d45e9bcc7ea90e36f202d3e3e45

9 years agoMerge "Auto-update gateway port after subnet-create"
Jenkins [Tue, 31 Mar 2015 17:01:03 +0000 (17:01 +0000)]
Merge "Auto-update gateway port after subnet-create"

9 years agoMerge "No allocation needed for specific IPv6 SLAAC addr assignment"
Jenkins [Tue, 31 Mar 2015 17:00:00 +0000 (17:00 +0000)]
Merge "No allocation needed for specific IPv6 SLAAC addr assignment"

9 years agoMerge "Allow update of ext gateway IP's w/out port delete"
Jenkins [Tue, 31 Mar 2015 16:15:07 +0000 (16:15 +0000)]
Merge "Allow update of ext gateway IP's w/out port delete"

9 years agoAdd API tests for subnetpool allocation
zengfagao [Wed, 25 Mar 2015 14:28:25 +0000 (07:28 -0700)]
Add API tests for subnetpool allocation

Add subnetpool creating, listing, updating and deleting
via REST API.

Change-Id: I0be397e6739a651ce1562137f9b03d0ca8739697
Depends-on: I88c6b15aab258069758f1a9423d6616ceb4a33c4
Partially-Implements: blueprint subnet-allocation

9 years agoMerge "Enable to specify context on POST requests during unittests"
Jenkins [Tue, 31 Mar 2015 12:20:57 +0000 (12:20 +0000)]
Merge "Enable to specify context on POST requests during unittests"

9 years agoUpdate .coveragerc after the removal of Cisco Nexus monolithic plugin
YAMAMOTO Takashi [Tue, 31 Mar 2015 02:00:14 +0000 (11:00 +0900)]
Update .coveragerc after the removal of Cisco Nexus monolithic plugin

Related-Bug: #1350387
Change-Id: I3b8cb6412f1f13141a82515ab131e373b5a0628d

9 years agoMerge "Support IPv6 Router"
Jenkins [Tue, 31 Mar 2015 02:05:07 +0000 (02:05 +0000)]
Merge "Support IPv6 Router"

9 years agoMerge "Improve DVR scale performance"
Jenkins [Tue, 31 Mar 2015 01:33:34 +0000 (01:33 +0000)]
Merge "Improve DVR scale performance"

9 years agoMake floatingip reachable from the same network
Itsuro Oda [Wed, 25 Feb 2015 04:34:04 +0000 (13:34 +0900)]
Make floatingip reachable from the same network

The problem is that if one tries to communicate from a tenant network
to floatingip which attached to a port on the same network, the
communication fails.

This problem is a regression cased by [1].
[1] https://review.openstack.org/131905/

Before [1] SNAT rule is as follows:
-s %(internal_cidr)s -j SNAT --to-source ...
(for each internal interface)

After [1] SNAT rule is as follows:
-o %(interface_name)s -j SNAT --to-source ...
(for an external interface)

The new rule was considered a super-set of the packets going out to
the external interface compared to the old rules. This is true but
there is a lack of consideration.

Note that the packet is 'going out to external interface' OR 'DNATed'
at this point since the rule:
! -o %(interdace_name)s -m conntrack ! --ctstate DNAT -j ACCEPT
was applied already. So we should consider the following three cases.

1) going out to external interface
should be SNATed. It is OK under the new rule but there was a lack
of rules for packets from indirectly connected to the router under the
old rules. ([1] fixed this.)

2) DNATed (and going out to internal interface)
2-1) came in from internal interface
should be SNATed because the return traffic needs to go through the
router to complete the conntrack association and to reverse the effect
of DNAT on the return packets. If a packet is not SNATed, the return
packet may be sent directly to the private IP of the initiator.
The old rules done SNAT in this case but the new rule doesn't.

2-2) came in from external interface
nothing to do.

This patch adds a rule for the case 2-1).
This patch also adds mangle rules to examine whether a packet came from
external interface.

Change-Id: Ifa695ac5428fb0edba60129a4d61ec0e127a5818
Closes-Bug: #1428887

9 years agoMerge "Set floating IP port status to "N/A""
Jenkins [Tue, 31 Mar 2015 01:01:25 +0000 (01:01 +0000)]
Merge "Set floating IP port status to "N/A""

9 years agoMerge "Test to verify shared attribute of network"
Jenkins [Tue, 31 Mar 2015 00:42:57 +0000 (00:42 +0000)]
Merge "Test to verify  shared attribute of network"

9 years agoMerge "Move final remnants of router processing to router classes"
Jenkins [Mon, 30 Mar 2015 23:49:29 +0000 (23:49 +0000)]
Merge "Move final remnants of router processing to router classes"

9 years agoFix functional configure script
Maru Newby [Mon, 30 Mar 2015 21:17:19 +0000 (21:17 +0000)]
Fix functional configure script

A recent change to devstack renamed lib/neutron to lib/neutron-legacy,
and this change updates the functional setup script to reflect the
change.

Change-Id: I5eb4b4052da4b0db128feb42feae50a8bc59f373
Closes-Bug: #1438426

9 years agoMerge "Fix DBDuplicateError handling in _ensure_default_security_group"
Jenkins [Mon, 30 Mar 2015 17:34:46 +0000 (17:34 +0000)]
Merge "Fix DBDuplicateError handling in _ensure_default_security_group"

9 years agoSupport IPv6 Router
Abishek Subramanian [Mon, 30 Mar 2015 17:24:09 +0000 (13:24 -0400)]
Support IPv6 Router

Allow router-gateway-set to work even without an assigned
subnet with the net_id so as to enable IPv6 L3 routing
using the assigned LLA for the gateway.

The goal is to allow for IPv6 routing using just
the allocated LLA address for the gateway port to be
used as the external gateway to connect to the upstream
router. For this purpose router-gateway-set no
longer has a requirement of an assigned subnet.

A new config has also been added to the l3_agent.ini
to allow the user to set a valid ipv6_gateway address
to be used as the gateway for the default ::/0 route

If the ipv6_gateway config is not set and a gateway
is still created without a subnet, the gateway interface
will be configured to accept router advertisements (RAs)
from the upstream router so as to build the default route.

Unit test changes and additions reflect these changes.

APIImpact
DocImpact
UpgradeImpact

Implements: blueprint ipv6-router
Change-Id: Iaefa95f788053ded9fc9c7ff6845c3030c6fd6df

9 years agoMove final remnants of router processing to router classes
Carl Baldwin [Tue, 10 Mar 2015 23:12:51 +0000 (23:12 +0000)]
Move final remnants of router processing to router classes

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

9 years agotests: don't rely on configuration files outside tests directory
Ihar Hrachyshka [Wed, 18 Mar 2015 13:21:57 +0000 (14:21 +0100)]
tests: don't rely on configuration files outside tests directory

etc/... may be non existent in some build environments. It's also pip
does not install those files under site-packages neutron module, so
paths relative to python files don't work.

So instead of using relative paths to etc/... contents, maintain our own
version of configuration files. It means we need to maintain tests only
policy.json file too, in addition to neutron.conf.test and
api-paste.ini.test.

Ideally, we would make etc/policy.json copied under site-packages in
addition to /etc/neutron/. In that way, we would not maintain a copy of
policy.json file in two places.

Though it seems that setuputils does not have a good way to install
files under site-packages that would consider all the differences
between python environments (specifically, different prefixes used in
different systems).

Note: it's not *absolutely* needed to update the test policy.json file
on each next policy update, though it will be needed in cases when we
want to test policy changes in unit tests. So adding a check to make
sure files are identical.

This partially reverts commit 1404f33b50452d4c0e0ef8c748011ce80303c2fd.

Conflicts:
neutron/policy.py

Related-Bug: #1433146
Change-Id: If1f5ebd981cf06558d5102524211799676068889

9 years agoMerge "Add tests for the l3 agent namespaces manager"
Jenkins [Mon, 30 Mar 2015 15:03:22 +0000 (15:03 +0000)]
Merge "Add tests for the l3 agent namespaces manager"

9 years agoMerge "Remove unnecessary 'IN vs ==' sql query branches"
Jenkins [Mon, 30 Mar 2015 12:21:09 +0000 (12:21 +0000)]
Merge "Remove unnecessary 'IN vs ==' sql query branches"

9 years agoSet floating IP port status to "N/A"
Kevin Benton [Wed, 17 Sep 2014 03:36:42 +0000 (20:36 -0700)]
Set floating IP port status to "N/A"

The status of the port associated with a floating IP
would always show as DOWN. This caused confusion to
operators that weren't aware that this is expected behavior
since the port is only used for an IP allocation.

This commit sets the port status to "N/A" to reflect the fact
that the port associated with a floating IP has no operational
status.

DocImpact
APIImpact

Closes-Bug: #1196851
Change-Id: I2f94afa001b213d61f0e5892aae2e6e6de98fe4c

9 years agoMerge "Fix minor nits in _notify_l3_agent_new_port()"
Jenkins [Mon, 30 Mar 2015 09:14:06 +0000 (09:14 +0000)]
Merge "Fix minor nits in _notify_l3_agent_new_port()"

9 years agoMerge "Validate string length at API level"
Jenkins [Sun, 29 Mar 2015 18:36:57 +0000 (18:36 +0000)]
Merge "Validate string length at API level"

9 years agoMerge "Add language around re-proposing specs for new releases"
Jenkins [Sun, 29 Mar 2015 17:02:23 +0000 (17:02 +0000)]
Merge "Add language around re-proposing specs for new releases"

9 years agoMerge "Reload DHCP interface when its port is updated"
Jenkins [Sun, 29 Mar 2015 16:57:50 +0000 (16:57 +0000)]
Merge "Reload DHCP interface when its port is updated"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Sun, 29 Mar 2015 06:13:27 +0000 (06:13 +0000)]
Imported Translations from Transifex

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

Change-Id: Iff665505f6cf88bf23e27c0e37a6babb221560d2

9 years agoMerge "Update NEC plugin decomposition status"
Jenkins [Sun, 29 Mar 2015 05:25:53 +0000 (05:25 +0000)]
Merge "Update NEC plugin decomposition status"

9 years agoAdd tests for the l3 agent namespaces manager
Miguel Lavalle [Sun, 8 Mar 2015 22:32:21 +0000 (17:32 -0500)]
Add tests for the l3 agent namespaces manager

The following tests are added for the l3 agent namespaces manager:

1) Unit tests
2) Funtional test
3) A test case within the l3 funtional test for periodic_sync_routers_task

Change-Id: Ia26f1ccdc0a6619aa231c8799acc80377f4144f8
Partially-Implements: bp restructure-l3-agent