]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoMerge "L3: add missing space to log message"
Jenkins [Wed, 2 Dec 2015 15:20:36 +0000 (15:20 +0000)]
Merge "L3: add missing space to log message"

8 years agoMerge "Optimize "open" method with context manager"
Jenkins [Wed, 2 Dec 2015 14:30:33 +0000 (14:30 +0000)]
Merge "Optimize "open" method with context manager"

8 years agoOptimize "open" method with context manager
xiexs [Fri, 27 Nov 2015 08:41:52 +0000 (03:41 -0500)]
Optimize "open" method with context manager

Replace the classic open() method with opening context
manager to open file so that the file will be closed
even if an exception occurs.

Change-Id: I0d53b7a38fee6a2ef8ce74496d220adc954afb98

8 years agoL3: add missing space to log message
Gary Kotton [Tue, 1 Dec 2015 13:07:47 +0000 (05:07 -0800)]
L3: add missing space to log message

Commit 5fcfa65d974ba44924dcee89f7a7ccf195a1c606 added a log
message that did not have a space.

Change-Id: Ie18bdb95331deb317dbe6855f0d8594d5fc272b2

8 years agoMerge "l3_db: it updates port attribute without L2 plugin"
Jenkins [Wed, 2 Dec 2015 00:08:07 +0000 (00:08 +0000)]
Merge "l3_db: it updates port attribute without L2 plugin"

8 years agoMerge "DVR:don't reschedule the l3 agent running on compute node"
Jenkins [Wed, 2 Dec 2015 00:07:47 +0000 (00:07 +0000)]
Merge "DVR:don't reschedule the l3 agent running on compute node"

8 years agoMerge "lb: avoid doing nova VIF work plumbing tap to qbr"
Jenkins [Tue, 1 Dec 2015 18:27:19 +0000 (18:27 +0000)]
Merge "lb: avoid doing nova VIF work plumbing tap to qbr"

8 years agoDVR:don't reschedule the l3 agent running on compute node
Oleg Bondarev [Wed, 25 Nov 2015 12:14:18 +0000 (15:14 +0300)]
DVR:don't reschedule the l3 agent running on compute node

For a DVR router, when it updates router gateway_ip, it should not
reschedule the l3 agents running on compute nodes whose mode is dvr,
it just need to reschedule the l3 agents running on network nodes
whose mode is dvr_snat.

Change-Id: Ib8ea6797c88cefb473eff9a8a7b2517a6aa90ca4
Closes-bug: #1496204
Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
8 years agoMerge "Change check_ports_exist_on_l3agent to pass the subnet_ids"
Jenkins [Tue, 1 Dec 2015 09:23:53 +0000 (09:23 +0000)]
Merge "Change check_ports_exist_on_l3agent to pass the subnet_ids"

8 years agoMerge "Refactor OVS-agent init-method"
Jenkins [Tue, 1 Dec 2015 06:02:27 +0000 (06:02 +0000)]
Merge "Refactor OVS-agent init-method"

8 years agoMerge "Move a note to bridge_lib"
Jenkins [Tue, 1 Dec 2015 04:53:50 +0000 (04:53 +0000)]
Merge "Move a note to bridge_lib"

8 years agoMerge "Remove transparent VLAN support from base plugin"
Jenkins [Tue, 1 Dec 2015 01:19:59 +0000 (01:19 +0000)]
Merge "Remove transparent VLAN support from base plugin"

8 years agoMerge "Correct unwatch_log to support python <= 2.7.5"
Jenkins [Tue, 1 Dec 2015 00:41:38 +0000 (00:41 +0000)]
Merge "Correct unwatch_log to support python <= 2.7.5"

8 years agoMerge "Add UnionModel support to filter query generator"
Jenkins [Tue, 1 Dec 2015 00:40:55 +0000 (00:40 +0000)]
Merge "Add UnionModel support to filter query generator"

8 years agol3_db: it updates port attribute without L2 plugin
Isaku Yamahata [Wed, 15 Jul 2015 19:17:48 +0000 (12:17 -0700)]
l3_db: it updates port attribute without L2 plugin

