]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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 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 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 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 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 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 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 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

9 years agoFix typos in docs
Zhenguo Niu [Tue, 9 Jun 2015 00:28:45 +0000 (08:28 +0800)]
Fix typos in docs

Change-Id: I71aeb8f1e5fc5f3e330e593a463858dd65e6093b

9 years agoMerge "Python3: Enable all working tests in tox.ini"
Jenkins [Mon, 8 Jun 2015 20:59:02 +0000 (20:59 +0000)]
Merge "Python3: Enable all working tests in tox.ini"

9 years agoMerge "Clean only floating-ip related connection states"
Jenkins [Mon, 8 Jun 2015 20:54:38 +0000 (20:54 +0000)]
Merge "Clean only floating-ip related connection states"

9 years agoAdd Neutron PTL Office Hours
Kyle Mestery [Mon, 8 Jun 2015 15:27:23 +0000 (15:27 +0000)]
Add Neutron PTL Office Hours

To ensure a weekly oppurtunity to sync between the PTL and the
Lieutenants, officially setup Neutron PTL Office Hours.

Depends-On: Ia5c8090e90939097104cb95c0aa3b883f7b4dd9b
Change-Id: Iab3c21764937ebb3a1d0553b3a3d42b5c44bf3cc
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Refactor awkward logic in setup_dhcp_port"
Jenkins [Mon, 8 Jun 2015 17:00:26 +0000 (17:00 +0000)]
Merge "Refactor awkward logic in setup_dhcp_port"

9 years agoMerge "Update ipset members when corresponding sg member is empty"
Jenkins [Mon, 8 Jun 2015 15:38:48 +0000 (15:38 +0000)]
Merge "Update ipset members when corresponding sg member is empty"

9 years agoMerge "Fix typo in test class name"
Jenkins [Mon, 8 Jun 2015 15:35:32 +0000 (15:35 +0000)]
Merge "Fix typo in test class name"

9 years agoPython3: Enable all working tests in tox.ini
Cyril Roelandt [Mon, 8 Jun 2015 14:42:18 +0000 (14:42 +0000)]
Python3: Enable all working tests in tox.ini

Thanks to the recent Python3-related changes, these tests can now be run on
Python 3.

Change-Id: I7f689e221e59128012d46da2c90e61d5206fe828
Blueprint: neutron-python3

9 years agoMerge "Python 3: do not index a dict_values object"
Jenkins [Mon, 8 Jun 2015 09:35:22 +0000 (09:35 +0000)]
Merge "Python 3: do not index a dict_values object"

9 years agoUpdate ipset members when corresponding sg member is empty
shihanzhang [Tue, 26 May 2015 08:42:44 +0000 (16:42 +0800)]
Update ipset members when corresponding sg member is empty

if a security group has a rule with 'remote-group-id', the ports
in this security group should update its relevant ipset member
when the remote-group members is empty.

Change-Id: I980ebfd8f6537f803d9d5cbf21ca33f727fea3b3
Closes-bug: #1458786

9 years agoMerge "Send 'security_groups_member_updated' when port changes"
Jenkins [Mon, 8 Jun 2015 06:06:21 +0000 (06:06 +0000)]
Merge "Send 'security_groups_member_updated' when port changes"

9 years agoMerge "Remove full stack log noise"
Jenkins [Mon, 8 Jun 2015 02:55:51 +0000 (02:55 +0000)]
Merge "Remove full stack log noise"

9 years agoMerge "L3 agent should do report state before full sync at start"
Jenkins [Mon, 8 Jun 2015 02:27:16 +0000 (02:27 +0000)]
Merge "L3 agent should do report state before full sync at start"

9 years agoSend 'security_groups_member_updated' when port changes
shihanzhang [Fri, 24 Apr 2015 10:28:17 +0000 (18:28 +0800)]
Send 'security_groups_member_updated' when port changes

With ml2 plugin, when a port's IP or security group changes, it
should send 'security_groups_member_updated' message to other l2
agents which have same security group with this changed port.

