]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoMerge "lieutenants: Add Neutron infra lieutenants"
Jenkins [Fri, 14 Aug 2015 20:01:16 +0000 (20:01 +0000)]
Merge "lieutenants: Add Neutron infra lieutenants"

9 years agoMerge "Remove 'action' argument from _handle_fip_nat_rules()"
Jenkins [Fri, 14 Aug 2015 19:59:55 +0000 (19:59 +0000)]
Merge "Remove 'action' argument from _handle_fip_nat_rules()"

9 years agoMerge "Remove unneeded shebangs"
Jenkins [Fri, 14 Aug 2015 19:59:09 +0000 (19:59 +0000)]
Merge "Remove unneeded shebangs"

9 years agoMerge "l3: not use L2 plugin _get_subnet unnecessarily"
Jenkins [Fri, 14 Aug 2015 18:31:00 +0000 (18:31 +0000)]
Merge "l3: not use L2 plugin _get_subnet unnecessarily"

9 years agoMerge "l3_db: not use L2 plugin _get_port unnecessarily"
Jenkins [Fri, 14 Aug 2015 18:23:53 +0000 (18:23 +0000)]
Merge "l3_db: not use L2 plugin _get_port unnecessarily"

9 years agoMerge "Setup reference service providers for API test runs"
Jenkins [Fri, 14 Aug 2015 17:03:44 +0000 (17:03 +0000)]
Merge "Setup reference service providers for API test runs"

9 years agolieutenants: Add Neutron infra lieutenants
Kyle Mestery [Thu, 13 Aug 2015 16:33:18 +0000 (16:33 +0000)]
lieutenants: Add Neutron infra lieutenants

It's become clear we need to have a centralized contact point
(or points) for Neutron interactions with infra. Lets start out
by making that Doug and Armando for now. Note this list is
alphabetized by last name for those curious on the ordering.

Change-Id: If736dc2c6482d0c2722cf0a5049c8ee5511ed970
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Validate local_ip for OVS tunnel"
Jenkins [Fri, 14 Aug 2015 10:27:12 +0000 (10:27 +0000)]
Merge "Validate local_ip for OVS tunnel"

9 years agoMerge "Add parent_id to _item calling from _handle_action"
Jenkins [Fri, 14 Aug 2015 03:47:15 +0000 (03:47 +0000)]
Merge "Add parent_id to _item calling from _handle_action"

9 years agoMerge "Add configurable options for HA networks"
Jenkins [Fri, 14 Aug 2015 02:03:45 +0000 (02:03 +0000)]
Merge "Add configurable options for HA networks"

9 years agoMerge "db_base_plugin_v2: Avoid creating another session"
Jenkins [Fri, 14 Aug 2015 01:59:03 +0000 (01:59 +0000)]
Merge "db_base_plugin_v2: Avoid creating another session"

9 years agoMerge "Add test that checks external tables are not changed"
Jenkins [Fri, 14 Aug 2015 01:58:50 +0000 (01:58 +0000)]
Merge "Add test that checks external tables are not changed"

9 years agoMerge "Fix update_subnet for prefix delegation"
Jenkins [Fri, 14 Aug 2015 01:56:26 +0000 (01:56 +0000)]
Merge "Fix update_subnet for prefix delegation"

9 years agol3: not use L2 plugin _get_subnet unnecessarily
Isaku Yamahata [Thu, 16 Jul 2015 02:27:16 +0000 (19:27 -0700)]
l3: not use L2 plugin _get_subnet unnecessarily

This patch is clean up to prevent future breakage by eliminating
potentially dangerous code.

l3_db and related code use L2 plugin _get_subnet and related method
unnecessarily instead of get_subnet.
It's dangerous because _get_subnet returns ORM db object which allows
the caller to update db rows directly. So the caller of _get_subnet
may update subnet db without notifying L2 plugin unintentionally.
In that case, L2 plugin or ML2 mechanism driver will be confused.
This patch replaces _get_subnet and _get_subnets_by_network with
get_subnet, get_subnets_by_network where possible.

Change-Id: I85769e639a408a292b5bd70a9d9a1ac292e2b51c
Related-Bug: #1475093

9 years agol3_db: not use L2 plugin _get_port unnecessarily
Isaku Yamahata [Wed, 15 Jul 2015 19:34:12 +0000 (12:34 -0700)]
l3_db: not use L2 plugin _get_port unnecessarily

