]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "Gracefully handle fetching nonexistent rule" into feature/qos
Jenkins [Tue, 4 Aug 2015 13:53:35 +0000 (13:53 +0000)]
Merge "Gracefully handle fetching nonexistent rule" into feature/qos

9 years agoMerge "objects.qos.policy: forbid deletion when attached to a port or a network"...
Jenkins [Tue, 4 Aug 2015 13:53:22 +0000 (13:53 +0000)]
Merge "objects.qos.policy: forbid deletion when attached to a port or a network" into feature/qos

9 years agoMerge "Replace to_dict() calls with a function decorator" into feature/qos
Jenkins [Tue, 4 Aug 2015 13:49:56 +0000 (13:49 +0000)]
Merge "Replace to_dict() calls with a function decorator" into feature/qos

9 years agoMerge "Remove handle_network/handle_subnet from l2 agent extensions" into feature/qos
Jenkins [Tue, 4 Aug 2015 13:44:31 +0000 (13:44 +0000)]
Merge "Remove handle_network/handle_subnet from l2 agent extensions" into feature/qos

9 years agoMerge "Add API tests for non-accessible policies" into feature/qos
Jenkins [Tue, 4 Aug 2015 06:38:57 +0000 (06:38 +0000)]
Merge "Add API tests for non-accessible policies" into feature/qos

9 years agoMerge "L2 agent extension manager: read extensions list from config file" into featur...
Jenkins [Mon, 3 Aug 2015 22:40:49 +0000 (22:40 +0000)]
Merge "L2 agent extension manager: read extensions list from config file" into feature/qos

9 years agoAdd API tests for non-accessible policies
John Schwarz [Mon, 3 Aug 2015 12:49:13 +0000 (15:49 +0300)]
Add API tests for non-accessible policies

Tests which dealt with creating a rule for a policy that the tenant has
no access to, or for a policy which does not even exist, were missing.
This patch adds them.

Partially-Implements: quantum-qos-api
Change-Id: I0a2679fa1ccfb7bae6083df9a71c6cb5205a21d9

9 years agoMerge "Guarantee there is only one bandwidth limit rule per policy" into feature/qos
Jenkins [Mon, 3 Aug 2015 18:29:29 +0000 (18:29 +0000)]
Merge "Guarantee there is only one bandwidth limit rule per policy" into feature/qos

9 years agoGracefully handle fetching nonexistent rule
John Schwarz [Mon, 3 Aug 2015 13:56:27 +0000 (16:56 +0300)]
Gracefully handle fetching nonexistent rule

Currently, if we invoke the API for 'show rule' but the rule does not
exist, an exception is raised from deep within Neutron. This in turns
causes an uncaught exception and the user will see 'ServerFault'. This
patch proposes a fix for this scenario - the case where the rule does
not exist is handled and a NeutronException is caused, causing a proper
'NotFound' error on the client side instead.

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

9 years agouse single transaction to update qos policy associatation
Ihar Hrachyshka [Sun, 2 Aug 2015 21:44:53 +0000 (23:44 +0200)]
use single transaction to update qos policy associatation

To make association changes atomic, use autonested transaction.

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

9 years agoMerge "Moved QOS_POLICY_ID into qos_consts.py" into feature/qos
Jenkins [Mon, 3 Aug 2015 12:19:24 +0000 (12:19 +0000)]
Merge "Moved QOS_POLICY_ID into qos_consts.py" into feature/qos

9 years agoReplace to_dict() calls with a function decorator
John Schwarz [Mon, 27 Jul 2015 09:09:10 +0000 (12:09 +0300)]
Replace to_dict() calls with a function decorator

Up until now, API server functions would need to return simple iterable
objects, such as dicts and lists of dicts. This patch introduces a
decorator which allows such functions to return non-simple objects (as
long as the returned object implements the 'to_dict()' method, or is a
list of such objects) and converts them on its own, simplifying the
user's code and removing code duplication.

Change-Id: Ib30a9213b86b33826291197cf01f00bc1dd3db52

9 years agoGuarantee there is only one bandwidth limit rule per policy
Ihar Hrachyshka [Wed, 29 Jul 2015 18:44:54 +0000 (20:44 +0200)]
Guarantee there is only one bandwidth limit rule per policy

