]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Merge remote-tracking branch 'origin/feature/qos' into merge-branch" into...
Jenkins [Sat, 25 Jul 2015 17:46:20 +0000 (17:46 +0000)]
Merge "Merge remote-tracking branch 'origin/feature/qos' into merge-branch" into feature/qos

9 years agoMerge "ml2: added qos_profile_id to get_device_details payload" into feature/qos
Jenkins [Sat, 25 Jul 2015 17:46:08 +0000 (17:46 +0000)]
Merge "ml2: added qos_profile_id to get_device_details payload" into feature/qos

9 years agoml2: added qos_profile_id to get_device_details payload
Ihar Hrachyshka [Fri, 24 Jul 2015 15:31:50 +0000 (17:31 +0200)]
ml2: added qos_profile_id to get_device_details payload

This is needed to make l2 agent qos extension determine which rules to
apply to the port, if any.

Partially-Implements: blueprint quantum-qos-api
Change-Id: Idefa819f9a21cf53762b1fb923dafb63f2b256e0

9 years agoMerge remote-tracking branch 'origin/feature/qos' into merge-branch
Ihar Hrachyshka [Fri, 24 Jul 2015 12:24:10 +0000 (14:24 +0200)]
Merge remote-tracking branch 'origin/feature/qos' into merge-branch

Change-Id: I1c1fd593235fda1cdd053980f50eff21ca9011b6

9 years agoSupport qos rules and fields parameters in GET requests
Jakub Libosvar [Tue, 21 Jul 2015 08:04:00 +0000 (08:04 +0000)]
Support qos rules and fields parameters in GET requests

Previously we didn't load the rules into policy object. This patch adds
loading the rules and defines bandwidth_limit_rules as a policy
resource in a single transaction. As a part of moving towards usage of
single transaction, create() and update() of rule were modified
accordingly.
Finally, we support types in GET requests in this patch.

API tests will follow in different patch.

Change-Id: I25c72aae74469b687766754bbeb749dfd1b8867c

9 years agoMerge "[qos] cleanup _find_object from neutron.db.api" into feature/qos
Jenkins [Fri, 24 Jul 2015 10:03:03 +0000 (10:03 +0000)]
Merge "[qos] cleanup _find_object from neutron.db.api" into feature/qos

9 years agoMerge "Fix a property comment in metadata_agent files"
Jenkins [Fri, 24 Jul 2015 08:17:36 +0000 (08:17 +0000)]
Merge "Fix a property comment in metadata_agent files"

9 years agoMerge "Metaplugin removal"
Jenkins [Fri, 24 Jul 2015 08:13:54 +0000 (08:13 +0000)]
Merge "Metaplugin removal"

9 years agoMerge "Base infrastructure for QoS API tests" into feature/qos
Jenkins [Fri, 24 Jul 2015 06:41:03 +0000 (06:41 +0000)]
Merge "Base infrastructure for QoS API tests" into feature/qos

9 years agoMerge "Python 3: fix neutron.tests.unit.agent.dhcp.test_agent"
Jenkins [Fri, 24 Jul 2015 05:52:05 +0000 (05:52 +0000)]
Merge "Python 3: fix neutron.tests.unit.agent.dhcp.test_agent"

9 years agoMerge "qos: kill get_namespace() from service plugin" into feature/qos
Jenkins [Fri, 24 Jul 2015 05:08:13 +0000 (05:08 +0000)]
Merge "qos: kill get_namespace() from service plugin" into feature/qos

9 years agoMerge "Fix handling of port-range-min 0 in secgroup RPC and agent"
Jenkins [Thu, 23 Jul 2015 19:52:53 +0000 (19:52 +0000)]
Merge "Fix handling of port-range-min 0 in secgroup RPC and agent"

9 years agoMerge "Add address scope API tests"
Jenkins [Thu, 23 Jul 2015 18:25:53 +0000 (18:25 +0000)]
Merge "Add address scope API tests"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 23 Jul 2015 17:14:35 +0000 (17:14 +0000)]
Merge "Updated from global requirements"

9 years agoPython 3: fix neutron.tests.unit.agent.dhcp.test_agent
Cyril Roelandt [Thu, 23 Jul 2015 09:23:21 +0000 (09:23 +0000)]
Python 3: fix neutron.tests.unit.agent.dhcp.test_agent

A simple "list vs dict_keys" issue was preventing two tests from succeeding.

Change-Id: I9386ddc600005ebb1b3f5382f6e43c19d31d4213
Blueprint: neutron-python3

