]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoAdd policy and policy rule belongs check
gong yong sheng [Tue, 25 Aug 2015 08:21:39 +0000 (16:21 +0800)]
Add policy and policy rule belongs check

before updating and deletion of a qos rule under a policy,
we check if the qos is binding to the policy to avoid users
operating on policy rules binding to other policy.

Change-Id: I04723fa9dd37409cb211c35e701f352419b2d6fa
Closes-bug: #1485993

9 years agoMerge "Run py34 tests with testr"
Jenkins [Wed, 26 Aug 2015 09:10:15 +0000 (09:10 +0000)]
Merge "Run py34 tests with testr"

9 years agoMerge "Make a couple of methods private"
Jenkins [Wed, 26 Aug 2015 09:01:48 +0000 (09:01 +0000)]
Merge "Make a couple of methods private"

9 years agoMerge "OVS agent don't hard code tunnel bridge name"
Jenkins [Wed, 26 Aug 2015 05:03:47 +0000 (05:03 +0000)]
Merge "OVS agent don't hard code tunnel bridge name"

9 years agoRun py34 tests with testr
Clark Boylan [Tue, 25 Aug 2015 17:58:57 +0000 (10:58 -0700)]
Run py34 tests with testr

This doesn't use os-testr but it results in html reports built from
the subunit logs.

A note from amuller: tox -e py27 uses ostestr. The primary difference
between testr and ostestr (For my money) is that ostestr spits out
progression. After a conversation with mtreinish (The author of ostestr)
it doesn't seem to be possible to use tox with ostestr for our py34
tests because we use a long regex that is split on newlines. ostestr
supports the --regex flag as such (regex_a|regex_b), however it's not
possible to use that with newlines and to play nice with tox.
Since I think that we do want to use ostestr (Just like the py27 venv),
I'll work with mtreinish to introduce a white list regex file in to
ostestr. The file will be maintained in the repo and passed in to
ostestr via tox.

Change-Id: I1f1030cca4fd356e468d15126a730725ac9c099c

9 years agoMerge "QoS: fix get bandwidth limit rules to filter them per policy"
Jenkins [Tue, 25 Aug 2015 22:04:36 +0000 (22:04 +0000)]
Merge "QoS: fix get bandwidth limit rules to filter them per policy"

9 years agoMake a couple of methods private
Carl Baldwin [Tue, 25 Aug 2015 20:51:16 +0000 (20:51 +0000)]
Make a couple of methods private

I was just going over this class trying to understand what methods
really are used outside of the class.  I found that these two are not.
I thought I'd submit a quick patch to mark them "private".

Change-Id: Id91907996631b670e23a506e0a1feae4518e42ba

9 years agoMerge "L3 agent changes and reference implementation for IPv6 PD"
Jenkins [Tue, 25 Aug 2015 20:41:16 +0000 (20:41 +0000)]
Merge "L3 agent changes and reference implementation for IPv6 PD"

9 years agoMerge "test_ovs_neutron_agent: Fix test_cleanup_stale_flows_iter_0"
Jenkins [Tue, 25 Aug 2015 15:25:40 +0000 (15:25 +0000)]
Merge "test_ovs_neutron_agent: Fix test_cleanup_stale_flows_iter_0"

9 years agoMerge "Distributed router can not add routes"
Jenkins [Tue, 25 Aug 2015 15:25:25 +0000 (15:25 +0000)]
Merge "Distributed router can not add routes"

9 years agoMerge "ml2: Remove a redundant assignment in _bind_port_level"
Jenkins [Tue, 25 Aug 2015 15:25:09 +0000 (15:25 +0000)]
Merge "ml2: Remove a redundant assignment in _bind_port_level"

9 years agoMerge "Decomposition phase2 of NEC plugin"
Jenkins [Tue, 25 Aug 2015 10:49:15 +0000 (10:49 +0000)]
Merge "Decomposition phase2 of NEC plugin"

9 years agoMerge "Allow py34 to run tests individually"
Jenkins [Tue, 25 Aug 2015 10:28:32 +0000 (10:28 +0000)]
Merge "Allow py34 to run tests individually"

9 years agoL3 agent changes and reference implementation for IPv6 PD
John Davidge [Wed, 24 Jun 2015 13:52:13 +0000 (14:52 +0100)]
L3 agent changes and reference implementation for IPv6 PD

This patch adds the common framework to be used by specific
implementations of the DHCPv6 protocol for Prefix Delegation.

