]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
8 years agoFix DVR downgrade exception / error code
Assaf Muller [Mon, 12 Oct 2015 18:42:43 +0000 (14:42 -0400)]
Fix DVR downgrade exception / error code

Updating a distributed router back to a legacy router
should return error 400 (BadRequest), not error 500.

Closes-Bug: #1505346
Change-Id: Ia57e80107bd11ff7b38b89d30279603017913724

8 years agoMerge "test_db_base_plugin_v2: Skip a few tests on some platforms"
Jenkins [Sat, 17 Oct 2015 00:16:01 +0000 (00:16 +0000)]
Merge "test_db_base_plugin_v2: Skip a few tests on some platforms"

8 years agoMerge "test_create_network_segment_allocation_fails: Assert the status"
Jenkins [Fri, 16 Oct 2015 23:58:07 +0000 (23:58 +0000)]
Merge "test_create_network_segment_allocation_fails: Assert the status"

8 years agoMerge "Do not try to delete a veth from a nonexistent namespace"
Jenkins [Fri, 16 Oct 2015 23:14:28 +0000 (23:14 +0000)]
Merge "Do not try to delete a veth from a nonexistent namespace"

8 years agoMerge "Do not accept abbreviated CIDRs"
Jenkins [Fri, 16 Oct 2015 23:14:14 +0000 (23:14 +0000)]
Merge "Do not accept abbreviated CIDRs"

8 years agoMerge "The exception type is wrong and makes the except block not work"
Jenkins [Fri, 16 Oct 2015 23:13:59 +0000 (23:13 +0000)]
Merge "The exception type is wrong and makes the except block not work"

8 years agoMerge "Fix rendering"
Jenkins [Fri, 16 Oct 2015 22:28:23 +0000 (22:28 +0000)]
Merge "Fix rendering"

8 years agoMerge "Remove the embrane plugin"
Jenkins [Fri, 16 Oct 2015 22:06:28 +0000 (22:06 +0000)]
Merge "Remove the embrane plugin"

8 years agoThe exception type is wrong and makes the except block not work
Hong Hui Xiao [Fri, 16 Oct 2015 16:39:32 +0000 (12:39 -0400)]
The exception type is wrong and makes the except block not work

According to the context, it should be KeyError here to catch.
AttributeError will not happen here. More details could be found
in the bug report.

Change-Id: Id6351172703ac492e86475f75bf1be03f4e4e8a3
Closes-bug: #1506934

8 years agoFix rendering
Kyle Mestery [Fri, 16 Oct 2015 17:08:36 +0000 (17:08 +0000)]
Fix rendering

Commits 874fd5b61a5d6a81f0e147a08a1da444e2380a5f and
a937582f7aa430f5edace2d52f5f6feccf381a34
both had formatting issues with links that were
added. This commit fixes both of the links in
question.

Change-Id: Ib02e7c659d18719d3a2898dbb9da147a8aa1f817
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoDo not try to delete a veth from a nonexistent namespace
Cedric Brandily [Tue, 8 Sep 2015 15:02:57 +0000 (15:02 +0000)]
Do not try to delete a veth from a nonexistent namespace

Currently, VethFixture cleanup tries to delete veth from their
namespaces even if they don't exist anymore (without crashing the
cleanup). It implies an extra trace if an error is raised which can be
confusing.

This change avoids to try deleting a veth from a nonexistent namespace
in the fixture VethFixture.

Closes-Bug: #1506862
Change-Id: I5d0192998d2f3f8d1a6f783769ae9bfcb4bae7f2

8 years agoMerge "Improve performance of ensure_namespace"
Jenkins [Fri, 16 Oct 2015 02:26:57 +0000 (02:26 +0000)]
Merge "Improve performance of ensure_namespace"

8 years agoMerge "Lower the log level for the message about concurrent port delete"
Jenkins [Thu, 15 Oct 2015 23:20:31 +0000 (23:20 +0000)]
Merge "Lower the log level for the message about concurrent port delete"

8 years agoMerge "Python 3: add classifiers"
Jenkins [Thu, 15 Oct 2015 23:16:34 +0000 (23:16 +0000)]
Merge "Python 3: add classifiers"

8 years agoMerge "Updated from global requirements"
Jenkins [Thu, 15 Oct 2015 23:16:14 +0000 (23:16 +0000)]
Merge "Updated from global requirements"

8 years agoDo not accept abbreviated CIDRs
Sean M. Collins [Tue, 1 Sep 2015 08:43:30 +0000 (04:43 -0400)]
Do not accept abbreviated CIDRs

This is a special netaddr behavior that we wish to prevent.

http://lists.openstack.org/pipermail/openstack-dev/2015-August/072610.html

APIImpact

Change-Id: I94a059cee396e183bffd4a064709bb83504bf983
Closes-Bug: #1490885

8 years agoMerge "Spelling and grammar corrections"
Jenkins [Thu, 15 Oct 2015 22:20:44 +0000 (22:20 +0000)]
Merge "Spelling and grammar corrections"