Change-Id: I2e7622d2db4c173ac879a95a6e0adf92b858fe82
Closes-bug: #1448022

9 years agoMerge "ML2: Remove TYPE_MULTI_SEGMENT"
Jenkins [Sun, 7 Jun 2015 19:47:31 +0000 (19:47 +0000)]
Merge "ML2: Remove TYPE_MULTI_SEGMENT"

9 years agoMerge "Refactor mlnx mechanism driver to support infiniband only"
Jenkins [Sun, 7 Jun 2015 18:47:57 +0000 (18:47 +0000)]
Merge "Refactor mlnx mechanism driver to support infiniband only"

9 years agoMerge "Add more API tests for port-security extension:"
Jenkins [Sun, 7 Jun 2015 18:43:49 +0000 (18:43 +0000)]
Merge "Add more API tests for port-security extension:"

9 years agoRemove full stack log noise
Assaf Muller [Sat, 6 Jun 2015 22:41:39 +0000 (18:41 -0400)]
Remove full stack log noise

"neutron-server isn't up yet" logs are useless because if
you time out when waiting for the server to start that information
will be in the trace. When you don't time out, the log is just spam.

Same reasoning for the "There are %d agents running!" log.

Also made the agents_count parameter mandatory for the
wait_until_env_is_up method because having a default of 0, or any
other default makes no sense. There's no reason to ever call that
method without specifying the agents_count. This method used
to be used with agents_count == 0 by the server to make sure
its up (And responding to REST calls), but the Neutron server
fixture now uses server_is_live method (Which calls list_networks)
instead.

Change-Id: Ifd6abd04ddaacc9976cb2a75269443f870b47c5b

9 years agoML2: Remove TYPE_MULTI_SEGMENT
YAMAMOTO Takashi [Sat, 6 Jun 2015 17:50:35 +0000 (02:50 +0900)]
ML2: Remove TYPE_MULTI_SEGMENT

It's a leftover from the pre-multiprovider world.

Change-Id: Iaf93292d698032984dfc392fae3701c49e18adc8

9 years agoL3 agent should do report state before full sync at start
Stephen Ma [Thu, 4 Jun 2015 20:09:23 +0000 (20:09 +0000)]
L3 agent should do report state before full sync at start

Sometimes the AgentNotFoundByTypeHost exception is reported during
L3-agent startup. The exception is generated when the first
get_routers RPC call is made. When the neutron server gets this
RPC call, it might not have handled the report state RPC call yet.
So the L3-agent hasn't been registered in the API server.
The result is a RPC Error exception.  By the time the next
get_routers RPC call is made, the report state RPC call has already
been done and agent registered.

This patch modifies the L3 agent startup behavior to have the report
state done before the agent do the sync routers RPC call.

Closes-bug: 1456822
Change-Id: Id40cfd8466f45e20fea0e9df6fd57bf9c9e59da7

9 years agoMerge "test_ovs_neutron_agent: Remove useless ofport=10 arguments"
Jenkins [Sat, 6 Jun 2015 01:59:56 +0000 (01:59 +0000)]
Merge "test_ovs_neutron_agent: Remove useless ofport=10 arguments"

9 years agoMerge "test_l3: Don't assume the order of subnets"
Jenkins [Sat, 6 Jun 2015 01:59:44 +0000 (01:59 +0000)]
Merge "test_l3: Don't assume the order of subnets"

9 years agoMerge "versionutils: switch from incubator version to oslo.log"
Jenkins [Sat, 6 Jun 2015 01:07:14 +0000 (01:07 +0000)]
Merge "versionutils: switch from incubator version to oslo.log"

9 years agoMerge "Remove reference to non-existent fullstack fixture"
Jenkins [Fri, 5 Jun 2015 22:02:28 +0000 (22:02 +0000)]
Merge "Remove reference to non-existent fullstack fixture"

9 years agoMerge "Decompose the NCS ML2 Mechanism Driver"
Jenkins [Fri, 5 Jun 2015 21:30:30 +0000 (21:30 +0000)]
Merge "Decompose the NCS ML2 Mechanism Driver"

