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

9 years agoPython 3: do not index a dict_values object
Cyril Roelandt [Tue, 19 May 2015 16:16:38 +0000 (16:16 +0000)]
Python 3: do not index a dict_values object

In Python 3, dict.values() return a dict_values object instead of a list, as in
Python 2. This object cannot be indexed.

Change-Id: Ia4fdb4cafb1811c55dc8f14e303ab2db1b1110b3
Blueprint: neutron-python3

9 years agoMerge "pylint: enable `duplicate-key` check"
Jenkins [Thu, 4 Jun 2015 22:01:23 +0000 (22:01 +0000)]
Merge "pylint: enable `duplicate-key` check"

9 years agoMerge "Enhance utils.ensure_dir to be resilient to concurrent workers"
Jenkins [Thu, 4 Jun 2015 16:52:47 +0000 (16:52 +0000)]
Merge "Enhance utils.ensure_dir to be resilient to concurrent workers"

9 years agoversionutils: switch from incubator version to oslo.log
Ihar Hrachyshka [Thu, 4 Jun 2015 15:58:06 +0000 (17:58 +0200)]
versionutils: switch from incubator version to oslo.log

Note that we require oslo.log >= 1.2.0 since it's the first release that
included the module.

Change-Id: I2b7d587d8c4b0c885873c9c8083abb8fc35780c9

9 years agoRun RootHelperProcess always as root
Jakub Libosvar [Wed, 27 May 2015 13:50:22 +0000 (13:50 +0000)]
Run RootHelperProcess always as root

The purpose of RootHelperProcess is to spawn processes running with root
id. Instantiating RootHelperProcess as non-root doesn't make sense. This
also implies NetcatTester always spawns 'netcat' process as root. The
reason why parameter existed here was due to refactor from passing
root_helper all over the place.

Change-Id: If042efcd75e46b66abf4a9e303e633749a1611b1

9 years agoChanges in rally-jobs/README.rst
Alexander Maretskiy [Thu, 4 Jun 2015 13:32:12 +0000 (16:32 +0300)]
Changes in rally-jobs/README.rst

Changes:
  * fix broken links
  * add link to release notes

Change-Id: Ie42b246aac2fd4f6de8cd8bcf28e5ff2906ffd32

9 years agoAdd more API tests for port-security extension:
Dmitry Ratushnyy [Mon, 20 Apr 2015 13:22:27 +0000 (16:22 +0300)]
Add more API tests for port-security extension:

Test create port with specific value of port_security_enabled
Test create secure port with security_group attached
Test update port with port_security_enabled True\False
and with or without security groups
Test deleting port with port_security_enabled

Change-Id: Id71f5451dc17f374feff1a3bdb35fb9ec42f0fa1
Depends-On: Ia27881a34ff99cad34c84764d2bf8a6cdf77af9c
Depends-On: Ie0ec090e8fdce7dbdbce14ef47f38e8e57f262d4

9 years agoMerge "test_db_base_plugin_v2: Don't assume the order of fixed_ips"
Jenkins [Thu, 4 Jun 2015 12:08:31 +0000 (12:08 +0000)]
Merge "test_db_base_plugin_v2: Don't assume the order of fixed_ips"

9 years agoMerge "Use a single method to remove an address with its conntrack state"
Jenkins [Thu, 4 Jun 2015 11:54:10 +0000 (11:54 +0000)]
Merge "Use a single method to remove an address with its conntrack state"

9 years agoDecompose the NCS ML2 Mechanism Driver
Henry Gessau [Mon, 1 Jun 2015 18:36:17 +0000 (14:36 -0400)]
Decompose the NCS ML2 Mechanism Driver

The last of the Cisco drivers to decompose.

Closes-bug: #1416713
Co-Authored-By: Nikolay Fedotov <nfedotov@cisco.com>
Change-Id: Icd2b358fb0db3d859ee287225ab8eeb10d7da871

9 years agotest_db_base_plugin_v2: Don't assume the order of fixed_ips
YAMAMOTO Takashi [Wed, 3 Jun 2015 13:21:52 +0000 (22:21 +0900)]
test_db_base_plugin_v2: Don't assume the order of fixed_ips

Fixes test_ip_allocation_for_ipv6_2_subnet_slaac_mode
failures on my environment.

Change-Id: I18a9a177a60c364d79943a8d68b46fde3b9f5d74

9 years agopylint: enable `duplicate-key` check
Angus Lees [Thu, 4 Jun 2015 02:55:02 +0000 (12:55 +1000)]
pylint: enable `duplicate-key` check

This check attempts to detect dictionary literals with duplicate keys.

The rest of the Neutron tree has already had the few instances of this
cleaned[1] or moved into external vendor repos.  Enabling the pylint
check will stop future occurrences.