L3_NAT_dbonly_mixin._add_interface_by_port update Port.owner
db entry directly without notifying l2 plugin.
Thus L2 plugin/ML2 mechanism driver will be confused when
interface is attached to router by port because port owner is different.
Use L2 plugin update_port method to update port:owner.

Change-Id: If0178887282456842b6078a851a9233cb58a391a
Closes-Bug: #1475093

8 years agoMerge "Update 'Contributing Extensions' devref for Mitaka"
Jenkins [Tue, 1 Dec 2015 00:23:42 +0000 (00:23 +0000)]
Merge "Update 'Contributing Extensions' devref for Mitaka"

8 years agoMerge "Support Unicode request_id on Python 3"
Jenkins [Mon, 30 Nov 2015 23:41:01 +0000 (23:41 +0000)]
Merge "Support Unicode request_id on Python 3"

8 years agoChange check_ports_exist_on_l3agent to pass the subnet_ids
Swaminathan Vasudevan [Thu, 5 Nov 2015 02:02:09 +0000 (18:02 -0800)]
Change check_ports_exist_on_l3agent to pass the subnet_ids

The get_subnet_ids_on_router is called for every
available l3agent in check_ports_exist_on_l3agent.
This introduces un-necessary call to the same
function multiple times which is expensive since it
calls get_ports internally.

In large scale the time taken to schedule a VM
on a given N-Node increases.

By passing the subnet_ids to check_ports_exist_on_l3agent
we would be only calling once get_subnet_ids_on_router in
the get_l3_agent_candidates.

This patch addresses the above problem by calling
get_subnet_ids_on_router just once.

Change-Id: I9d130f98e07bfe571eee32b827ff9af4010ff0fb
Related-Bug: #1513678

8 years agolb: avoid doing nova VIF work plumbing tap to qbr
Andreas Scheuring [Wed, 11 Nov 2015 13:03:08 +0000 (14:03 +0100)]
lb: avoid doing nova VIF work plumbing tap to qbr

neutron should rely on nova doing the job instead of trying to 'fix' it.
'Fixing' it introduces race conditions between lb agent and nova VIF
driver. Particularly, lb agent can scan for new tap devices in the
middle of nova plumbing qbr-tap setup, and attempt to do it on its own.
So if agent is more lucky to plug the tap device into the bridge, nova
may fail to do the same, getting the following error:

libvirtError: Unable to add bridge brqxxx-xx port tapxxx-xx: Device or
resource busy

This also requires a change in how the port admin_state_up is implemented
by setting the tap device's link state instead of moving it in or out
of the bridge.

Co-Authored-By: Sean M. Collins <sean@coreitpro.com>
Co-Authored-By: Darragh O'Reilly <darragh.oreilly@hp.com>
Co-Authored-By: Andreas Scheuring <andreas.scheuring@de.ibm.com>
Change-Id: I02971103407b4ec11a65218e9ef7e2708915d938
Closes-Bug: #1312016

8 years agoUpdate 'Contributing Extensions' devref for Mitaka
Henry Gessau [Sun, 18 Oct 2015 17:32:09 +0000 (13:32 -0400)]
Update 'Contributing Extensions' devref for Mitaka

The "Liberty Steps" are now completed.

Change-Id: I4526be2e75bdd475c98805d1192d9e2486217ee6

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Sun, 29 Nov 2015 06:23:53 +0000 (06:23 +0000)]
Imported Translations from Zanata

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

Change-Id: Id4a6910c57c6d682537c7b9b9bfd2f5a127539e7

8 years agoMerge "Update toctree of neutron document"
Jenkins [Sat, 28 Nov 2015 14:42:09 +0000 (14:42 +0000)]
Merge "Update toctree of neutron document"

8 years agoRemove transparent VLAN support from base plugin
Gary Kotton [Mon, 9 Nov 2015 08:38:54 +0000 (00:38 -0800)]
Remove transparent VLAN support from base plugin

The transparent VLAN is an extension. This code was bundled part
of the base plugin.
Commit 809e434d2da99cb3e1a778be9838b1175e785e76 has a todo to remove
the code from the base plugin.

