]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoAdd networking-sfc to the list of affiliated Neutron projects
armando-migliaccio [Wed, 17 Jun 2015 18:33:56 +0000 (11:33 -0700)]
Add networking-sfc to the list of affiliated Neutron projects

The project is being bootstrapped in [1,2], this change reflects
that in the sub_projects doc.

[1] I3825a1e02713f45e2c769eaa8fd0f1ab48d14372
[2] Iec53129d7c19620d690e71032c83907f03c66d9f

Change-Id: I7c235bfe444bbb9afc7d4d8c92704c9bfc09ab49

9 years agoMinor improvements to sub_projects document
armando-migliaccio [Wed, 17 Jun 2015 18:31:01 +0000 (11:31 -0700)]
Minor improvements to sub_projects document

Let's remove the empty table, to cut down the risk of inconsistency,
and further explain what the list of affiliated project is for.

Change-Id: I3c8970db8de4fc211233903e8220cda72d47e193

9 years agoMerge "Ensure netfilter is enabled for bridges"
Jenkins [Wed, 17 Jun 2015 14:37:52 +0000 (14:37 +0000)]
Merge "Ensure netfilter is enabled for bridges"

9 years agoMerge "Refactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent"
Jenkins [Wed, 17 Jun 2015 13:29:25 +0000 (13:29 +0000)]
Merge "Refactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent"

9 years agoMerge "Refactor _update_subnet_allocation_pools"
Jenkins [Wed, 17 Jun 2015 10:04:04 +0000 (10:04 +0000)]
Merge "Refactor _update_subnet_allocation_pools"

9 years agoMerge "Refactor TestRpcWorker and TestWorkerService"
Jenkins [Tue, 16 Jun 2015 22:12:43 +0000 (22:12 +0000)]
Merge "Refactor TestRpcWorker and TestWorkerService"

9 years agoMerge "Juno_initial migration"
Jenkins [Tue, 16 Jun 2015 20:47:43 +0000 (20:47 +0000)]
Merge "Juno_initial migration"

9 years agoMerge "Revert "Revert "Set default of api_workers to number of CPUs"""
Jenkins [Tue, 16 Jun 2015 20:44:43 +0000 (20:44 +0000)]
Merge "Revert "Revert "Set default of api_workers to number of CPUs"""

9 years agoMerge "Python3: do not change the size of a dict while iterating over it"
Jenkins [Tue, 16 Jun 2015 20:42:19 +0000 (20:42 +0000)]
Merge "Python3: do not change the size of a dict while iterating over it"

9 years agoMerge "docs: added job to well known tox envlist"
Jenkins [Tue, 16 Jun 2015 14:39:54 +0000 (14:39 +0000)]
Merge "docs: added job to well known tox envlist"

9 years agoRefactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent
Aman Kumar [Tue, 16 Jun 2015 12:32:44 +0000 (05:32 -0700)]
Refactor scan_ports() and update_ancillary_ports() in OVS Neutron Agent

Used a helper method which contains the common code from scan_ports()
and update_ancillary_ports(). And also renamed the name of
update_ancillary_ports() method to scan_ancillary_ports() to have parity
between normal ports and ancillary ports.

Added unit tests for scan_ancillary_ports.

Co-Authored-By: Romil Gupta <romilg@hp.com>
Partial-Bug: #1329223

Change-Id: I8b3e00a9371d5a03cc8b4be24bf20eec10bef5df

9 years agoPython3: do not change the size of a dict while iterating over it
Cyril Roelandt [Tue, 16 Jun 2015 13:38:13 +0000 (13:38 +0000)]
Python3: do not change the size of a dict while iterating over it

This does not work in Python3, so we have to store the items first.

Change-Id: I7d8641f980fe62d2900559433d5060a6281a97f8
Blueprint: neutron-python3

9 years agoRefactor TestRpcWorker and TestWorkerService
Elena Ezhova [Mon, 1 Jun 2015 09:34:41 +0000 (12:34 +0300)]
Refactor TestRpcWorker and TestWorkerService

TestRpcWorker and TestWorkerService have a duplicate test_reset.
This patch introduces a base class from which tests for service
workers can inherit.

Change-Id: Ic4690c3b066b03c2fbb463f1329208ad1307d83d

9 years agoJuno_initial migration
Ann Kamyshnikova [Tue, 2 Jun 2015 15:45:51 +0000 (18:45 +0300)]
Juno_initial migration

Havana was deprecated with the kilo release, and icehouse will be
deprecated with the liberty release, so havana_inital migration should be
removed and replaced with juno_initial.

Closes-bug: #1461103

Change-Id: I2e6802c9ab64d164bd888278d555dfeeaf47257b

9 years agoMerge "Python 3: use dict.values instead of dict.itervalues"
Jenkins [Tue, 16 Jun 2015 08:52:50 +0000 (08:52 +0000)]
Merge "Python 3: use dict.values instead of dict.itervalues"

