]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoobjects.base: avoid db access if object does not have changes
Ihar Hrachyshka [Thu, 2 Jul 2015 20:30:36 +0000 (23:30 +0300)]
objects.base: avoid db access if object does not have changes

Also cover base object with unit tests.

Change-Id: I2f58c767ba35eeee2f9ecc363e5b042ea8638faa

9 years agoMerge "[qos] policy: add methods to interact with policy bindings" into feature/qos
Jenkins [Thu, 2 Jul 2015 20:12:55 +0000 (20:12 +0000)]
Merge "[qos] policy: add methods to interact with policy bindings" into feature/qos

9 years agoMerge "Generic Resources RPC" into feature/qos
Jenkins [Thu, 2 Jul 2015 20:03:09 +0000 (20:03 +0000)]
Merge "Generic Resources RPC" into feature/qos

9 years agoMerge "Merge remote-tracking branch 'origin/master' into merge-branch" into feature/qos
Jenkins [Thu, 2 Jul 2015 20:00:19 +0000 (20:00 +0000)]
Merge "Merge remote-tracking branch 'origin/master' into merge-branch" into feature/qos

9 years agoMerge "Generic rpc callback mechanism which could be reused" into feature/qos
Jenkins [Thu, 2 Jul 2015 18:22:16 +0000 (18:22 +0000)]
Merge "Generic rpc callback mechanism which could be reused" into feature/qos

9 years agoMerge remote-tracking branch 'origin/master' into merge-branch
Ihar Hrachyshka [Thu, 2 Jul 2015 14:03:01 +0000 (17:03 +0300)]
Merge remote-tracking branch 'origin/master' into merge-branch

Change-Id: I114225ad6fa52ae5a085719251f273f3de4d72ef

9 years agoGeneric Resources RPC
Moshe Levi [Tue, 30 Jun 2015 19:23:26 +0000 (22:23 +0300)]
Generic Resources RPC

This patch adds Generic Resource RPC from agent to server.

Change-Id: I0ac8a009e781b6edb283d8634b1a2f047db092dc

9 years agoGeneric rpc callback mechanism which could be reused
Miguel Angel Ajo [Thu, 11 Jun 2015 13:21:28 +0000 (15:21 +0200)]
Generic rpc callback mechanism which could be reused

This is a publisher/subscriber messaging mechanism optimized
for agent consumption and server production without the need
of creating new rpc messages when new resources are introduced.

Oslo versionedobjects are the perfect match to ensure
cross version compatibility even if the published/subscribed
resources format change over time.

This is still a basic stub allowing get_info of the resources,
and the next change will introduce the RPC methods to call
get_info: I0ac8a009e781b6edb283d8634b1a2f047db092dc

The plugin is returning stub objects to be consumed from the
agent to test the basic behaviour until we have DB.

TODO: Update documentation, according to code changes,
      enforce versioned objects only doing deserial/serialization.

Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Co-Authored-By: Eran Gampel <eran@gampel.net>
Change-Id: I524cf5a14e99dc6bee4d4261557d98c75efa0809

9 years agoMerge "First QoS versioned objects, ever" into feature/qos
Jenkins [Thu, 2 Jul 2015 11:01:13 +0000 (11:01 +0000)]
Merge "First QoS versioned objects, ever" into feature/qos

9 years agoMerge "Read vif port information in bulk"
Jenkins [Thu, 2 Jul 2015 11:01:00 +0000 (11:01 +0000)]
Merge "Read vif port information in bulk"

9 years agoMerge "Change the half of the bridge name used for ports"
Jenkins [Thu, 2 Jul 2015 09:53:23 +0000 (09:53 +0000)]
Merge "Change the half of the bridge name used for ports"

9 years ago[qos] policy: add methods to interact with policy bindings
Ihar Hrachyshka [Thu, 2 Jul 2015 08:14:17 +0000 (11:14 +0300)]
[qos] policy: add methods to interact with policy bindings

Detachment is not supported in this patch.

blueprint quantum-qos-api

Change-Id: I66f87b99241a25d39d08c124bae3779c872bc567

9 years agoFirst QoS versioned objects, ever
Ihar Hrachyshka [Tue, 30 Jun 2015 10:32:27 +0000 (13:32 +0300)]
First QoS versioned objects, ever

Well, first versioned objects in the tree.

Binding to networks and ports is not implemented.

No tests. Checked manually.

blueprint quantum-qos-api

Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com>
Change-Id: I9b6cacfda4f40230d746222bed5b6c490be63743