9 years agoClean only floating-ip related connection states
Cedric Brandily [Wed, 6 May 2015 20:40:39 +0000 (22:40 +0200)]
Clean only floating-ip related connection states

Currently init_l3 deletes connection states related to ALL ips deleted
in init_l3 but it's required only when floating-ips are deleted[1].

This change deletes only connection states related to floating-ips
deleted in init_l3 ... it avoids to delete connection states in dhcp
agents and on router internal ports!

[1] look at change Ia9bd7ae243a0859dcb97e2fa939f7d16f9c2456c

Closes-Bug: #1452434
Related-Bug: #1334926
Change-Id: Icfcfc585df6fd41de1e1345fd731e4631a6950ce

9 years agoRefactor awkward logic in setup_dhcp_port
Carl Baldwin [Thu, 4 Jun 2015 22:25:44 +0000 (22:25 +0000)]
Refactor awkward logic in setup_dhcp_port

I noticed this logic as I was reviewing another patch set [1].  I
didn't like removing subnet ids from dhcp_enabled_subnet_ids and I
wasn't too keen on the ips_need_removal semantics that were kind of
forced by the existing structure of the code.  I hope you find this
alternative much clearer.  I like straight-forward code with less
indentation that doesn't use awkward booleans like ips_needs_removal.

[1] https://review.openstack.org/#/c/157697/6

Change-Id: I8bd3d6924a855ea08f8096e66bd3bfbb165a4da3

9 years agoMerge "Add a "light" base test class for DB tests"
Jenkins [Fri, 5 Jun 2015 19:42:53 +0000 (19:42 +0000)]
Merge "Add a "light" base test class for DB tests"

9 years agoMerge "Handle SIGHUP in ovs neutron agent"
Jenkins [Fri, 5 Jun 2015 18:37:34 +0000 (18:37 +0000)]
Merge "Handle SIGHUP in ovs neutron agent"

9 years agoMerge "Start linuxbridge neutron agent using a launcher"
Jenkins [Fri, 5 Jun 2015 18:37:22 +0000 (18:37 +0000)]
Merge "Start linuxbridge neutron agent using a launcher"

9 years agoMerge "Decompose db_base_plugin_v2.py part 2"
Jenkins [Fri, 5 Jun 2015 18:37:10 +0000 (18:37 +0000)]
Merge "Decompose db_base_plugin_v2.py part 2"

9 years agoMerge "Make _val_to_py and _py_to_val not private"
Jenkins [Fri, 5 Jun 2015 18:13:45 +0000 (18:13 +0000)]
Merge "Make _val_to_py and _py_to_val not private"

9 years agoAdd a "light" base test class for DB tests
Salvatore Orlando [Tue, 19 May 2015 16:42:51 +0000 (09:42 -0700)]
Add a "light" base test class for DB tests

This newly added class simply extends DietTestCase
with support for SQL operations.

Related-Blueprint: better-quotas
Change-Id: I2debc6a144ee93155c8e36f06aecb9735dbf55d4

9 years agoMerge "Decompose db_base_plugin_v2.py"
Jenkins [Fri, 5 Jun 2015 17:03:16 +0000 (17:03 +0000)]
Merge "Decompose db_base_plugin_v2.py"

9 years agoMerge "Changes in rally-jobs/README.rst"
Jenkins [Fri, 5 Jun 2015 16:25:53 +0000 (16:25 +0000)]
Merge "Changes in rally-jobs/README.rst"

9 years agoMerge "Add a non-mixin function for model queries"
Jenkins [Fri, 5 Jun 2015 13:02:35 +0000 (13:02 +0000)]
Merge "Add a non-mixin function for model queries"

9 years agoMerge "Run RootHelperProcess always as root"
Jenkins [Fri, 5 Jun 2015 12:26:35 +0000 (12:26 +0000)]
Merge "Run RootHelperProcess always as root"

9 years agoMake _val_to_py and _py_to_val not private
rossella [Fri, 5 Jun 2015 11:09:35 +0000 (13:09 +0200)]
Make _val_to_py and _py_to_val not private