It also includes a reference implementation based on the Dibbler
DHCPv6 client. Dibbler version 1.0.1 or greater is required.
Sanity tests are included to verify the installed version.

A patch for admin/user documentation is up for review here:

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

Video guides for configuring and using this feature are available on
YouTube:

https://www.youtube.com/watch?v=wI830s881HQ
https://www.youtube.com/watch?v=zfsFyS01Fn0

Co-Authored-By: Baodong (Robert) Li <baoli@cisco.com>
Co-Authored-By: Sam Betts <sam@code-smash.net>
Change-Id: Id94acbbe96c717f68f318b2d715dd9cb9cc7fe4f
Implements: blueprint ipv6-prefix-delegation

9 years agoMerge "Update the URLs to the Cloud Admin Guide"
Jenkins [Tue, 25 Aug 2015 04:39:32 +0000 (04:39 +0000)]
Merge "Update the URLs to the Cloud Admin Guide"

9 years agoMerge "Make models_v2 explicitly import rbac_db_models"
Jenkins [Tue, 25 Aug 2015 04:39:18 +0000 (04:39 +0000)]
Merge "Make models_v2 explicitly import rbac_db_models"

9 years agoDecomposition phase2 of NEC plugin
Akihiro Motoki [Mon, 24 Aug 2015 01:12:52 +0000 (10:12 +0900)]
Decomposition phase2 of NEC plugin

As part of plugin decomposition effort, NEC plugin is removed
from the main neutron repo and moved to networking-nec repo.

Related blueprint core-vendor-decomposition
Closes-Bug: #1487929
Change-Id: I2ef7ec241f061516b72c4df9f959af027c4c366c

9 years agoAllow py34 to run tests individually
armando-migliaccio [Tue, 25 Aug 2015 03:56:08 +0000 (20:56 -0700)]
Allow py34 to run tests individually

Prior to this patch, when I do:

 tox -epy34 <my-test>

the argument is ignored and all whitelisted tests are executed.
This is not in line with the other testenv's. This patch ensures
that posargs are processed if available, and that we fall back on
the lot of tests when not specified.

Change-Id: I176d7bba690b1c7e0c64d11528d9c851472b503b

9 years agoMerge "ip_lib: support creating Linux dummy interface"
Jenkins [Tue, 25 Aug 2015 03:26:21 +0000 (03:26 +0000)]
Merge "ip_lib: support creating Linux dummy interface"

9 years agoMerge "Make NeutronDbObjectDuplicateEntry exception more verbose"
Jenkins [Mon, 24 Aug 2015 22:29:20 +0000 (22:29 +0000)]
Merge "Make NeutronDbObjectDuplicateEntry exception more verbose"

9 years agoMerge "Template for ModelMigrationTest for external repos"
Jenkins [Mon, 24 Aug 2015 22:27:42 +0000 (22:27 +0000)]
Merge "Template for ModelMigrationTest for external repos"

9 years agoMerge "Remove redundant logging statements from RootWrapDaemonHelper"
Jenkins [Mon, 24 Aug 2015 22:26:21 +0000 (22:26 +0000)]
Merge "Remove redundant logging statements from RootWrapDaemonHelper"

9 years agoMerge "Rationalize neutron logs to help in troubleshooting router issues"
Jenkins [Mon, 24 Aug 2015 20:34:01 +0000 (20:34 +0000)]
Merge "Rationalize neutron logs to help in troubleshooting router issues"

9 years agoUpdate the URLs to the Cloud Admin Guide
Christian Berendt [Mon, 24 Aug 2015 07:07:35 +0000 (09:07 +0200)]
Update the URLs to the Cloud Admin Guide

The Cloud Admin Guide was converted to RST and the
URLs changed.

Also add the Networking Guide to the README file.

Change-Id: I485254db6d2264aaa80e4f7146cfc61c56b27b27

9 years agoRemove redundant logging statements from RootWrapDaemonHelper
Ryan Moats [Mon, 24 Aug 2015 13:49:09 +0000 (08:49 -0500)]
Remove redundant logging statements from RootWrapDaemonHelper

create_process and execute_rootwrap_daemon both current log
the command they are about to run.  Remove these statements as
redundant (the log message showing the command's result includes
the command itself)

Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Change-Id: I8bdea7212f8a32a3b6b0b47c5b824ac1c561d83f

9 years agoRationalize neutron logs to help in troubleshooting router issues
Ryan Moats [Fri, 21 Aug 2015 14:16:52 +0000 (09:16 -0500)]
Rationalize neutron logs to help in troubleshooting router issues