9 years agoAdd bandwidth_limit rule type constant
Gal Sagie [Wed, 1 Jul 2015 16:15:55 +0000 (19:15 +0300)]
Add bandwidth_limit rule type constant

Change-Id: I7228b3a288848833947271a0966ca415bfaa07c4

9 years agoMerge "Fix log traces induced by retry decorator"
Jenkins [Thu, 2 Jul 2015 01:43:53 +0000 (01:43 +0000)]
Merge "Fix log traces induced by retry decorator"

9 years agoMerge "Update PLUMgrid plugin information"
Jenkins [Thu, 2 Jul 2015 00:58:40 +0000 (00:58 +0000)]
Merge "Update PLUMgrid plugin information"

9 years agoMerge "Remove bridge cleanup call"
Jenkins [Thu, 2 Jul 2015 00:11:29 +0000 (00:11 +0000)]
Merge "Remove bridge cleanup call"

9 years agoMerge remote-tracking branch 'origin/master' into merge-branch
Kyle Mestery [Wed, 1 Jul 2015 21:55:31 +0000 (21:55 +0000)]
Merge remote-tracking branch 'origin/master' into merge-branch

Change-Id: I7bd5d0568e773365eaab1ebd99dcd7186da22dae

9 years agoChange the half of the bridge name used for ports
Kevin Benton [Wed, 1 Jul 2015 20:06:38 +0000 (13:06 -0700)]
Change the half of the bridge name used for ports

The code to generate the names of the patch ports
was based on a chunk of the bridge name starting from
the beginning. With the long suffix, this ended up
excluding all of the random characters in the name.
(e.g. br-int374623235 would create an interface br-in-patch-tun).

This meant that if two tests using patch interfaces ran together,
they would have a name collision and one would fail.

This patch updates the patch port name generation to use the
randomized back portion of the name.

Change-Id: I172e0b2c0b53e8c7151bd92f0915773ea62c0c6a
Closes-Bug: #1470637

9 years agoFix log traces induced by retry decorator
armando-migliaccio [Wed, 1 Jul 2015 19:00:14 +0000 (12:00 -0700)]
Fix log traces induced by retry decorator

Patch 4e77442d5 added a retry decorator to the API layer
to catch DB deadlock errors. However, when they occur, the
retried operation ends up being ineffective because the original
body has been altered, which leads the notification and validation
layers to barf exceptions due to unrecognized/unserializable elements.

This ultimately results to an error reported to the user.

To address this, let's make a deep copy of the request body, before
we pass it down to the lower layers. This allows the decorator to
work on a pristine copy of the body on every attempt. The performance
impact for this should be negligible.

Closes-bug: #1470615

Change-Id: I82a2a002612d28fa8f97b0afbd4f7ba1e8830377

9 years agoMerge "fix spelling mistakes"
Jenkins [Wed, 1 Jul 2015 19:57:11 +0000 (19:57 +0000)]
Merge "fix spelling mistakes"

9 years agoMerge "Move windows requirements to requirements.txt"
Jenkins [Wed, 1 Jul 2015 19:02:22 +0000 (19:02 +0000)]
Merge "Move windows requirements to requirements.txt"

9 years agoMerge "Fix subnet updating failure on valid allocation pools"
Jenkins [Wed, 1 Jul 2015 18:12:02 +0000 (18:12 +0000)]
Merge "Fix subnet updating failure on valid allocation pools"

9 years agoMerge "Add bandwidth_limit rules as sub-collection of qos policy" into feature/qos
Jenkins [Wed, 1 Jul 2015 15:21:46 +0000 (15:21 +0000)]
Merge "Add bandwidth_limit rules as sub-collection of qos policy" into feature/qos

9 years agoMerge "QoS: db models and migration rules" into feature/qos
Jenkins [Wed, 1 Jul 2015 13:23:01 +0000 (13:23 +0000)]
Merge "QoS: db models and migration rules" into feature/qos

9 years agoAdd bandwidth_limit rules as sub-collection of qos policy
Irena Berezovsky [Tue, 30 Jun 2015 12:04:39 +0000 (12:04 +0000)]
Add bandwidth_limit rules as sub-collection of qos policy

This patch add support for qos extension according to the
spec modification [1].

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

Change-Id: I9226932191464face6e20625e35ad4b7529db4ca

9 years agoQoS: db models and migration rules
Ramanjaneya [Wed, 24 Jun 2015 11:54:11 +0000 (17:24 +0530)]
QoS: db models and migration rules

This patch includes db models and migration rules for initial QoS objects.

