]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "Freescale ML2 driver code complete decomposition."
Jenkins [Wed, 25 Nov 2015 10:00:23 +0000 (10:00 +0000)]
Merge "Freescale ML2 driver code complete decomposition."

8 years agoMerge "Fix typo for OVSDB"
Jenkins [Wed, 25 Nov 2015 09:49:46 +0000 (09:49 +0000)]
Merge "Fix typo for OVSDB"

8 years agoFreescale ML2 driver code complete decomposition.
TrinathSomanchi [Tue, 24 Nov 2015 07:40:30 +0000 (13:10 +0530)]
Freescale ML2 driver code complete decomposition.

This removes all the artifacts specific to Freescale ML2 driver code
from the Neutron tree. The code is maintained at github repository.

Change-Id: I194a4da49058724766b7fde7343f85d19a75fe8c
Closes-Bug: #1519078

8 years agoMerge "Minor doc fix in alembic_migrations.rst"
Jenkins [Wed, 25 Nov 2015 03:44:03 +0000 (03:44 +0000)]
Merge "Minor doc fix in alembic_migrations.rst"

8 years agoFix typo for OVSDB
IWAMOTO Toshihiro [Wed, 25 Nov 2015 01:01:07 +0000 (10:01 +0900)]
Fix typo for OVSDB

Change-Id: If3de94d2b7747467c6d4b51a3c8b1960c35b1b7d

8 years agoMerge "Make Neutron resources reference standard attr table"
Jenkins [Tue, 24 Nov 2015 20:03:23 +0000 (20:03 +0000)]
Merge "Make Neutron resources reference standard attr table"

8 years agoMerge "Check gateway ip when update subnet"
Jenkins [Tue, 24 Nov 2015 18:09:15 +0000 (18:09 +0000)]
Merge "Check gateway ip when update subnet"

8 years agotox: pass TEMPEST_CONFIG_DIR envvar into api target environment
Ihar Hrachyshka [Tue, 24 Nov 2015 14:13:00 +0000 (15:13 +0100)]
tox: pass TEMPEST_CONFIG_DIR envvar into api target environment

Currently, API job skips all tests because TEMPEST_CONFIG_DIR is not set
properly. The environment variable was hardcoded to
/opt/stack/tempest/etc before, and since that's the location for tempest
configuration files that was used in gate, it worked fine there.

But after we were forced to remove the hardcoded value from the file due
to regression in tox 2.2.0+ (If3742b6eabe295a5aaeb4901c55909a70c451698),
it was neither hardcoded, nor passed from the external gate environment.

Note that since tox 2.0.0, the tool does not pass all envvars into tox
targets, but require explicit specification of the list of variables
that should be allowed into the target environment, using passenv
directive.

So that's what the patch does: it allows TEMPEST_CONFIG_DIR to get into
api tox target, which should be enough to make the API job avoid
skipping all tests.

Users are still required to set TEMPEST_CONFIG_DIR variable locally if
they want to execute the suite locally.

Closes-Bug: #1518632
Change-Id: Ia7dcc6785390a6012c7ba16a14573aa44f2b6fb5

8 years agoMerge "Deprecate l3-agent router_id option"
Jenkins [Tue, 24 Nov 2015 11:54:32 +0000 (11:54 +0000)]
Merge "Deprecate l3-agent router_id option"

8 years agoMinor doc fix in alembic_migrations.rst
Bo Chi [Tue, 24 Nov 2015 08:30:09 +0000 (03:30 -0500)]
Minor doc fix in alembic_migrations.rst

Added <commands> after neutron-db-manage
in doc/source/devref/alembic_migrations.rst

Change-Id: Id5af332e10424378f6fd8eeed1c8aa14846c1169

8 years agoMerge "Add hosted agents list to dhcp agent scheduler"
Jenkins [Tue, 24 Nov 2015 08:23:10 +0000 (08:23 +0000)]
Merge "Add hosted agents list to dhcp agent scheduler"

8 years agoMerge "Make sure we return unicode strings for process output"
Jenkins [Tue, 24 Nov 2015 05:13:18 +0000 (05:13 +0000)]
Merge "Make sure we return unicode strings for process output"

8 years agoMerge "Remove BigSwitch plugin and driver"
Jenkins [Tue, 24 Nov 2015 03:07:51 +0000 (03:07 +0000)]
Merge "Remove BigSwitch plugin and driver"

8 years agoMerge "devref: add upgrade strategy page"
Jenkins [Tue, 24 Nov 2015 02:25:40 +0000 (02:25 +0000)]
Merge "devref: add upgrade strategy page"

