]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
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 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>
9 years agoFix confusing parameters names
Oleg Bondarev [Wed, 3 Jun 2015 12:38:50 +0000 (15:38 +0300)]
Fix confusing parameters names

Change-Id: Ib00135e1d0b8f334d660de9a80629e084efb13ba

9 years agoExtra indent in test_ovs_neutron_agent
Aman Kumar [Wed, 3 Jun 2015 12:15:25 +0000 (05:15 -0700)]
Extra indent in test_ovs_neutron_agent

This patch removes extra indent errors from test_ovs_neutron_agent

Change-Id: I1270cca3699b7874047f7812710f2611cc465493

9 years agoMerge "Catch broad exception in methods used in FixedIntervalLoopingCall"
Jenkins [Wed, 3 Jun 2015 10:05:42 +0000 (10:05 +0000)]
Merge "Catch broad exception in methods used in FixedIntervalLoopingCall"

9 years agoMerge "Revert "Add VIF_DELETED notification event to Nova""
Jenkins [Wed, 3 Jun 2015 08:39:54 +0000 (08:39 +0000)]
Merge "Revert "Add VIF_DELETED notification event to Nova""

9 years agoMake MockFixedIntervalLoopingCall class as a helper class
Aman Kumar [Wed, 3 Jun 2015 06:49:40 +0000 (23:49 -0700)]
Make MockFixedIntervalLoopingCall class as a helper class

MockFixedIntervalLoopingCall class is used in both the classes
TestOvsNeutronAgent and TestOvsDvrNeutronAgent.

This patch removes the MockFixedIntervalLoopingCall from both the
places and make it as a helper class in test_ovs_neutron_agent.py.
So that it will be used everywhere in test_ovs_neutron_agent.py.

Change-Id: I5e0803436e91b4f20ec03209e9e799a68df4eaf4

9 years agoRevert "Add VIF_DELETED notification event to Nova"
Kevin Benton [Wed, 3 Jun 2015 05:52:51 +0000 (05:52 +0000)]
Revert "Add VIF_DELETED notification event to Nova"

We need to wait until the nova support is added in
I998b6bb80cc0a81d665b61b8c4a424d7219c666f. Otherwise
this generates a ton of error messages in the nova api
log as well as on the neutron side.

This reverts commit 0ace88fd4a75ff213dc36fd16c1f8e7080ab7d6d.

Change-Id: I129c4e4c05cf07d45032fec6f57e0cc17a5a82af
Closes-Bug: #1461391

9 years agoWrap ML2 delete_port with db retry decorator
Oleg Bondarev [Wed, 6 May 2015 09:50:11 +0000 (12:50 +0300)]
Wrap ML2 delete_port with db retry decorator

ML2 delete_port operation currently involves locking ports
and bindings tables which may lead to DBDeadlock errors in certain
cases when several ports are deleted concurrently.
That may happen due to specifics of Galera working in active-active
mode: it may throw deadlock errors when it fails to validate
a change with other members of the cluster.
The fix adds retries to delete port operation to overcome such
deadlocks

Closes-Bug: #1422504
Change-Id: I684691d59c5ac370d74314c3c91857dc709b2d9b

9 years agoMerge "Check for 'removed' in port_info before reference"
Jenkins [Wed, 3 Jun 2015 02:11:42 +0000 (02:11 +0000)]
Merge "Check for 'removed' in port_info before reference"

9 years agoRemove extra indent in testcases
Aaron Rosen [Wed, 3 Jun 2015 00:34:48 +0000 (17:34 -0700)]
Remove extra indent in testcases

Change-Id: I42cb044d75d53eab7ba180954589c718374857ee

9 years agoMerge "Add route to metadata IP by default"
Jenkins [Wed, 3 Jun 2015 00:16:51 +0000 (00:16 +0000)]
Merge "Add route to metadata IP by default"

9 years agoCheck for 'removed' in port_info before reference
Kevin Benton [Tue, 2 Jun 2015 23:52:14 +0000 (16:52 -0700)]
Check for 'removed' in port_info before reference

scan_ports can return early on no changes, in which case
'removed' won't be present in the dict. The deleted_ports
logic wasn't setup to handle that.

This patch checks for the key before trying to reference it.

Change-Id: I0e2c6d76515ad8e2a2addc8d40451ac003a150f7
Closes-Bug: #1461325

9 years agoCatch broad exception in methods used in FixedIntervalLoopingCall
Eugene Nikanorov [Tue, 26 May 2015 16:17:20 +0000 (20:17 +0400)]
Catch broad exception in methods used in FixedIntervalLoopingCall

Unlike other places where it might make sense to catch specific
exceptions, methods that are used to check L3 and DHCP agents
liveness via FixedIntervalLoopingCall should never allow exceptions
to leak to calling method and interrupt the loop.

Further improvement of FixedIntervalLoopingCall might be needed,
but for the sake of easy backporting it makes sense to fix the issue
in neutron before pushing refactoring to 3rd-party library.

Change-Id: I6a61e99a6f4e445e26ea4a9923b47e35559e5703
Closes-Bug: #1458119

9 years agoMerge "Add devref that explains fullstack testing and its direction"
Jenkins [Tue, 2 Jun 2015 22:48:29 +0000 (22:48 +0000)]
Merge "Add devref that explains fullstack testing and its direction"