Comparing to the spec, it adds two more service tables to maintain links
between networks and ports and their respective policies. We maintain
uniqueness as a unique constraint.

In some parallel world, we could have an additional field for networks
and ports that could be nullable to point to a policy. That said, it
breaks qos isolation a bit, and will also be a bit more painful if and
when we decide to spin out qos service pieces outside the tree.

blueprint quantum-qos-api

Co-Authored-By: Ramanjaneya <ramanjieee@gmail.com>
Co-Authored-By: vikram.choudhary <vikram.choudhary@huawei.com>
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Co-Authored-By: Miguel Angel Ajo <mangelajo@redhat.com>
Change-Id: I55a7dac602e2e770c21b6c7957430cb7115e5bdc

9 years agoAdd Create/Destroy API to OVS QoS BW Limiting
Gal Sagie [Sat, 27 Jun 2015 10:16:11 +0000 (13:16 +0300)]
Add Create/Destroy API to OVS QoS BW Limiting

Add infrastructure needed for the implementations
(CLI and native) and add API to ovs_lib
Add functional tests for ovs_lib

blueprint ml2-ovs-qos-with-bwlimiting

Change-Id: Ided0740548987ca91f1549f251c7906e6449f91d

9 years agodocs: link quality of service doc stub to devref index
Ihar Hrachyshka [Wed, 1 Jul 2015 07:42:09 +0000 (10:42 +0300)]
docs: link quality of service doc stub to devref index

Since I433126a8247e7e1c316f2c96bb21e15582b247ce, doc warnings are
considered as failures in gate.

Unlinked .rst file generates one, making docs job broken for
feature/qos. Same for an empty file with no title.

Change-Id: Iba82d9728e99238bcc55b12f0ab9eb936fd62147

9 years agoMerge "dhcp fails if extra_dhcp_opts for stateless subnet enabled"
Jenkins [Wed, 1 Jul 2015 07:40:20 +0000 (07:40 +0000)]
Merge "dhcp fails if extra_dhcp_opts for stateless subnet enabled"

9 years agoMerge "NSXv: update ini file to support dhcp_lease_time"
Jenkins [Wed, 1 Jul 2015 07:17:54 +0000 (07:17 +0000)]
Merge "NSXv: update ini file to support dhcp_lease_time"

9 years agoMerge "Adds base in-tree functional testing of the ovs_neutron_agent"
Jenkins [Wed, 1 Jul 2015 07:17:40 +0000 (07:17 +0000)]
Merge "Adds base in-tree functional testing of the ovs_neutron_agent"

9 years agoUpdate PLUMgrid plugin information
Fawad Khaliq [Tue, 30 Jun 2015 09:17:19 +0000 (02:17 -0700)]
Update PLUMgrid plugin information

README was quite oudated and created confusion
among users.

Updated the information after decomposition.

Change-Id: I78bf8dec20ba2ceb644d4565035d29bbf53cb3b5

9 years agoMerge "Increase ping count on ARP spoof test"
Jenkins [Wed, 1 Jul 2015 02:35:07 +0000 (02:35 +0000)]
Merge "Increase ping count on ARP spoof test"

9 years agoMerge "RootHelperProcess: kill can consume signal number"
Jenkins [Wed, 1 Jul 2015 02:24:10 +0000 (02:24 +0000)]
Merge "RootHelperProcess: kill can consume signal number"

9 years agoMerge "Move NetcatTester to common/net_helpers"
Jenkins [Wed, 1 Jul 2015 02:15:53 +0000 (02:15 +0000)]
Merge "Move NetcatTester to common/net_helpers"

9 years agoMerge "Disable pylint job"
Jenkins [Tue, 30 Jun 2015 23:54:17 +0000 (23:54 +0000)]
Merge "Disable pylint job"

9 years agoMerge "Add documentation for Linux Bridge (previously missing)"
Jenkins [Tue, 30 Jun 2015 23:49:51 +0000 (23:49 +0000)]
Merge "Add documentation for Linux Bridge (previously missing)"

9 years agoMerge "Switch to oslo.service"
Jenkins [Tue, 30 Jun 2015 23:24:54 +0000 (23:24 +0000)]
Merge "Switch to oslo.service"

9 years agoDisable pylint job
Assaf Muller [Tue, 30 Jun 2015 17:22:17 +0000 (13:22 -0400)]
Disable pylint job

Disabling pylint until it gets unbroken. Pylint 1.4.1 is using
logilab-common, which had a release on the 30th, breaking pylint.
Pylint developers are planning a logilab-common release tomorrow
which should unbreak pylint once again, at which point I'll
re-enable pylint.