9 years agoMerge "neutron-db-manage: fix check_migration for branch-less migration directories"
Jenkins [Thu, 23 Jul 2015 15:08:30 +0000 (15:08 +0000)]
Merge "neutron-db-manage: fix check_migration for branch-less migration directories"

9 years agoMerge "Python 3: fix neutron.tests.unit.agent.linux.test_async_process"
Jenkins [Thu, 23 Jul 2015 14:12:06 +0000 (14:12 +0000)]
Merge "Python 3: fix neutron.tests.unit.agent.linux.test_async_process"

9 years agoMerge "Allow passing table argument to construct IpRouteCommand"
Jenkins [Thu, 23 Jul 2015 14:03:01 +0000 (14:03 +0000)]
Merge "Allow passing table argument to construct IpRouteCommand"

9 years agoMerge "Define fullstack router/network/subnet management fixture"
Jenkins [Thu, 23 Jul 2015 14:02:47 +0000 (14:02 +0000)]
Merge "Define fullstack router/network/subnet management fixture"

9 years agoMerge "Add new ovs DB API to inquire interfaces name list in a bridge"
Jenkins [Thu, 23 Jul 2015 14:02:34 +0000 (14:02 +0000)]
Merge "Add new ovs DB API to inquire interfaces name list in a bridge"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 23 Jul 2015 12:50:58 +0000 (12:50 +0000)]
Updated from global requirements

Change-Id: I36e87e41ba3a99b43bc57e9c9586ec9494db62d7

9 years agoMerge "Just use {0,1,2} rather sys.std*.fileno()"
Jenkins [Thu, 23 Jul 2015 11:56:16 +0000 (11:56 +0000)]
Merge "Just use {0,1,2} rather sys.std*.fileno()"

9 years ago[qos] cleanup _find_object from neutron.db.api
Ihar Hrachyshka [Tue, 21 Jul 2015 13:05:33 +0000 (15:05 +0200)]
[qos] cleanup _find_object from neutron.db.api

Instead of having a separate function for id-based search, make
get_object accept any kwargs, including id=, and reuse it everywhere
where we used _find_object before.

Change-Id: Ibd94c41fb847d67aabb94172d0117bafc0fdbdf6

9 years agoRevert "Mute neutron.callbacks notification logs."
Ihar Hrachyshka [Wed, 22 Jul 2015 10:53:00 +0000 (12:53 +0200)]
Revert "Mute neutron.callbacks notification logs."

This reverts commit e19eb49c1c066c8fa4a3c19183bca1daef553a5c.

We don't use callbacks to extend resources, so no need to mute the logs.

Change-Id: I8eaffa243f74a8f93dfc1638727ac9cd0bdf505d

9 years agoqos: kill get_namespace() from service plugin
Ihar Hrachyshka [Wed, 22 Jul 2015 10:54:53 +0000 (12:54 +0200)]
qos: kill get_namespace() from service plugin

Its usage was removed as of I3c406910991c33cf959c5345d76153eabe3ace2d
that is now included in feature/qos branch.

Change-Id: Iddab10729cf12e3b7425c5d2298f2a6b3436289c

9 years agoBase infrastructure for QoS API tests
John Schwarz [Tue, 30 Jun 2015 14:57:19 +0000 (17:57 +0300)]
Base infrastructure for QoS API tests

This introduces the basic methods in the tempest client, that allow the
testing of the QoS plugin. This also contains 2 (very) simple tests
which test creation and deletion of both policies and bandwidth rules,
as well as list/show for both resources. While creation is done
explicitly, deletion is done implicitly (all resources are deleted after
the test, during tearDown)

Minor fixes to the QoS plugin are included as well.

Change-Id: I0f34ed8464857859bcd519e301a49b0b067593b0

9 years agoMerge "Fix race condition by using lock on enable_radvd"
Jenkins [Thu, 23 Jul 2015 10:33:05 +0000 (10:33 +0000)]
Merge "Fix race condition by using lock on enable_radvd"

9 years agoMerge "[devref] db_layer: expand on how new migration scripts look like"
Jenkins [Thu, 23 Jul 2015 10:10:44 +0000 (10:10 +0000)]
Merge "[devref] db_layer: expand on how new migration scripts look like"

9 years agoMerge "Ensure that update_fip_statuses gets called"
Jenkins [Thu, 23 Jul 2015 10:10:24 +0000 (10:10 +0000)]
Merge "Ensure that update_fip_statuses gets called"