[1] I29cd2b843a7905986de13a1ecfba0cb5797ccaf8

(Original patch I1aa221d2019853f905f2b8421dd45b0a3102baf0 by zhiyuan_cai)

Change-Id: If4fed9714cd7fa586845f21f8f56dde2645cc5e0
Co-Authored-By: zhiyuan_cai <luckyvega.g@gmail.com>
9 years agoMerge "Add sub-project lieutenants"
Jenkins [Wed, 3 Jun 2015 23:10:23 +0000 (23:10 +0000)]
Merge "Add sub-project lieutenants"

9 years agoMerge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"
Jenkins [Wed, 3 Jun 2015 23:10:11 +0000 (23:10 +0000)]
Merge "Refactor type_tunnel/gre/vxlan to reduce duplicate code"

9 years agoMerge "Make MockFixedIntervalLoopingCall class as a helper class"
Jenkins [Wed, 3 Jun 2015 18:52:10 +0000 (18:52 +0000)]
Merge "Make MockFixedIntervalLoopingCall class as a helper class"

9 years agoRemove reference to non-existent fullstack fixture
Assaf Muller [Wed, 3 Jun 2015 17:50:57 +0000 (13:50 -0400)]
Remove reference to non-existent fullstack fixture

EnvironmentFixture doesn't actually exist, and environment
should be a mandatory parameter.

Change-Id: I5598e176f297bcfa3b2cab188b4b446ce18d54ab

9 years agoMerge "Move full-stack logs post-tests"
Jenkins [Wed, 3 Jun 2015 17:34:55 +0000 (17:34 +0000)]
Merge "Move full-stack logs post-tests"

9 years agoEnhance utils.ensure_dir to be resilient to concurrent workers
Carl Baldwin [Wed, 3 Jun 2015 16:56:23 +0000 (16:56 +0000)]
Enhance utils.ensure_dir to be resilient to concurrent workers

In rare cases, concurrent workers may attempt to ensure a directory
exists.  One may successfully create the directory while the other
gets an oserror that it already exists.  This patch detects the
problem and returns successfully in both cases.

Change-Id: I224be69168ede8a496a5f7d59b04b722f4de7192

9 years agoMerge "Fix confusing parameters names"
Jenkins [Wed, 3 Jun 2015 16:10:06 +0000 (16:10 +0000)]
Merge "Fix confusing parameters names"

9 years agoMerge "Wrap ML2 delete_port with db retry decorator"
Jenkins [Wed, 3 Jun 2015 15:50:11 +0000 (15:50 +0000)]
Merge "Wrap ML2 delete_port with db retry decorator"

9 years agoMerge "Remove extra indent in testcases"
Jenkins [Wed, 3 Jun 2015 15:19:28 +0000 (15:19 +0000)]
Merge "Remove extra indent in testcases"

9 years agoMerge "Python3: use six.iteritems() instead of dict.iteritems()"
Jenkins [Wed, 3 Jun 2015 15:17:08 +0000 (15:17 +0000)]
Merge "Python3: use six.iteritems() instead of dict.iteritems()"

9 years agoUse a single method to remove an address with its conntrack state
Carl Baldwin [Wed, 27 May 2015 20:12:27 +0000 (20:12 +0000)]
Use a single method to remove an address with its conntrack state

I just noticed a pattern and I thought I'd throw this up for
discussion.  It has occurred to me that this addition sort of breaks
the ip_lib paradigm of wrapping ip commands without any additional
useful abstraction.  Any better ideas?

Change-Id: Ibd34bf4a721c153aca916e294e58adb4a28379e4

9 years agoDecompose db_base_plugin_v2.py
Pavel Bondar [Wed, 3 Jun 2015 11:22:29 +0000 (14:22 +0300)]
Decompose db_base_plugin_v2.py

Moved private getters and simple helpers into db_base_plugin_common.
This change is part of bigger refactoring for supporting Pluggable IPAM.
Main purpose is to make getters accessible by IPAM code.

Partially-Implements: blueprint neutron-ipam

Change-Id: I1eac61c258541bca80e14be4b7c75519a014ffae

9 years agoAdd sub-project lieutenants
Russell Bryant [Tue, 2 Jun 2015 19:20:44 +0000 (15:20 -0400)]
Add sub-project lieutenants

A recent patch added the concept of Lieutenants for Neutron.  This
same concept makes a lot of sense for identifying clear points of
contact for the various sub-projects under the Neutron tent.  This
patch adds a table of the projects currently approved as part of
Neutron in the governance repo.  I also made a guess on who the
lieutenant would be based on reviews in stackalytics (except for ones
that weren't in stackalytics).

Change-Id: Ibce5d6ba5e19dec59a10c88749557509136c4e41
Signed-off-by: Russell Bryant <rbryant@redhat.com>