9 years agoMerge "Add VIF_DELETED notification event to Nova"
Jenkins [Tue, 2 Jun 2015 22:33:42 +0000 (22:33 +0000)]
Merge "Add VIF_DELETED notification event to Nova"

9 years agoAdd devref that explains fullstack testing and its direction
Assaf Muller [Tue, 2 Jun 2015 16:21:11 +0000 (12:21 -0400)]
Add devref that explains fullstack testing and its direction

The goal of this doc is to communicate what are full stack tests,
how they benefit you and when would you write such a test.

Additionally I'd like to communicate the way forward, and gather
feedback about any areas in the code that can benefit from full
stack tests, and any additional thoughts!

Change-Id: Ifd4ff9be0ed0184a49df6566d238c31a328cd23f

9 years agoMerge "Modify ipset functional tests to pass on older machines"
Jenkins [Tue, 2 Jun 2015 19:42:49 +0000 (19:42 +0000)]
Merge "Modify ipset functional tests to pass on older machines"

9 years agoMerge "Remove unused _uuid function alias from test_iptables.py"
Jenkins [Tue, 2 Jun 2015 18:05:45 +0000 (18:05 +0000)]
Merge "Remove unused _uuid function alias from test_iptables.py"

9 years agoMerge "Remove get_dhcp_port RPC method"
Jenkins [Tue, 2 Jun 2015 17:04:00 +0000 (17:04 +0000)]
Merge "Remove get_dhcp_port RPC method"

9 years agoMerge "Don't delete port from bridge on delete_port event"
Jenkins [Tue, 2 Jun 2015 17:02:33 +0000 (17:02 +0000)]
Merge "Don't delete port from bridge on delete_port event"

9 years agoMerge "Don't update floating IP status if no change"
Jenkins [Tue, 2 Jun 2015 16:39:01 +0000 (16:39 +0000)]
Merge "Don't update floating IP status if no change"

9 years agoMerge "Imported Translations from Transifex"
Jenkins [Tue, 2 Jun 2015 15:06:34 +0000 (15:06 +0000)]
Merge "Imported Translations from Transifex"

9 years agoMerge "Update rootwrap.conf to add /usr/local/bin"
Jenkins [Tue, 2 Jun 2015 15:02:22 +0000 (15:02 +0000)]
Merge "Update rootwrap.conf to add /usr/local/bin"

9 years agoRemove get_dhcp_port RPC method
Assaf Muller [Mon, 1 Jun 2015 21:05:56 +0000 (17:05 -0400)]
Remove get_dhcp_port RPC method

This method was last used in Icehouse.  I think we can safely
remove all of its code and tests. Icehouse to Liberty rolling
upgrades are in no way expected to work so I just bumped
the RPC version and removed all traces of the code.

Change-Id: Ia545c5be7da80c919ad5bae6074bc1cc3aa89fa0
Closes-Bug: #1314534

9 years agoMerge "Move pool dispose() before os.fork"
Jenkins [Tue, 2 Jun 2015 08:17:55 +0000 (08:17 +0000)]
Merge "Move pool dispose() before os.fork"

9 years agoRefactor type_tunnel/gre/vxlan to reduce duplicate code
Cedric Brandily [Sat, 30 May 2015 18:41:29 +0000 (20:41 +0200)]
Refactor type_tunnel/gre/vxlan to reduce duplicate code

gre and vxlan type drivers have similar implementations for multiple
methods:
* get_endpoint_by_host
* get_endpoint_by_ip
* delete_endpoint
* get_endpoints
* add_endpoint

This change abstracts these methods and moves the abstractions to the
new class EndpointTunnelTypeDriver.

Change-Id: Iab97f8283b6bf5586334958de950664f6e74202a

9 years agoImported Translations from Transifex
OpenStack Proposal Bot [Tue, 2 Jun 2015 06:15:35 +0000 (06:15 +0000)]
Imported Translations from Transifex

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

Change-Id: Iadf5c59306dd4f8ce574a2d7259bd6a03d60a72a

9 years agoUpdate rootwrap.conf to add /usr/local/bin
Gal Sagie [Tue, 2 Jun 2015 05:49:10 +0000 (08:49 +0300)]
Update rootwrap.conf to add /usr/local/bin

When working with OVN i found on Fedora 21 that
my ovs-vsctl is installed in /usr/local/bin, since this wasnt in
rootwrap DHCP didnt work properly.
This change adds it to rootwrap

Change-Id: Ib3646933744ca6b20ecd5ad0cedcedb4f1fa5f12

9 years agoAdd route to metadata IP by default
Eugene Nikanorov [Tue, 2 Jun 2015 02:15:39 +0000 (06:15 +0400)]
Add route to metadata IP by default

Windows VMs try to resolve metadata ip 169.254.169.254 as
local address by default, which results in very slow access
to metadata url during boot.
Injecting direct route to metadata ip through a subnet's default
gateway helps Windows to avoid wasting time on mac resolution.

So this patch injects host route for metadata ip for networks plugged
into a router.

Closes-Bug: #1460793

Change-Id: Ic991f9d7f9a8cf942e3e29f2da03d73c0f26470a

9 years agoMerge "test_ovs_neutron_agent: Remove unnecessary mocking"
Jenkins [Tue, 2 Jun 2015 00:41:23 +0000 (00:41 +0000)]
Merge "test_ovs_neutron_agent: Remove unnecessary mocking"