9 years agoMetaplugin removal
Hirofumi Ichihara [Fri, 17 Jul 2015 05:32:21 +0000 (14:32 +0900)]
Metaplugin removal

Metaplugin is removed in Liberty.
Remove all metaplugin related codes.

DocImpact
APIImpact

Co-Authored-By: Itsuro Oda <oda@valinux.co.jp>
Change-Id: I9cf36e1fd3a009c175e0d475af407a30f4e5c408
Closes-Bug: #1465126

9 years agoMerge remote-tracking branch 'origin/feature/qos' into merge-branch
Ihar Hrachyshka [Thu, 23 Jul 2015 08:32:53 +0000 (10:32 +0200)]
Merge remote-tracking branch 'origin/feature/qos' into merge-branch

Also applied the following fixes:

===

1. cleaned up some pylint failures that were not spotted before:

Module neutron.objects.qos.policy: Metaclass class method __new__ should
have 'mcs' as first argument

Module neutron.objects.qos.rule: Lambda may not be necessary

===

2. Revert "Introduce the AFTER_READ callback for ports and networks"

This reverts commit e3dba1424114575581c153e02227282e036ad0a2.

We don't use callbacks to extend resources anymore, instead relying on
ml2 extension drivers. No need for the patch to achieve QoS, and it also
breaks test_delete_subnet_with_callback that was added in master
recently.

===

3. updated requirements.txt and test-requirements.txt based on:

https://review.openstack.org/#/c/204398/

to avoid requirements gate checks failing due to incompatible
requirements comparing to global-requirements.txt

Change-Id: I744ab2d8327a428a5467f2d07d073a5f8c333520

9 years agoFix handling of port-range-min 0 in secgroup RPC and agent
shihanzhang [Tue, 14 Jul 2015 11:20:46 +0000 (19:20 +0800)]
Fix handling of port-range-min 0 in secgroup RPC and agent

For TCP/UDP protocol, port valid range is 0 to 65535, so for a
security group rule, its valid range is also 0 to 65535. this
patch makes two changes:
1. if a security group rule port_range_min is 0, l2 agent also can
   get port_range_min real value 0 when it gets this rule for a
   device via RPC.
2. For IptablesFirewallDriver, if port range is [0, xxxx], l2 agent
   also need add this rule to iptables.

Change-Id: If93c54a31d973187889ead2c2797ffdd40a4393d
Closes-bug: #1473965

9 years agoFix a property comment in metadata_agent files
Bertrand Lallau [Mon, 20 Jul 2015 13:12:49 +0000 (15:12 +0200)]
Fix a property comment in metadata_agent files

Metadata Proxy UNIX domain socket mode allows 4 values not 3.

Change-Id: I83787856acda48608e1f0997329a92876afed613

9 years agoMerge "Remove deprecated OVS and LB plugin DB tables"
Jenkins [Thu, 23 Jul 2015 08:30:36 +0000 (08:30 +0000)]
Merge "Remove deprecated OVS and LB plugin DB tables"

9 years agoMerge "ensure_dir: move under neutron.common.utils"
Jenkins [Thu, 23 Jul 2015 08:28:16 +0000 (08:28 +0000)]
Merge "ensure_dir: move under neutron.common.utils"

9 years agoMerge "OVS agent factor our port stats processing"
Jenkins [Thu, 23 Jul 2015 07:59:29 +0000 (07:59 +0000)]
Merge "OVS agent factor our port stats processing"

9 years agoMerge "Fixed L3 agent manual scheduling for HA routers"
Jenkins [Thu, 23 Jul 2015 07:59:08 +0000 (07:59 +0000)]
Merge "Fixed L3 agent manual scheduling for HA routers"

9 years agoMerge "Port help text for dvr_base_mac from neutron.conf"
Jenkins [Thu, 23 Jul 2015 07:36:27 +0000 (07:36 +0000)]
Merge "Port help text for dvr_base_mac from neutron.conf"

9 years agoMerge "Python 3: enable more tests"
Jenkins [Thu, 23 Jul 2015 07:18:32 +0000 (07:18 +0000)]
Merge "Python 3: enable more tests"

9 years agoMerge "ovs_lib: Fix native implementation of db_list"
Jenkins [Thu, 23 Jul 2015 03:23:54 +0000 (03:23 +0000)]
Merge "ovs_lib: Fix native implementation of db_list"