Currently the neutron logs are not very useful for troubleshooting
router issues - this patch adds additional logging statements to
help the triage process.

Change-Id: I014e0119205d4a947a1be142aeeb29940c4de3bd
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMove db agent schedulers test to a more appropriate place
Oleg Bondarev [Mon, 24 Aug 2015 08:29:25 +0000 (11:29 +0300)]
Move db agent schedulers test to a more appropriate place

Current placing is confusing as in fact the tests have little to do
with ml2 and openvswitch.
This was triggered by discussion on https://review.openstack.org/199514
Next step should be to separate dhcp and l3 schedulers tests.

Change-Id: Ie05874fdc1c3070ed319e8f624c8217c5c0bb646

9 years agoMerge "Move tests for non pluggable ipam backend"
Jenkins [Mon, 24 Aug 2015 11:38:06 +0000 (11:38 +0000)]
Merge "Move tests for non pluggable ipam backend"

9 years agoMerge "Added initial devstack plugin"
Jenkins [Mon, 24 Aug 2015 11:37:52 +0000 (11:37 +0000)]
Merge "Added initial devstack plugin"

9 years agoOVS agent don't hard code tunnel bridge name
rossella [Fri, 21 Aug 2015 12:52:11 +0000 (12:52 +0000)]
OVS agent don't hard code tunnel bridge name

In setup_tunnel_br the name of the tunnel bridge
should not be hard coded

Change-Id: I7aebc27eb8d9dd347b34e31f7810fbffd6edf49a
Closes-bug: #1487435

9 years agoMerge "manual add/remove router for dvr_snat agent"
Jenkins [Mon, 24 Aug 2015 10:57:03 +0000 (10:57 +0000)]
Merge "manual add/remove router for dvr_snat agent"

9 years agoMake models_v2 explicitly import rbac_db_models
Kevin Benton [Mon, 24 Aug 2015 10:13:14 +0000 (03:13 -0700)]
Make models_v2 explicitly import rbac_db_models

The Network model was implicitly relying on a core plugin to import
the db_base_plugin_v2 module which would import the rbac model module
so "NetworkRBAC" would be defined by the time something would query
the DB. However, this isn't the case for scripts or agents that are
importing models_v2 and trying to query the DB directly so they will
now break with an sqlaclhemy error about a missing model.

This patch makes models_v2 import the rbac_db_models module directly
so the model will always be defined.

This would have resulted in a circular import because the
rbac_db_models module required the HasId and HasTenant classes
in models_v2. So this patch also moves these helper classes
into model_base.

Change-Id: I338ce1c0ba55647e6410a63f937737f75a63057d
Closes-Bug: #1488032

9 years agoMerge "Graceful OVS restart for DVR"
Jenkins [Mon, 24 Aug 2015 10:04:48 +0000 (10:04 +0000)]
Merge "Graceful OVS restart for DVR"

9 years agoMake NeutronDbObjectDuplicateEntry exception more verbose
Miguel Angel Ajo [Wed, 19 Aug 2015 13:15:21 +0000 (15:15 +0200)]
Make NeutronDbObjectDuplicateEntry exception more verbose

NeutronObjectDuplicateEntry is an exception derived from Conflict,
which is mapped to HTTPConflict. When such exception is thrown
during an API layer call, we will provide more detail to the caller
about what was exactly duplicated, and for which fields,
the information is extracted from the DB exception.

NeutronObjectDuplicateEntry is renamed into NeutronDbObjectDuplicate
to make clear it is for handling db duplicate exceptions, in
the future we could generalize to a base NeutronObjectDuplicate class
if we need separate handling for other object backings (mem, keystore,
etc).

Change-Id: I6ec5883b3456ebc842f3f7bffd8cc924293f5766

9 years agotest_ovs_neutron_agent: Fix test_cleanup_stale_flows_iter_0
YAMAMOTO Takashi [Mon, 24 Aug 2015 08:41:08 +0000 (17:41 +0900)]
test_ovs_neutron_agent: Fix test_cleanup_stale_flows_iter_0

- Mock the correct variable
- Ensure that non-stale flows are not removed

Change-Id: I68b360d4d3cdaaa9077244a5783418456af5c48c

9 years agoMerge "Add support for unaddressed port"
Jenkins [Mon, 24 Aug 2015 04:09:13 +0000 (04:09 +0000)]
Merge "Add support for unaddressed port"