8 years agoMerge "IPAM: fix 'enable-dhcp' with internal driver"
Jenkins [Tue, 24 Nov 2015 00:19:55 +0000 (00:19 +0000)]
Merge "IPAM: fix 'enable-dhcp' with internal driver"

8 years agoDeprecate l3-agent router_id option
Cedric Brandily [Sun, 22 Nov 2015 22:22:58 +0000 (23:22 +0100)]
Deprecate l3-agent router_id option

L3-agent router_id option has been defined in order to associate a
l3-agent to a specific router when use_namespaces=False. The option
use_namespaces has been removed in Mitaka, so router_id option is no
longer needed and can be deprecated in order to prepare its removal in N
cycle.

Closes-Bug: #1518776
Change-Id: Id79499ccbf3ea69ca4cd7e4b2f812f6dbc0406e0

8 years agoMerge "Fix the end point test for client"
Jenkins [Mon, 23 Nov 2015 19:26:36 +0000 (19:26 +0000)]
Merge "Fix the end point test for client"

8 years agoMerge "Fix get_subnet_ids_on_router in dvr scheduler"
Jenkins [Mon, 23 Nov 2015 19:25:03 +0000 (19:25 +0000)]
Merge "Fix get_subnet_ids_on_router in dvr scheduler"

8 years agoMerge "IPAM: add in missing exception translations"
Jenkins [Mon, 23 Nov 2015 19:03:30 +0000 (19:03 +0000)]
Merge "IPAM: add in missing exception translations"

8 years agoMerge "Log error instead of exception trace"
Jenkins [Mon, 23 Nov 2015 18:57:20 +0000 (18:57 +0000)]
Merge "Log error instead of exception trace"

8 years agoMerge "neutron-db-manage: mark several options as deprecated"
Jenkins [Mon, 23 Nov 2015 15:56:47 +0000 (15:56 +0000)]
Merge "neutron-db-manage: mark several options as deprecated"

8 years agoMake Neutron resources reference standard attr table
Kevin Benton [Wed, 2 Sep 2015 23:37:17 +0000 (16:37 -0700)]
Make Neutron resources reference standard attr table

This adds a new 'standardattributes' table and adds a foreign-key
references from ports, subnets, networks, subnetpools, routers,
securitygroups, and floatingips to this table.

This will make it easy to add new things to the schema like
timestamp fields or anything else that applies to multiple types
of Neutron resources. The new fields would just be added to the
'neutronresources' table instead of being duplicated across each
resource's table. Or, if the the relationship is 1-to-many (e.g. tags),
the new association table would be related to the 'standardattribute'
table.

Related-Bug: #1496802
Change-Id: Iaa3ba81a7e9cae09cea153720b29879d8cc9a080

8 years agodevref: add upgrade strategy page
Ihar Hrachyshka [Wed, 4 Nov 2015 16:53:16 +0000 (17:53 +0100)]
devref: add upgrade strategy page

The page is intended to describe current upgrade features Neutron
supports, lay out potential improvements, describe testing strategy for
existing and planned upgrade features, and provide guidelines to
reviewers on where to look for potential upgrade breakages in proposed
patches.

Change-Id: I22e55bb2fe32b32d12fa5889b91ecb9f92b3e6a6

8 years agoLog error instead of exception trace
Gary Kotton [Sat, 21 Nov 2015 07:29:46 +0000 (23:29 -0800)]
Log error instead of exception trace

In impl_vsctl we rather use LOG.error instead of
LOG.exception. In these case the exception trace did not provide
any valuable information.

Change-Id: Ia02f000d460b3aee72a31e9963e5d0e0d4c68315
Closes-bug: #1518429

8 years agoneutron-db-manage: mark several options as deprecated
Ihar Hrachyshka [Fri, 20 Nov 2015 16:20:09 +0000 (17:20 +0100)]
neutron-db-manage: mark several options as deprecated

I believe we don't rely on --core_plugin or --quota_driver for the tool
because database contents are independent of chosen plugins and drivers
since ~Juno.

Also marked --service with deprecated_for_removal=True.

Related-Bug: #1501380
Change-Id: I2b4d98242a0d38843d931a71414ef2560a7ddb8f

8 years agoMerge "Make fullstack test_connectivity tests more forgiving"
Jenkins [Mon, 23 Nov 2015 10:13:27 +0000 (10:13 +0000)]
Merge "Make fullstack test_connectivity tests more forgiving"

8 years agoCheck gateway ip when update subnet
shihanzhang [Sat, 31 Oct 2015 09:01:48 +0000 (17:01 +0800)]
Check gateway ip when update subnet

If a IP address is None, the method netaddr.IPAddress will raise a
error as 'failed to detect a valid IP address from None'.
When it updates subnet, if gateway_ip is None, it should not call the
method validate_gw_out_of_pools.