8 years agoMerge "Cross link sub-project release processes"
Jenkins [Thu, 15 Oct 2015 22:20:30 +0000 (22:20 +0000)]
Merge "Cross link sub-project release processes"

8 years agoMerge "Update RFE documentation to clarify when the tag is not appropriate"
Jenkins [Thu, 15 Oct 2015 20:17:00 +0000 (20:17 +0000)]
Merge "Update RFE documentation to clarify when the tag is not appropriate"

8 years agoSpelling and grammar corrections
Kyle Mestery [Thu, 15 Oct 2015 18:05:50 +0000 (18:05 +0000)]
Spelling and grammar corrections

Change-Id: I38ba5a9145764357f0416b5c6f42e1204332ba5a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "Revert "Make OVS interface name hashing algorithm common and extend it""
Jenkins [Thu, 15 Oct 2015 17:43:26 +0000 (17:43 +0000)]
Merge "Revert "Make OVS interface name hashing algorithm common and extend it""

8 years agoCross link sub-project release processes
Kyle Mestery [Thu, 15 Oct 2015 17:26:01 +0000 (17:26 +0000)]
Cross link sub-project release processes

Cross link the release processes for sub-projects across the devref
and bug policy documentation.

Change-Id: Ifa548fc61777e13a0131b681610babf212b42e27
Signed-off-by: Kyle Mestery <mestery@mestery.com>
8 years agoMerge "The first word of the error message should be capitalized"
Jenkins [Thu, 15 Oct 2015 17:01:21 +0000 (17:01 +0000)]
Merge "The first word of the error message should be capitalized"

8 years agoLower the log level for the message about concurrent port delete
Ihar Hrachyshka [Thu, 15 Oct 2015 15:57:56 +0000 (17:57 +0200)]
Lower the log level for the message about concurrent port delete

There is nothing wrong or interesting in that log message that would be
useful during general cloud operation. It may be useful when debugging
an issue, so leaving the message, but with lowered log level.

Change-Id: I6c16a829665b602da84c0d694fcc5f8ad5ed546b

8 years agoUpdated from global requirements
OpenStack Proposal Bot [Thu, 15 Oct 2015 15:42:20 +0000 (15:42 +0000)]
Updated from global requirements

Change-Id: Ib0b0138caca1214201fa52ed06ec5df4b7c7820d

8 years agoMerge "Merge tag '7.0.0'"
Jenkins [Thu, 15 Oct 2015 15:37:59 +0000 (15:37 +0000)]
Merge "Merge tag '7.0.0'"

8 years agoUpdate RFE documentation to clarify when the tag is not appropriate
John Davidge [Wed, 14 Oct 2015 14:09:45 +0000 (15:09 +0100)]
Update RFE documentation to clarify when the tag is not appropriate

Adds a passage to clarify that the 'rfe' tag is not to be used for work
that is already well-defined, to avoid code being submitted before proper
discussion can take place.

Change-Id: I20a1a87b263154e8b7726da08bfb615b272ba4c1

8 years agoRevert "Make OVS interface name hashing algorithm common and extend it"
Sean M. Collins [Mon, 12 Oct 2015 16:43:02 +0000 (12:43 -0400)]
Revert "Make OVS interface name hashing algorithm common and extend it"

Based on discussion with Ihar and Cedric, this may break upgrades. Let's
revert it for the time being and reassess.

This reverts commit 3d0db13370eee09aaee5923c54d0e3188509c4e5.

Change-Id: I69d74befb08e074c1bccd823cca0899de6ed57d6
Closes-Bug: 1504647

8 years agoMerge "Move retries out of ML2 plugin"
Jenkins [Thu, 15 Oct 2015 14:05:25 +0000 (14:05 +0000)]
Merge "Move retries out of ML2 plugin"

8 years agoMerge tag '7.0.0'
OpenStack Proposal Bot [Thu, 15 Oct 2015 12:44:04 +0000 (12:44 +0000)]
Merge tag '7.0.0'

This is a null-merge of the 7.0.0 release tag back into the master
branch so that the 7.0.0 tag will appear in the git commit history of
the master branch. It contains no actual changes to the master branch,
regardless of how our code review system's UI represents it. Please
ask in #openstack-infra if you have any questions, and otherwise try
to merge this as quickly as possible to avoid later conflicts on the
master branch.

Change-Id: I920a33126a5871447602e6f9872985d8c9a4707a

8 years agoPython 3: skip test_json_with_utf8 on Py3
Cyril Roelandt [Mon, 12 Oct 2015 14:07:54 +0000 (16:07 +0200)]
Python 3: skip test_json_with_utf8 on Py3

The last skipped unit test should indeed be skipped: it does not make
sense to run it with Python 3.

$ python 2
>>> import json; json.dumps({'a': u'\xe9'.encode('utf-8')})
'{"a": "\\u00e9"}'

$ python3
>>> import json; json.dumps({'a': u'\xe9'.encode('utf-8')})
Traceback (most recent call last):
  ...
  File "/usr/lib64/python3.4/json/encoder.py", line 173, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'\xc3\xa9' is not JSON serializable