This patch is clean up to prevent future breakage by eliminating
potentially dangerous code.

l3_db uses L2 plugin _get_port method unnecessarily instead of get_port.
It's dangerous because _get_port returns ORM db object which allows
the caller to update db rows directly. So the caller of _get_port may
update port db without notifying L2 plugin unintentionally.
In that case, L2 plugin or ML2 mechanism driver will be confused.
This patch replace _get_port with get_port method where possible.

Change-Id: I5a23f6cac5ea359645e6947fd69978f060c4ba97
Related-Bug: #1475093

9 years agoRemove 'action' argument from _handle_fip_nat_rules()
Brian Haley [Thu, 13 Aug 2015 20:57:59 +0000 (16:57 -0400)]
Remove 'action' argument from _handle_fip_nat_rules()

There's only one caller of _handle_fip_nat_rules(), and they
always specify 'add_rules' as the argument, so it's not
necessary any more.  Also, the interface passed must be valid
since the caller has already used it, and would have thrown
an exception before this call was made.  Found during another
code review.

Change-Id: Ie7d4faf2d1bb8e0e8fc4ffc3f18e9214474acf5c

9 years agoMerge "[neutron-db-manage] remove old HEAD file when updating for branches"
Jenkins [Thu, 13 Aug 2015 20:09:56 +0000 (20:09 +0000)]
Merge "[neutron-db-manage] remove old HEAD file when updating for branches"

9 years agoMerge "Fix _update_subnet_allocation_pools returning empty list"
Jenkins [Thu, 13 Aug 2015 18:22:47 +0000 (18:22 +0000)]
Merge "Fix _update_subnet_allocation_pools returning empty list"

9 years agoMerge "[neutron-db-manage] check_migration: validate labels"
Jenkins [Thu, 13 Aug 2015 18:11:21 +0000 (18:11 +0000)]
Merge "[neutron-db-manage] check_migration: validate labels"

9 years agoSetup reference service providers for API test runs
Doug Wiegley [Tue, 11 Aug 2015 21:46:31 +0000 (15:46 -0600)]
Setup reference service providers for API test runs

Partial-bug: #1483266
Change-Id: Ia979fa2fdf25f3c1dbe9e7160d6dde2df51c305e

9 years agoMerge "The unnecessary value "sgids" was deleted"
Jenkins [Thu, 13 Aug 2015 15:48:36 +0000 (15:48 +0000)]
Merge "The unnecessary value "sgids" was deleted"

9 years agoMerge "Support for independent alembic branches in sub-projects"
Jenkins [Thu, 13 Aug 2015 15:32:55 +0000 (15:32 +0000)]
Merge "Support for independent alembic branches in sub-projects"

9 years agoMerge "Python 3: encode unicode response bodies"
Jenkins [Thu, 13 Aug 2015 15:32:12 +0000 (15:32 +0000)]
Merge "Python 3: encode unicode response bodies"

9 years ago[neutron-db-manage] check_migration: validate labels
Ihar Hrachyshka [Tue, 28 Jul 2015 22:16:17 +0000 (00:16 +0200)]
[neutron-db-manage] check_migration: validate labels

Guard against potential down_revision interleave by checking that each
revision has the only revision that corresponds to its location in the
migration tree, and that its parent also has that same single label.

Partially-Implements: blueprint online-schema-migrations
Change-Id: Ia812e8283f4da955610fe043aba3ad0298ede24b

9 years agoMerge "Treat sphinx warnings as errors"
Jenkins [Thu, 13 Aug 2015 14:46:30 +0000 (14:46 +0000)]
Merge "Treat sphinx warnings as errors"

9 years agoAdd configurable options for HA networks
John Schwarz [Wed, 12 Aug 2015 10:39:28 +0000 (13:39 +0300)]
Add configurable options for HA networks

The L3 HA mechanism creates a project network for HA (VRRP) traffic
among routers. The HA project network uses the first (default) network
type in 'tenant_network_types'. Depending on the environment, this
combination may not provide a desirable path for HA traffic. For
example, some operators may prefer to use a specific network for HA
traffic to prevent split-brain issues.

This patch adds configurable options that target the network_type and
the physical_network of the created HA network.