9 years agoMerge "Remove the ML2 Nuage driver code"
Jenkins [Sun, 23 Aug 2015 03:25:03 +0000 (03:25 +0000)]
Merge "Remove the ML2 Nuage driver code"

9 years agoMerge "Support dhcp metadata service for all networks"
Jenkins [Sun, 23 Aug 2015 03:12:54 +0000 (03:12 +0000)]
Merge "Support dhcp metadata service for all networks"

9 years agoMerge "Rename args for alembic 0.8.0"
Jenkins [Sun, 23 Aug 2015 00:29:26 +0000 (00:29 +0000)]
Merge "Rename args for alembic 0.8.0"

9 years agoMerge "DVR: make sure snat portion is always scheduled when needed"
Jenkins [Sat, 22 Aug 2015 22:00:09 +0000 (22:00 +0000)]
Merge "DVR: make sure snat portion is always scheduled when needed"

9 years agoMerge "Add config option to specify ovs datapath."
Jenkins [Sat, 22 Aug 2015 21:34:50 +0000 (21:34 +0000)]
Merge "Add config option to specify ovs datapath."

9 years agoSupport dhcp metadata service for all networks
Marga Millet [Wed, 12 Aug 2015 10:49:09 +0000 (03:49 -0700)]
Support dhcp metadata service for all networks

Vendors implementing Neutron L3 API in their devices may not be able to provide
metadata server access via the Neutron router. In such cases we want to allow
the metadata service as done for non-isolated networks segments.

DocImpact
Change-Id: I5f6ee9788717c3d4f1f2e2a4b9734fdd8dd92b40
Closes-Bug:#1483939

9 years agoMerge "Python 3: use __code__ instead of func_code"
Jenkins [Sat, 22 Aug 2015 19:19:04 +0000 (19:19 +0000)]
Merge "Python 3: use __code__ instead of func_code"

9 years agoMerge "Move docstring to FakeMachineBase"
Jenkins [Sat, 22 Aug 2015 18:52:33 +0000 (18:52 +0000)]
Merge "Move docstring to FakeMachineBase"

9 years agoMerge "Neutron RBAC API and network support"
Jenkins [Sat, 22 Aug 2015 17:42:36 +0000 (17:42 +0000)]
Merge "Neutron RBAC API and network support"

9 years agoMerge "Dropped release name from migration branch labels"
Jenkins [Sat, 22 Aug 2015 17:42:18 +0000 (17:42 +0000)]
Merge "Dropped release name from migration branch labels"

9 years agoMerge "neutron-db-manage: sync HEADS file with 'current' output"
Jenkins [Sat, 22 Aug 2015 17:41:53 +0000 (17:41 +0000)]
Merge "neutron-db-manage: sync HEADS file with 'current' output"