9 years agoMerge "Add get_events to OVSDB monitor"
Jenkins [Tue, 16 Jun 2015 08:24:46 +0000 (08:24 +0000)]
Merge "Add get_events to OVSDB monitor"

9 years agodocs: added job to well known tox envlist
Ihar Hrachyshka [Tue, 16 Jun 2015 07:21:42 +0000 (09:21 +0200)]
docs: added job to well known tox envlist

This is to make 'tox -l' return the job name in its output (needed to
allow run-docs.sh script in project-config to determine whether the job
is present, to rely on it when generating docs in gate).

Change-Id: I80eb169b7b4e5a3490586722c64394dbb724928d

9 years agoMerge "Context: Remove logic for read_deleted and deprecate it"
Jenkins [Mon, 15 Jun 2015 21:44:28 +0000 (21:44 +0000)]
Merge "Context: Remove logic for read_deleted and deprecate it"

9 years agoMerge "Refactor update_port in db_base_plugin_v2"
Jenkins [Mon, 15 Jun 2015 20:22:16 +0000 (20:22 +0000)]
Merge "Refactor update_port in db_base_plugin_v2"

9 years agoMerge "Remove fossilized remains"
Jenkins [Mon, 15 Jun 2015 19:52:11 +0000 (19:52 +0000)]
Merge "Remove fossilized remains"

9 years agoMerge "Refactor _update_ips_for_port"
Jenkins [Mon, 15 Jun 2015 19:16:02 +0000 (19:16 +0000)]
Merge "Refactor _update_ips_for_port"

9 years agoRemove fossilized remains
Henry Gessau [Mon, 15 Jun 2015 18:47:21 +0000 (14:47 -0400)]
Remove fossilized remains

Clean up ancient stuff that hasn't been touched in over 3 years.

Change-Id: I67fcd85027fb6614cafe8d92ddbf8c24aed58a4f

9 years agoMerge "Reflect project moves from stackforge to openstack."
Jenkins [Mon, 15 Jun 2015 18:23:43 +0000 (18:23 +0000)]
Merge "Reflect project moves from stackforge to openstack."

9 years agoRefactor update_port in db_base_plugin_v2
Pavel Bondar [Wed, 10 Jun 2015 13:18:40 +0000 (16:18 +0300)]
Refactor update_port in db_base_plugin_v2

This commit is a preparation step for using pluggable IPAM.
- moved validations into _validate_port_for_update;
- updating ip addresses for port is backend specific, so
  moved into _update_port_with_ips in ipam_non_pluggable_backend;
- writing port changes to db is common for both backends, so
  moved into _update_db_port in ipam_backend_mixin;
- updated to use namedtuple to track add/original/remove ips;
- added _make_fixed_ip_dict to exclude keys other than
  ip_address and subnet_id;

Partially-Implements: blueprint neutron-ipam

Change-Id: I1110e88f372b1d0cc7ec72049ba69a6d548da867

9 years agoMerge "Fix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables"
Jenkins [Mon, 15 Jun 2015 17:17:22 +0000 (17:17 +0000)]
Merge "Fix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables"

9 years agoRefactor _update_ips_for_port
Pavel Bondar [Wed, 10 Jun 2015 11:56:58 +0000 (14:56 +0300)]
Refactor _update_ips_for_port

This commit is a preparation step for using pluggable IPAM.
_update_ips_for_port was refactored and split into two methods:
- _get_changed_ips_for_port
  This method contains calculations common for pluggable and
  non-pluggable IPAM implementation, was moved to ipam_backend_mixin.
- _update_ips_for_port
  This method is specific for non-pluggable IPAM implementation, so it
  was moved to ipam_non_pluggable_backend_common.

Other changes:
- _update_ips_for_port now returns namedtuple with added, removed, original
  ips (previously added and original ips were returned).
  List of removed ips is required by pluggable IPAM implementaion
  to apply rollback-on-failure logic;
- removed unused port_id argument from _update_ips_for_port argument list;

Partially-Implements: blueprint neutron-ipam

Change-Id: Id50b6227c8c2d94c35473aece080a6f106a5dfd8

9 years agoPython 3: use dict.values instead of dict.itervalues
Cyril Roelandt [Mon, 15 Jun 2015 15:07:28 +0000 (15:07 +0000)]
Python 3: use dict.values instead of dict.itervalues

This works with both Python 2 and 3, and should not have any performance
impact.

Change-Id: I2a14945c60de513b91c6f022ff5dcc503ce2a8ad
Blueprint: neutron-python3

9 years agoSkip rescheduling networks if no DHCP agents available
Eugene Nikanorov [Thu, 4 Jun 2015 21:46:22 +0000 (01:46 +0400)]
Skip rescheduling networks if no DHCP agents available