Added corresponding db model constraint.

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

9 years agoL2 agent extension manager: read extensions list from config file
Ihar Hrachyshka [Sun, 2 Aug 2015 17:17:27 +0000 (19:17 +0200)]
L2 agent extension manager: read extensions list from config file

This effectively disables qos extension in the OVS agent, but we don't
rely on it in any functional or fullstack tests so far.

To enable the extension, a user should add:

[agent]
extensions = qos

to their openvswitch_agent.ini file.

DocImpact
Partially-Implements: blueprint quantum-qos-api
Change-Id: Icfbf32c36f98cc6e203841b152c7f6fc4f48c20a

9 years agoobjects.qos.policy: forbid deletion when attached to a port or a network
Ihar Hrachyshka [Sun, 2 Aug 2015 15:27:56 +0000 (17:27 +0200)]
objects.qos.policy: forbid deletion when attached to a port or a network

Similar to security groups, we forbid removing a policy that is attached
to any port or a network.

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

9 years agoMerge "Added missing [qos] section into neutron.conf" into feature/qos
Jenkins [Sun, 2 Aug 2015 15:57:58 +0000 (15:57 +0000)]
Merge "Added missing [qos] section into neutron.conf" into feature/qos

9 years agoMerge "Enable rule delete test" into feature/qos
Jenkins [Sun, 2 Aug 2015 15:57:41 +0000 (15:57 +0000)]
Merge "Enable rule delete test" into feature/qos

9 years agoRemove handle_network/handle_subnet from l2 agent extensions
Ihar Hrachyshka [Sun, 2 Aug 2015 15:40:13 +0000 (17:40 +0200)]
Remove handle_network/handle_subnet from l2 agent extensions

L2 agents do not care about networks or subnets, they only care about
ports.

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

9 years agoMerge "Don't set tenant_id for rule objects" into feature/qos
Jenkins [Sun, 2 Aug 2015 12:26:34 +0000 (12:26 +0000)]
Merge "Don't set tenant_id for rule objects" into feature/qos

9 years agoMerge "objects: consolidate single transaction checks into test_base" into feature/qos
Jenkins [Sun, 2 Aug 2015 11:11:44 +0000 (11:11 +0000)]
Merge "objects: consolidate single transaction checks into test_base" into feature/qos

9 years agoMoved QOS_POLICY_ID into qos_consts.py
Ihar Hrachyshka [Mon, 27 Jul 2015 18:53:26 +0000 (20:53 +0200)]
Moved QOS_POLICY_ID into qos_consts.py

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

9 years agoMerge "objects.qos.policy: provide rules field, not type specific" into feature/qos
Jenkins [Sun, 2 Aug 2015 09:54:07 +0000 (09:54 +0000)]
Merge "objects.qos.policy: provide rules field, not type specific" into feature/qos

9 years agoMerge "Unite qos_rules and qos_*_rules tables" into feature/qos
Jenkins [Sun, 2 Aug 2015 09:52:28 +0000 (09:52 +0000)]
Merge "Unite qos_rules and qos_*_rules tables" into feature/qos

9 years agoMerge "Fix accessing shared policies, add assoc tests" into feature/qos
Jenkins [Sun, 2 Aug 2015 09:29:32 +0000 (09:29 +0000)]
Merge "Fix accessing shared policies, add assoc tests" into feature/qos

9 years agoMerge "qos: forbid creating rules when there is no access to policy" into feature/qos
Jenkins [Sun, 2 Aug 2015 08:01:18 +0000 (08:01 +0000)]
Merge "qos: forbid creating rules when there is no access to policy" into feature/qos

9 years agoAdded missing [qos] section into neutron.conf
Ihar Hrachyshka [Wed, 29 Jul 2015 11:39:20 +0000 (13:39 +0200)]
Added missing [qos] section into neutron.conf

Also renamed service_notification_drivers into notification_drivers
since it's clear where it belongs anyway (it's in neutron.conf meaning
it's a server side configuration value).

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