Change-Id: I5d8aaab8192168946c2a0b74abc1a56848ca51a2
Related-Bug: #1470186

9 years agoRemove bridge cleanup call
Sean M. Collins [Tue, 30 Jun 2015 16:06:07 +0000 (12:06 -0400)]
Remove bridge cleanup call

Remove the bridge cleanup call to delete bridges, since we are seeing
race conditions where bridges are deleted, then new interfaces are
created and are attempting to plug into the bridge before it is
recreated.

Change-Id: I4ccc96566a5770384eacbbdc492bf09a514f5b31
Related-Bug: #1328546

9 years agoMove windows requirements to requirements.txt
Russell Bryant [Tue, 26 May 2015 21:07:37 +0000 (17:07 -0400)]
Move windows requirements to requirements.txt

Commit 276028cca26af573c14938255e40c58358eabd4a added these
requirements to setup.py from a custom build hook.  These requirements
can now be expressed in requirements.txt.  We need to move them there
so that the global requirements sync job can continue to keep setup.py
in sync with the global version.

Depends-on: I2369971d306c10dc39a1b89698cec95cf7551d07
Change-Id: I3c07c279d33f6aed46c3a97dd9ba81251e51429a

9 years agoAdds base in-tree functional testing of the ovs_neutron_agent
Rossella Sblendido [Fri, 5 Dec 2014 16:34:23 +0000 (17:34 +0100)]
Adds base in-tree functional testing of the ovs_neutron_agent

Base setup and utility methods for functional testing of the
OVS L2 agent.

Partially-Implements: blueprint restructure-l2-agent
Co-Authored-By: Rossella Sblendido <rsblendido@suse.com>
Change-Id: I5b3149b2b8502b9b9a36d3e20d909872cc17f8e8

9 years agofix spelling mistakes
Livnat Peer [Tue, 30 Jun 2015 13:25:57 +0000 (16:25 +0300)]
fix spelling mistakes

Change-Id: If063f111fa42a6644a1dadc7f0c0b9bbfb359294

9 years agoIncrease ping count on ARP spoof test
Kevin Benton [Tue, 30 Jun 2015 05:24:22 +0000 (22:24 -0700)]
Increase ping count on ARP spoof test

The other IPv4 tests all have a count of 2 to tolerate
ping failures due to slow ARP response/interface setup/etc.
This patch increases test_arp_spoof_allowed_address_pairs_0cidr
to 2 to match.

Closes-Bug: #1470234
Change-Id: I82bd8397672194f6162eef5392d4f19d57450552

9 years agoMerge "Don't access mock's attribute directly especially when it's not needed"
Jenkins [Tue, 30 Jun 2015 05:19:15 +0000 (05:19 +0000)]
Merge "Don't access mock's attribute directly especially when it's not needed"

9 years agoMerge "ip_lib: Add flush() command to IpNeigh to clean arp cache"
Jenkins [Tue, 30 Jun 2015 03:44:05 +0000 (03:44 +0000)]
Merge "ip_lib: Add flush() command to IpNeigh to clean arp cache"

9 years agoMerge "Revert "Fix 'router_gateway' port status can't be updated""
Jenkins [Tue, 30 Jun 2015 02:48:15 +0000 (02:48 +0000)]
Merge "Revert "Fix 'router_gateway' port status can't be updated""

9 years agoMerge "Add logging of agent heartbeats"
Jenkins [Tue, 30 Jun 2015 02:32:16 +0000 (02:32 +0000)]
Merge "Add logging of agent heartbeats"

9 years agoMerge "Use sets to calculate added/original/removed ips"
Jenkins [Tue, 30 Jun 2015 01:38:10 +0000 (01:38 +0000)]
Merge "Use sets to calculate added/original/removed ips"

9 years agoRead vif port information in bulk
Kevin Benton [Fri, 29 May 2015 06:13:19 +0000 (23:13 -0700)]
Read vif port information in bulk

During startup, the agent was making many calls per port
to read information about the current VLAN, external ID, etc.
This resulted in hundreds of calls just to read information about
a relatively small number of ports.

This patch addresses that by converting a few key functions to
lookup information for all of the ports at once.

Performance improvement on dev laptop for 250 ports from agent
start to port ACTIVE status:
   before: 1m21s
   after: 1m06s

Closes-Bug: #1460233
Change-Id: Ic80c85a07fee3e5651dc19819c6cebdc2048dda7

9 years agoMerge "Use last address in v6 allocation pool generation"
Jenkins [Tue, 30 Jun 2015 00:33:33 +0000 (00:33 +0000)]
Merge "Use last address in v6 allocation pool generation"