This eliminates the problem of unscheduled networks in case
of communication failure between agents and servers which
can occur if messaging queue service fails.

Change-Id: Ied4fa301fc3d475bee25c47f3a01c2381ae9a01e
Closes-Bug: #1461714

9 years agoReflect project moves from stackforge to openstack.
Russell Bryant [Sat, 13 Jun 2015 01:26:37 +0000 (21:26 -0400)]
Reflect project moves from stackforge to openstack.

Several git repos were just moved from stackforge to openstack.
Reflect the move in various places where the URL was in docs and
comments.  In passing, also change URLs to git.openstack.org instead
of github, as that is the official home of all of these repos.

Change-Id: I6c79a192d6604cef01e88d5b305fcc2b0f9c6b30
Co-Authored-By: Kyle Mestery <mestery@mestery.com>
Signed-off-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Fix a regression in "Separate ovs-ofctl using code as a driver" change"
Jenkins [Sat, 13 Jun 2015 22:58:11 +0000 (22:58 +0000)]
Merge "Fix a regression in "Separate ovs-ofctl using code as a driver" change"

9 years agoMerge "Make Vlantransparent extension inherit from ExtensionDescriptor"
Jenkins [Sat, 13 Jun 2015 20:57:18 +0000 (20:57 +0000)]
Merge "Make Vlantransparent extension inherit from ExtensionDescriptor"

9 years agoMerge "Remove meaningless no_delete from L3 test"
Jenkins [Sat, 13 Jun 2015 12:36:18 +0000 (12:36 +0000)]
Merge "Remove meaningless no_delete from L3 test"

9 years agoMerge "OVSNeutronAgent pass the config as parameter"
Jenkins [Sat, 13 Jun 2015 10:54:12 +0000 (10:54 +0000)]
Merge "OVSNeutronAgent pass the config as parameter"

9 years agoMerge "Stop sending gratuitous arp when ip version is 6"
Jenkins [Fri, 12 Jun 2015 21:49:44 +0000 (21:49 +0000)]
Merge "Stop sending gratuitous arp when ip version is 6"

9 years agoMerge "Python3: replace 'unicode' with 'six.text_type'"
Jenkins [Fri, 12 Jun 2015 20:59:34 +0000 (20:59 +0000)]
Merge "Python3: replace 'unicode' with 'six.text_type'"

9 years agoMerge "Enable all deprecation warnings for test runs"
Jenkins [Fri, 12 Jun 2015 19:03:19 +0000 (19:03 +0000)]
Merge "Enable all deprecation warnings for test runs"

9 years agoRemove meaningless no_delete from L3 test
Akihiro Motoki [Fri, 12 Jun 2015 17:14:17 +0000 (02:14 +0900)]
Remove meaningless no_delete from L3 test

no_delete parameter was removed in Kilo and it no longer
has any effect.

Change-Id: Idf0f3ac24b3978392222efbf465cc9e6cfd5d346

9 years agoRevert "Revert "Set default of api_workers to number of CPUs""
armando-migliaccio [Fri, 12 Jun 2015 15:58:05 +0000 (08:58 -0700)]
Revert "Revert "Set default of api_workers to number of CPUs""

This reverts commit 12a564cf03e612dda36df26df8d28dfc75f1af6e.

We should re-enable this feature on a controlled basis so that we can
flush out any outstanding issue we may have.

Related-bug: #1432189

Change-Id: I2cfd93fdb032b461022b729347390ff8636ccdeb

9 years agoOVSNeutronAgent pass the config as parameter
rossella [Thu, 11 Jun 2015 08:43:36 +0000 (10:43 +0200)]
OVSNeutronAgent pass the config as parameter

Instead of using the global cfg.CONF, pass the config as parameter.
This is very useful to test the agent without having to override
the global config.

Change-Id: I45534d79e044da9f2be4d596a58310fb28b7bf22

9 years agoMerge "Ensure no "agent" functional tests are skipped in the gate"
Jenkins [Fri, 12 Jun 2015 04:33:46 +0000 (04:33 +0000)]
Merge "Ensure no "agent" functional tests are skipped in the gate"

9 years agoMerge "power grab"
Jenkins [Fri, 12 Jun 2015 03:35:11 +0000 (03:35 +0000)]
Merge "power grab"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Fri, 12 Jun 2015 03:34:59 +0000 (03:34 +0000)]
Merge "Imported Translations from Transifex"

9 years agoRefactor _update_subnet_allocation_pools
Pavel Bondar [Thu, 11 Jun 2015 14:23:41 +0000 (17:23 +0300)]
Refactor _update_subnet_allocation_pools

Moved _update_subnet_allocation_pools to ipam_backend_mixin.py.
Call _rebuild_availability_ranges with self to make it overridable
on upper level (from non-pluggable backend).