9 years agoMerge "Only validate local_ip if using tunneling"
Jenkins [Sat, 22 Aug 2015 17:38:50 +0000 (17:38 +0000)]
Merge "Only validate local_ip if using tunneling"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Sat, 22 Aug 2015 13:39:41 +0000 (13:39 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Update rootwrap.conf to add /usr/local/sbin"
Jenkins [Sat, 22 Aug 2015 13:28:53 +0000 (13:28 +0000)]
Merge "Update rootwrap.conf to add /usr/local/sbin"

9 years agoMove docstring to FakeMachineBase
Cedric Brandily [Sat, 22 Aug 2015 09:49:24 +0000 (11:49 +0200)]
Move docstring to FakeMachineBase

This change moves FakeMachine docstring to FakeMachineBase because it is
valid for all FakeMachineBase subclasses.

Change-Id: Ic30098f7d84dd3a5d6c5f7ff675d3f6e7b0a4cae

9 years agoMerge "Update oslo messaging configuration section for fullstack"
Jenkins [Sat, 22 Aug 2015 04:39:59 +0000 (04:39 +0000)]
Merge "Update oslo messaging configuration section for fullstack"

9 years agoMerge "DHCP agent: clarify logic of setup_dhcp_port"
Jenkins [Sat, 22 Aug 2015 04:39:47 +0000 (04:39 +0000)]
Merge "DHCP agent: clarify logic of setup_dhcp_port"

9 years agoMerge "Python 3: do not do "assertFalse(filter(...))""
Jenkins [Sat, 22 Aug 2015 04:26:18 +0000 (04:26 +0000)]
Merge "Python 3: do not do "assertFalse(filter(...))""

9 years agoMerge "Python 3: fix test_ovs_tunnel"
Jenkins [Fri, 21 Aug 2015 23:59:59 +0000 (23:59 +0000)]
Merge "Python 3: fix test_ovs_tunnel"

9 years agoMerge "Do not query reservations table when counting resources"
Jenkins [Fri, 21 Aug 2015 23:50:33 +0000 (23:50 +0000)]
Merge "Do not query reservations table when counting resources"

9 years agoUpdate rootwrap.conf to add /usr/local/sbin
John Davidge [Fri, 21 Aug 2015 18:07:57 +0000 (19:07 +0100)]
Update rootwrap.conf to add /usr/local/sbin

This update will allow for local executables that require root
privileges, such as dibbler-client for IPv6 Prefix Delegation.

Change-Id: Id7aebb50e60b1cc64c113be63c599387be5f1765

9 years agoRemove the ML2 Nuage driver code
Vlad Gridin [Thu, 20 Aug 2015 14:15:03 +0000 (16:15 +0200)]
Remove the ML2 Nuage driver code

This changeset removes ML2 Nuage driver vendor code,
currently present in neutron core to vendor repo.

Closes-bug: #1486662
Related-Blueprint: core-vendor-decomposition

Change-Id: I6388e91ba56aa6b8f16c723f7d07234d262b6c16

9 years agoTemplate for ModelMigrationTest for external repos
Ann Kamyshnikova [Fri, 14 Aug 2015 12:25:36 +0000 (15:25 +0300)]
Template for ModelMigrationTest for external repos

This change adds tempate for ModelMigrationTest which should be
implemented in all driver/plugin repositoties that were split
out from Neutron.

Also split DRIVER_TABLES into separate lists for each driver.
This is needed for easier implementation of test.

Closes-bug:#1470678

Change-Id: I02100d15d71519014db7c8894bd2cb36c86d32a0

9 years agoPython 3: do not do "assertFalse(filter(...))"
Cyril Roelandt [Fri, 21 Aug 2015 09:56:42 +0000 (11:56 +0200)]
Python 3: do not do "assertFalse(filter(...))"

This does not work in Python 3 since filter does not return a list. Fix this by
replacing it with a list comprehension.

Blueprint: neutron-python3
Change-Id: I59a63f7adedaf2217aa8fc9aae63045b4e620361

9 years agoip_lib: support creating Linux dummy interface
Neil Jerram [Mon, 27 Jul 2015 13:43:18 +0000 (14:43 +0100)]
ip_lib: support creating Linux dummy interface

This is for use by a DHCP agent interface driver in the
networking-calico project.  networking-calico connects VMs without
using bridging, so it needs an unbridged DHCP port interface with
which it can associate the DHCP subnet prefix, and the Linux dummy
interface (in conjunction with use of Dnsmasq's --bridge-interface
feature) is suitable for that purpose.

Partial-Bug: #1486649
Change-Id: I5485c187bc44bac3c2942c4fc9e5a502912a81a2

9 years agoGraceful OVS restart for DVR
Ann Kamyshnikova [Fri, 21 Aug 2015 12:13:25 +0000 (15:13 +0300)]
Graceful OVS restart for DVR

Graceful OVS restart that was intoduced in I95070d8218859d4fff1d572c1792cdf6019dd7ea
missed that flows are also dropped in setup_dvr_flows_on_integ_br.

Related-bug: #1383674

Change-Id: I7b24a159962af7b58c096a1b2766e2169e9f8aed

9 years agoDHCP agent: clarify logic of setup_dhcp_port
Neil Jerram [Thu, 23 Jul 2015 17:17:12 +0000 (18:17 +0100)]
DHCP agent: clarify logic of setup_dhcp_port

When the DHCP port already exists, the code for finding it is
unhelpfully mixed up with the code for updating its subnet IDs and
fixed IP addresses.  Clarify that area by splitting setup_dhcp_port
into 3 subroutines, for each of the existing, reserved and new port
cases.

Related-Bug: #1486649
Change-Id: I2a537560dc7a37299f4b7b4cd508d9309bbe1209

9 years agoAdd config option to specify ovs datapath.
Sean Mooney [Fri, 26 Jun 2015 09:48:26 +0000 (10:48 +0100)]
Add config option to specify ovs datapath.

This change introduces a new datapath_type parameter
to allow specification of the ovs datapath to be used.
This change introduces new functional and unit tests.

DocImpact
Change-Id: I929d8d15fc6cfdb799c53ef0f3722f4ed5c1096d
Partial-Bug: #1469871

9 years agoPython 3: fix test_ovs_tunnel
Cyril Roelandt [Fri, 21 Aug 2015 10:19:30 +0000 (12:19 +0200)]
Python 3: fix test_ovs_tunnel

In Python 3, __bool__ should be used instead of __nonzero__.

Change-Id: I04b688a6ac079a161bd888c53b8b98b574171ea9
Blueprint: neutron-python3

9 years agoMerge "l2pop: check port mac in pre-commit to stop change"
Jenkins [Fri, 21 Aug 2015 10:12:12 +0000 (10:12 +0000)]
Merge "l2pop: check port mac in pre-commit to stop change"

9 years agoMerge "Fixed broken link in neutron-server's documents"
Jenkins [Fri, 21 Aug 2015 09:55:12 +0000 (09:55 +0000)]
Merge "Fixed broken link in neutron-server's documents"

9 years agoMerge "qos: Delete bw limit rule when policy is deleted"
Jenkins [Fri, 21 Aug 2015 09:53:43 +0000 (09:53 +0000)]
Merge "qos: Delete bw limit rule when policy is deleted"

9 years agoPython 3: use __code__ instead of func_code
Cyril Roelandt [Fri, 21 Aug 2015 09:20:27 +0000 (11:20 +0200)]
Python 3: use __code__ instead of func_code

The former works with both Python 2 and 3.

Change-Id: Id2f6d313bf90777e02b20b7f6f4fb99e79e85aff
Blueprint: neutron-python3

9 years agoMerge "Used namedtuple for ReservationInfo"
Jenkins [Fri, 21 Aug 2015 09:49:37 +0000 (09:49 +0000)]
Merge "Used namedtuple for ReservationInfo"

9 years agoMerge "Split DRIVER_TABLES in external.py"
Jenkins [Fri, 21 Aug 2015 09:42:47 +0000 (09:42 +0000)]
Merge "Split DRIVER_TABLES in external.py"

9 years agoUpdate oslo messaging configuration section for fullstack
Miguel Angel Ajo [Fri, 21 Aug 2015 05:42:22 +0000 (07:42 +0200)]
Update oslo messaging configuration section for fullstack

rabbit_virtual_host, rabbit_hosts, rabbit_userid, and rabbit_password
for oslo_messaging are now deprecated in the DEFAULT config section.

Those settings should be provided under the oslo_messaging_rabbit section
now.

Closes-Bug: 1487322

Change-Id: I12d560aefceeadb03f7a4ee1e4e2f920b2cf57f2

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Fri, 21 Aug 2015 06:08:23 +0000 (06:08 +0000)]
Imported Translations from Transifex

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