Change-Id: Id5fd68e2b0e6396dc411697e14670f7236dc78d4

8 years agoMerge "Automatically generate neutron core configuration files"
Jenkins [Sat, 28 Nov 2015 01:32:47 +0000 (01:32 +0000)]
Merge "Automatically generate neutron core configuration files"

8 years agoAutomatically generate neutron core configuration files
Martin Hickey [Mon, 9 Nov 2015 23:37:37 +0000 (23:37 +0000)]
Automatically generate neutron core configuration files

This adds a new tox environment, genconfig, which generates sample
neutron core configuration file using oslo-config-generator.

Updates to some configuration option help messages to reflect useful
details that were missing in the code but were present in config files.

It also adds details to devref on how to update config files.

Partially-Implements: blueprint autogen-neutron-conf-file

DocImpact

Change-Id: I1c6dc4e7d479f1b7c755597caded24a0f018c712
Closes-bug: #1199963
Co-Authored-By: Louis Taylor <louis@kragniz.eu>
8 years agoSupport Unicode request_id on Python 3
Victor Stinner [Fri, 27 Nov 2015 15:20:28 +0000 (16:20 +0100)]
Support Unicode request_id on Python 3

The oslo.context change If48ee7f4d1c113f1f26b3b1698c6b055807b950f will change
request_id type on Python 3 from bytes to str. This change prepares Neutron for
this change.

Blueprint: neutron-python3
Change-Id: Ia5203581db120bb4f8e24fd752d6ae14e6558505

8 years agoStop using deprecated timeutils.total_seconds()
Julien Danjou [Fri, 27 Nov 2015 08:54:33 +0000 (09:54 +0100)]
Stop using deprecated timeutils.total_seconds()

This function has been deprecated. It was only useful for Python <= 2.6.

Change-Id: Ic0ca83920e9ed0692277bf5d903d3df91d1adcde

8 years agoMerge "force releasenotes warnings to be treated as errors"
Jenkins [Fri, 27 Nov 2015 01:32:39 +0000 (01:32 +0000)]
Merge "force releasenotes warnings to be treated as errors"

8 years agoMerge "Use diffs for iptables restore instead of all rules"
Jenkins [Thu, 26 Nov 2015 19:52:14 +0000 (19:52 +0000)]
Merge "Use diffs for iptables restore instead of all rules"

8 years agoCorrect unwatch_log to support python <= 2.7.5
Cedric Brandily [Thu, 26 Nov 2015 15:21:30 +0000 (15:21 +0000)]
Correct unwatch_log to support python <= 2.7.5

Currently unwatch_log[1] uses WatchedFileHandler.delay attribute to
build a FileHandler instance from a WatchedFileHandler instance but
this attribute doesn't exist before 2.7.6.

This change removes WatchedFileHandler.delay usage and uses default
FileHandler delay (it also ensures we open immediately the log file).

[1] neutron.agent.linux.daemon

Closes-Bug: #1520271
Change-Id: I70a156c4aeeda8a3adcc1036d670732c21ffa335

8 years agoMove a note to bridge_lib
Cedric Brandily [Wed, 25 Nov 2015 21:17:52 +0000 (22:17 +0100)]
Move a note to bridge_lib

This change moves a note from linuxbridge agent[1] to bridge_lib which
was forgotten in a previous change[2].

[1] neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent
[2] Ieccb8f77fc833467a166557e227023f5c2a50d1b

Partial-Bug: #1514548
Change-Id: I1562b75ce07eec280824cdfe6b8aba80c9d9170c

8 years agoFix alignment in message and remove unused module
Li Zhixin [Thu, 26 Nov 2015 07:19:24 +0000 (15:19 +0800)]
Fix alignment in message and remove unused module

This patch fix alignment in log message and remove
unused import module from oslo_log.

Change-Id: I16900a79313526c214e46875fd67e735542926bc

8 years agoMerge "Don't drop ARP table jump during OVS rewiring"
Jenkins [Thu, 26 Nov 2015 06:57:12 +0000 (06:57 +0000)]
Merge "Don't drop ARP table jump during OVS rewiring"