In Python 2, the JSON encoder function to encode a string begins with
a magic test to convert UTF-8 encoded string to Unicode:

    if isinstance(s, str) and HAS_UTF8.search(s) is not None:
        s = s.decode('utf-8')

https://hg.python.org/cpython/file/4188cd5dc0c5/Lib/json/encoder.py#l42

This trick is gone in Python 3:

https://hg.python.org/cpython/file/288953a787ce/Lib/json/encoder.py#l49

Change-Id: Iddaaea4ebedf04c87f1ff9f9098163a15ffa78f7
Blueprint: neutron-python3
Closes-Bug: #1491824

8 years agotest_create_network_segment_allocation_fails: Assert the status
YAMAMOTO Takashi [Thu, 15 Oct 2015 05:11:19 +0000 (14:11 +0900)]
test_create_network_segment_allocation_fails: Assert the status

Related-Bug: #1505908
Change-Id: I17ee725a458f86ee59f7988b385e76b83ab9fd3e

8 years agoThe first word of the error message should be capitalized
Hong Hui Xiao [Thu, 15 Oct 2015 03:26:24 +0000 (23:26 -0400)]
The first word of the error message should be capitalized

The patch is straightforward, just spelling mistake.

Change-Id: I127a155800a11d09cd0b3d332cfeed7e6920a222
Closes-bug: #1506289

8 years agoMerge "Python 3: make post_test_hook work with more tox targets"
Jenkins [Thu, 15 Oct 2015 01:39:16 +0000 (01:39 +0000)]
Merge "Python 3: make post_test_hook work with more tox targets"

8 years agoMerge "Always send status update for processed floating ips"
Jenkins [Thu, 15 Oct 2015 01:20:47 +0000 (01:20 +0000)]
Merge "Always send status update for processed floating ips"

8 years agoMerge "Create ipset set_name_exists() method"
Jenkins [Thu, 15 Oct 2015 01:16:51 +0000 (01:16 +0000)]
Merge "Create ipset set_name_exists() method"

8 years agoMerge "L3 agent: use run_immediately parameter to sync after start"
Jenkins [Thu, 15 Oct 2015 00:12:36 +0000 (00:12 +0000)]
Merge "L3 agent: use run_immediately parameter to sync after start"

8 years agoMerge "Add ml2 extension drivers examples"
Jenkins [Thu, 15 Oct 2015 00:08:05 +0000 (00:08 +0000)]
Merge "Add ml2 extension drivers examples"

8 years agoMerge "Include external bridge deprecation warning in string"
Jenkins [Wed, 14 Oct 2015 23:23:41 +0000 (23:23 +0000)]
Merge "Include external bridge deprecation warning in string"

8 years agoMerge "Kill conntrackd state on HA routers FIP disassociation"
Jenkins [Wed, 14 Oct 2015 22:44:40 +0000 (22:44 +0000)]
Merge "Kill conntrackd state on HA routers FIP disassociation"

8 years agoMerge "DVR: notify specific agent when creating floating ip"
Jenkins [Wed, 14 Oct 2015 22:03:37 +0000 (22:03 +0000)]
Merge "DVR: notify specific agent when creating floating ip"

8 years agoMerge "Fix inconsistency in DHCPv6 hosts and options generation"
Jenkins [Wed, 14 Oct 2015 18:54:35 +0000 (18:54 +0000)]
Merge "Fix inconsistency in DHCPv6 hosts and options generation"

8 years agoMerge "Add -constraints sections for base CI jobs"
Jenkins [Wed, 14 Oct 2015 18:45:44 +0000 (18:45 +0000)]
Merge "Add -constraints sections for base CI jobs"

8 years agoMerge "Remove useless code in L3 HA unit tests"
Jenkins [Wed, 14 Oct 2015 16:49:25 +0000 (16:49 +0000)]
Merge "Remove useless code in L3 HA unit tests"

8 years agoMerge "Fix error returned when an HA router is updated to DVR"
Jenkins [Wed, 14 Oct 2015 16:34:23 +0000 (16:34 +0000)]
Merge "Fix error returned when an HA router is updated to DVR"

8 years agoCreate ipset set_name_exists() method
Brian Haley [Wed, 14 Oct 2015 02:56:24 +0000 (22:56 -0400)]
Create ipset set_name_exists() method

All the callers of set_exists() already know the set name,
so there's no reason to re-calculate it based on the id and
ethertype. Renamed to set_name_exists() to be clear on what
it is checking.

Change-Id: Ifd2a2c7877c81a440067f9e8a654b49e63199f8c

8 years agoMerge "Tweak RFE guidelines"
Jenkins [Wed, 14 Oct 2015 12:36:31 +0000 (12:36 +0000)]
Merge "Tweak RFE guidelines"

8 years agoMerge "Fix link in devref guide"
Jenkins [Wed, 14 Oct 2015 12:36:18 +0000 (12:36 +0000)]
Merge "Fix link in devref guide"

8 years agoAdd -constraints sections for base CI jobs
Sachi King [Mon, 28 Sep 2015 05:20:19 +0000 (15:20 +1000)]
Add -constraints sections for base CI jobs

Using factors with sections is not a thing and likely will not be for
a while, as such we are going to have to duplicate sections to be able
to set the constraints based install_command.