9 years agoMerge "Retry port status update on StaleDataError"
Jenkins [Tue, 30 Jun 2015 00:30:16 +0000 (00:30 +0000)]
Merge "Retry port status update on StaleDataError"

9 years agoMerge "Fix Consolidate sriov agent and driver code"
Jenkins [Mon, 29 Jun 2015 23:24:26 +0000 (23:24 +0000)]
Merge "Fix Consolidate sriov agent and driver code"

9 years agoMerge "Revert "Removed test_lib module""
Jenkins [Mon, 29 Jun 2015 23:02:30 +0000 (23:02 +0000)]
Merge "Revert "Removed test_lib module""

9 years agoFix Consolidate sriov agent and driver code
Moshe Levi [Sun, 28 Jun 2015 11:37:14 +0000 (14:37 +0300)]
Fix Consolidate sriov agent and driver code

This patch add mising __init to mech_sriov/mech_driver/
and update the setup.cfg to the new agent entrypoint

Trivial Fix

Change-Id: I53a527081feb78472f496675bbb3c5121d38a14a

9 years agoRemove failing SafeFixture tests
Assaf Muller [Mon, 29 Jun 2015 15:38:51 +0000 (11:38 -0400)]
Remove failing SafeFixture tests

The fixtures 1.3 release attempted to fix the fixtures resource
leak issue, but failed to do so completely. Our own SafeFixture
is still needed: The 1.3 release broke our SafeFixture tests,
but not the usage of SafeFixture itself. This patch removes
those failing tests for now to unbreak the gate. Jakub reported
a bug on fixtures 1.3:
https://bugs.launchpad.net/python-fixtures/+bug/1469759

We will continue to use SafeFixture until that bug is fixed
in fixtures, at which point we will be able to require
fixtures > 1.3.

Change-Id: I59457c3bb198ff86d5ad55a1e623d008f0034b8f
Closes-Bug: #1469734

9 years agoQoS service plugin stub
Miguel Angel Ajo [Fri, 19 Jun 2015 14:45:13 +0000 (16:45 +0200)]
QoS service plugin stub

This patch introduces the QoS service plugin which implements
a stub of the API extension.

This is patch is a basic step to be able to create an experimental
job enabling this service so we can do api tests.

Change-Id: Ib583e98c232ca628ba2a4bd48527eb84584c6212

9 years agoCreate the QoS API extension stub
Miguel Angel Ajo [Fri, 19 Jun 2015 14:28:26 +0000 (16:28 +0200)]
Create the QoS API extension stub

This patch introduces the QoS API extension, in a basic
form where we could, in combination with the service plugin
stub, start creating some experimental test jobs that install
the service plugin.

Please not that URL mapping is not fully according to spec,
neither it does include any testing. We need to work that out.

blueprint quantum-qos-api
Change-Id: I86e8048e2d9b84690dbede9a94cfc884985069c5

9 years agoSwitch to oslo.service
Elena Ezhova [Thu, 18 Jun 2015 07:42:57 +0000 (10:42 +0300)]
Switch to oslo.service

oslo.service has graduated, so neutron should consume it.

Closes-Bug: #1466851
Depends-On: Ie0fd63f969f954029c3c3cf31337fbe38f59331a
Depends-On: I2093b37d411df9a26958fa50ff523c258bbe06ec
Depends-On: I4823d344878fc97e66ddd8fdae25c13a34dede40
Change-Id: I0155b3d8b72f6d031bf6f855488f80acebfc25d4

9 years agoRevert "Removed test_lib module"
Kevin Benton [Mon, 29 Jun 2015 08:27:41 +0000 (08:27 +0000)]
Revert "Removed test_lib module"

This reverts commit 9a6536de6e1a7fe9b2552adc142e254426b82b6f.

We pulled all of the plugins out of the tree, many of which still inherit
from neutron test classes. This change then stated that we no longer
support testing other plugins. I think this is a bit premature and should
have been discussed under the subject
"Neutron plugins can't use neutron plugin unit tests" or something
similar.

Change-Id: I68318589f010b731574ea3bfa8df98492bab31fc

9 years agoDon't access mock's attribute directly especially when it's not needed
Eugene Nikanorov [Mon, 29 Jun 2015 01:45:24 +0000 (05:45 +0400)]
Don't access mock's attribute directly especially when it's not needed

Change-Id: I0df2f7110301c096762396fb23e49a081d051f3b