Change-Id: Ibb007fe7e6402c174129074288b8af891182cd68
Closes-bug: #1511925

8 years agoMerge "neutron-db-manage: expose alembic 'heads' command"
Jenkins [Sun, 22 Nov 2015 21:37:54 +0000 (21:37 +0000)]
Merge "neutron-db-manage: expose alembic 'heads' command"

8 years agoMerge "Fix alignment in message"
Jenkins [Sun, 22 Nov 2015 20:22:06 +0000 (20:22 +0000)]
Merge "Fix alignment in message"

8 years agoIPAM: add in missing exception translations
Gary Kotton [Sun, 22 Nov 2015 14:25:47 +0000 (06:25 -0800)]
IPAM: add in missing exception translations

Adds in some missing translations.

TrivialFix

Change-Id: Ic4e1a01baa7052d3939391e731353a02ca4a70c1

8 years agoMerge "Keep reading stdout/stderr until after kill"
Jenkins [Sun, 22 Nov 2015 10:34:04 +0000 (10:34 +0000)]
Merge "Keep reading stdout/stderr until after kill"

8 years agoRemove BigSwitch plugin and driver
Kanzhe Jiang [Thu, 22 Oct 2015 05:09:36 +0000 (22:09 -0700)]
Remove BigSwitch plugin and driver

The BigSwitch Vendor plugin and driver are in
openstack/networking-bigswitch repo and will be moved to
Openstack bigtent. This patch removes the duplicated code and
corresponding entry points. It also moves the bigswitch specific
db tables to openstack/networking-bigswitch.
Closes-Bug: #1508781

Change-Id: I180d93f3e7da347c9b042fcc3f79f19e9a471f52

8 years agoMerge "Switch to using neutron.common.utils:replace_file()"
Jenkins [Sat, 21 Nov 2015 20:05:22 +0000 (20:05 +0000)]
Merge "Switch to using neutron.common.utils:replace_file()"

8 years agoAdd Access Control bug tag
armando-migliaccio [Fri, 20 Nov 2015 23:06:17 +0000 (15:06 -0800)]
Add Access Control bug tag

Provide tag for bugs that affect the role based access control
and the Neutron policy layers (driven by policy.json).

Change-Id: Ia4259d53974996a83d380e778309aea2d7cb29cd

8 years agoMerge "Fix misspelled word in docstring"
Jenkins [Sat, 21 Nov 2015 01:36:33 +0000 (01:36 +0000)]
Merge "Fix misspelled word in docstring"

8 years agoMerge "Add index entry to vhost documentation"
Jenkins [Sat, 21 Nov 2015 00:09:48 +0000 (00:09 +0000)]
Merge "Add index entry to vhost documentation"

8 years agoMerge "Remove misplaced copyright attribution"
Jenkins [Fri, 20 Nov 2015 23:35:03 +0000 (23:35 +0000)]
Merge "Remove misplaced copyright attribution"

8 years agoAdd index entry to vhost documentation
armando-migliaccio [Fri, 20 Nov 2015 23:08:53 +0000 (15:08 -0800)]
Add index entry to vhost documentation

Change-Id: Ice42d1ab3456fdee73d6fa40b2cc69d961b137c8

8 years agoMerge "Reorganize and improve l3_agent functional tests"
Jenkins [Fri, 20 Nov 2015 22:21:23 +0000 (22:21 +0000)]
Merge "Reorganize and improve l3_agent functional tests"

8 years agoMerge "Add vhost-user support via ovs capabilities/datapath_type"
Jenkins [Fri, 20 Nov 2015 22:13:05 +0000 (22:13 +0000)]
Merge "Add vhost-user support via ovs capabilities/datapath_type"

8 years agoMerge "Use compare-and-swap for IpamAvailabilityRange"
Jenkins [Fri, 20 Nov 2015 22:05:59 +0000 (22:05 +0000)]
Merge "Use compare-and-swap for IpamAvailabilityRange"

8 years agoMerge "Fix use of fields argument in get_rbac_policies"
Jenkins [Fri, 20 Nov 2015 21:52:50 +0000 (21:52 +0000)]
Merge "Fix use of fields argument in get_rbac_policies"

8 years agoMake fullstack test_connectivity tests more forgiving
Assaf Muller [Fri, 20 Nov 2015 21:42:38 +0000 (16:42 -0500)]
Make fullstack test_connectivity tests more forgiving

Change assert_ping to block_until_ping.

Closes-Bug: #1518466

Change-Id: I233cb40e701ef462e9d570d9677da1cbcc2c91c8