Partially-Implements: blueprint neutron-ipam

Change-Id: If7b1e720f88a2f0177b6772a015ae216f19ee22d

9 years agoStop sending gratuitous arp when ip version is 6
Dane LeBlanc [Tue, 24 Feb 2015 20:47:01 +0000 (15:47 -0500)]
Stop sending gratuitous arp when ip version is 6

This fix prevents calls to the arping utility for IPv6
addresses, thereby eliminating errors reported by arping
for IPv6 addresses.

The assumption is that NDP, DAD, and RAs are sufficient
for address resolution and duplicate address detection
for IPv6, and that unsolicited Neighbor Advertisements (NAs)
are not required for OpenStack services. If this turns out
not to be the case for some service/feature, then a separate
bug should be filed to add support for unsolicited NAs for
that service.

Change-Id: I14f869b7d488d7e691f7316eafcab3064e12cda6
Closes-Bug: 1357068

9 years agoMerge "Add Neutron PTL Office Hours"
Jenkins [Thu, 11 Jun 2015 16:03:17 +0000 (16:03 +0000)]
Merge "Add Neutron PTL Office Hours"

9 years agoMerge "Fix typo acomplished => accomplished"
Jenkins [Thu, 11 Jun 2015 16:01:17 +0000 (16:01 +0000)]
Merge "Fix typo acomplished => accomplished"

9 years agoMerge "Added networking-plumgrid in plugin requirements"
Jenkins [Thu, 11 Jun 2015 16:01:05 +0000 (16:01 +0000)]
Merge "Added networking-plumgrid in plugin requirements"

9 years agoMerge "Document existence of br-tun and br-int in the OVS agent"
Jenkins [Thu, 11 Jun 2015 13:12:11 +0000 (13:12 +0000)]
Merge "Document existence of br-tun and br-int in the OVS agent"

9 years agoMerge "Ensure non-overlapping cidrs in subnetpools without galera"
Jenkins [Thu, 11 Jun 2015 12:25:25 +0000 (12:25 +0000)]
Merge "Ensure non-overlapping cidrs in subnetpools without galera"

9 years agoFix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables
Ann Kamyshnikova [Tue, 9 Jun 2015 08:30:06 +0000 (11:30 +0300)]
Fix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables

PostgreSQL is more sensitive with types than MySQL, it creates a
separate type when a Enum is created. In migration 589f9237ca0e
type profile_type is trying to be created, but the type with such
name was already created in havana_initial migration.

The solution for this is not to create type in 589f9237ca0e
migration when dialect is PostgreSQL and use already created.

Closes-bug: #1463301

Change-Id: I66e74d50cc70673de8635616076779cc20cde113

9 years agoMerge "Consume oslo.policy"
Jenkins [Thu, 11 Jun 2015 06:04:10 +0000 (06:04 +0000)]
Merge "Consume oslo.policy"

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Thu, 11 Jun 2015 06:03:07 +0000 (06:03 +0000)]
Imported Translations from Transifex

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

Change-Id: If91f3ac94562cc5130dd5ea5ac5d71aec64b74e3

9 years agopower grab
Kevin Benton [Thu, 11 Jun 2015 04:45:41 +0000 (21:45 -0700)]
power grab

The current core reviewers hierarchy didn't have a place for the
parts of ML2 that weren't related to agent communication. For now
we can put all of ML2 under the built-in control-plane until we
decide it needs to be put somewhere else.

Change-Id: Ic4924e0041c4cbb955d8fac0f96ec56406d6466e

9 years agoMerge "Remove useless pass from methods in type_tunnel.py"
Jenkins [Thu, 11 Jun 2015 04:27:27 +0000 (04:27 +0000)]
Merge "Remove useless pass from methods in type_tunnel.py"

9 years agoMerge "Correct indentation in neutron.api.v2.attributes"
Jenkins [Thu, 11 Jun 2015 04:18:07 +0000 (04:18 +0000)]
Merge "Correct indentation in neutron.api.v2.attributes"

9 years agoMerge "Moving out the cisco n1kv section to stackforge"
Jenkins [Thu, 11 Jun 2015 03:11:52 +0000 (03:11 +0000)]
Merge "Moving out the cisco n1kv section to stackforge"

9 years agoMerge "Allow update_port_status to take network param"
Jenkins [Thu, 11 Jun 2015 03:09:07 +0000 (03:09 +0000)]
Merge "Allow update_port_status to take network param"

9 years agoDocument existence of br-tun and br-int in the OVS agent
armando-migliaccio [Wed, 10 Jun 2015 23:53:25 +0000 (16:53 -0700)]
Document existence of br-tun and br-int in the OVS agent

Question about the use of the two bridges has come up in the past
multiple times, so let's fill the gap in the developer documentation.