Change-Id: Ie7eece283fcc43f872e28b72bac9b2f92913b84c

9 years agoQoS: fix get bandwidth limit rules to filter them per policy
Moshe Levi [Tue, 18 Aug 2015 14:03:01 +0000 (17:03 +0300)]
QoS: fix get bandwidth limit rules to filter them per policy

add qos_policy_id as filter before calling
QosBandwidthLimitRule.get_objects to get the bw rule(s)
which attached to that policy.

Closes-Bug: #1486053
Change-Id: Ie316cbe48c94f113699b09d9784115a3b0ade32f

9 years agoMerge "Python 3: hmac requires bytes key/msg"
Jenkins [Fri, 21 Aug 2015 03:48:46 +0000 (03:48 +0000)]
Merge "Python 3: hmac requires bytes key/msg"

9 years agoMerge "fullstack: use migration scripts to create db schema"
Jenkins [Fri, 21 Aug 2015 03:48:33 +0000 (03:48 +0000)]
Merge "fullstack: use migration scripts to create db schema"

9 years agoMerge "Fix qos api-tests after policy changes"
Jenkins [Fri, 21 Aug 2015 03:45:36 +0000 (03:45 +0000)]
Merge "Fix qos api-tests after policy changes"

9 years agoNeutron RBAC API and network support
Kevin Benton [Wed, 17 Jun 2015 06:43:59 +0000 (23:43 -0700)]
Neutron RBAC API and network support

This adds the new API endpoint to create, update, and delete
role-based access control entries. These entries enable tenants
to grant access to other tenants to perform an action on an object
they do not own.

This was previously done using a single 'shared' flag; however, this
was too coarse because an object would either be private to a tenant
or it would be shared with every tenant.