8 years agoFix get_subnet_ids_on_router in dvr scheduler
Stephen Eilert [Wed, 18 Nov 2015 00:49:19 +0000 (16:49 -0800)]
Fix get_subnet_ids_on_router in dvr scheduler

Added a check to verify if we do have any elements in the list of
fixed_ips, before trying to retrieve the first element of the list, to
get the subnet id. There were no checks in the original code, so it
would crash.

Change-Id: If32db500aa3a0c299a5f19c33c05237e8e407e08
Closes-Bug: 1452458

8 years agoRemove misplaced copyright attribution
Salvatore Orlando [Fri, 20 Nov 2015 17:52:16 +0000 (09:52 -0800)]
Remove misplaced copyright attribution

the module neutron.api.extension has a copyright attribute to a user
who never contributed a line to this module. It was probably copied
over in the initial commit for the module.

This commit is probably quite pointless; however it removes a little
oddity and does no harm to anyone.

Change-Id: I985bf2cb0538a795464dfe783108f218f821d762

8 years agoFix misspelled word in docstring
Yi Zhao [Fri, 20 Nov 2015 03:16:42 +0000 (11:16 +0800)]
Fix misspelled word in docstring

This patch fixes the misspelling of dictionary several times
in docstrings.

Change-Id: I5c992c8cdbca79d8e7a28f0af5e7600614fa1e2b

8 years agoneutron-db-manage: expose alembic 'heads' command
Ihar Hrachyshka [Fri, 20 Nov 2015 16:35:10 +0000 (17:35 +0100)]
neutron-db-manage: expose alembic 'heads' command

This command shows current heads in all alembic branches. Even without
the command, we *can* get the heads values by looking into *_HEAD files
in tree. Still, those files may be missing; and the command is a tiny
bit more easy to use. Also, it gives access to more details on head
revisions if used with --verbose.

Change-Id: I6e7b7b5cd6f704d5d4bb4d845bf5098d4045924a

8 years agoReorganize and improve l3_agent functional tests
Manjeet Singh Bhatia [Mon, 9 Nov 2015 22:03:15 +0000 (22:03 +0000)]
Reorganize and improve l3_agent functional tests

This will reorganize the l3_agent functional tests

Change-Id: I10008fd7216c8de47162657e280b7245c38f5154
Closes-Bug: #1501150

8 years agoMake sure we return unicode strings for process output
Ihar Hrachyshka [Wed, 11 Nov 2015 12:59:22 +0000 (13:59 +0100)]
Make sure we return unicode strings for process output

Process output is supposed to be represented with lines, so we should
put Python strings in the queue (not bytes). Just in case, we do it only
for Python 3 environment.

To fix that, we reuse code from utils.execute() linux/windows
implementations.

This fixes the TestAsyncProcess.test_async_process_respawns functional
test for Python 3 environment.

Related-Bug: #1515118
Change-Id: I9efec2290003add44909aab33a0026372a580016

8 years agoMerge "Use SIGUSR1 to notify l3 agent of changing prefix file"
Jenkins [Fri, 20 Nov 2015 10:10:40 +0000 (10:10 +0000)]
Merge "Use SIGUSR1 to notify l3 agent of changing prefix file"

8 years agoUse compare-and-swap for IpamAvailabilityRange
Pavel Bondar [Tue, 20 Oct 2015 16:11:30 +0000 (19:11 +0300)]
Use compare-and-swap for IpamAvailabilityRange

Existing locking mechanism 'select for update' causes
deadlocks with galera multi-writers.
Replaced locking rows with compare-and-swap approach.

Compare-and-swap verifies that row is not changed by
another thread before updating/deleting it.
Filter-and-update and filter-and-delete are used.
They return count of affected rows.
If count of affected row is less than expected,
then another thread already changed our row
and RetryRequest is raised.

Change-Id: I514cae0fa43033433ec2982bcf3726e02e6692bf
Closes-Bug: #1494351

8 years agoMerge "Replace neutron-specific LengthStrOpt with StrOpt"
Jenkins [Fri, 20 Nov 2015 09:49:33 +0000 (09:49 +0000)]
Merge "Replace neutron-specific LengthStrOpt with StrOpt"

8 years agoReplace neutron-specific LengthStrOpt with StrOpt
Akihiro Motoki [Fri, 20 Nov 2015 05:08:34 +0000 (14:08 +0900)]
Replace neutron-specific LengthStrOpt with StrOpt

max_length option was added to StrOpt in oslo.config 2.7.0.
Neutron-specific LengthStrOpt is no longer required.

Change-Id: Icfecb5c8c68c942fca847e27a0c1862f18bdcdca
Closes-Bug: #1518178