A user-facing documentation patch will have to follow up, if we want
to be very thorough.

Change-Id: I6dac0f9bdaf7b3b7bff8745d4103ccc71df61a0a

9 years agoMerge "policy: cleanup deprecation code to handle old extension:xxx rules"
Jenkins [Wed, 10 Jun 2015 23:41:42 +0000 (23:41 +0000)]
Merge "policy: cleanup deprecation code to handle old extension:xxx rules"

9 years agoCorrect indentation in neutron.api.v2.attributes
Cedric Brandily [Wed, 10 Jun 2015 20:08:45 +0000 (22:08 +0200)]
Correct indentation in neutron.api.v2.attributes

This change corrects subnetpool resource definition indentation in
neutron.api.v2.attributes.

Change-Id: I6738ff6b73bd0b943cec32f14ccb8946ba28d2e3

9 years agoMerge "Handle SIGHUP: neutron-server (multiprocess) and metadata agent"
Jenkins [Wed, 10 Jun 2015 20:25:16 +0000 (20:25 +0000)]
Merge "Handle SIGHUP: neutron-server (multiprocess) and metadata agent"

9 years agoPython3: replace 'unicode' with 'six.text_type'
Cyril Roelandt [Wed, 10 Jun 2015 10:20:58 +0000 (10:20 +0000)]
Python3: replace 'unicode' with 'six.text_type'

In Python 3, 'unicode' does not exist; 'six.text_type' should be used instead.

Change-Id: I71011b4beee9817a61278eb473804cfb798de74a
Blueprint: neutron-python3

9 years agoMerge "Introduce functions using arping executable"
Jenkins [Wed, 10 Jun 2015 18:55:45 +0000 (18:55 +0000)]
Merge "Introduce functions using arping executable"

9 years agoMoving out the cisco n1kv section to stackforge
Saksham Varma [Wed, 8 Apr 2015 01:12:02 +0000 (18:12 -0700)]
Moving out the cisco n1kv section to stackforge

Since most of the n1kv plugin code resides in stackforge/networking-cisco
repo, it's best to move the n1kv section there

Change-Id: Ic1388980dea0d27dfa5e84869f1f20cc9bff78e5
Closes-Bug: #1441400

9 years agoEnsure no "agent" functional tests are skipped in the gate
Cedric Brandily [Mon, 1 Jun 2015 20:29:39 +0000 (22:29 +0200)]
Ensure no "agent" functional tests are skipped in the gate

Some "agent" functional tests[1] can be skipped if some requirements are
not satisfied in order to allow developers to run functional tests on
various environments. These tests should not be skipped in the gate.

This change defines the decorator no_skip_on_missing_deps[2] to ensure
no "agent" functional tests are skipped in the gate. More precisely
no_skip_on_missing_deps transforms a skipTest into an error in:

* dsvm-functional and dsvm-fullstack jobs,
* functional and fullstack jobs when OS_FAIL_ON_MISSING_DEPS is
  evaluated as True.

The change enlarges OS_FAIL_ON_MISSING_DEPS environment variable scope
(ie: missing dependencies + system requirements).

[1] in neutron.tests.functional
[2] in neutron.tests.common.base

Change-Id: Iacd4a5ef249fc1d7c75135ead9d0cf99d8a98a06
Closes-Bug: #1459844

9 years agoMerge "Actually allow to pass TRACE_FAILONLY to ostestr"
Jenkins [Wed, 10 Jun 2015 17:34:43 +0000 (17:34 +0000)]
Merge "Actually allow to pass TRACE_FAILONLY to ostestr"

9 years agoRemove useless pass from methods in type_tunnel.py
Romil Gupta [Wed, 10 Jun 2015 16:43:56 +0000 (09:43 -0700)]
Remove useless pass from methods in type_tunnel.py

The pass is useless because there is a docstring in the methods.
Generally considered as uncovered by coverage tool.

Change-Id: Id1275c51e9adb865a3da9f0db007f3092b55b140

9 years agoMake Vlantransparent extension inherit from ExtensionDescriptor
Sean M. Collins [Wed, 10 Jun 2015 14:29:33 +0000 (10:29 -0400)]
Make Vlantransparent extension inherit from ExtensionDescriptor

Change-Id: Ic615578a1fe1d401b53d0b44ff5275d9518b97fd

9 years agoMerge "Switch to os-testr to control testr"
Jenkins [Wed, 10 Jun 2015 12:53:03 +0000 (12:53 +0000)]
Merge "Switch to os-testr to control testr"

9 years agoActually allow to pass TRACE_FAILONLY to ostestr
Ihar Hrachyshka [Wed, 10 Jun 2015 11:10:54 +0000 (13:10 +0200)]
Actually allow to pass TRACE_FAILONLY to ostestr