8 years agoMerge "Add Incomplete state to list of acceptable states for RFE bugs"
Jenkins [Thu, 26 Nov 2015 06:16:18 +0000 (06:16 +0000)]
Merge "Add Incomplete state to list of acceptable states for RFE bugs"

8 years agoMerge "Wait for the watch process in test case"
Jenkins [Thu, 26 Nov 2015 05:05:26 +0000 (05:05 +0000)]
Merge "Wait for the watch process in test case"

8 years agoUpdate toctree of neutron document
Akihiro Motoki [Tue, 24 Nov 2015 03:15:05 +0000 (12:15 +0900)]
Update toctree of neutron document

* Display more contents in the top page.
  It is useful to access various things from the top page.
  The contents after this change looks reasonable.
* Remove "Indices and tables" section in policies and stadium index.
  They are unnecessary.

Change-Id: I49a966ce96af107c6f17f4caa73f9a634db37e18

8 years agoDon't drop ARP table jump during OVS rewiring
Kevin Benton [Wed, 25 Nov 2015 23:42:46 +0000 (15:42 -0800)]
Don't drop ARP table jump during OVS rewiring

The previous OVS ARP spoofing code was dropping the rule to jump to
the ARP protection table each time it was called. This call was
unnecessary since the majority of port updates are not turning
off port security.

This patch adjusts the logic to only drop the jump rule if port-sec
is disabled or if it is a network port. The existing functional tests
ensure that connectivity works as expected.

Closes-Bug: #1520013
Change-Id: I7b396d758c2d4c7e1004257d432b210bf3ee5c66

8 years agoMerge "Change instances of Openstack to OpenStack."
Jenkins [Thu, 26 Nov 2015 01:43:14 +0000 (01:43 +0000)]
Merge "Change instances of Openstack to OpenStack."

8 years agoMerge "Delete HA network when last HA router is deleted"
Jenkins [Thu, 26 Nov 2015 01:42:56 +0000 (01:42 +0000)]
Merge "Delete HA network when last HA router is deleted"

8 years agoMerge "Add availability_zone support for network"
Jenkins [Wed, 25 Nov 2015 22:17:42 +0000 (22:17 +0000)]
Merge "Add availability_zone support for network"

8 years agoDelete HA network when last HA router is deleted
sridhargaddam [Thu, 30 Jul 2015 10:54:39 +0000 (10:54 +0000)]
Delete HA network when last HA router is deleted

Currently when the last HA router of a tenant is deleted the HA network
belonging to this tenant is not removed. While running tempest aganist an
OpenStack setup where tenant VLANs (with small VLAN range) is used we hit
the limits are tempest tests start to fail as we cannot create new networks.
This patch addresses this issue by deleting the HA network when the last HA
router is deleted for the tenant.

Closes-Bug: #1367157

Co-Authored-By: Ann Kamyshnikova<akamyshnikova@mirantis.com>
Change-Id: I1d50b973aed4148857ac3d2bbee0d38e2e199783

8 years agoChange instances of Openstack to OpenStack.
venkatamahesh [Mon, 9 Nov 2015 14:31:54 +0000 (20:01 +0530)]
Change instances of Openstack to OpenStack.

Change Openstack to OpenStack
as per standards

Change-Id: I10f33c1e70fb5f2d74e6feda0a4a266d7071e1ab

8 years agoforce releasenotes warnings to be treated as errors
Doug Hellmann [Wed, 25 Nov 2015 18:32:17 +0000 (18:32 +0000)]
force releasenotes warnings to be treated as errors

Change-Id: I48ecfbd8992a81fe13838e6c353195188f7cb3cd
Related-Bug: #1519912

8 years agoMerge "ovs: Make interface name hashing algorithm common and extend it"
Jenkins [Wed, 25 Nov 2015 18:25:00 +0000 (18:25 +0000)]
Merge "ovs: Make interface name hashing algorithm common and extend it"

8 years agoMerge "Optimize router delete execution"
Jenkins [Wed, 25 Nov 2015 16:28:50 +0000 (16:28 +0000)]
Merge "Optimize router delete execution"