8 years agoMerge "Updated from global requirements"
Jenkins [Fri, 20 Nov 2015 04:52:59 +0000 (04:52 +0000)]
Merge "Updated from global requirements"

8 years agoFix use of fields argument in get_rbac_policies
Kevin Benton [Fri, 20 Nov 2015 04:37:05 +0000 (20:37 -0800)]
Fix use of fields argument in get_rbac_policies

The 'fields' argument wasn't being passed into the _get_collection
call so the results were always coming back with all of the fields.
This adds an API test to prevent a regression.

Change-Id: Iddef9dcc7639a557a9d19dc7265f10f98e002172
Closes-Bug: #1517815

8 years agoMerge "Fix Neutron flavor framework"
Jenkins [Fri, 20 Nov 2015 01:28:50 +0000 (01:28 +0000)]
Merge "Fix Neutron flavor framework"

8 years agoMerge "Ensure l3 agent receives notification about added router"
Jenkins [Fri, 20 Nov 2015 01:23:34 +0000 (01:23 +0000)]
Merge "Ensure l3 agent receives notification about added router"

8 years agoMerge "Send 50% less debug information when executing cmd"
Jenkins [Fri, 20 Nov 2015 00:03:04 +0000 (00:03 +0000)]
Merge "Send 50% less debug information when executing cmd"

8 years agoMerge "Fix dashboard graphite URLs"
Jenkins [Thu, 19 Nov 2015 23:59:40 +0000 (23:59 +0000)]
Merge "Fix dashboard graphite URLs"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 19 Nov 2015 22:55:15 +0000 (22:55 +0000)]
Updated from global requirements

Change-Id: Ie65f1be17c1be843d4aa7c09c88edb0535dfae79

8 years agoMerge "Datapath on L2pop only for agents with tunneling-ip"
Jenkins [Thu, 19 Nov 2015 22:40:39 +0000 (22:40 +0000)]
Merge "Datapath on L2pop only for agents with tunneling-ip"

8 years agoFix dashboard graphite URLs
Ryan Moats [Thu, 19 Nov 2015 21:23:43 +0000 (15:23 -0600)]
Fix dashboard graphite URLs

The update to openstack graphite data is now storing nulls instead
of high frequency zero values. Therefore, make the following changes:

1. use stats_counts instead of stats data, as this accesses the raw
counters
2. apply transformNull to all data series so that null -> 0 is handled
correctly
3. add a global drawNullAsZero=true to handle discontinuities

Thanks to jeblair and sdague for tracking this down

Change-Id: Idebc046d7d867d80e2afe1c4b86c526f9205d3d5
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
8 years agoFix Neutron flavor framework
James Arendt [Tue, 1 Sep 2015 22:27:26 +0000 (15:27 -0700)]
Fix Neutron flavor framework

Make flavor service profile store actual driver instead of
hardcoded dummy driver.  Ensure service type on flavor persisted.

Raise ServiceProfileDriverNotFound if non-empty driver is not part
of ServiceTypeManager providers.

Raise ServiceProfileEmpty if profile has neither a driver nor
any metainfo.

Raise InvalidFlavorServiceType if invalid service type passed.

Show flavors associated with a profile, not just profiles associated
with a flavor, to ease diagnosis when ServiceProfileInUse raised.

Create method to extract provider given a flavor for use with
neutron-lbaas plus tests.

Ensure various boolean forms accepted for enabled flag.

To enable in DevStack, add to local.conf:
enable_plugin neutron https://git.openstack.org/openstack/neutron
enable_service q-flavors

Add associated unit tests. Fix tempest api test that used invalid
LOADBALANCERS service type.

Change-Id: I5c22ab655a8e2a2e586c10eae9de9b72db49755f
Implements: blueprint neutron-flavor-framework

8 years agoKeep reading stdout/stderr until after kill
John Schwarz [Wed, 14 Oct 2015 12:39:33 +0000 (15:39 +0300)]
Keep reading stdout/stderr until after kill

Currently, when calling AsyncProcess.stop(), the code stops the stdout
and stderr readers and kills the process. There exists an end case (as
described in the bug report) in which after the readers have been
stopped the sub-process will generate a substantial amount of outputs to
either fd. Since the 'subprocess' module is launched with
subprocess.PIPE as stdout/stderr, and since Linux's pipes can be filled
to the point where writing new data to them will block, this may cause a
deadlock if the sub-process has a signal handler for the signal (for
example, the process is handling SIGTERM to produce a graceful exit of
the program).

Therefore, this patch proposes to only kill the readers until AFTER
wait() returned and the process truly died. Also, relying on _kill_event
had to cease since invoking its send() method caused a logical loop back
to _kill, causing eventlet errors.