The comment below suggests to use TRACE_FAILONLY to fail quickly when
running unit tests, while tox 2.0 does not allow to pass envvars from
the cli caller unless they are explicitly mentioned in passenv=
directive.

Change-Id: I6861498e7609b0c21fad844009420ea9734e2352

9 years agoSwitch to os-testr to control testr
Ihar Hrachyshka [Tue, 9 Jun 2015 09:28:10 +0000 (11:28 +0200)]
Switch to os-testr to control testr

It's a nice wrapper spinned out recently from tempest-lib that should
cover all our needs that we currently fulfill with pretty_tox.sh.

Change-Id: I2268ed45ab628fe5dcab657d6287594847ab587c

9 years agoMerge "Python 3: use next() instead of iterator.next()"
Jenkins [Wed, 10 Jun 2015 09:13:55 +0000 (09:13 +0000)]
Merge "Python 3: use next() instead of iterator.next()"

9 years agoMerge "Revert "Defer segment lookup in NetworkContext object""
Jenkins [Wed, 10 Jun 2015 09:08:40 +0000 (09:08 +0000)]
Merge "Revert "Defer segment lookup in NetworkContext object""

9 years agoIntroduce functions using arping executable
Jakub Libosvar [Tue, 9 Jun 2015 16:08:50 +0000 (16:08 +0000)]
Introduce functions using arping executable

The arpinger is gonna be used in the next changeset introducing
connection testers.

Change-Id: I90ae32c2f52f1debfb11ae2a08b2828ee2be04cc

9 years agoMerge "Merge tag '2015.1.0'"
Jenkins [Wed, 10 Jun 2015 07:37:53 +0000 (07:37 +0000)]
Merge "Merge tag '2015.1.0'"

9 years agoRevert "Defer segment lookup in NetworkContext object"
Kevin Benton [Wed, 10 Jun 2015 07:04:25 +0000 (07:04 +0000)]
Revert "Defer segment lookup in NetworkContext object"

This reverts commit e61865807c4c8ff959a7746fe3e17f1ae574c9d0.

This patch likely violated the idea of a NetworkContext
being a snapshot of the network at the time it was created.
This needs a different approach.

Change-Id: I20b132a0181d35b0517330fb7fbf293c3e979d0e

9 years agoAdded networking-plumgrid in plugin requirements
Fawad Khaliq [Wed, 10 Jun 2015 05:18:18 +0000 (22:18 -0700)]
Added networking-plumgrid in plugin requirements

Closes-Bug: 1463665
Change-Id: I7152dedd83659ee51274be31ef305af9e82d695a

9 years agoMerge "Switch from MySQL-python to PyMySQL"
Jenkins [Wed, 10 Jun 2015 04:15:09 +0000 (04:15 +0000)]
Merge "Switch from MySQL-python to PyMySQL"

9 years agoMerge "Defer segment lookup in NetworkContext object"
Jenkins [Wed, 10 Jun 2015 04:14:24 +0000 (04:14 +0000)]
Merge "Defer segment lookup in NetworkContext object"

9 years agoMerge "Break Pinger class to functions"
Jenkins [Wed, 10 Jun 2015 03:20:07 +0000 (03:20 +0000)]
Merge "Break Pinger class to functions"

9 years agoMerge "Add a comment on _check_update_has_security_groups"
Jenkins [Wed, 10 Jun 2015 03:17:55 +0000 (03:17 +0000)]
Merge "Add a comment on _check_update_has_security_groups"

9 years agoSwitch from MySQL-python to PyMySQL
Jeremy Stanley [Wed, 20 May 2015 01:03:59 +0000 (01:03 +0000)]
Switch from MySQL-python to PyMySQL

As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: I73e0fdb6eca70e7d029a40a2f6f17a7c0797a21d

9 years agoContext: Remove logic for read_deleted and deprecate it
Salvatore Orlando [Tue, 28 Apr 2015 11:59:35 +0000 (04:59 -0700)]
Context: Remove logic for read_deleted and deprecate it

The read_deleted parameter in the Context object is simply unused.
This patch removes associated logic, and for what is worth, adds
deprecation warnings against explicit usage of read_deleted when
creating a context instance, generate an admin context, and
elevating a context instance.

Change-Id: Ic69d22dc229ebe8fac1f6be0c4860d19732505b1
Closes-Bug: #1449462

9 years agoMerge "Make pep8 job succeed when /etc/neutron/neutron.conf is not installed"
Jenkins [Tue, 9 Jun 2015 20:15:10 +0000 (20:15 +0000)]
Merge "Make pep8 job succeed when /etc/neutron/neutron.conf is not installed"

9 years agoMerge "Remove get_admin_roles and associated logic"
Jenkins [Tue, 9 Jun 2015 19:57:30 +0000 (19:57 +0000)]
Merge "Remove get_admin_roles and associated logic"