9 years agoFix subnet updating failure on valid allocation pools
Tomoaki Sato [Mon, 29 Jun 2015 01:02:20 +0000 (10:02 +0900)]
Fix subnet updating failure on valid allocation pools

Currently subnet updating with both allocation-pool and
gateway_ip options is failing because of wrong parameter check.
The check always checks gateway_ip against allocation pools in
db, even when the allocation_pool parameter is given.The fix
checks if given parameter of gateway_ip option doesn't conflict
with given parameters of allocation-pool.

Change-Id: Ia568aa1645b3160ab90a6010efd9a2b9b0d31ac8
Closes-Bug: #1469573

9 years agoAdd documentation for Linux Bridge (previously missing)
Meenakshi Kaushik [Mon, 25 May 2015 06:30:17 +0000 (23:30 -0700)]
Add documentation for Linux Bridge (previously missing)

Change-Id: I092b609f43b37ed85d08bc80d1d048b945abe222
Closes-Bug: #1455979

9 years agoAdd logging of agent heartbeats
Eugene Nikanorov [Tue, 5 May 2015 14:18:28 +0000 (18:18 +0400)]
Add logging of agent heartbeats

When troubleshooting problems with cluster it would be
very convenient to have information about agent heartbeats
logged with some searchable identifier which could create
1-to-1 mapping between events in agent's logs and server's logs.

Currently agent's heartbeats are not logged at all on server side.
Since on a large cluster that could create too much logging
(even for troubleshooting cases), it might make sense to make
this configurable both on neutron-server side and on agent-side.

DocImpact

Change-Id: I0a127ef274a84bba5de47395d47b62f48bd4be16
Closes-Bug: #1452582

9 years agoMerge "fixing typo in gerrit query link in third party policies doc"
Jenkins [Sun, 28 Jun 2015 18:55:12 +0000 (18:55 +0000)]
Merge "fixing typo in gerrit query link in third party policies doc"

9 years agoRevert "Fix 'router_gateway' port status can't be updated"
Assaf Muller [Fri, 26 Jun 2015 21:17:14 +0000 (17:17 -0400)]
Revert "Fix 'router_gateway' port status can't be updated"

This patch breaks multinode fullstack tests and in my opinion
is generally speaking wrong. I've added a comment to explain
in the patch that's being reverted.

This reverts commit with change ID:
If428eadadfd36a9b19ea75920120e48ac49659f2

Change-Id: I73b7825ccc26847ef03d60d6154d544a9145f7e5

9 years agoRootHelperProcess: kill can consume signal number
Jakub Libosvar [Thu, 18 Jun 2015 16:00:56 +0000 (16:00 +0000)]
RootHelperProcess: kill can consume signal number

The kill() method now accepts a signal parameter.

Change-Id: I2eb756a73565d93c979e62eaab358a3a519aa8dd

9 years agoMove NetcatTester to common/net_helpers
Jakub Libosvar [Wed, 17 Jun 2015 13:10:13 +0000 (13:10 +0000)]
Move NetcatTester to common/net_helpers

The NetcatTester is a testing tool that can be used also in fullstack
tests so I think it should go there to avoid imports in fullstack tests
from functional.

Tests for original helpers module was removed.

Change-Id: I7229eba1dbc2ca3d524a1a021256b6202f4aecee

9 years agoip_lib: Add flush() command to IpNeigh to clean arp cache
Jakub Libosvar [Tue, 16 Jun 2015 15:29:17 +0000 (15:29 +0000)]
ip_lib: Add flush() command to IpNeigh to clean arp cache

Change-Id: I938974e3d67373cd18d8a9c6538f1f8b2d09e965

9 years agoRefactor NetcatTester class
Jakub Libosvar [Fri, 5 Jun 2015 14:32:51 +0000 (14:32 +0000)]
Refactor NetcatTester class

Following capabilities were added:
   - used transport protocol is passed as a constant instead of bool
   - src port for testing was added
   - connection can be established explicitly
   - change constructor parameters of NetcatTester

As a part of removing bool for protocol definition
get_free_namespace_port() was also modified to match the behavior.

Change-Id: Id2ec322e7f731c05a3754a65411c9a5d8b258126

9 years agoUse REST rather than ReST
jingliuqing [Sat, 27 Jun 2015 05:41:54 +0000 (13:41 +0800)]
Use REST rather than ReST

Change-Id: I06c9deaab58c5ec13bfeec39fb8fd4b1fe21f42d

9 years agoMerge "Define SafeFixture base fixture"
Jenkins [Sat, 27 Jun 2015 03:43:16 +0000 (03:43 +0000)]
Merge "Define SafeFixture base fixture"