A different possible solution is closing the stdout/stderr pipes. Alas,
this may raise an exception in the sub-process ("what? No stdout?!
Crash!") and defeats the 'graceful' part of the process.

Closes-Bug: #1506021
Change-Id: I506c41c634a8d656d81a8ad7963412b834bdfa5b

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 19 Nov 2015 15:57:59 +0000 (15:57 +0000)]
Updated from global requirements

Change-Id: I9f661917d8c4184aae76ba4115cd231151cf3e99

8 years agoFix the end point test for client
Manjeet Singh Bhatia [Thu, 19 Nov 2015 15:51:05 +0000 (15:51 +0000)]
Fix the end point test for client

Due to recent change in neutronclient the endpoint value got changes
in following patch.

https://review.openstack.org/#/c/236325/

This patch will test both public or publicURL endpoints.

Change-Id: I0dffb06c5151203e9fe2ab041a7beb028a39aac0
Closes-bug: #1517579

8 years agoMerge "Remove deprecated use_namespaces option"
Jenkins [Thu, 19 Nov 2015 14:45:43 +0000 (14:45 +0000)]
Merge "Remove deprecated use_namespaces option"

8 years agoIPAM: fix 'enable-dhcp' with internal driver
Gary Kotton [Wed, 18 Nov 2015 16:26:18 +0000 (08:26 -0800)]
IPAM: fix 'enable-dhcp' with internal driver

Commit 0c1f96ad5a6606c1205bd50ea944c3a383892cde broke the ipam
internal driver. The base plugin should only call the ipam interface
and not invoke the IPallocation data model.

The code that validated that the subnet had one free IP address was
removed. This would not guarantee that a port would indeed be free,
that is, a parallel operation could have created a port on the subnet
during this check.

Closes-bug: #1514810

Change-Id: I4d7ecb985762a8eef39cb2f22f210b4899f1a22e

8 years agoMerge "Resync L3, DHCP and OVS/LB agents upon revival"
Jenkins [Thu, 19 Nov 2015 12:21:51 +0000 (12:21 +0000)]
Merge "Resync L3, DHCP and OVS/LB agents upon revival"

8 years agoSend 50% less debug information when executing cmd
John Schwarz [Thu, 12 Nov 2015 14:05:19 +0000 (16:05 +0200)]
Send 50% less debug information when executing cmd

The current code prints out the command it runs twice: once in
'create_process' or 'execute_rootwrap_daemon', and once after the
command has finished executing and a return code is returned. Since this
is synchronous, there is no need to print the command twice in a row, so
this patch deletes the latter one, leaving only the exit code to be
printed.

This patch also refactors the surrounding code to make it more readable.

Change-Id: I22289f838dbc3956a777a78c882e4d5f1e725d0e

8 years agoFix alignment in message
lizhixin3016 [Mon, 16 Nov 2015 17:30:46 +0000 (01:30 +0800)]
Fix alignment in message

Change-Id: I4281ca9ced3a269e81a55c5167cf8a8b0203bfe4

8 years agoDatapath on L2pop only for agents with tunneling-ip
Hong Hui Xiao [Wed, 28 Oct 2015 07:28:27 +0000 (03:28 -0400)]
Datapath on L2pop only for agents with tunneling-ip

This patch is a regression issue for patch[1].

Only those agents which expose tunneling-ip will be considered in
determining data-path tunnels in deployments with l2pop ON.

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

Change-Id: I7c3b911d5e7448b4e8dee15bb50df33a6e9d5cfe
Closes-Bug: #1407959

8 years agoAdd hosted agents list to dhcp agent scheduler
Hirofumi Ichihara [Tue, 17 Nov 2015 02:29:07 +0000 (11:29 +0900)]
Add hosted agents list to dhcp agent scheduler

Availability zone aware dhcp scheduler uses hosted agents list
to schedule dhcp agent to proper availability zone.
The scheduler can avoid scheduling the same availalibity zone as
agents host a network which should be distributed for HA.

Change-Id: Ib01f6d852956dc1e89b83321d657c0baf829e28a
Partially-implements: blueprint add-availability-zone

8 years agoMerge "Add a better description for notification_driver"
Jenkins [Wed, 18 Nov 2015 20:28:57 +0000 (20:28 +0000)]
Merge "Add a better description for notification_driver"

8 years agoMerge "Disable IPv6 on bridge devices in LinuxBridgeManager"
Jenkins [Wed, 18 Nov 2015 20:24:12 +0000 (20:24 +0000)]
Merge "Disable IPv6 on bridge devices in LinuxBridgeManager"