9 years agoPython 3: use next() instead of iterator.next()
Cyril Roelandt [Mon, 8 Jun 2015 16:09:49 +0000 (16:09 +0000)]
Python 3: use next() instead of iterator.next()

The latter only works in Python 2.

Also define a __next__ method in the classes that define a next method.

Change-Id: Iaa1a1e500facab50d8bcdffda39ccad3f2e4e9bb
Blueprint: neutron-python3

9 years agoMerge tag '2015.1.0'
Jeremy Stanley [Tue, 9 Jun 2015 17:47:59 +0000 (17:47 +0000)]
Merge tag '2015.1.0'

This is a null-merge of the 2015.1.0 release tag back into the master
branch so that the 2015.1.0 tag will appear in the git commit history of
the master branch. It contains no actual changes to the master branch,
regardless of how our code review system's UI represents it. Please
ask in #openstack-infra if you have any questions, and otherwise try
to merge this as quickly as possible to avoid later conflicts on the
master branch.

Change-Id: I69e520148633c8f1ec1be019ec83f06f11b84060

9 years agoConsume oslo.policy
Ihar Hrachyshka [Thu, 23 Apr 2015 10:12:52 +0000 (12:12 +0200)]
Consume oslo.policy

Some non intrusive changes to tests are needed, so that we don't rely on
library symbols that are now private (f.e. parse_rule).

Closes-Bug: #1458945
Change-Id: I90326479e908042fec9ecb25fa19a8dd5b15e7d8

9 years agopolicy: cleanup deprecation code to handle old extension:xxx rules
Ihar Hrachyshka [Thu, 23 Apr 2015 12:03:52 +0000 (14:03 +0200)]
policy: cleanup deprecation code to handle old extension:xxx rules

It served and warned users for enough time (since Icehouse) to be sure
everyone was notified about the need to update their policy file.

Change-Id: I240b935741e49fbf65c0b95715af04af4b2a73e7

9 years agoFix a regression in "Separate ovs-ofctl using code as a driver" change
Romil Gupta [Thu, 4 Jun 2015 11:21:14 +0000 (04:21 -0700)]
Fix a regression in "Separate ovs-ofctl using code as a driver" change

The tunnels are not getting established between Network Node and
Compute Nodes in non DVR mode with l2pop enabled and throws
the AttributeError: add_tunnel_port.

This fixes a regression in change Ie1224f8a1c17268cd7d1c474ed82fdfb8852eaa8.

Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
Closes-Bug: #1461486
Change-Id: I1106fd3dd32f6f827eb25dec4815ff1120af96f0

9 years agoBreak Pinger class to functions
Jakub Libosvar [Wed, 27 May 2015 13:54:06 +0000 (13:54 +0000)]
Break Pinger class to functions

As the class served only for storing parameters that can be passed as
actual function parameters, there is no reason for class.

Change-Id: I553b4d6daeb78d495cda09894582a3d885b5d1b5

9 years agoHandle SIGHUP: neutron-server (multiprocess) and metadata agent
Elena Ezhova [Tue, 7 Apr 2015 11:58:13 +0000 (14:58 +0300)]
Handle SIGHUP: neutron-server (multiprocess) and metadata agent

All launchers implemented in common.service require each service to
implement reset method because it is called in case a process
receives a SIGHUP.

This change adds the reset method to neutron.service.RpcWorker and
neutron.wsgi.WorkerService which are used to wrap rpc and api
workers correspondingly.

Now neutron-server running in multiprocess mode (api_workers > 0 and
rpc_workers > 0) and metadata agent don't die on receiving SIGHUP and support
reloading policy_path and logging options in config.

Note that reset is called only in case a service is running in daemon mode.

Other changes made in the scope of this patch that need to be mentioned:

* Don't empty self._servers list in RpcWorker's stop method

  When a service is restarted all services are gracefully shutdowned,
  resetted and started again (see openstack.common.service code).
  As graceful shutdown implies calling service.stop() and then
  service.wait() we don't want to clean self._servers list because
  it would be impossible to wait for them to stop processing
  requests and cleaning up their resources.
  Otherwise, this would lead to problems with rpc after starting
  the rpc server again.

* Create a duplicate socket each time WorkerService starts

  When api worker is stopped it kills the eventlet wsgi server
  which internally closes the wsgi server socket object. This server
  socket object becomes not usable which leads to "Bad file
  descriptor" errors on service restart.

Added functional and unit tests.

DocImpact
Partial-Bug: #1276694
Change-Id: I75b00946b7cae891c6eb192e853118e7d49e4a24

9 years agoMerge "Add documentations for VXLAN Tunnels"
Jenkins [Tue, 9 Jun 2015 12:50:50 +0000 (12:50 +0000)]
Merge "Add documentations for VXLAN Tunnels"