9 years agoMerge "Fullstack testing devref follow up"
Jenkins [Thu, 23 Jul 2015 03:05:33 +0000 (03:05 +0000)]
Merge "Fullstack testing devref follow up"

9 years agoMerge "Tweak wording for project inclusion process"
Jenkins [Wed, 22 Jul 2015 23:51:43 +0000 (23:51 +0000)]
Merge "Tweak wording for project inclusion process"

9 years agoMerge "Use only the lower 16 bits of iptables mark for marking"
Jenkins [Wed, 22 Jul 2015 22:48:53 +0000 (22:48 +0000)]
Merge "Use only the lower 16 bits of iptables mark for marking"

9 years agoMerge "Alter unit test to match bug and cleanup ext logic"
Jenkins [Wed, 22 Jul 2015 19:09:56 +0000 (19:09 +0000)]
Merge "Alter unit test to match bug and cleanup ext logic"

9 years agoMerge "Always use BridgeDevice to manage linuxbridges"
Jenkins [Wed, 22 Jul 2015 19:03:15 +0000 (19:03 +0000)]
Merge "Always use BridgeDevice to manage linuxbridges"

9 years agoMerge "Add address_scope_db to neutron/models/head.py"
Jenkins [Wed, 22 Jul 2015 16:05:24 +0000 (16:05 +0000)]
Merge "Add address_scope_db to neutron/models/head.py"

9 years agoAdd address scope API tests
Numan Siddique [Mon, 6 Jul 2015 18:49:03 +0000 (00:19 +0530)]
Add address scope API tests

This patch adds the address scope api tests and
also returns the address scope resource attr map
in the get_extended_resources() function which was
missed in the previous patch

Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com>
Co-Authored-By: Ryan Tidwell <rktidwell85@gmail.com>
Change-Id: I819f08dfb78346f92ba73e11daa7294518e7452a
Partially-implements:  blueprint address-scopes

9 years agoPython 3: enable more tests
Cyril Roelandt [Wed, 22 Jul 2015 11:03:58 +0000 (11:03 +0000)]
Python 3: enable more tests

Now that Routes 2.2 has been released, we can run some tests that were
previously commented out.

Change-Id: I46d8479ae4f29dc8b26143e7a49f88ff35198e9d
Blueprint: neutron-python3

9 years agoAdd new ovs DB API to inquire interfaces name list in a bridge
Yalei Wang [Tue, 9 Jun 2015 05:46:57 +0000 (13:46 +0800)]
Add new ovs DB API to inquire interfaces name list in a bridge

In OVS, ports don't equal to interfaces when a bond port created. This patch
add the new API get_iface_name_list to get the interfaces' name, and it's
supplementary to the current get_port_name_list API.

Change-Id: I29c220e099b8dcf78248e2d660c435578bb2932d
Partial-Bug: #1460494

9 years agoMerge "Python 3: fix test_provider_configuration"
Jenkins [Wed, 22 Jul 2015 04:45:31 +0000 (04:45 +0000)]
Merge "Python 3: fix test_provider_configuration"

9 years agoMerge "Added functional tests for L3 schedulers."
Jenkins [Wed, 22 Jul 2015 02:14:54 +0000 (02:14 +0000)]
Merge "Added functional tests for L3 schedulers."

9 years agoMerge "Fix note in devref/contribute.rst"
Jenkins [Wed, 22 Jul 2015 02:11:29 +0000 (02:11 +0000)]
Merge "Fix note in devref/contribute.rst"

9 years agoTweak wording for project inclusion process
armando-migliaccio [Tue, 21 Jul 2015 23:08:41 +0000 (16:08 -0700)]
Tweak wording for project inclusion process

There may be projects that have not being created yet, so revise
the wording a bit to provide clarity that new projects can also
submit for inclusion right off the bat.

Change-Id: I862dc3d1835472066c23c3df8e049ae17bf47c2b

9 years agoDefine fullstack router/network/subnet management fixture
Cedric Brandily [Thu, 18 Jun 2015 12:19:21 +0000 (12:19 +0000)]
Define fullstack router/network/subnet management fixture

This change defines the generic fixture ClientFixture for managing
neutron resources:

* router create/cleanup
* network create/cleanup
* subnet create/cleanup
* router interface add/cleanup

And uses it in neutron.test.fullstack.test_l3_agent.

Change-Id: I09fe40d65db60aeee1ff57a7e45c1978a5433517