8 years agoMerge "Remove duplicate deprecation messages for quota_items option"
Jenkins [Wed, 25 Nov 2015 13:59:27 +0000 (13:59 +0000)]
Merge "Remove duplicate deprecation messages for quota_items option"

8 years agoMerge "fix some misspellings"
Jenkins [Wed, 25 Nov 2015 13:59:12 +0000 (13:59 +0000)]
Merge "fix some misspellings"

8 years agoAdd availability_zone support for network
Hirofumi Ichihara [Thu, 19 Nov 2015 06:05:27 +0000 (15:05 +0900)]
Add availability_zone support for network

This patch adds the availability_zone support for network.

APIImpact
DocImpact

Change-Id: I9259d9679c74d3b3658771290e920a7896631e62
Co-Authored-By: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Partially-implements: blueprint add-availability-zone

8 years agoMerge "Clarify how we milestones are assigned"
Jenkins [Wed, 25 Nov 2015 11:48:50 +0000 (11:48 +0000)]
Merge "Clarify how we milestones are assigned"

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 agofix some misspellings
ting.wang [Wed, 25 Nov 2015 08:43:01 +0000 (08:43 +0000)]
fix some misspellings

Change-Id: Ib6a027666dba060d12da7ecf918449c5ad62d239

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 agoAdd Incomplete state to list of acceptable states for RFE bugs
armando-migliaccio [Tue, 24 Nov 2015 23:48:05 +0000 (15:48 -0800)]
Add Incomplete state to list of acceptable states for RFE bugs

Turns out we've been using this tag, so it's useful to track it with
the others.

Change-Id: I05bef6641972dab3b05d533e9c32b5570eeaab85

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 agoClarify how we milestones are assigned
armando-migliaccio [Wed, 25 Nov 2015 00:04:26 +0000 (16:04 -0800)]
Clarify how we milestones are assigned

Milestone assignment is another mumbo jumbo effort in open source.
Artificially setting milestones implies that someone can reliably
predict the future when no-one is really in full control.

For this reason let's make clear that we optmistically target the
current milestone for work that is supposed to start asap, and
complete sooner rather than later. Rolling over until the work is
complete is the natural course of action.

Dashboards [1] then capture the entire workload (BP and RFE) for
the entire release cycle, and that's helpful to provide to overall
view.

[1] https://launchpad.net/neutron/+milestone/<release>-?

Change-Id: Idb2d84ba683d2c8f1460e7bf0ff76d457cf42bce

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 agoWait for the watch process in test case
Hong Hui Xiao [Tue, 24 Nov 2015 14:01:48 +0000 (09:01 -0500)]
Wait for the watch process in test case

Because the _watch_process and the failing_process are asynchronous,
there might be a chance that failing_process exit and _watch_process
is not executed.

If the _watch_process is blocked, the method that will be asserted
will not be called. This will fail the UT, but it is intermittent.

Change-Id: Ic951c1b91c5a10462f548544a5e8d482c52ad665
Closes-Bug: #1519160

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 agoAdd UnionModel support to filter query generator
Kevin Benton [Fri, 20 Nov 2015 05:16:42 +0000 (21:16 -0800)]
Add UnionModel support to filter query generator

The _apply_filters_to_query method did not handle UnionModels
so objects leveraging it (i.e. RBAC policies) did not have
queries applied to them.

This patch corrects it by iterating through the component models
of the UnionModel and applying the filters to each component model.
It also adds an API test on RBAC that exercises the filtering.

Change-Id: I449acf359dd61189bbdacd200d7c41a4a88d3de8
Closes-Bug: #1517818

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 agoOptimize router delete execution
Ryan Moats [Mon, 2 Nov 2015 19:30:26 +0000 (13:30 -0600)]
Optimize router delete execution

Optimize the execution of router delete in the L3 agent
by not performing operations in the router namespace that
will be removed as the last step of the workflow.
Comparing the slopes of the least squares fit of delete
execution time shows that this optimization decreases that
slope by over half.