8 years agoAdd vhost-user support via ovs capabilities/datapath_type
Terry Wilson [Thu, 15 Oct 2015 23:50:40 +0000 (18:50 -0500)]
Add vhost-user support via ovs capabilities/datapath_type

Adds the ovs 'config' property which returns the contents of the
single row of the Open_vSwitch table. This gives access to certain
OVS capabilities such as datapath_types and iface_types.

Using this information in concert with the datapath_type config
option, vif details are calculated by the OVS mech driver. If
datapath_type == 'netdev' and OVS on the agent host is capable of
supporting dpdkvhostuser, then it is used.

Authored-By: Terry Wilson <twilson@redhat.com>
Co-Authored-By: Sean Mooney <sean.k.mooney@intel.com>
Closes-Bug: #1506127
Change-Id: I5047f1d1276e2f52ff02a0cba136e222779d059c

8 years agoRemove deprecated use_namespaces option
Cedric Brandily [Wed, 21 Oct 2015 18:52:40 +0000 (20:52 +0200)]
Remove deprecated use_namespaces option

The use_namespaces option has been defined as a workaround to kernels
not properly supporting namespaces. This limitation is behind us, it's
time to remove use_namespaces after its deprecation in Kilo in order to
simplify code and remove a poorly tested case (use_namespaces=False).

This change prepares for removal pullup_route method[1] which was only
used when use_namespaces=False.

[1] neutron.agent.linux.ip_lib

DocImpact
UpgradeImpact
Closes-Bug: #1508188
Related-Bug: #1435382
Depends-On: I303038eec560a6d99421140c2822aed8b518470b
Depends-On: I4feb2a15c7e1e4bfdbed2531b18b8e7d798ab3cc
Change-Id: I2fbf65df1250d9f9f1656b3964ee3b6de1ef1118

8 years agoMerge "Update networking-powervm sub-project docs"
Jenkins [Wed, 18 Nov 2015 15:56:32 +0000 (15:56 +0000)]
Merge "Update networking-powervm sub-project docs"

8 years agoMerge "Remove SysV init script for neutron-server"
Jenkins [Wed, 18 Nov 2015 15:39:24 +0000 (15:39 +0000)]
Merge "Remove SysV init script for neutron-server"

8 years agoMerge "Use get_interface_bridge instead of get_bridge_for_tap_device"
Jenkins [Wed, 18 Nov 2015 14:09:59 +0000 (14:09 +0000)]
Merge "Use get_interface_bridge instead of get_bridge_for_tap_device"

8 years agoMerge "Elaborate how priorities are assigned to blueprints"
Jenkins [Wed, 18 Nov 2015 13:59:04 +0000 (13:59 +0000)]
Merge "Elaborate how priorities are assigned to blueprints"

8 years agoResync L3, DHCP and OVS/LB agents upon revival
Eugene Nikanorov [Mon, 12 Oct 2015 09:59:01 +0000 (13:59 +0400)]
Resync L3, DHCP and OVS/LB agents upon revival

In big and busy clusters there could be a condition when
rabbitmq clustering mechanism synchronizes queues and during
this period agents connected to that instance of rabbitmq
can't communicate with the server and server considers them
dead moving resources away. After agent become active again,
it needs to cleanup state entries and synchronize its state
with neutron-server.
The solution is to make agents aware of their state from
neutron-server point of view. This is done by changing state
reports from cast to call that would return agent's status.
When agent was dead and becomes alive, it would receive special
AGENT_REVIVED status indicating that it should refresh its
local data which it would not do otherwise.

Closes-Bug: #1505166
Change-Id: Id28248f4f75821fbacf46e2c44e40f27f59172a9

8 years agoMerge "Updated from global requirements"
Jenkins [Wed, 18 Nov 2015 06:20:38 +0000 (06:20 +0000)]
Merge "Updated from global requirements"

8 years agoMerge "Add fullstack testing doc content"
Jenkins [Wed, 18 Nov 2015 01:36:26 +0000 (01:36 +0000)]
Merge "Add fullstack testing doc content"

8 years agoMerge "Firewall: fix typo"
Jenkins [Wed, 18 Nov 2015 01:07:24 +0000 (01:07 +0000)]
Merge "Firewall: fix typo"

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Wed, 18 Nov 2015 00:20:10 +0000 (00:20 +0000)]
Updated from global requirements

Change-Id: I84d6a701985e25137a06299b28e306e0a65e70a4

8 years agoMerge "Add networking-infoblox sub-project"
Jenkins [Tue, 17 Nov 2015 23:09:35 +0000 (23:09 +0000)]
Merge "Add networking-infoblox sub-project"