Move _val_to_py and _py_to_val to neutron.agent.ovsdb.api
and remove the underscore since they will be used by other
classes.

Change-Id: I3a469ab3b1c1d83ad20dc6c77f1072fc6d546419

9 years agoDecompose db_base_plugin_v2.py part 2
Pavel Bondar [Fri, 5 Jun 2015 11:01:10 +0000 (14:01 +0300)]
Decompose db_base_plugin_v2.py part 2

This patch contains method moving with minor modifications like updating
class names. IPAM specific methods were moved into ipam_backend_mixin and
ipam_non_pluggable_backend.

ipam_backend_mixin - contains code common for both backends (pluggable and
non-pluggable).

ipam_non_pluggable_backend - contains code specific for non-pluggable
IPAM implementation.

Partially-Implements: blueprint neutron-ipam

Change-Id: I6d68e4066ca472107def197c5a5afccbb6886a0e

9 years agoFix typo in test class name
Vincent Legoll [Fri, 5 Jun 2015 11:05:48 +0000 (13:05 +0200)]
Fix typo in test class name

Make "Redering" -> "Rendering"

Change-Id: Ieedb446fa1e06705eb70293d83350d4dfd57d2db
Signed-off-by: Vincent Legoll <vincent.legoll@iphc.cnrs.fr>
9 years agoStart linuxbridge neutron agent using a launcher
Elena Ezhova [Thu, 4 Jun 2015 14:00:13 +0000 (17:00 +0300)]
Start linuxbridge neutron agent using a launcher

This change ports linuxbridge neutron agent on common/service code
that will allow to handle termination signals (SIGHUP, SIGTERM, SIGINT).

Note that this patch allows changing only logging options.
All other config options are not handled explicitly and changing
them using SIGHUP can lead to unpredictable circumstances.
So, until changing other options is handled it is highly recommended
to use SIGHUP for changing ONLY logging options.

DocImpact
Change-Id: I1d834e0683b04111ef04c148cbd8d4acf2964065
Closes-Bug: #1461539

9 years agoHandle SIGHUP in ovs neutron agent
Elena Ezhova [Mon, 1 Jun 2015 11:55:13 +0000 (14:55 +0300)]
Handle SIGHUP in ovs neutron agent

This change allows ovs neutron agent not to die on receiving SIGHUP
and reload its logging options.

Note that this patch allows changing only logging options.
All other config options are not handled explicitly and changing
them using SIGHUP can lead to unpredictable circumstances.
So, until changing other options is handled it is highly recommended
to use SIGHUP for changing ONLY logging options.

Change-Id: Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33
Partial-Bug: #1276694

9 years agotest_ovs_neutron_agent: Remove useless ofport=10 arguments
YAMAMOTO Takashi [Mon, 23 Feb 2015 07:25:53 +0000 (16:25 +0900)]
test_ovs_neutron_agent: Remove useless ofport=10 arguments

The kwarg ofport has been removed from method signatures
where it was never used.

Change-Id: Iee671e8d870ba4ef5175a639bbaf365a5eaf5ef7

9 years agotest_l3: Don't assume the order of subnets
YAMAMOTO Takashi [Wed, 3 Jun 2015 13:35:58 +0000 (22:35 +0900)]
test_l3: Don't assume the order of subnets

Fixes test_router_add_gateway_multiple_subnets_ipv6 failures
on my environment.

Change-Id: I44b4dd0cee393ea796f35b999cc111b60ef63db1

9 years agoMerge "When disabling dhcp, delete fixed ip properly"
Jenkins [Fri, 5 Jun 2015 00:12:30 +0000 (00:12 +0000)]
Merge "When disabling dhcp, delete fixed ip properly"

9 years agoMerge "Remove hack for sending gratuitous arp from fip ns"
Jenkins [Thu, 4 Jun 2015 22:13:46 +0000 (22:13 +0000)]
Merge "Remove hack for sending gratuitous arp from fip ns"