9 years agoMerge "Consolidate sriov agent and driver code"
Jenkins [Fri, 26 Jun 2015 22:30:32 +0000 (22:30 +0000)]
Merge "Consolidate sriov agent and driver code"

9 years agoMerge "Add a double-mock guard to the base test case"
Jenkins [Fri, 26 Jun 2015 22:07:43 +0000 (22:07 +0000)]
Merge "Add a double-mock guard to the base test case"

9 years agoMerge "Remove duplicated mock patch of ip_lib"
Jenkins [Fri, 26 Jun 2015 22:07:04 +0000 (22:07 +0000)]
Merge "Remove duplicated mock patch of ip_lib"

9 years agoMerge "Fix ip_lib get_gateway for default gateway on an iface"
Jenkins [Fri, 26 Jun 2015 22:00:54 +0000 (22:00 +0000)]
Merge "Fix ip_lib get_gateway for default gateway on an iface"

9 years agoAdd a double-mock guard to the base test case
Kevin Benton [Fri, 26 Jun 2015 01:34:38 +0000 (18:34 -0700)]
Add a double-mock guard to the base test case

Use mock to patch mock with a check to prevent multiple active
patches to the same target. Multiple patches to the same target
result in non-deterministic behavior when stopall() tries to
undo the patches.[1]

1. http://bugs.python.org/issue21239

Change-Id: I3dd3d561a0267d80f464c15d69a4258b0a5e8aba
Closes-Bug: #1468998

9 years agoRemove duplicated mock patch of ip_lib
Kevin Benton [Fri, 26 Jun 2015 05:08:41 +0000 (22:08 -0700)]
Remove duplicated mock patch of ip_lib

The functional tests for agents were patching ip_lib in the
function to configure an agent, so any tests that relied on
multiple agents would patch ip_lib multiple times.

Partial-Bug: #1468998
Change-Id: Ibccf586dea870ec222369c0876f17f8eaf9a1aca

9 years agoConsolidate sriov agent and driver code
Kyle Mestery [Thu, 25 Jun 2015 20:36:47 +0000 (20:36 +0000)]
Consolidate sriov agent and driver code

In preparation for decomposing the built-in reference implementation,
this commits consolidates the sriov agent and driver code into a
coherent place for it's life in the new repository. I've also given
the unit tests a new home.

DocImpact
UpgradeImpact

Partially-Implements: blueprint reference-implementation-split
Partial-Bug: #1468433
Closes-Bug: #1427317

Change-Id: Ic8b5215de76e191030228bc28773cd6535e889d8
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Extend SubnetRequestFactory to access subnet dict"
Jenkins [Fri, 26 Jun 2015 17:56:32 +0000 (17:56 +0000)]
Merge "Extend SubnetRequestFactory to access subnet dict"

9 years agoMerge "Decompose _save_subnet"
Jenkins [Fri, 26 Jun 2015 17:50:28 +0000 (17:50 +0000)]
Merge "Decompose _save_subnet"

9 years agoMerge "Fix FloatingIP Namespace creation in DVR for Late Binding"
Jenkins [Fri, 26 Jun 2015 17:33:09 +0000 (17:33 +0000)]
Merge "Fix FloatingIP Namespace creation in DVR for Late Binding"

9 years agoMerge "Python3: do not use __builtin__"
Jenkins [Fri, 26 Jun 2015 17:29:10 +0000 (17:29 +0000)]
Merge "Python3: do not use __builtin__"

9 years agoMerge remote-tracking branch 'origin/master' into merge-qos
Doug Wiegley [Fri, 26 Jun 2015 15:11:07 +0000 (09:11 -0600)]
Merge remote-tracking branch 'origin/master' into merge-qos

Change-Id: I373e1bf2d9b0efc9b1aff01695405f7a70ca6bef

9 years agoRestructure agent code in preparation for decomp
Kyle Mestery [Wed, 24 Jun 2015 19:12:06 +0000 (19:12 +0000)]
Restructure agent code in preparation for decomp

This commit moves the L2 agents (Linuxbridge and OVS) into the
ML2 directory, while at the same time also moving the ML2 server
bits into toplevel directories. It also moves the configuration
files and unit tests. We also move the l2pop RPC mixin while
here as well.

DocImpact
UpgradeImpact

Partially-Implements: blueprint reference-implementation-split
Partial-Bug: #1468433
Closes-Bug: #1427317
Change-Id: If6feca7b7a6bdd6c3c6feb929fa26fb4b1f72770
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "linuxbridge: clean up README file"
Jenkins [Fri, 26 Jun 2015 14:45:53 +0000 (14:45 +0000)]
Merge "linuxbridge: clean up README file"