9 years agoFix race condition by using lock on enable_radvd
sridhargaddam [Fri, 19 Jun 2015 16:17:01 +0000 (16:17 +0000)]
Fix race condition by using lock on enable_radvd

For an HA Router, radvd is spawned only in the Master Node.
KeepalivedStateChangeHandler after receiving the state notification
on the unix domain socket, would either enable/disable the radvd
process depending on the state of the HA Router. In parallel, if
there is a request to add an interface to the router, router.process()
would try to enable radvd in parallel. So there is a possible race
condition as two threads try to enable radvd in parallel. This patch
uses appropriate locking mechanism to prevent this race condition.

Closes-Bug: #1466663
Change-Id: I40df78cc57fcde5512336d9dfef88b3b06a69bcb

9 years agoFix note in devref/contribute.rst
Wei Wang [Mon, 20 Jul 2015 14:55:31 +0000 (22:55 +0800)]
Fix note in devref/contribute.rst

Now note in devref/contribute.rst is formated as a section,
so it will appear at catalog which is pretty ugly.

This fix uses note admonition to replace it and specifies Mitaka
as the release name instead of Mxxx.

Change-Id: Ic4afb086e7d4eace035ebe74d1244eabe1ff8915

9 years agoensure_dir: move under neutron.common.utils
Ihar Hrachyshka [Sat, 18 Jul 2015 12:52:53 +0000 (14:52 +0200)]
ensure_dir: move under neutron.common.utils

There is nothing Linux or agent specific in the function. I need to use
it outside agent code in one of depending patches, hence moving it into
better location while leaving the previous symbol in place, with
deprecation warning, for backwards compatibility.

Change-Id: I252356a72f3c742e57c1b6127275030f0994a221

9 years agoRemove deprecated OVS and LB plugin DB tables
Henry Gessau [Thu, 25 Jun 2015 17:58:30 +0000 (13:58 -0400)]
Remove deprecated OVS and LB plugin DB tables

Now that the openvswitch and linuxbridge monolithic plugins have been
deprecated and replaced by ML2 mechanism drivers, we can remove their
database tables.

Also remove the migrate_to_ml2.py script which is no longer supported.

Change-Id: Ia8d77cb7e4e4b3d4957365cc124ac71a59e62745
Partially-Implements: blueprint reference-implementation-split
Closes-Bug: #1468433

9 years agoMerge "Add documentation for SRIOV NIC agent (previously missing)"
Jenkins [Tue, 21 Jul 2015 00:08:32 +0000 (00:08 +0000)]
Merge "Add documentation for SRIOV NIC agent (previously missing)"

9 years agoovs_lib: Fix native implementation of db_list
YAMAMOTO Takashi [Thu, 16 Jul 2015 10:56:21 +0000 (19:56 +0900)]
ovs_lib: Fix native implementation of db_list

Move the code to list records into the transaction.

Closes-Bug: #1473038
Closes-Bug: #1473049
Closes-Bug: #1475253
Change-Id: I9f367f5ba1ecc50b9bb94c6f52507033d0139611

9 years agoMerge "Change prefix for namespace fixture"
Jenkins [Mon, 20 Jul 2015 21:45:52 +0000 (21:45 +0000)]
Merge "Change prefix for namespace fixture"

9 years agoPort help text for dvr_base_mac from neutron.conf
Louis Taylor [Mon, 20 Jul 2015 17:20:29 +0000 (17:20 +0000)]
Port help text for dvr_base_mac from neutron.conf

The help text for the option in the current static configuration file
contained additional information which would be lost when we switch to
generating the file. This patch copies it over to the oslo.config help
parameter.

Related-blueprint: autogen-neutron-conf-file

Change-Id: Id03925b4bbbee697bf5372392c2345802a1863f8

9 years agoAdd documentation for SRIOV NIC agent (previously missing)
Irena Berezovsky [Thu, 16 Jul 2015 13:42:10 +0000 (13:42 +0000)]
Add documentation for SRIOV NIC agent (previously missing)

Co-Authored-By: Moshe Levi <moshele@mellanox.com>
Change-Id: I86abeb42d01b0541a4537b774833a104c6732310

9 years agoPython 3: fix neutron.tests.unit.agent.linux.test_async_process
Cyril Roelandt [Mon, 20 Jul 2015 14:41:39 +0000 (14:41 +0000)]
Python 3: fix neutron.tests.unit.agent.linux.test_async_process

In Python 3, one cannot compare an integer to None.