Doc-Impact
Closes-Bug: #1481443
Change-Id: I3527a780179b5982d6e0eb0b8c32d6dafeeab730

9 years agoAdd test that checks external tables are not changed
Ann Kamyshnikova [Fri, 7 Aug 2015 13:53:53 +0000 (16:53 +0300)]
Add test that checks external tables are not changed

Alembic migrations should not change tables which models were moved
out of Neutron. This change add check for this.

Also this change remove clear_override from db_sync in
_TestModelsMigrations which is not needed.

Closes-bug: #1466704

Change-Id: I587cd6fb2baa82fd7e452bb8597136efa5b8084e

9 years ago[neutron-db-manage] remove old HEAD file when updating for branches
Ihar Hrachyshka [Wed, 29 Jul 2015 07:38:48 +0000 (09:38 +0200)]
[neutron-db-manage] remove old HEAD file when updating for branches

Partially-Implements: blueprint online-schema-migrations
Change-Id: I259d4f9090df821ade9d58f440c809e79458211d

9 years agoRemove unneeded shebangs
Cedric Brandily [Sun, 19 Jul 2015 19:16:54 +0000 (21:16 +0200)]
Remove unneeded shebangs

This change removes unneeded shebangs in python modules.

Change-Id: Id0a3664eddf1ee26830998f4c73e89d0de5249d6

9 years agoPython 3: encode unicode response bodies
fumihiko kakuma [Sat, 8 Aug 2015 13:08:39 +0000 (22:08 +0900)]
Python 3: encode unicode response bodies

This change adds a file needing a python 3 support by
Ie0dc57fbe3ed9b19dac2e958de14387bc4c1a260.

Change-Id: Ice6e8ae618b82ff45398c338c3eee27ed9d5a105
Blueprint: neutron-python3

9 years agoMerge "Remove bigswitch mech_driver entry point definition"
Jenkins [Thu, 13 Aug 2015 09:53:16 +0000 (09:53 +0000)]
Merge "Remove bigswitch mech_driver entry point definition"

9 years agoMerge "Python 3: specify a bytes to an argument for a format type 's' of struct.pack()"
Jenkins [Thu, 13 Aug 2015 08:10:40 +0000 (08:10 +0000)]
Merge "Python 3: specify a bytes to an argument for a format type 's' of struct.pack()"

9 years agoMerge "Python 3: compare response.body to bytes in namespace_proxy test"
Jenkins [Thu, 13 Aug 2015 08:02:02 +0000 (08:02 +0000)]
Merge "Python 3: compare response.body to bytes in namespace_proxy test"

9 years agoMerge "Python 3: encode unicode response bodies"
Jenkins [Thu, 13 Aug 2015 08:01:28 +0000 (08:01 +0000)]
Merge "Python 3: encode unicode response bodies"