9 years agoFix ip_lib get_gateway for default gateway on an iface
sridhargaddam [Mon, 22 Jun 2015 14:13:56 +0000 (14:13 +0000)]
Fix ip_lib get_gateway for default gateway on an iface

Currently get_gateway() of IpRouteCommand class always assumes
the presence of gateway_ip when default_route is seen.
Since we can also have interface routes without the gw_ip,
this patch fixes the issue by parsing the output accordingly.

Closes-Bug: #1467531
Change-Id: Icf988994b61cbdeb1261c5a0887f29ced41ada07

9 years agofixing typo in gerrit query link in third party policies doc
Waldemar Znoinski [Fri, 26 Jun 2015 09:28:51 +0000 (09:28 +0000)]
fixing typo in gerrit query link in third party policies doc

Change-Id: Iaef37a58f85439a1a6c5c1ae071a223865479a8e

9 years agoUse last address in v6 allocation pool generation
Kevin Benton [Wed, 24 Jun 2015 13:50:48 +0000 (06:50 -0700)]
Use last address in v6 allocation pool generation

This reverts commit 1d61c5f736b9df7253a1939fe55f1875f988d1f4,
which reverted ee51ef72d37a02005a7733b7f2faf7236db850a1 due
to an issue with the allocation pools being mis-aligned with
the last address of a v6 subnet.

IPv6 does not have a subnet broadcast address so the last IP
address can be used as a regular address. This patch tweaks the
automatic allocation pool generation to include that last address
on v6 networks.

This was found because
NetworksTestDHCPv6.test_dhcp_stateful_fixedips_outrange makes the
assumption that the default generated pools cover the entire usable
address space.

Related-Bug: #1466322
Closes-Bug: #1468163
Change-Id: I5a2518c819757cd1fb43244901fe3e2f6c576b34

9 years agoMerge "Remove quantum untracked files from .gitignore"
Jenkins [Fri, 26 Jun 2015 08:24:56 +0000 (08:24 +0000)]
Merge "Remove quantum untracked files from .gitignore"

9 years agoMerge "Remove duplicated call to setup_coreplugin"
Jenkins [Fri, 26 Jun 2015 08:16:09 +0000 (08:16 +0000)]
Merge "Remove duplicated call to setup_coreplugin"

9 years agoMerge "Remove double mock of dhcp agent periodic check"
Jenkins [Fri, 26 Jun 2015 08:13:55 +0000 (08:13 +0000)]
Merge "Remove double mock of dhcp agent periodic check"

9 years agoMerge "Remove double fanout mock"
Jenkins [Fri, 26 Jun 2015 08:13:35 +0000 (08:13 +0000)]
Merge "Remove double fanout mock"

9 years agoMerge "Remove double callback manager mocks"
Jenkins [Fri, 26 Jun 2015 08:12:34 +0000 (08:12 +0000)]
Merge "Remove double callback manager mocks"

9 years agoMerge "Skip ARP protection if 0.0.0.0/0 in addr pairs"
Jenkins [Fri, 26 Jun 2015 07:45:21 +0000 (07:45 +0000)]
Merge "Skip ARP protection if 0.0.0.0/0 in addr pairs"

9 years agoExtend SubnetRequestFactory to access subnet dict
Pavel Bondar [Thu, 25 Jun 2015 13:52:08 +0000 (16:52 +0300)]
Extend SubnetRequestFactory to access subnet dict

SubnetRequestFactory incorporates logic for preparing arguments and
building right request.
Subnet dict, context and subnetpool are used to make decision on
what kind of reqest should be created.
SubnetRequestFactory can be overriden on ipam driver level,
it allows to easily extend existent Request model.

Partially-Implements: blueprint neutron-ipam

Change-Id: I9de120381172657a527bb35990d25525c41939ab

9 years agoMerge "Don't process network_delete events on OVS agent"
Jenkins [Fri, 26 Jun 2015 06:59:38 +0000 (06:59 +0000)]
Merge "Don't process network_delete events on OVS agent"

9 years agoMerge "Remove ensure_dirs double-patch"
Jenkins [Fri, 26 Jun 2015 05:51:59 +0000 (05:51 +0000)]
Merge "Remove ensure_dirs double-patch"

9 years agoMerge "Updated from global requirements"
Jenkins [Fri, 26 Jun 2015 05:47:00 +0000 (05:47 +0000)]
Merge "Updated from global requirements"