Change-Id: I8de3ea3752be837540ea65f1bb254a095927de44
Blueprint: neutron-python3

9 years agoMerge "Unplug the VIF if dhcp port is deleted"
Jenkins [Mon, 20 Jul 2015 09:58:30 +0000 (09:58 +0000)]
Merge "Unplug the VIF if dhcp port is deleted"

9 years agoMerge "objects.rule: enable database tests for QosRule" into feature/qos
Jenkins [Mon, 20 Jul 2015 07:31:24 +0000 (07:31 +0000)]
Merge "objects.rule: enable database tests for QosRule" into feature/qos

9 years agoAdded functional tests for L3 schedulers.
Ritesh Anand [Fri, 24 Apr 2015 19:29:22 +0000 (12:29 -0700)]
Added functional tests for L3 schedulers.

Legacy mode agents considered.

Following test cases are added:
Common scenarios:
1. No routers scheduled if no agents are present
2. No routers scheduled if it is already hosted
3. No routers scheduled if all agents are down
4. Router scheduled to the agent if router is not yet hosted
5. Router scheduled to the agent even if it already hosts a router

Following scenario specific to least routers scheduler is added:
1. Router is scheduled to agent hosting least routers

For each of Chance and Least Router schedulers auto scheduling is also verified.

A total of 22 test cases are added.

Change-Id: Ic4df299bac83c80abf0890a81d2dd36d15993b33

9 years agoAlways use BridgeDevice to manage linuxbridges
Cedric Brandily [Fri, 8 May 2015 21:28:37 +0000 (23:28 +0200)]
Always use BridgeDevice to manage linuxbridges

BridgeDevice[1] class provides methods to manage linuxbridges through
brctl. This change adds some methods to BridgeDevice in order to
always use BridgeDevice to manage linuxbridges and respect DRY
principle.

[1] neutron.agent.linux.bridge_lib

Change-Id: I4b9d755677bba0d487a261004d9ba9b11116101f