9 years agoEnable rule delete test
Ihar Hrachyshka [Wed, 29 Jul 2015 18:34:49 +0000 (20:34 +0200)]
Enable rule delete test

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

9 years agoobjects: consolidate single transaction checks into test_base
Ihar Hrachyshka [Wed, 29 Jul 2015 15:47:21 +0000 (17:47 +0200)]
objects: consolidate single transaction checks into test_base

Cover all base methods with it.

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

9 years agoobjects.qos.policy: provide rules field, not type specific
Ihar Hrachyshka [Wed, 29 Jul 2015 13:25:52 +0000 (15:25 +0200)]
objects.qos.policy: provide rules field, not type specific

It should be forbidden to have multiple rules of the same type attached
to a policy, so the idea of having per type lists is moot.

Instead, we should have a single list of all rules that belong to the
policy.

Also fixed a test that validated a single transaction to actually work
with multiple autonested transactions applied.

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

9 years agoUnite qos_rules and qos_*_rules tables
Ihar Hrachyshka [Sat, 25 Jul 2015 14:21:37 +0000 (16:21 +0200)]
Unite qos_rules and qos_*_rules tables

The only values in qos_rules table are: type, id and qos_policy_id. Both
id fields point to qos_*_rules and qos_policies objects.

Type is redundant since qos_rule and qos_*_rule objects maintain 1-to-1
relationship.

Keeping a separate table just to link qos_*_rule and qos_policy objects
has no meaning. At the same time, it complicates the code for rule
objects significantly.

So instead of copying with all those issues, we just squash the tables
into single one. It allows us to reuse all base methods from
NeutronObject for rules.

LOC stats for the patch clearly shows the point:

65 insertions(+), 267 deletions(-)

And no actual functionality is lost.

While at it, the following changes were applied:

- some base tests are reimplemented to test objects in a more explicit
  way;
- fields_no_update class attribute is now actually enforced in base
  object class.

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

9 years agoFix accessing shared policies, add assoc tests
John Schwarz [Sun, 26 Jul 2015 13:00:12 +0000 (16:00 +0300)]
Fix accessing shared policies, add assoc tests