9 years agoAllow update_port_status to take network param
Kevin Benton [Thu, 4 Jun 2015 01:25:14 +0000 (18:25 -0700)]
Allow update_port_status to take network param

Allow the update_port_status function to take a network as
an optional parameter to skip calling get_network again if
the caller has already done so.

Closes-Bug: #1463656
Change-Id: I994f3abdb1b0ad3b2766f409b206ad4a8b2309b6

9 years agoMake pep8 job succeed when /etc/neutron/neutron.conf is not installed
Ihar Hrachyshka [Tue, 9 Jun 2015 10:46:54 +0000 (12:46 +0200)]
Make pep8 job succeed when /etc/neutron/neutron.conf is not installed

Currently, if /etc/neutron/neutron.conf is not installed in the system,
neutron-db-manage fails in oslo.config code when trying to determine the
default configuration file to use.

Test job should not rely on any contents inside /etc/.

Instead, pass --config-file with test-only configuration explicitly into
the utility.

neutron.conf.test was renamed into neutron.conf since for some reason
oslo.config does not support a name that does not have .conf at its
filename end.

Change-Id: I719829fc83a7b20a49c338aaf1dbef916dcc768c

9 years agoAdd a comment on _check_update_has_security_groups
YAMAMOTO Takashi [Tue, 9 Jun 2015 10:00:40 +0000 (19:00 +0900)]
Add a comment on _check_update_has_security_groups

Despite of its name, _check_update_has_security_groups can
handle create requests as well.  There are plugins actually
using it for create.  eg. ml2, vmware

Change-Id: I3c26ad0ac00b12ce24096bfc27606797af2d9098

9 years agoEnable all deprecation warnings for test runs
Ihar Hrachyshka [Tue, 9 Jun 2015 08:57:29 +0000 (10:57 +0200)]
Enable all deprecation warnings for test runs

We would like to catch all deprecation warnings during test runs to be
notified in advance about potential problems with next library releases
we depend on.

Change-Id: I876d8c4de88618b01898ab537a44920789d8178e

9 years agoRemove get_admin_roles and associated logic
Salvatore Orlando [Fri, 17 Apr 2015 22:00:20 +0000 (15:00 -0700)]
Remove get_admin_roles and associated logic

get_admin_roles was introduced so that contextes generated from
within plugins could be used for policy checks. This was the case
up to the Havana release as several plugins invoked the policy
engine directly to authorize requests.

This was an incorrect behaviour and has now been fixed, meaning
that get_admin_roles is no longer need and can be safely removed.
This will result in a leaner and more reliable codebase. Indeed the
function being removed here was the cause of several bugs where the
policy engine was initialized too early in the server bootstrap
process.
While this patch removes the feature it does not remove the
load_admin_roles parameter from context.get_admin_context. Doing so
will break other projects such as neutron-lbaas. The parameter is
deprecated by this patch and an appropriate warning emitted.

As a consequence neutron's will now no longer perform policy checks
when context.is_admin=True. This flag is instead set either when
a context is explicitly created for granting admin privileges, or
when Neutron is operating in noauth mode. In the latter case every
request is treated by neutron as an admin request, and get_admin_roles
is simply ensuring the appropriate roles get pushed into the context
so that the policy engine will grant admin rights to the request.
This behaviour is probably just a waste of resource; also it is not
adding anything from a security perspective.

On the other hand not performing checks when context.is_admin is
True should not pose a security threat either in noauth mode or
with the keystone middleware. In the former case the software keeps
operating assuming admin rights for every requests, whereas in the
latter case the keystone middleware will always supply a context
with the appropriate roles, and there is no way for an attacker
to trick keystonemiddleware into generating a context for which
is_admin=True.

Finally, this patch also does some non-trivial changes in test_l3.py
as some tests were mocking context.to_dict ignoring the is_admin flag.

Closes-Bug: #1446021

Change-Id: I8a5c02712a0b43f3e36a4f14620ebbd73fbfb03f

9 years agoAdd documentations for VXLAN Tunnels
Gal Sagie [Mon, 8 Jun 2015 11:27:47 +0000 (14:27 +0300)]
Add documentations for VXLAN Tunnels

The VXLAN type driver is currently supported, this patch add
description and links for more information to the user.

Change-Id: Idb221ca4cce1a3a27bebe5ae6fc1e6ab5d030836

9 years agoDefer segment lookup in NetworkContext object
Kevin Benton [Thu, 4 Jun 2015 02:03:29 +0000 (19:03 -0700)]
Defer segment lookup in NetworkContext object

Avoid call to get network segments for network context objects until
a caller actually tries to lookup the segments. This optimizes cases
where the user of a port context never looks at the segments of the
associated network context (e.g. update_port_status).

Closes-Bug: #1463254
Change-Id: I7e95f81d9a3ef26ccdb18c6bfdf9adc29523aa79