Change-Id: Ic425ab1f8c3afe882c9deaa72a814ac0d2053f3b
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
Closes-Bug: 1512450

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 agoRemove duplicate deprecation messages for quota_items option
Sridhar Venkat [Thu, 8 Oct 2015 21:27:39 +0000 (17:27 -0400)]
Remove duplicate deprecation messages for quota_items option

The option is already marked for deprecation using oslo.config
mechanism, so there is no need to output more warnings here.

Change-Id: I5db439a0b87c49a52f3f5c063d0fd90819f3e932
Closes-Bug: #1504312

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 agoRefactor OVS-agent init-method
Sergey Belous [Fri, 2 Oct 2015 16:24:29 +0000 (19:24 +0300)]
Refactor OVS-agent init-method

Removed create_agent_config_map method which creates specific
configurations dictionary according to cfg.CONF and call the OVS-agent
with that structure. Passing oslo_config directly to init-method
of OVS-agent is more straightforward and makes it more testable.
Also refactored unit and functional tests of OVS-agent in accordance
with the changes in init-method.

Closes-bug: #1464394
Change-Id: I88742e4d454709e35481f2c505c9d64995497cac

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 agoovs: Make interface name hashing algorithm common and extend it
Andreas Scheuring [Wed, 18 Nov 2015 14:23:36 +0000 (15:23 +0100)]
ovs: Make interface name hashing algorithm common and extend it

The OVS device name hashing algorithm shortens interface names that are too
long. To ensure uniqueness it makes use of a hashing algorithm.

Move this function to a common place where it can be shared between ml2
drivers and agents.

Extend the function to support defining the max device length to be used.

Change LOG level to info to help deployers figuring out the unhashed name
of an hashed inteface.

Adapt OVS agent to use this common function instead of its
own implementation.

Change-Id: I5c04f39928d070aa7e372934fcb2675609d2761c
Partial-Bug: #1495960

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 agoUse diffs for iptables restore instead of all rules
Kevin Benton [Sat, 3 Oct 2015 14:25:19 +0000 (07:25 -0700)]
Use diffs for iptables restore instead of all rules

This patch changes our iptables logic to generate a delta of
iptables commands (inserts + deletes) to get from the current
iptables state to the new state. This will significantly reduce
the amount of data that we have to shell out to iptables-restore
on every call (and reduce the amount of data iptables-restore has
to parse).

We no longer have to worry about preserving counters since
we are adding and deleting specific rules, so the rule modification
code got a nice cleanup to get rid of the old rule matching.

This also gives us a new method of functionally testing that we are
generating rules in the correct manner. After applying new rules
once, a subsequent call should always have no work to do. The new
functional tests added leverage that property heavily and should
protect us from regressions in how rules are formed.

Performance metrics relative to HEAD~1:
+====================================+============+=======+
|               Scenario             | This patch | HEAD~1|
|------------------------------------|------------|-------|
| 200 VMs*22 rules existing - startup|            |       |
|                       _modify_rules|   0.67s    | 1.05s |
|                 _apply_synchronized|   1.87s    | 2.89s |
|------------------------------------|------------|-------|
| 200 VMs*22 rules existing - add VM |            |       |
|                       _modify_rules|   0.68s    | 1.05s |
|                 _apply_synchronized|   2.07s    | 2.92s |
|------------------------------------+------------+-------+
|200 VMs*422 rules existing - startup|            |       |
|                       _modify_rules|   5.43s    | 8.17s |
|                 _apply_synchronized|  12.77s    |28.00s |
|------------------------------------|------------|-------|
|200 VMs*422 rules existing - add VM |            |       |
|                       _modify_rules|   6.41s    | 8.33s |
|                 _apply_synchronized|  33.09s    |33.80s |
+------------------------------------+------------+-------+

The _apply_synchronized times seem to converge when dealing
with ~85k rules. In the profile I can see that both approaches
seem to wait on iptables-restore for approximately the same
amount of time so it could be hitting the performance limits
of iptables-restore.

DocImpact
Partial-Bug: #1502297
Change-Id: Ia6470c85b6b71979006ffe5da9095fdcce3122c1

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"