Implements Blueprint: Requirements-Management

Change-Id: Ie679904330a83e4b7eb75c189b48afef127b0d22

8 years agoPython 3: make post_test_hook work with more tox targets
Cyril Roelandt [Tue, 13 Oct 2015 12:46:39 +0000 (14:46 +0200)]
Python 3: make post_test_hook work with more tox targets

This makes it possible to run the script with different "flavors" of
"dsvm-functional" and "dsvm-fullstack". In particular, this is needed to
have a dsvm-functional-py34 gate running (see
https://review.openstack.org/#/c/233177/).

Change-Id: I38cadeecff6a8c0c55c103095c045a3e0c39bee1
Partial-Bug: #1500400

8 years agoRemove useless code in L3 HA unit tests
Assaf Muller [Mon, 12 Oct 2015 17:33:02 +0000 (13:33 -0400)]
Remove useless code in L3 HA unit tests

I added a helper function to make the server consider an agent
as down, might as well use it!

Change-Id: If1110de7f46ecb3dc2e72b3c62d7faeb0e71c586

8 years agoMove retries out of ML2 plugin
Kevin Benton [Wed, 14 Oct 2015 05:33:53 +0000 (22:33 -0700)]
Move retries out of ML2 plugin

There are several DB retry decorators in the ML2 plugin.
We want to keep them in the API layer as much possible so
this patch removes all but 1 and adds the retryrequest catch
to the API-level decorator.

The remaining one is the update_port_status which is an internal
RPC called method so it's not clear if there is a benefit to
moving it to the ml2 rpc file.

Change-Id: Ifffd424b693f57b5dd3de4dc625b50acc23abe0f
Closes-Bug: #1505908

8 years agoInclude external bridge deprecation warning in string
Kevin Benton [Wed, 14 Oct 2015 07:24:39 +0000 (00:24 -0700)]
Include external bridge deprecation warning in string

This is to ensure that the deprecation warning shows up
in the docs.[1]

1. https://review.openstack.org/#/c/232353/1/doc/common/tables/neutron-l3_agent.xml

Closes-Bug: #1494066
Change-Id: Id2ddec42df3ab376244bbf37b1cdd8b524382f7c

8 years agoTweak RFE guidelines
armando-migliaccio [Tue, 13 Oct 2015 23:38:25 +0000 (16:38 -0700)]
Tweak RFE guidelines

Liberty is behind us. The RFE process has been in place for a cycle
and some refinements have been necessary to make it more streamlined.

The cut-over section has outlived its purpose so it can be removed.
In its place, this patch clarifies how we are going to track RFE in
Launchpad, once the RFE has been 'approved'.

The tl;dr version of this patch is: from Mitaka onwards, feature
submission must happen via RFE bug report submission. Launchpad
blueprints are going to become a tool to be used at discretion of
the project release manager for milestone tracking purposes.

Change-Id: I370e3397682d9f4ebca215b6711f23a2a4fc4233

8 years agoMerge "Avoid DuplicateOptError in functional tests"
Jenkins [Wed, 14 Oct 2015 01:21:02 +0000 (01:21 +0000)]
Merge "Avoid DuplicateOptError in functional tests"

8 years agoMerge "Make test_server work with older versions of oslo.service"
Jenkins [Wed, 14 Oct 2015 01:20:48 +0000 (01:20 +0000)]
Merge "Make test_server work with older versions of oslo.service"

8 years agoMerge "Replaced deprecated isotime() function"
Jenkins [Wed, 14 Oct 2015 01:15:26 +0000 (01:15 +0000)]
Merge "Replaced deprecated isotime() function"

8 years agoFix link in devref guide
armando-migliaccio [Tue, 13 Oct 2015 19:27:41 +0000 (12:27 -0700)]
Fix link in devref guide

warnerrors = True no longer works with Sphinx < 1.3, and this
makes warnings fail silently [2].

A patch [1] is out to fix that, and until pbr releases we will
have to be careful not to bitrot.

This patch fixes the outstanding link error and tweaks the wording
of the affected pill of wisdom.

[1] I680b448471e687919d202e8f2abe57f8ba3b22ee
[2] bug #1496882

Change-Id: Id9cce7ae78c51dceeb56c6b5b8b04340c5378748

8 years agoAdd ml2 extension drivers examples
Assaf Muller [Tue, 13 Oct 2015 20:52:46 +0000 (16:52 -0400)]
Add ml2 extension drivers examples

DocImpact
Change-Id: Idf8fcbd6f47ab91996d843575b66ad749cb9a3e0

8 years agoImprove performance of ensure_namespace
John Kasperski [Thu, 24 Sep 2015 23:16:18 +0000 (18:16 -0500)]
Improve performance of ensure_namespace

The ensure_namespace method calls IpNetnsCommand.exists to
determine if the specified namespace exists or not.  This is
accomplished by listing all namespaces with "ip netns list"
and then looping through the output to determine if the specified
namespace was included in the output.

Research of various Linux operating systems has indicated that
namespaces are represented as files in /var/run/netns and root
authority is "typically" not required in order to look at the
files in this subdirectory.

The existing configuration option "use_helper_for_ns_read"
will be used to determine if the root-helper should be used to
to retrieve the list of namespaces.  If this configuraton option
is set to False, the native python os.listdir(/var/run/netns)
will be used.

Related-Bug: #1311804
Closes-Bug: #1497396
Change-Id: I9da627d07d6cbb6e5ef1a921a5f22963317a04e2

8 years agoKill conntrackd state on HA routers FIP disassociation
Assaf Muller [Tue, 13 Oct 2015 14:19:36 +0000 (10:19 -0400)]
Kill conntrackd state on HA routers FIP disassociation

Legacy routers kill conntrackd states on FIP disassociation,
so that traffic to FIPs that have been disassociated is properly
dropped. This is not the case with HA routers, and this patch
changes that.

Change-Id: Ic962c518ce33a4936d0f1655d60d308c5e776a9b
Closes-Bug: #1505700

8 years agoMock oslo policy HTTPCheck instead of urllib
Kevin Benton [Wed, 7 Oct 2015 02:28:47 +0000 (19:28 -0700)]
Mock oslo policy HTTPCheck instead of urllib

We were mocking internal behavior of oslo policy by
patching urllib. This will break with the upcoming oslo
release that switches to requests.

This patch changes the mock to the HTTPCheck level and we
can leave implementation details testing up to oslo_policy.

Change-Id: I07957f01307e25f1547197c720eea6e3e7f0ef5a
Closes-Bug: #1503890
(cherry picked from commit a0f1d9d6de1560be91d3001c8ac9f880a7a5a7e0)

Add testresources used by oslo.db fixture

If we use oslo.db fixtures, we'll need the package or
the next version of oslo.db release will break us.

Closes-Bug: #1503501
Change-Id: I7dfbf240333095d91a414ba15a439bdc4804eb25
(cherry picked from commit 86ad967e40c2c6752ec0fb46cfd3098ede0c7178)

Fix functional test_server tests

Now oslo.service 0.10.0 no longer sends SIGHUP to parent and
children services.

This was a chance introduced by 286a6ea, and since it invalidated
the very logic under test, this must be revised.

(cherry picked from commit 090fe713592c2b6398d999bfa03b80cbb2054609)

Change-Id: I18a11283925369bc918002477774f196010a1bc3
Closes-bug: #1505438
(cherry picked from commit 090fe713592c2b6398d999bfa03b80cbb2054609)

Make test_server work with older versions of oslo.service

Change I18a11283925369bc918002477774f196010a1bc3 fixed the test for
oslo.service >= 0.10.0, but it also broke it for older versions of
oslo.service. Since the library has minimal version of >= 0.7.0 in
requirements.txt, test should pass for those versions too.

Now, instead of validating that either reset() or restart() of workers
are triggered on SIGHUP, just validate that .start() is triggered the
expected number of times (either way, no matter how oslo.service decide
to clean up the children, they exit and then are respawned).

Change-Id: I41f9d3af780b3178b075bc1e7084f417a2bd1378
Closes-Bug: #1505645
(cherry picked from commit 7bb40921660cf29beb68e338e205499efd6ffa36)

Fixed multiple py34 gate issues

1. Scope mock of 'open' to module

By mocking 'open' at the module level, we can avoid affecting
'open' calls from other modules.

2. Stop using LOG.exception in contexts with no sys.exc_info set

Python 3.4 logger fills in record.exc_info with sys.exc_info() result
[1], and then it uses it to determine the current exception [2] to
append to the log message. Since there is no exception, exc_info[1] is
None, and we get AttributeError inside traceback module.

It's actually a bug in Python interpreter that it attempt to access the
attribute when there is no exception. It turns out that it's fixed in
latest master of cPython [3] (the intent of the patch does not seem
relevant, but it removes the offending code while reshuffling the code).
Note that now cPython correctly checks the exception value before
accessing its attributes [4].

The patch in cPython that resulted in the failure is [5] and is present
since initial Python 3k releases.

The patch in fixtures that broke us is [6].

[1]: https://hg.python.org/cpython/file/tip/Lib/logging/__init__.py#l1412
[2]: https://hg.python.org/cpython/file/tip/Lib/logging/__init__.py#l575
[3]: https://hg.python.org/cpython/rev/73afda5a4e4c
[4]: https://hg.python.org/cpython/rev/73afda5a4e4c#l6.484
[5]: https://hg.python.org/cpython/rev/2ee09afee126
[6]: https://github.com/testing-cabal/fixtures/commit/67dd2956943261e845a866dab155208c51da937e

Closes-Bug: #1503847
Closes-Bug: #1504053
Co-Authored-By: Ihar Hrachyshka <ihrachys@redhat.com>
Change-Id: I456b7846b8a53e4d3f8c91583685e0e1eaa84719
(cherry picked from commit 8f58bbf38f5984e70d6e0be7427deb99d7782d1d)

8 years agoMerge "Fix the bug of "Spelling error of a word""
Jenkins [Tue, 13 Oct 2015 14:57:48 +0000 (14:57 +0000)]
Merge "Fix the bug of "Spelling error of a word""

8 years agoAvoid DuplicateOptError in functional tests
Sergey Belous [Tue, 13 Oct 2015 14:50:05 +0000 (17:50 +0300)]
Avoid DuplicateOptError in functional tests

Some test require to register options with oslo.Config,
but now some of them use global cfg.CONF for it.
This can cause the DuplicateOptError if two tests tried to
register the same option with different values of config.
We should use the oslo_config fixture [1]
in functional tests to avoid it.

[1] http://git.openstack.org/cgit/openstack/oslo.config/tree/oslo_config/fixture.py

Closes-bug: #1505715
Change-Id: I5c2340c0af054dfa78788cbc61dfb1fd9feea535

8 years agoMerge "Add deadlock warning to 'effective neutron'"
Jenkins [Tue, 13 Oct 2015 14:15:06 +0000 (14:15 +0000)]
Merge "Add deadlock warning to 'effective neutron'"

8 years agoMake test_server work with older versions of oslo.service
Ihar Hrachyshka [Tue, 13 Oct 2015 12:46:02 +0000 (14:46 +0200)]
Make test_server work with older versions of oslo.service

Change I18a11283925369bc918002477774f196010a1bc3 fixed the test for
oslo.service >= 0.10.0, but it also broke it for older versions of
oslo.service. Since the library has minimal version of >= 0.7.0 in
requirements.txt, test should pass for those versions too.

Now, instead of validating that either reset() or restart() of workers
are triggered on SIGHUP, just validate that .start() is triggered the
expected number of times (either way, no matter how oslo.service decide
to clean up the children, they exit and then are respawned).

Change-Id: I41f9d3af780b3178b075bc1e7084f417a2bd1378
Closes-Bug: #1505645

8 years agoAlways send status update for processed floating ips
Oleg Bondarev [Tue, 13 Oct 2015 08:55:02 +0000 (11:55 +0300)]
Always send status update for processed floating ips

Currently l3 agent skips status update for floating ips in case
status didn't change: this might be wrong if status has changed
on server side while agent was processing. See bug for details.

L3 agent skips floating ip processing in case ip address exists
on external device. So we can still skip status update for such
floating ips.

Closes-Bug: #1505557
Change-Id: I908fe5a0555f68ab85e7d199c36a903b915e103f

8 years agoFix inconsistency in DHCPv6 hosts and options generation
Alexey I. Froloff [Wed, 30 Sep 2015 18:38:24 +0000 (21:38 +0300)]
Fix inconsistency in DHCPv6 hosts and options generation

The DHCP agent is inconsistent in how it handles subnets whose
ipv6_address_mode is not slaac.  While the DHCP agent writes out both
DHCPv6 host entries and DHCPv6 options for ports scoped by the subnet
for dnsmasq to use, subnet specific options are not written.

This patch addresses this inconsistency by generating subnet specific
options when the subnet's ipv6_address_mode is not slaac.

Closes-Bug: #1501451

Change-Id: I372c93fa5667e955c7b81181daa2e66f47d85fdf

8 years agoL3 agent: use run_immediately parameter to sync after start
Oleg Bondarev [Mon, 12 Oct 2015 15:59:55 +0000 (18:59 +0300)]
L3 agent: use run_immediately parameter to sync after start

Explicit call to periodic resync after start may lead to
double syncing. See bug for details.

Closes-Bug: #1505282
Change-Id: Ib5e481d579039b2c3e87d4f12cad1241d02fe060

8 years agotest_db_base_plugin_v2: Skip a few tests on some platforms
YAMAMOTO Takashi [Mon, 28 Sep 2015 05:48:55 +0000 (14:48 +0900)]
test_db_base_plugin_v2: Skip a few tests on some platforms

netaddr (and its underlying libc inet_pton) produces different
representations of IPv4-compat addresses for different platforms.

Linux:
    >>> netaddr.IPAddress("::2")
    IPAddress('::2')
    >>>

OSX:
    >>> netaddr.IPAddress("::2")
    IPAddress('::0.0.0.2')
    >>>

As our API assumes Linux's way, skip affected test cases on
the other platforms.

Related-Bug: #1484837
Change-Id: I89e1822bb92dfcf8772bba1a3edf908c89550119

8 years agoMerge "Add OpenFixture and get rid of 'open' mocks"
Jenkins [Mon, 12 Oct 2015 23:26:52 +0000 (23:26 +0000)]
Merge "Add OpenFixture and get rid of 'open' mocks"

8 years agoFix error returned when an HA router is updated to DVR
Assaf Muller [Mon, 12 Oct 2015 20:17:13 +0000 (16:17 -0400)]
Fix error returned when an HA router is updated to DVR

Before this patch, the code compares the 'ha' flag that
comes in from the user, and the current state of the 'distributed'
flag in the DB. This is wrong because if a router is currently
HA in the DB, and the update request contains only
{'distributed': True}, then the 'ha' flag from the request
is None and the error condition is never raised!

The reason the unit tests
(Specifically test_migrate_ha_router_to_distributed)
did not catch this issue is because
of another bug: The _update_router helper method in the L3 HA
unit tests had an 'ha' default value of True, when it should
have had a default value of None. Setting it to None fails
the unit test (Because it raises the wrong exception),
and the contents of the patch makes the unit test pass.

Change-Id: Ie979b6a8400490b578ded17dc6529529e9637b34
Closes-Bug: #1505375

8 years agoRemove disable_service from DBs configuration
Assaf Muller [Mon, 12 Oct 2015 14:40:49 +0000 (10:40 -0400)]
Remove disable_service from DBs configuration

Remove disable_service from configure_for_func_testing.
A recent Devstack patch (Linked in bug report) checks
that a disabled service is not enabled later. This breaks
the code this patch touches. I believe the DBs were disabled
and enabled with the assumption that Devstack expects only
a single DB to be configured at a time, but that doesn't
seem to be the case. Simply removing the disable calls seems
to work fine.

Also exclude oslo.messaging==2.6.0 as per global-requirements.txt.

Closes-Bug: #1505259
Closes-Bug: #1505295

Depends-On: I47ab12f719fba41c2f0c03047b05eb28f4423682
Change-Id: I0fbcc1218e1aa9adbf89f6121c1c2e224ed93cab

8 years agoMerge "QoS SR-IOV: allow to reset vf rate when VF is assigend to VM"
Jenkins [Mon, 12 Oct 2015 13:53:14 +0000 (13:53 +0000)]
Merge "QoS SR-IOV: allow to reset vf rate when VF is assigend to VM"

8 years agoReplaced deprecated isotime() function
Brandon Palm [Fri, 9 Oct 2015 13:52:58 +0000 (08:52 -0500)]
Replaced deprecated isotime() function

The agents_db.py was using a deprecated function 'isotime()'.

I removed the deprecated function and replaced it with:
datetime.datetime.isoformat()

https://docs.python.org/2/library/datetime.html

Change-Id: I32b6096fb1a42caef529db0a71fa52f7de5706f5
Closes-Bug: #1504557

8 years agoDVR: notify specific agent when creating floating ip
Oleg Bondarev [Mon, 5 Oct 2015 14:34:45 +0000 (17:34 +0300)]
DVR: notify specific agent when creating floating ip

Currently when floating ip is created, a lot of useless action
is happening: floating ip router is scheduled, all l3 agents where
router is scheduled are notified about router update, all agents
request full router info from server. All this becomes a big
performance problem at scale with lots of compute nodes.

In fact on (associated) Floating IP creation we really need
to notify specific l3 agent on compute node where associated
VM port is located and do not need to schedule router and
bother other agents where rourter is scheduled. This should
significally decrease unneeded load on neutron server at scale.

Partial-Bug: #1486828
Change-Id: I0cbe8c51c3714e6cbdc48ca37135b783f8014905

8 years agoFix the bug of "Spelling error of a word"
JuPing [Mon, 12 Oct 2015 09:21:08 +0000 (17:21 +0800)]
Fix the bug of "Spelling error of a word"

The word "occured" should be spelled as "occurred".
So it is changed.

Change-Id: Ice5212dc8565edb0c5b5c55f979b27440eeeb9aa
Closes-Bug: #1505043

8 years agoMerge "Use assertTrue(observed) instead of assertEqual(True, observed)"
Jenkins [Mon, 12 Oct 2015 09:13:37 +0000 (09:13 +0000)]
Merge "Use assertTrue(observed) instead of assertEqual(True, observed)"

8 years agoMerge "Add pointers to access Neutron test coverage details"
Jenkins [Sun, 11 Oct 2015 17:02:40 +0000 (17:02 +0000)]
Merge "Add pointers to access Neutron test coverage details"

8 years agoRemove the embrane plugin
Henry Gessau [Fri, 9 Oct 2015 20:49:28 +0000 (16:49 -0400)]
Remove the embrane plugin

The embrane plugin is EOL.
Users have been transitioned to other solutions.

Closes-Bug: #1504670

Depends-On: Ic13a101f04086af84251c98d775d75334504007d

Change-Id: Ibc336db310d051cae65291724ea5becadc3d3d45

8 years agoFix functional test_server tests
armando-migliaccio [Tue, 13 Oct 2015 01:18:48 +0000 (18:18 -0700)]
Fix functional test_server tests

Now oslo.service 0.10.0 no longer sends SIGHUP to parent and
children services.

This was a chance introduced by 286a6ea, and since it invalidated
the very logic under test, this must be revised.

Change-Id: I18a11283925369bc918002477774f196010a1bc3
Closes-bug: #1505438

8 years agoAdd deadlock warning to 'effective neutron'
Kevin Benton [Tue, 29 Sep 2015 16:15:50 +0000 (09:15 -0700)]
Add deadlock warning to 'effective neutron'

Change-Id: Iaf9bd0b5d84ecb4f4de406e632c0d05327621bcb

8 years agoQuick optimization to avoid a query if no ports have fixed ips
Carl Baldwin [Wed, 7 Oct 2015 19:49:27 +0000 (19:49 +0000)]
Quick optimization to avoid a query if no ports have fixed ips

I just noticed this trivial optimization while working on address
scopes changes.

Change-Id: I6f852f47c3d9ae5d0bf7a9950e8829f8bcb63cff

8 years agoAdd OpenFixture and get rid of 'open' mocks
Kevin Benton [Thu, 8 Oct 2015 19:31:32 +0000 (12:31 -0700)]
Add OpenFixture and get rid of 'open' mocks

This patch adds a new fixture that allows a specific
file to be mocked for 'open' calls while leaving the
normal 'open' behavior for everything else. This is to
prevent cases like the related bug where a library we
depend on can unexpectedly call 'open' on its own
(in that case it was debtcollector->warnings->linecache).

It also replaces all open mocks in the unit tests with
this new fixture.

Related-Bug: #1503847
Change-Id: Ie9e1a01acd5cb231718efd028d30df6c8dbcd3f0

8 years agoMerge "Fix rule generation for single and all host rules"
Jenkins [Fri, 9 Oct 2015 18:46:46 +0000 (18:46 +0000)]
Merge "Fix rule generation for single and all host rules"

8 years agoMerge "Correct MAC representation to match iptables output"
Jenkins [Fri, 9 Oct 2015 16:00:06 +0000 (16:00 +0000)]
Merge "Correct MAC representation to match iptables output"

8 years agoUse assertTrue(observed) instead of assertEqual(True, observed)
Hirofumi Ichihara [Mon, 5 Oct 2015 22:50:18 +0000 (07:50 +0900)]
Use assertTrue(observed) instead of assertEqual(True, observed)

We should use assertTrue not assertEqual.

Closes-Bug: #1503071

Change-Id: Ib75dd9f8965fd04fe581f09a5e5df3df43542d89

8 years agoMerge "Removed release_port_fixed_ip dead code"
Jenkins [Fri, 9 Oct 2015 12:56:18 +0000 (12:56 +0000)]
Merge "Removed release_port_fixed_ip dead code"

8 years agoMerge "Removed neutronclient option from metadata agent"
Jenkins [Fri, 9 Oct 2015 12:38:00 +0000 (12:38 +0000)]
Merge "Removed neutronclient option from metadata agent"

8 years agoMerge "Remove remaining uses of load_admin_roles flag in tests"
Jenkins [Fri, 9 Oct 2015 12:17:31 +0000 (12:17 +0000)]
Merge "Remove remaining uses of load_admin_roles flag in tests"

8 years agoMerge "Removed a pile of debtcollector removals from neutron.context"
Jenkins [Fri, 9 Oct 2015 12:17:12 +0000 (12:17 +0000)]
Merge "Removed a pile of debtcollector removals from neutron.context"

8 years agoMerge "Consume ConfigurableMiddleware from oslo_middleware"
Jenkins [Fri, 9 Oct 2015 12:16:28 +0000 (12:16 +0000)]
Merge "Consume ConfigurableMiddleware from oslo_middleware"

8 years agoMerge "Validate local_ip for linuxbridge-agent"
Jenkins [Fri, 9 Oct 2015 12:15:54 +0000 (12:15 +0000)]
Merge "Validate local_ip for linuxbridge-agent"

8 years agoMerge "Move gateway processing out of init_router_port"
Jenkins [Fri, 9 Oct 2015 11:53:40 +0000 (11:53 +0000)]
Merge "Move gateway processing out of init_router_port"

8 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 9 Oct 2015 11:19:52 +0000 (11:19 +0000)]
Merge "Imported Translations from Zanata"