In addition to introducing the API, this patch also adds support to
for the new entries in Neutron networks. This means tenants can now
share their networks with specific tenants as long as they know the
tenant ID.

This feature is backwards-compatible with the previous 'shared'
attribute in the API. So if a deployer doesn't want this new feature
enabled, all of the RBAC operations can be blocked in policy.json and
networks can still be globally shared in the legacy manner.

Even though this feature is referred to as role-based access control,
this first version only supports sharing networks with specific
tenant IDs because Neutron currently doesn't have integration with
Keystone to handle changes in a tenant's roles/groups/etc.

DocImpact
APIImpact

Change-Id: Ib90e2a931df068f417faf26e9c3780dc3c468867
Partially-Implements: blueprint rbac-networks

9 years agoMerge "fullstack: Skip NotFound in safe_client cleanup"
Jenkins [Fri, 21 Aug 2015 01:39:21 +0000 (01:39 +0000)]
Merge "fullstack: Skip NotFound in safe_client cleanup"

9 years agoMerge "quota: synchronize resync and count with other dirty_tenants code"
Jenkins [Fri, 21 Aug 2015 01:39:07 +0000 (01:39 +0000)]
Merge "quota: synchronize resync and count with other dirty_tenants code"

9 years agoFixed broken link in neutron-server's documents
Liang Bo [Thu, 20 Aug 2015 06:24:46 +0000 (14:24 +0800)]
Fixed broken link in neutron-server's documents