8 years agoMerge "Fix dvr_local_router.floating_ip_added_dist failure after agent restart"
Jenkins [Tue, 17 Nov 2015 22:11:45 +0000 (22:11 +0000)]
Merge "Fix dvr_local_router.floating_ip_added_dist failure after agent restart"

8 years agoMerge "Use DEVICE_OWNER_* for 'network:*' constants"
Jenkins [Tue, 17 Nov 2015 21:18:42 +0000 (21:18 +0000)]
Merge "Use DEVICE_OWNER_* for 'network:*' constants"

8 years agoMerge "Don't add default route to HA router if there is no gateway ip"
Jenkins [Tue, 17 Nov 2015 21:07:48 +0000 (21:07 +0000)]
Merge "Don't add default route to HA router if there is no gateway ip"

8 years agoMerge "Fix the indentation issue"
Jenkins [Tue, 17 Nov 2015 18:35:07 +0000 (18:35 +0000)]
Merge "Fix the indentation issue"

8 years agoMerge "Avoid race condition for reserved DHCP ports"
Jenkins [Tue, 17 Nov 2015 18:30:10 +0000 (18:30 +0000)]
Merge "Avoid race condition for reserved DHCP ports"

8 years agoAdd networking-infoblox sub-project
John Belamaric [Thu, 12 Nov 2015 19:07:22 +0000 (14:07 -0500)]
Add networking-infoblox sub-project

Add the subproject to the documentation of affiliated
projects, and add a short description of ipam to the
functionality legend.

Add networking-infoblox Lieutenant information.

Change-Id: I0daf6068c5b78331558bc7b2bd015c456d772249

8 years agoFirewall: fix typo
Gary Kotton [Tue, 17 Nov 2015 13:14:56 +0000 (05:14 -0800)]
Firewall: fix typo

Changes devices_with_udpated_sg_members to
devices_with_updated_sg_members

TrivialFix

Change-Id: I3da9bf1fc108db9a4cbb2701b0363d92d426d7e7
Closes-bug: #1517018

8 years agoFix the indentation issue
guiyanxing [Tue, 17 Nov 2015 09:12:51 +0000 (17:12 +0800)]
Fix the indentation issue

This patch fixs the indentation issue to comply with pep8 style.

Change-Id: Ia6e70d226bfaf48b60e07acf611162dbe56ff5ec

8 years agoMerge "Remove unused delete_dvr_mac_address method"
Jenkins [Tue, 17 Nov 2015 08:45:29 +0000 (08:45 +0000)]
Merge "Remove unused delete_dvr_mac_address method"

8 years agoElaborate how priorities are assigned to blueprints
armando-migliaccio [Wed, 11 Nov 2015 21:05:46 +0000 (13:05 -0800)]
Elaborate how priorities are assigned to blueprints

Prioritizing is hard, and prioritizing in open source, let
alone Openstack, is even harder.

For this reason, this proposal attempts to clarify what priority
mean, how we prioritize in Neutron, in a way that's objective,
consistent, and reproducible. To start with, and make things slightly
simpler, we reduce the number of priority buckets we can choose from
to two: High and Low.

The way priorities are assigned is then based on a set of clearly defined
criteria: high priority work items are items that all core folks
collectively should care about because any failure in achieving tangible
result make them look bad. Low work items are great to have, but if they
slipped, it would be a shame but not the end of the world.

Keep on reading to learn more.

Change-Id: I0f4ba622eb3d8e02b0c3204967fb8eae22db09c8

8 years agoMerge "Revert "Move dhcp_lease_duration into DHCP agent config options list""
Jenkins [Tue, 17 Nov 2015 05:29:34 +0000 (05:29 +0000)]
Merge "Revert "Move dhcp_lease_duration into DHCP agent config options list""

8 years agoDon't add default route to HA router if there is no gateway ip
Hong Hui Xiao [Sun, 15 Nov 2015 09:06:45 +0000 (04:06 -0500)]
Don't add default route to HA router if there is no gateway ip

When adding an external network with no gateway ip to a HA router,
l3 agent will report exception. The exception comes from the code
of adding default route to HA router. However, if there is no
gateway ip in the external network, there is no need to add such
route.

Change-Id: I41d6a292c903758f408d3d93a64dca7adeeb5769
Closes-Bug: #1515209

8 years agoAdd a better description for notification_driver
Dongcan Ye [Mon, 16 Nov 2015 15:42:37 +0000 (23:42 +0800)]
Add a better description for notification_driver

Improve description for the notification_driver
property in neutron.conf, so users will understand
how to configure it correctly.

Change-Id: Ib5d4c4b6eea5cabf58708d8201f9ff9c883b6c97