8 years agoMerge "Only lock in set_members on mutating operations"
Jenkins [Fri, 9 Oct 2015 07:57:10 +0000 (07:57 +0000)]
Merge "Only lock in set_members on mutating operations"

8 years agoMerge "test_create_router_gateway_fails fixes"
Jenkins [Fri, 9 Oct 2015 06:53:01 +0000 (06:53 +0000)]
Merge "test_create_router_gateway_fails fixes"

8 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 9 Oct 2015 06:21:29 +0000 (06:21 +0000)]
Imported Translations from Zanata

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

Change-Id: I5362373b349baa17bedb7347c649e70151ca375e

8 years agoQoS SR-IOV: allow to reset vf rate when VF is assigend to VM
Moshe Levi [Thu, 8 Oct 2015 19:41:06 +0000 (22:41 +0300)]
QoS SR-IOV: allow to reset vf rate when VF is assigend to VM

delete_bandwidth_limit method is called in 2 scenarios:
1. when deleting a port
2. when removing a policy from a port

self.eswitch_mgr.clear_max_rate is valdating if VF is not assigned to VM
which is good for case 1, but prevent reseting the max rate for case 2.
for case 2 the delete_bandwidth_limit should  call _set_vf_max_rate with max_kbps=0
to reset VF max rate for assigned VM.

Closes-Bug: #1504165

Change-Id: Ief708531708b8faa918603298d49d39ef5ba2df5

8 years agoMerge "Fix iptables comments for bare jump rules"
Jenkins [Fri, 9 Oct 2015 01:45:29 +0000 (01:45 +0000)]
Merge "Fix iptables comments for bare jump rules"