9 years agoMerge "Updated from global requirements"
Jenkins [Thu, 13 Aug 2015 07:53:19 +0000 (07:53 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Improve callback registry devref documentation and usability"
Jenkins [Thu, 13 Aug 2015 07:48:03 +0000 (07:48 +0000)]
Merge "Improve callback registry devref documentation and usability"

9 years agoSupport for independent alembic branches in sub-projects
Henry Gessau [Sun, 5 Jul 2015 07:29:38 +0000 (03:29 -0400)]
Support for independent alembic branches in sub-projects

Sub-projects shall now register their independent alembic migrations
via entrypoints in setup.cfg, and neutron-db-manage will discover them
and run them automatically.

If a service or sub-project is specified explicitly, then
neutron-db-manage will run on only that service or sub-project.

The advanced services project are just special cases of sub-projects.
For example, specifying the CLI option '--service lbaas' is the same
as specifying '--subproject neutron-lbaas'.

Specifying no service or sub-project will cause neutron-db-manage to
run the command on neutron and all installed sub-projects.

Added and consolidated documentation into devref for alembic migrations.

Partial-Bug: #1471333
Partial-Bug: #1470625

Change-Id: I9a06de64ce35675af28adf819de6f22dc832390d

9 years agoRemove bigswitch mech_driver entry point definition
Kanzhe Jiang [Thu, 13 Aug 2015 03:36:54 +0000 (20:36 -0700)]
Remove bigswitch mech_driver entry point definition

After vendor driver split, the entry point for bigswitch ml2
mechanism_driver is no longer valid. The new entry point is defined in
the networking-bigswitch stackforge repo.

Change-Id: Ie6e19a13e49d9d3e95f8ea2f10181592e9f156e5
Closes-Bug: #1484341

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 13 Aug 2015 02:14:42 +0000 (02:14 +0000)]
Updated from global requirements

Change-Id: Ieb2e8eaf3eb9fee93d5fcb8cb4e683a0a6555fc0

9 years agoMerge "Destroy ipset when the corresponding rule is removed"
Jenkins [Thu, 13 Aug 2015 02:03:40 +0000 (02:03 +0000)]
Merge "Destroy ipset when the corresponding rule is removed"

9 years agoMerge "Python 3: do not compare int and NoneType"
Jenkins [Thu, 13 Aug 2015 01:57:55 +0000 (01:57 +0000)]
Merge "Python 3: do not compare int and NoneType"

9 years agoMerge "Fix DVR interface delete by port when gateway is set"
Jenkins [Thu, 13 Aug 2015 00:16:48 +0000 (00:16 +0000)]
Merge "Fix DVR interface delete by port when gateway is set"

9 years agoPython 3: specify a bytes to an argument for a format type 's' of struct.pack()
fumihiko kakuma [Sat, 8 Aug 2015 14:20:45 +0000 (23:20 +0900)]
Python 3: specify a bytes to an argument for a format type 's' of struct.pack()

In python 3, a format type 's' of struct.pack() requires a bytes object to an argument.

Change-Id: Ia4640b31c31b5b7454cd1582af46562fb1885726
Blueprint: neutron-python3

9 years agoMerge "Update fullstack multinode simulation image"
Jenkins [Wed, 12 Aug 2015 20:57:53 +0000 (20:57 +0000)]
Merge "Update fullstack multinode simulation image"

9 years agoMerge "Fix docs job"
Jenkins [Wed, 12 Aug 2015 20:49:04 +0000 (20:49 +0000)]
Merge "Fix docs job"

9 years agoTreat sphinx warnings as errors
James E. Blair [Wed, 12 Aug 2015 17:51:18 +0000 (10:51 -0700)]
Treat sphinx warnings as errors

Change-Id: I65fcca7eb3397c8f5a777bab1c9c20161263ed26

9 years agoMerge "Revert "Revert "Add VIF_DELETED notification event to Nova"""
Jenkins [Wed, 12 Aug 2015 18:05:47 +0000 (18:05 +0000)]
Merge "Revert "Revert "Add VIF_DELETED notification event to Nova"""

9 years agoUpdate fullstack multinode simulation image
Assaf Muller [Wed, 12 Aug 2015 17:20:10 +0000 (13:20 -0400)]
Update fullstack multinode simulation image

Change-Id: I9d332e296b1f72e423ee64b01a82ae36b688c27e

9 years agoFix docs job
Assaf Muller [Wed, 12 Aug 2015 17:29:50 +0000 (13:29 -0400)]
Fix docs job

It looks like the docs job is passing when it shouldn't.

Change-Id: I4b65e470e913cd84e63231259e355c5842878c4b

9 years agoImprove callback registry devref documentation and usability
armando-migliaccio [Wed, 12 Aug 2015 01:16:30 +0000 (18:16 -0700)]
Improve callback registry devref documentation and usability

Latest developments have revealed that the registry can be misused
under certain circumstances, and that it can be harder to use by
projects that extend Neutron.

This patch improves the devref documentation so that developers know
what to expect.

Change-Id: I565b6a2f2a58bf22eae5b36f03c4fd24ba0774d2

9 years agoMerge "Skip FwaaS test that is failing due to race condition"
Jenkins [Wed, 12 Aug 2015 16:06:23 +0000 (16:06 +0000)]
Merge "Skip FwaaS test that is failing due to race condition"

9 years agoMerge "Replace 'import json' with oslo_serialization"
Jenkins [Wed, 12 Aug 2015 16:05:57 +0000 (16:05 +0000)]
Merge "Replace 'import json' with oslo_serialization"

9 years agoFix update_subnet for prefix delegation
John Davidge [Fri, 7 Aug 2015 15:27:47 +0000 (16:27 +0100)]
Fix update_subnet for prefix delegation

A misnamed function call and execution order issue was causing
update_subnet to fail when a PD enabled subnet received a new CIDR.

This patch fixes the issues, and introduces an rpc api test to
ensure the function works. This includes altering the process_prefix_update
RPC handler to expose the issue to the test.

Change-Id: Id1e781291f711865fd783ed5e0208694097b7024
Closes-Bug: 1482676

9 years agoMerge "Add Kuryr to sub_projects.rst"
Jenkins [Wed, 12 Aug 2015 14:58:34 +0000 (14:58 +0000)]
Merge "Add Kuryr to sub_projects.rst"

9 years agoThe unnecessary value "sgids" was deleted
huangpengtao [Wed, 5 Aug 2015 15:05:06 +0000 (23:05 +0800)]
The unnecessary value "sgids" was deleted

The value "sgids" is unnecessary to be used.
Even it is a bit confused to use "sgids",
the code will be easier to understand without it.

Change-Id: I8b881139a71bdc9f3742e7208610eb56081fbbc7

9 years agoFix DVR interface delete by port when gateway is set
Assaf Muller [Mon, 13 Apr 2015 17:26:06 +0000 (13:26 -0400)]
Fix DVR interface delete by port when gateway is set

When removing a DVR interface by port, the subnet_id
passed to delete_csnat_router_interface_ports is None,
and so it deletes all the DVR SNAT ports for the
router.

This patch fixes this issue by passing in the right
subnet_id to the delete_csnat_router_interface_ports.

Change-Id: I16735195c6575454876acd0e99ef45f382963566
Closes-Bug: #1443524
Co-Authored-By: Swaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
9 years agoSkip FwaaS test that is failing due to race condition
Sean M. Collins [Wed, 12 Aug 2015 11:42:04 +0000 (07:42 -0400)]
Skip FwaaS test that is failing due to race condition

Change-Id: I8a7669b6aff0b407b192af803fbfb636c8f118bb
Related-Bug: #1483875

9 years agoDestroy ipset when the corresponding rule is removed
shihanzhang [Tue, 9 Jun 2015 09:47:39 +0000 (17:47 +0800)]
Destroy ipset when the corresponding rule is removed

if a security group has a rule which allow a remote group access,
but this remote group has no IPv4 and IPv6 members, L2 agent
should not clear the remote group in internal cache of sg_members,
because when above rule is deleted, L2 agent can get the remote group
id from the diff of pre_sg_members-sg_members, then destroy the ipset
set for remote group.

Change-Id: I801b14c9f506c5a07f8875b8f9be1b05d181b842
Closes-bug: #1463331

9 years agoPython 3: compare response.body to bytes in namespace_proxy test
Cedric Brandily [Wed, 29 Jul 2015 11:15:49 +0000 (11:15 +0000)]
Python 3: compare response.body to bytes in namespace_proxy test

WebOb response bodies should be compared to bytes not string.

Change-Id: I2c17d39cc394a1d583b4f4971c0db9ba1875a0d0
Blueprint: neutron-python3

9 years agoMerge "Clean up test_dvr_router_rem_fips_on_restarted_agent"
Jenkins [Wed, 12 Aug 2015 05:58:34 +0000 (05:58 +0000)]
Merge "Clean up test_dvr_router_rem_fips_on_restarted_agent"

9 years agoAdd Kuryr to sub_projects.rst
YAMAMOTO Takashi [Wed, 5 Aug 2015 06:12:10 +0000 (15:12 +0900)]
Add Kuryr to sub_projects.rst

Change-Id: I8974b140cd69ddf125fecad0ea4714e803bf9740

9 years agoMerge "Fix: Skip rescheduling networks if no DHCP agents available"
Jenkins [Tue, 11 Aug 2015 20:31:29 +0000 (20:31 +0000)]
Merge "Fix: Skip rescheduling networks if no DHCP agents available"

9 years agoMerge "Use oslo.log library instead of system logging module"
Jenkins [Tue, 11 Aug 2015 19:46:34 +0000 (19:46 +0000)]
Merge "Use oslo.log library instead of system logging module"

9 years agoClean up test_dvr_router_rem_fips_on_restarted_agent
Assaf Muller [Tue, 11 Aug 2015 18:20:07 +0000 (14:20 -0400)]
Clean up test_dvr_router_rem_fips_on_restarted_agent

* self._add_fip wasn't actually doing anything useful, it just
  throws off the reader by making him/her think that line is
  important when it isn't.
* Added an assertion that checks that the FIP namespace exists
  before the reconfiguration of the router.

Change-Id: Ifd27f20d9d8d11575212b95e3bbe534bfe2d3b8f

9 years agoMerge "Add testing coverage .rst, missing test infrastructure to-dos"
Jenkins [Tue, 11 Aug 2015 17:55:57 +0000 (17:55 +0000)]
Merge "Add testing coverage .rst, missing test infrastructure to-dos"

9 years agoFix _update_subnet_allocation_pools returning empty list
John Davidge [Tue, 11 Aug 2015 12:55:51 +0000 (13:55 +0100)]
Fix _update_subnet_allocation_pools returning empty list

_update_subnet_allocation_pools was returning an empty list in all
cases due to trying to iterate over the same generator twice.
Generators cannot be iterated over multiple times.

This patch changes the generator into a list to fix this problem,
and alters the unit test so that this issue is exposed.

Change-Id: Iea98f3ae4f16964cd68154ac5edfeb125de889e0
Closes-Bug: 1483687

9 years agoReplace 'import json' with oslo_serialization
Kevin Benton [Tue, 11 Aug 2015 13:01:25 +0000 (06:01 -0700)]
Replace 'import json' with oslo_serialization

Replace remaining occurences of 'import json' with
'from oslo_serialization import jsonutils as json'
so pylint doesn't complain every time someone happens
to make a change to one of the modules that still
uses it.

Change-Id: Ife9f0fc54ad36887bdb939028f8903be16e590d6

9 years agoMerge "Use DeferredOVSBridge in setup_default_table"
Jenkins [Tue, 11 Aug 2015 10:48:11 +0000 (10:48 +0000)]
Merge "Use DeferredOVSBridge in setup_default_table"

9 years agoMerge "Remove quotes from subshell call in tools/split.sh"
Jenkins [Tue, 11 Aug 2015 07:35:23 +0000 (07:35 +0000)]
Merge "Remove quotes from subshell call in tools/split.sh"

9 years agoMerge "Validate updated allocation pool before using it"
Jenkins [Tue, 11 Aug 2015 04:48:57 +0000 (04:48 +0000)]
Merge "Validate updated allocation pool before using it"

9 years agoMerge "Bug-Fix for unexpected DHCP agent redundant"
Jenkins [Tue, 11 Aug 2015 04:37:03 +0000 (04:37 +0000)]
Merge "Bug-Fix for unexpected DHCP agent redundant"

9 years agoMerge "Pass the extension driver exception to plugin"
Jenkins [Tue, 11 Aug 2015 04:28:23 +0000 (04:28 +0000)]
Merge "Pass the extension driver exception to plugin"

9 years agoAdd testing coverage .rst, missing test infrastructure to-dos
Assaf Muller [Sat, 8 Aug 2015 23:09:52 +0000 (19:09 -0400)]
Add testing coverage .rst, missing test infrastructure to-dos

Change-Id: I1f3bc57ebc196a1c50b731c68cecb5aad3cda21d

9 years agoPython 3: encode unicode response bodies
Cedric Brandily [Wed, 22 Jul 2015 22:28:35 +0000 (00:28 +0200)]
Python 3: encode unicode response bodies

WebOb disallows in py3K to set webob.Response.body to a unicode object,
we should encode unicode bodies in such case.

Change-Id: Ie0dc57fbe3ed9b19dac2e958de14387bc4c1a260
Blueprint: neutron-python3

9 years agoMerge "Neutron-Ironic integration patch"
Jenkins [Mon, 10 Aug 2015 21:14:18 +0000 (21:14 +0000)]
Merge "Neutron-Ironic integration patch"

9 years agoMerge "DVR: fix router scheduling"
Jenkins [Mon, 10 Aug 2015 19:27:34 +0000 (19:27 +0000)]
Merge "DVR: fix router scheduling"

9 years agoNeutron-Ironic integration patch
Sukhdev Kapur [Wed, 1 Jul 2015 23:30:44 +0000 (16:30 -0700)]
Neutron-Ironic integration patch

This patch is in preparation for the integration
of Ironic and Neutron. A new vnic_type is being
added so that ML2 drivers can filter for all
Ironic ports based upon match for 'baremetal'.
Nova/Ironic will set this vnic_type when issuing
port-create request to neutron.
(e.g. binding:vnic_type = 'baremetal' )

Change-Id: I25dc9472b31db052719db503a10c1fb1a55572ef
Partial-Implements: blueprint neutron-ironic-integration

9 years agoMerge "TESTING.rst love"
Jenkins [Mon, 10 Aug 2015 17:30:42 +0000 (17:30 +0000)]
Merge "TESTING.rst love"

9 years agoMerge "Broadcast service port's arp in DVR"
Jenkins [Mon, 10 Aug 2015 17:04:26 +0000 (17:04 +0000)]
Merge "Broadcast service port's arp in DVR"

9 years agoMerge "Introduce ItemAllocator class"
Jenkins [Mon, 10 Aug 2015 17:04:13 +0000 (17:04 +0000)]
Merge "Introduce ItemAllocator class"

9 years agoMerge "Add oslo db retry decorator to the RPC handlers"
Jenkins [Mon, 10 Aug 2015 17:04:01 +0000 (17:04 +0000)]
Merge "Add oslo db retry decorator to the RPC handlers"

9 years agoDVR: fix router scheduling
Oleg Bondarev [Tue, 7 Jul 2015 09:02:58 +0000 (12:02 +0300)]
DVR: fix router scheduling

Fix scheduling of DVR routers to not stop scheduling once
csnat portion was scheduled. See bug report for failing
scenario.

This partially reverts
commit 3794b4a83e68041e24b715135f0ccf09a5631178
and fixes bug 1374473 by moving csnat scheduling
after general dvr router scheduling, so double binding does
not happen.

Closes-Bug: #1472163
Related-Bug: #1374473
Change-Id: I57c06e2be732e47b6cce7c724f6b255ea2d8fa32

9 years agoTESTING.rst love
Assaf Muller [Sat, 8 Aug 2015 18:15:03 +0000 (21:15 +0300)]
TESTING.rst love

Change-Id: I64b569048f8f87ea2fe63d861302b4020d36493d

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Mon, 10 Aug 2015 16:00:07 +0000 (16:00 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Consistent layout and headings for devref"
Jenkins [Mon, 10 Aug 2015 15:52:17 +0000 (15:52 +0000)]
Merge "Consistent layout and headings for devref"

9 years agoUse oslo.log library instead of system logging module
Sergey Vilgelm [Mon, 10 Aug 2015 12:46:27 +0000 (15:46 +0300)]
Use oslo.log library instead of system logging module

The constants of log levels were added in the 1.8 version of
the oslo.log library. So we can replace all usage of system
logging module with log module from oslo.log.

Change-Id: I2992df0bec6337aefa8a75d4853b132bd134fa42
Closes-Bug: 1481370

9 years agoAvoid dhcp_release for ipv6 addresses
sridhargaddam [Wed, 5 Aug 2015 10:49:33 +0000 (10:49 +0000)]
Avoid dhcp_release for ipv6 addresses

dhcp_release is only supported for IPv4 addresses [1] and not for
IPv6 addresses [2]. There will be no effect when it is called with
IPv6 address. This patch adds a corresponding note and avoids calling
dhcp_release for IPv6 addresses.

[1] http://manpages.ubuntu.com/manpages/trusty/man1/dhcp_release.1.html
[2] http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2013q2/007084.html

Change-Id: I8b8316c9d3d011c2a687a3a1e2a4da5cf1b5d604

9 years agoValidate local_ip for OVS tunnel
venkata anil [Mon, 10 Aug 2015 06:48:52 +0000 (06:48 +0000)]
Validate local_ip for OVS tunnel

When tunneling is enabled in OVS, validate if the
IP address in local_ip belongs to the host.

Closes-bug: #1408603
Change-Id: I4b4527c28d0738890e33b343c9e17941e780bc24

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Mon, 10 Aug 2015 06:11:06 +0000 (06:11 +0000)]
Imported Translations from Transifex

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

Change-Id: I2b423e83a7d0ac8b23239f81fe33dd8382c6fff6

9 years agodb_base_plugin_v2: Avoid creating another session
YAMAMOTO Takashi [Fri, 3 Jul 2015 15:04:35 +0000 (00:04 +0900)]
db_base_plugin_v2: Avoid creating another session

Instead of get_admin_context(), use context.elevated() to avoid
creating another DB session.

get_admin_context().session creates an independent DB session,
while ctx.elevated().session shares the original context's session.
Generally it's better to avoid using multiple DB sessions in
a single thread as it's a bad idea for various reasons:
- They can yield inconsistent views
- They can ends up with a deadlock

Change-Id: I5ef54cbabab552bad28a147254372b0cdc022832

9 years agoConsistent layout and headings for devref
Henry Gessau [Tue, 4 Aug 2015 03:30:34 +0000 (23:30 -0400)]
Consistent layout and headings for devref

The lack of convention for heading levels among the independently
written devref documents was starting to make the Table of Contents
look rather messy when rendered in HTML.

This patch does not cover the "Neutron Internals" section since its
layout is reasonably OK for now.

Change-Id: I827c105599f05773bda7e4fc0a941ce04ebd51fa

9 years agoUse DeferredOVSBridge in setup_default_table
Sudhakar Babu Gariganti [Wed, 21 Jan 2015 09:49:03 +0000 (15:19 +0530)]
Use DeferredOVSBridge in setup_default_table

setup_default_table method in br-tun module fires multiple ofctl
calls. Using DeferredOVSBridge will help us save us few OVS calls.

Closes-Bug: #1259847

Change-Id: I2f01bae5d9efc5c6a6f577e92204c930eb1cf827

9 years agoMerge "Rename a test method in test_policy.py"
Jenkins [Sun, 9 Aug 2015 17:43:18 +0000 (17:43 +0000)]
Merge "Rename a test method in test_policy.py"

9 years agoMerge "Remove a few obsolete options from midonet.ini example"
Jenkins [Sun, 9 Aug 2015 17:39:59 +0000 (17:39 +0000)]
Merge "Remove a few obsolete options from midonet.ini example"

9 years agoMerge "Do not delete fip namespace during l3 dvr agent resync"
Jenkins [Sun, 9 Aug 2015 03:49:06 +0000 (03:49 +0000)]
Merge "Do not delete fip namespace during l3 dvr agent resync"

9 years agoMerge "Make '_create_router' function handle Boolean kwargs correctly"
Jenkins [Sat, 8 Aug 2015 19:50:33 +0000 (19:50 +0000)]
Merge "Make '_create_router' function handle Boolean kwargs correctly"

9 years agoMerge "Add conntrack-tool to manage security groups"
Jenkins [Fri, 7 Aug 2015 19:31:49 +0000 (19:31 +0000)]
Merge "Add conntrack-tool to manage security groups"

9 years agoDo not delete fip namespace during l3 dvr agent resync
Oleg Bondarev [Fri, 7 Aug 2015 16:56:13 +0000 (19:56 +0300)]
Do not delete fip namespace during l3 dvr agent resync

This was introduced by commit 46608806aa7a9c60214e28429ca5a8b87b2a15de
which didn't take into account that fip namespace name is composed
from external network id rather than router id.
The fix is to ensure fip namespaces for the known routers are kept
by namespace manager on agent resync.

Closes-Bug: #1482521
Change-Id: I0ffd0a3f6d83f7356638827a1cfe4dabef24b891

9 years agoIntroduce ItemAllocator class
Ryan Moats [Thu, 6 Aug 2015 21:24:55 +0000 (16:24 -0500)]
Introduce ItemAllocator class

The ItemAllocator class is used as the base class for
LinkLocalAllocator in preparation for adding
FipRulePriorityAllocator as a child class.

Change-Id: I2c77e5a895f750845b46d3e8a2326e01ea87ee78
Partial-Bug: #1414779
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoValidate updated allocation pool before using it
John Kasperski [Fri, 7 Aug 2015 14:15:33 +0000 (09:15 -0500)]
Validate updated allocation pool before using it

The allocation pool specified during subnet-update is being
used in gateway validation checks before the allocation pool
is ever validated.  Errors indicating that the gateway IP is
invalid are returned when it is the allocation pool that is
actually in error.

Additional testing of the allocation pool is also being added
to the subnet-update unit tests.

Closes-Bug: #1479948
Change-Id: I854333d571bad2550ea5a0b93ff64ce44d0bd010