The neutron-server document contains a link (http://neutron.openstack.org)
which is not exist anymore. This patch updates the link to neutron's doc site
and wiki page.

Change-Id: I9d137ed9c877fc1a12590bd743fac67d06711f7f
Closes-Bug: #1486848

9 years agoMerge "Add high-level functional/integration DVR tests"
Jenkins [Fri, 21 Aug 2015 00:48:49 +0000 (00:48 +0000)]
Merge "Add high-level functional/integration DVR tests"

9 years agoMerge "Add missing tenant_id validation in RESOURCE_ATTRIBUTE_MAP"
Jenkins [Fri, 21 Aug 2015 00:48:30 +0000 (00:48 +0000)]
Merge "Add missing tenant_id validation in RESOURCE_ATTRIBUTE_MAP"

9 years agoMerge "Sync FK constraints in db models with migration scripts"
Jenkins [Fri, 21 Aug 2015 00:48:17 +0000 (00:48 +0000)]
Merge "Sync FK constraints in db models with migration scripts"

9 years agoMerge "Graceful ovs-agent restart"
Jenkins [Fri, 21 Aug 2015 00:47:55 +0000 (00:47 +0000)]
Merge "Graceful ovs-agent restart"

9 years agoMerge "Setup firewall filters only for required ports"
Jenkins [Fri, 21 Aug 2015 00:36:42 +0000 (00:36 +0000)]
Merge "Setup firewall filters only for required ports"

9 years agoUsed namedtuple for ReservationInfo
Salvatore Orlando [Thu, 20 Aug 2015 22:33:27 +0000 (15:33 -0700)]
Used namedtuple for ReservationInfo

The code already uses a namedtuple for ResourceUsageInfo
and it is a nonsense to not use it for ReservationInfo.

Related-Blueprint: bp/better-quotas

Change-Id: I99666ac865fbdeef2d84353eff49d60b6d87fddc

9 years agoMerge "Add EnvironmentDescription, pass it down"
Jenkins [Thu, 20 Aug 2015 21:34:42 +0000 (21:34 +0000)]
Merge "Add EnvironmentDescription, pass it down"

9 years agoMerge "Python 3: encode or decode i/o data of Popen.communicate()"
Jenkins [Thu, 20 Aug 2015 21:34:27 +0000 (21:34 +0000)]
Merge "Python 3: encode or decode i/o data of Popen.communicate()"

9 years agoMerge "Unskip firewall test"
Jenkins [Thu, 20 Aug 2015 18:21:34 +0000 (18:21 +0000)]
Merge "Unskip firewall test"

9 years agoMerge "Fix _ensure_default_security_group logic"
Jenkins [Thu, 20 Aug 2015 18:21:19 +0000 (18:21 +0000)]
Merge "Fix _ensure_default_security_group logic"

9 years agoMerge "Add a fullstack fake VM, basic connectivity test"
Jenkins [Thu, 20 Aug 2015 16:47:23 +0000 (16:47 +0000)]
Merge "Add a fullstack fake VM, basic connectivity test"

9 years agoAdded initial devstack plugin
Ihar Hrachyshka [Tue, 18 Aug 2015 14:57:44 +0000 (16:57 +0200)]
Added initial devstack plugin

For now it only supports q-qos service that is used to configure QoS service
plugin. It also adds ability to enable l2 agent extensions.

To check that it works, I am enabling QoS tests back for API job.

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

9 years agoFix qos api-tests after policy changes
Miguel Angel Ajo [Thu, 20 Aug 2015 13:57:19 +0000 (15:57 +0200)]
Fix qos api-tests after policy changes

The policy.json update in change
Ide1cd30979f99612fe89dddf3dc0e029d3f4d34a breaks the qos api-tests
due to actions which the default policy won't allow, like qos
rules or policies creation by non-admins.

We removed test_rule_association_nonshared_policy which
is not possible with the default policy.json in favor of
test_policy_create_forbidden_for_regular_tenants.

This commit unblocks the qos api-test re-enablement.

Partially-Implements: blueprint quantum-qos-api

Change-Id: Ib77412bd95ad5b65ad0f6964d9809b5f707847f5

9 years agofullstack: use migration scripts to create db schema
Jakub Libosvar [Thu, 20 Aug 2015 16:02:11 +0000 (16:02 +0000)]
fullstack: use migration scripts to create db schema

Previously, we used create_all() based on models. We don't use
create_all() in production code and there is no guarantee models and
scripts are in sync even though we have a good functional test that
validates that. There are still pieces that can't be compared by
alembic.

Change-Id: I72fa67811f0763298416e6e084a8b9b86619795b
Closes-Bug: 1486528

9 years agoMerge "Add logging to debug oslo.messaging failure"
Jenkins [Thu, 20 Aug 2015 15:48:29 +0000 (15:48 +0000)]
Merge "Add logging to debug oslo.messaging failure"

9 years agoOnly validate local_ip if using tunneling
John Schwarz [Thu, 20 Aug 2015 14:05:02 +0000 (17:05 +0300)]
Only validate local_ip if using tunneling

Change I4b4527c28d0738890e33b343c9e17941e780bc24 introduced a new
validation to make sure that local_ip holds a valid IP that is present
in one of the interfaces on the machine. However, this test is not
relevant if tunneling is not enabled, since the value is ignored anyway.

This patch changes validate_local_ip to not check local_ip in case
tunneling is not enabled (if no value was put in the 'tunnel_types'
option).

Change-Id: I07119341076573a4226b5ad998bdff09c021ae30
Closes-Bug: #1487053
Related-Bug: #1408603

9 years agoqos: Delete bw limit rule when policy is deleted
Jakub Libosvar [Tue, 18 Aug 2015 13:42:37 +0000 (13:42 +0000)]
qos: Delete bw limit rule when policy is deleted

We need to add ON DELETE CASCADE to qos_policy_id on bw limit rule table
in order to delete policy successfully. There is a migration script that
creates db scheme with correct foreign key constraint but we miss this in
models. Currently, we have a functional test that guarantees parity
between migration scripts and models but we don't have guaranteed foreign
keys parity due to alembic bug [1].

https://bitbucket.org/zzzeek/alembic/issues/317

Change-Id: I06fa32dd11a5a52a80ae5a7952f8b32511c3f39d
Closes-Bug: 1485926

9 years agoDo not query reservations table when counting resources
Salvatore Orlando [Wed, 19 Aug 2015 13:10:08 +0000 (06:10 -0700)]
Do not query reservations table when counting resources

Reservations are temporarily disabled, and therefore querying them
is pointless, and potentially harmful.

Change-Id: Iab1d0ffdc54cb5bd06a0d4fbd4eb095ac4b754b8
Related-Bug: #1486134

9 years agoAdd support for unaddressed port
Yalei Wang [Fri, 7 Aug 2015 14:43:30 +0000 (22:43 +0800)]
Add support for unaddressed port

Neutron could create a port without the IP address when the network doesn't
have a subnet. In this case, neutron will have no L3 knowledgee and we need
remove the L3 filter on it but reserve the L2 filter if there is.
This patch will make L2 agent verify the fixed_ips before converting the
security-group-rules into firewall rules, L3 rules in it will be removed.
And filter like arp-spoofing will be disabled for this port.

Partially Implements: blueprint vm-without-l3-address
Change-Id: I5cd1fdfa13a7e57258be7251768eaa8ba64d486e