9 years agoMerge "Updated from global requirements"
Jenkins [Sun, 19 Jul 2015 12:38:45 +0000 (12:38 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Add constants for vhost-user vif"
Jenkins [Sun, 19 Jul 2015 09:33:17 +0000 (09:33 +0000)]
Merge "Add constants for vhost-user vif"

9 years agoUpdate OVS Agent to work with Agent Extension Mgr
Moshe Levi [Wed, 15 Jul 2015 08:13:50 +0000 (11:13 +0300)]
Update OVS Agent to work with Agent Extension Mgr

Change-Id: I1887d402a4377babb648182727cf51b9f2627e1c

9 years agoInstantiate qos agent driver
Jakub Libosvar [Thu, 16 Jul 2015 12:23:26 +0000 (14:23 +0200)]
Instantiate qos agent driver

Change-Id: Icd8a725f231e2749bb81da0bcad0f7ef95beb676

9 years agoobjects.rule: enable database tests for QosRule
Ihar Hrachyshka [Thu, 16 Jul 2015 13:15:11 +0000 (15:15 +0200)]
objects.rule: enable database tests for QosRule

While at it, simplified inheritance mess in test_policy.

Change-Id: I6cf2394a27f8bb29a18c99effe2dc2251c138d59

9 years agoHandle qos_policy on network/port create/update
Mike Kolesnik [Wed, 15 Jul 2015 07:44:15 +0000 (10:44 +0300)]
Handle qos_policy on network/port create/update

Added handling for qos_policy_id field in the network and port
entities via ML2 extension driver.
The QoS profile will be associated to the network/port when requested as
part of the entity creation or update.

Allow ML2 extension manager to not register for any api extension
(new use case).

===

Extend the resources using the QoS extension class

Since the QoS extension for plugins is handles by this class, it makes
sense for it to handle also property extension of resources.

For ML2 this means that that extend_{network,port}_dict functions will
handle the extension of resources by calling QosExtensionHandler.
This logic can easily be reused by other plugins.

Note: we should make sure that resource extension does not require db
access, otherwise we see DBDeadLock errors and random tempest failures.
To achieve this, we define a new SQLAlchemy joined relationship on
policy bindings to make networks and ports receive those bindings on
their fetch from database. After that, the only work to do left for
resource extension handler is to copy the fetched policy into resource
dictionary.

===

Also enable new qos ml2 extension until we configure it in gate via
project-config and devstack-gate to make sure it's enabled and tested.

Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Partially-implements: blueprint quantum-qos-api
Change-Id: I1b7d4611215a471d5c24eb3d7208dcddb7e015f4

9 years agoMerge "Validate that context exists"
Jenkins [Sat, 18 Jul 2015 20:38:01 +0000 (20:38 +0000)]
Merge "Validate that context exists"

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Sat, 18 Jul 2015 16:06:06 +0000 (16:06 +0000)]
Updated from global requirements

Change-Id: I1385cfc5d8838fbb73ba5c909537d072cba8d736

9 years agoMerge "Python 3: Wrap map() in a list call"
Jenkins [Sat, 18 Jul 2015 14:09:54 +0000 (14:09 +0000)]
Merge "Python 3: Wrap map() in a list call"

9 years agoValidate that context exists
Gary Kotton [Sat, 18 Jul 2015 07:33:10 +0000 (00:33 -0700)]
Validate that context exists

Commit 3e0328b992d8a90213a56ec5a4144677279bea66 broke external
decomposed plugins due to the fact that it assumes that the
context is set.

This patch validates that the context is set.

Co-Authored-By: Kevin Benton <blak111@gmail.com>
Change-Id: I3320f27be7b0fed1d3b37a5c5459d91b2bc4f13b
Closes-bug: #1475837

9 years agoMerge "Add oslo db retry decorator to non-CRUD actions"
Jenkins [Sat, 18 Jul 2015 09:07:41 +0000 (09:07 +0000)]
Merge "Add oslo db retry decorator to non-CRUD actions"

9 years agoMerge "Make external_gateway_nat_rules easier to understand"
Jenkins [Sat, 18 Jul 2015 02:02:16 +0000 (02:02 +0000)]
Merge "Make external_gateway_nat_rules easier to understand"

9 years agoMerge "Add another Lieutenant contact for Dragonflow"
Jenkins [Sat, 18 Jul 2015 01:49:12 +0000 (01:49 +0000)]
Merge "Add another Lieutenant contact for Dragonflow"

9 years agoMerge "Add sub-project lieutenant for networking-midonet"
Jenkins [Sat, 18 Jul 2015 01:47:43 +0000 (01:47 +0000)]
Merge "Add sub-project lieutenant for networking-midonet"

9 years agoMerge "Introduce connection testers module"
Jenkins [Sat, 18 Jul 2015 00:56:51 +0000 (00:56 +0000)]
Merge "Introduce connection testers module"

9 years agoMerge "Use oslo_log.helpers.log_method_call"
Jenkins [Sat, 18 Jul 2015 00:53:47 +0000 (00:53 +0000)]
Merge "Use oslo_log.helpers.log_method_call"

9 years agoMerge "Add sanity_check for keepalived ipv6 support"
Jenkins [Sat, 18 Jul 2015 00:53:11 +0000 (00:53 +0000)]
Merge "Add sanity_check for keepalived ipv6 support"

9 years agoMerge "Remove perform_snat_action indirection"
Jenkins [Sat, 18 Jul 2015 00:39:45 +0000 (00:39 +0000)]
Merge "Remove perform_snat_action indirection"

9 years agoneutron-db-manage: fix check_migration for branch-less migration directories
Ihar Hrachyshka [Fri, 17 Jul 2015 22:48:30 +0000 (00:48 +0200)]
neutron-db-manage: fix check_migration for branch-less migration directories

I3823900bc5aaf7757c37edb804027cf4d9c757ab introduced support for
multi-branch migration directories in neutron-db-manage. That broke
check_migration for those projects without multiple branches.

The tool should properly handle both types of directories for forseable
future.

Related-Bug: #1475804
Change-Id: Ie4d20f5119018ffdebe2929b961c5ddb314ed734

9 years agoUse only the lower 16 bits of iptables mark for marking
Carl Baldwin [Tue, 14 Jul 2015 19:00:45 +0000 (19:00 +0000)]
Use only the lower 16 bits of iptables mark for marking

Since a packet can only have one mark, and we will need to mark a
packet for multiple purposes, we need to use a coordinated bitmask for
the two cases of simple marking that we currently do in Neutron
leaving the other bits for address scopes.

DocImpact

Change-Id: Id0517758d06e036a36dc8b8772e41af55d986b4e
Partially-Implements: blueprint address-scopes

9 years agoPython 3: fix test_provider_configuration
Cyril Roelandt [Fri, 17 Jul 2015 17:27:36 +0000 (17:27 +0000)]
Python 3: fix test_provider_configuration

We cannot compare a dict_keys/dict_values object with a list.

Change-Id: I6dbbe5eb4e98ccfc41109a5d93a22cda910774ee
Blueprint: neutron-python3

9 years agoAdd address_scope_db to neutron/models/head.py
Mike Bayer [Fri, 17 Jul 2015 17:19:57 +0000 (13:19 -0400)]
Add address_scope_db to neutron/models/head.py

The head.py file ensures that all relevant models are
imported when ModelsMigrationSync tests are run in
neutron/tests/functional/db/test_migrations.   This is
one of the models that needs to be present else the
"address_scopes" table comes out as missing.   The
error is usually concealed by the fact that the module
was imported as a side effect of other tests but
is revealed if one runs test_migrations.py alone.

Change-Id: I954d8385c479de663ef1a5ef439866d2d927bcf3

9 years agoMerge "Network RBAC DB setup and legacy migration"
Jenkins [Fri, 17 Jul 2015 16:56:28 +0000 (16:56 +0000)]
Merge "Network RBAC DB setup and legacy migration"

9 years agoOVS agent factor our port stats processing
rossella [Sun, 5 Jul 2015 21:58:25 +0000 (23:58 +0200)]
OVS agent factor our port stats processing

Move the port stats processing from the rpc loop to a new method
get_port_stats

Change-Id: I4a927f5c11328d854fbb5f76d560bbd9425651ea

9 years agoPython3: Do not compare NoneType and integers
Cyril Roelandt [Thu, 16 Jul 2015 21:12:58 +0000 (21:12 +0000)]
Python3: Do not compare NoneType and integers

In Python 2:
>>> None > 0
False

In Python 3:
>>> None > 0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: NoneType() > int()

This commit does not change the behaviour of the affected code, but fixes the
TypeError that is raised in Python 3.

Some tests have been added to the py34 section of tox.ini, but are currently
commented out: these are tests that work with this patch and a fixed version of
Routes.

Change-Id: Ia00a2ad90206853f78ed93cf540bce54baab00e7
Blueprint: neutron-python3

9 years agoMerge "Implement QoS plugin" into feature/qos
Jenkins [Fri, 17 Jul 2015 09:11:04 +0000 (09:11 +0000)]
Merge "Implement QoS plugin" into feature/qos

9 years agoUse oslo_log.helpers.log_method_call
Cedric Brandily [Wed, 15 Jul 2015 21:39:49 +0000 (23:39 +0200)]
Use oslo_log.helpers.log_method_call

log[1] decorator is deprecated, this change replaces it with oslo_log
log_method_call[2].

[1] neutron.common.log
[2] oslo_log.helpers.log_method_call

Change-Id: I61cf3c010e1f33a45ff700f4e8d4824ebdb378c7

9 years agoUnplug the VIF if dhcp port is deleted
shihanzhang [Tue, 30 Jun 2015 02:14:19 +0000 (10:14 +0800)]
Unplug the VIF if dhcp port is deleted

if user delete the dhcp port, dhcp-agent should unplug
the VIF for this dhcp port, then the driver do
'reload_allocations' will raise a exception, dhcp-agent
resync for this network and re-create dhcp port.

Change-Id: I40b85033d075562c43ce4d0e68296211b3241197
Closes-bug: #1469615

9 years agoPython 3: Wrap map() in a list call
fumihiko kakuma [Thu, 16 Jul 2015 10:34:12 +0000 (19:34 +0900)]
Python 3: Wrap map() in a list call

map() returns an iterator in python 3. In a case that a list is expected,
we wrap map() in a list call.

Change-Id: I623d854c410176c8ec43b732dc8f4e087dadefd9
Blueprint: neutron-python3

9 years agoDevref documentation for client command extension support
Gal Sagie [Mon, 6 Jul 2015 13:22:39 +0000 (16:22 +0300)]
Devref documentation for client command extension support

Change-Id: I51d5c26467b0e10e215838a02e6be81b6bc07ea9
Closes-Bug: #1470622
Depends-On: If71c9e2bbf888b1a68d3b7dc351f7df02f1a380f

9 years agoMerge "OVS-agent: Fix a docstring typo"
Jenkins [Fri, 17 Jul 2015 03:41:02 +0000 (03:41 +0000)]
Merge "OVS-agent: Fix a docstring typo"

9 years agoMerge "Flavor Framework implementation"
Jenkins [Fri, 17 Jul 2015 03:24:20 +0000 (03:24 +0000)]
Merge "Flavor Framework implementation"