]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoHACKING: align the underline text and header
Gary Kotton [Sun, 29 Nov 2015 13:18:06 +0000 (05:18 -0800)]
HACKING: align the underline text and header

Beautify the HACKING.rst file

TrivialFix

Change-Id: Ide187ba409f57f5cc451f0b774b55a2b09e93c1c

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 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 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 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 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 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"

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"