This patch is two-fold:
1. Previously, policies that were created using the 'shared=True' flag
   were not accessible to other tenants, since the context used to
   search the policies was not elevated. This patch elevates the context
   prior to retrieving the policy, and if a match was found, makes sure
   that the user has permissions to access it (either the policy is
   shared or it's from the same tenant id).
2. Tests for both associations and disassociations of policies to both
   networks and ports are added in this patch, to make sure coverage is
   good and that the problem is fixed.

Change-Id: Idec13ff4ec575b6d0c0a455c1b3bd9d9700ff7fb

9 years agoqos: forbid creating rules when there is no access to policy
Ihar Hrachyshka [Thu, 30 Jul 2015 11:51:24 +0000 (13:51 +0200)]
qos: forbid creating rules when there is no access to policy

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

9 years agoMerge "SR-IOV: update pci lib to support rate limit" into feature/qos
Jenkins [Fri, 31 Jul 2015 22:24:01 +0000 (22:24 +0000)]
Merge "SR-IOV: update pci lib to support rate limit" into feature/qos

9 years agoSR-IOV: update pci lib to support rate limit
Moshe Levi [Wed, 15 Jul 2015 05:25:38 +0000 (08:25 +0300)]
SR-IOV: update pci lib to support rate limit

Partially-Implements: blueprint ml2-qos
Change-Id: I3095f0e8249941f24cbf478cba142135272ebfd3

9 years agoQosPolicy: made shared field required and with default value = False
Ihar Hrachyshka [Thu, 30 Jul 2015 08:46:49 +0000 (10:46 +0200)]
QosPolicy: made shared field required and with default value = False

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

9 years agoMerge "Add update tests for policies and rules" into feature/qos
Jenkins [Wed, 29 Jul 2015 23:03:00 +0000 (23:03 +0000)]
Merge "Add update tests for policies and rules" into feature/qos

9 years agoLoad the QoS notification driver from the configuration file
Ihar Hrachyshka [Mon, 27 Jul 2015 14:25:24 +0000 (16:25 +0200)]
Load the QoS notification driver from the configuration file

The agent based RPC notification driver for message queue is the default.

Added support for multiple notification drivers.

DocImpact

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

9 years agoAdd pluggable backend driver for QoS Service notification
Eran Gampel [Wed, 1 Jul 2015 15:32:30 +0000 (18:32 +0300)]
Add pluggable backend driver for QoS Service notification

Added a reference driver for the agent based solutions
RPC sending the messages over the message queue

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

9 years agoMerge "Introduce mechanism to determine supported qos rule types for a plugin" into...
Jenkins [Tue, 28 Jul 2015 16:47:17 +0000 (16:47 +0000)]
Merge "Introduce mechanism to determine supported qos rule types for a plugin" into feature/qos

9 years agoMerge "Add UT for agent_extensions_manager" into feature/qos
Jenkins [Tue, 28 Jul 2015 00:18:08 +0000 (00:18 +0000)]
Merge "Add UT for agent_extensions_manager" into feature/qos

9 years agoMerge "rpc.callbacks.registry: validate that callback provider is registered" into...
Jenkins [Mon, 27 Jul 2015 21:33:03 +0000 (21:33 +0000)]
Merge "rpc.callbacks.registry: validate that callback provider is registered" into feature/qos

9 years agoMerge "rpc.callbacks.registry: validate type of callback result" into feature/qos
Jenkins [Mon, 27 Jul 2015 21:32:39 +0000 (21:32 +0000)]
Merge "rpc.callbacks.registry: validate type of callback result" into feature/qos

9 years agoAdd update tests for policies and rules
Ihar Hrachyshka [Mon, 27 Jul 2015 12:43:56 +0000 (14:43 +0200)]
Add update tests for policies and rules

This patch adds tests for 'update' for both policies and rules. This
completes the CRUD tests and leaves the association/disassociation for
a later patch. Note that deleting a rule isn't tested explicitly
because of a bug with the rule delete logic on the server side. Once
that code is fixed, the test should be added.

to_dict() for policies should also convert any rules inside rule lists
to dicts too, otherwise API layer receives rule object __repr__ strings
instead of actual dicts. This patch introduces a fix to the existing
to_dict() code to properly support policies.

This patch also modifies the base infra to create policies and rules for
admins and not for tenant.

Partially-Implements: blueprint quantum-qos-api
Change-Id: I13870680d7756be9dd020135bc8e91d1c12f728d
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
9 years agoIntroduce mechanism to determine supported qos rule types for a plugin
Ihar Hrachyshka [Thu, 11 Jun 2015 06:11:08 +0000 (08:11 +0200)]
Introduce mechanism to determine supported qos rule types for a plugin

Every plugin that supports some of QoS rules will define a property
called supported_qos_rule_types of list type.

For ml2, determine supported qos rule types as a subset of rule types
supported by all drivers. (In the future, we may expand the list to
include all types supported by at least one of enabled drivers. This
would require synchronized work with nova scheduler though.)

For ml2, tests are limited, and should be expanded to check that common
subset of qos rules is calculated properly when intersection != the list
of each plugins. For now, it's enough since we don't have more than one
rule type planned for Liberty.

Added API test for the resource.

Partially-Implements: blueprint ml2-qos
Co-Authored-By: Irena Berezovsky <irenab.dev@gmail.com>
Co-Authored-By: John Schwarz <jschwarz@redhat.com>
Change-Id: I0d18ae256877a129e203110003fcadd1d63590b4

9 years agoget_info: request object backport only if desired version is different
Ihar Hrachyshka [Mon, 27 Jul 2015 13:13:43 +0000 (15:13 +0200)]
get_info: request object backport only if desired version is different

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

9 years agorpc.callbacks.registry: validate that callback provider is registered
Ihar Hrachyshka [Mon, 27 Jul 2015 11:51:36 +0000 (13:51 +0200)]
rpc.callbacks.registry: validate that callback provider is registered

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

9 years agorpc.callbacks.registry: validate type of callback result
Ihar Hrachyshka [Sat, 25 Jul 2015 19:35:44 +0000 (21:35 +0200)]
rpc.callbacks.registry: validate type of callback result

Enforce appropriate type for the object returned by rpc callback.

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

9 years agoAdd UT for agent_extensions_manager
Jakub Libosvar [Tue, 14 Jul 2015 14:48:28 +0000 (14:48 +0000)]
Add UT for agent_extensions_manager

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

9 years agoDon't set tenant_id for rule objects
Ihar Hrachyshka [Sat, 25 Jul 2015 15:42:23 +0000 (17:42 +0200)]
Don't set tenant_id for rule objects

There is no such field anyway.

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

9 years agoMerge "Don't enforce qos ml2 extension driver" into feature/qos
Jenkins [Mon, 27 Jul 2015 09:54:07 +0000 (09:54 +0000)]
Merge "Don't enforce qos ml2 extension driver" into feature/qos

9 years agoMerge "policy: made attach_* and detach_* methods more robust" into feature/qos
Jenkins [Sun, 26 Jul 2015 22:14:49 +0000 (22:14 +0000)]
Merge "policy: made attach_* and detach_* methods more robust" into feature/qos

9 years agoMerge "Add versioned object serialize/deserialize for resources RPC" into feature/qos
Jenkins [Sun, 26 Jul 2015 10:51:42 +0000 (10:51 +0000)]
Merge "Add versioned object serialize/deserialize for resources RPC" into feature/qos

9 years agoMerge "QoS: Remove type attribute from QoS rules" into feature/qos
Jenkins [Sat, 25 Jul 2015 21:04:09 +0000 (21:04 +0000)]
Merge "QoS: Remove type attribute from QoS rules" into feature/qos

9 years agoMerge "Pass context when deleting bandwidth limit rule" into feature/qos
Jenkins [Sat, 25 Jul 2015 17:46:32 +0000 (17:46 +0000)]
Merge "Pass context when deleting bandwidth limit rule" into feature/qos

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 agoQoS: Remove type attribute from QoS rules
Jakub Libosvar [Tue, 21 Jul 2015 11:17:18 +0000 (11:17 +0000)]
QoS: Remove type attribute from QoS rules

The type is given by object itself. We don't specify type when creating
resource cause it's a part of uri. This patch allows a
bandwidth_limit_rule to be created in given policy.

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

9 years agoDon't enforce qos ml2 extension driver
Ihar Hrachyshka [Sat, 18 Jul 2015 13:47:26 +0000 (15:47 +0200)]
Don't enforce qos ml2 extension driver

It's now enabled in gate for feature/qos, so return to the original
version of the code.

Depends-On: I421c42aef2cf558935f91a6634a5a5b16e55a606
Change-Id: I5875fb24b7c95efb3bd7cd548bd5d9d21d6544ba

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 agoAdd versioned object serialize/deserialize for resources RPC
Moshe Levi [Thu, 9 Jul 2015 10:21:49 +0000 (13:21 +0300)]
Add versioned object serialize/deserialize for resources RPC

Also switched RPC callback API to consistently receive resource_type
string and not a resource class. This is because for get_info(), we
cannot propagate a class thru RPC but only a string that uniquely
identifies the class. So it would be not optimal to require the server
to discover the corresponding class from the type name passed from the
agent.

Also updated some comments in api/rpc/callbacks directory to reflect
that we handle NeutronObjects, not dicts.

Finally, killed the rule resource registration from QoS plugin and the
rule type from supported resources since it's YAGNI at least now.

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

9 years agopolicy: made attach_* and detach_* methods more robust
Ihar Hrachyshka [Tue, 21 Jul 2015 13:37:33 +0000 (15:37 +0200)]
policy: made attach_* and detach_* methods more robust

Handle cases when a policy or a port or a network are not in the
database without exposing database level exceptions to object consumers.

Change-Id: I06a0b5c4f474b370072f2b6a13146f17a51eb847

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 agoPass context when deleting bandwidth limit rule
Jakub Libosvar [Tue, 21 Jul 2015 11:26:42 +0000 (11:26 +0000)]
Pass context when deleting bandwidth limit rule

Context was missing in db_api leading to crashing when creating
transaction.

Change-Id: Ib4355481a51c9c568ab821c45b2c6fe863a594dd

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"