]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
9 years agoDelete openvswitch_agent.ini on purge (Closes: #802538).
Thomas Goirand [Fri, 23 Oct 2015 10:30:13 +0000 (12:30 +0200)]
Delete openvswitch_agent.ini on purge (Closes: #802538).

9 years agoUploading to unstable.
Thomas Goirand [Sat, 17 Oct 2015 09:32:30 +0000 (09:32 +0000)]
Uploading to unstable.

9 years agoNow packaing 7.0.0
Thomas Goirand [Thu, 15 Oct 2015 14:30:38 +0000 (16:30 +0200)]
Now packaing 7.0.0

9 years agoMerge tag '7.0.0' into debian/liberty
Thomas Goirand [Thu, 15 Oct 2015 14:29:19 +0000 (16:29 +0200)]
Merge tag '7.0.0' into debian/liberty

Neutron 7.0.0

9 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)

9 years agoAdded python-pymysql as runtime dependency.
Thomas Goirand [Tue, 13 Oct 2015 13:06:40 +0000 (15:06 +0200)]
Added python-pymysql as runtime dependency.

9 years agoDHCP: protect against case when device name is None
Gary Kotton [Sun, 27 Sep 2015 07:24:31 +0000 (00:24 -0700)]
DHCP: protect against case when device name is None

There are edge cases when the agent attempts to unplug an interface and
the device does not exist.

Change-Id: I6917ec94f685f3dd3bff6aa1d43dc56aab76274a
Closes-bug: #1498370
(cherry picked from commit caebc8fb8e8d9782746c3cc3ddc86f786342c819)

9 years agoExecute ipset command using check_exit_code
shihanzhang [Fri, 18 Sep 2015 02:38:43 +0000 (10:38 +0800)]
Execute ipset command using check_exit_code

When l2 agent execute ipset command, we should pass
parameter 'check_exit_code' to self.execute acording to
action.
The intention is to safely fail if we try to destroy a
non existing set, or delete a non existing member.
Otherwise the agent gets stuck in a loop if such situation
happens. Such kind of event would be logged as errors.

Change-Id: If67330523d114d6da13d0280851e7138a51d08f7
Closes-bug: #1497074

9 years agoMerge "The option force_metadata=True breaks the dhcp agent" into stable/liberty
Jenkins [Mon, 5 Oct 2015 15:31:47 +0000 (15:31 +0000)]
Merge "The option force_metadata=True breaks the dhcp agent" into stable/liberty

9 years agoThe option force_metadata=True breaks the dhcp agent
Nir Magnezi [Thu, 24 Sep 2015 14:49:15 +0000 (17:49 +0300)]
The option force_metadata=True breaks the dhcp agent

Patch I5f6ee9788717c3d4f1f2e2a4b9734fdd8dd92b40 has an issue with
force_metadata = True.

Using the option force_metadata=True while
enable_isolated_metadata=False (which is the default), will break the
dhcp agent because the variable subnet_to_interface_ip is being
referenced before assignment.

Co-Authored-By: Jakub Libosvar <jlibosva@redhat.com>
Change-Id: I4e1d918e3a24dd483ee134021f587ae4520bf431
Closes-Bug: #1499406
(cherry picked from commit 473c338ff8c5526157d297b7e90d5e4f5e94cbb9)

9 years agoDo not log an error when deleting a linuxbridge does not exist
Matt Riedemann [Thu, 1 Oct 2015 13:55:14 +0000 (06:55 -0700)]
Do not log an error when deleting a linuxbridge does not exist

When you're racing to teardown and relying on RPC, it should not be
considered an error that a bridge does not exist when you're trying to
delete it anyway. This is better served as debug level information.

For context, this shows up over 1000 times in successful
gate-tempest-dsvm-neutron-linuxbridge job runs in a week so it's
probably safe to say it's not contributing to test failures.

Closes-Bug: #1501779

Change-Id: I8e9b27e010d033291497f4e660a97bbae92e75b1
(cherry picked from commit a9dc48f5a4616a505824c3e8520c3dce7436f1b1)

9 years agoMerge "Tag the alembic migration revisions for Liberty" into stable/liberty
Jenkins [Fri, 2 Oct 2015 20:02:11 +0000 (20:02 +0000)]
Merge "Tag the alembic migration revisions for Liberty" into stable/liberty

9 years agoMerge "/common/utils.py py34 incompatibility" into stable/liberty
Jenkins [Fri, 2 Oct 2015 20:01:52 +0000 (20:01 +0000)]
Merge "/common/utils.py py34 incompatibility" into stable/liberty

9 years agoMerge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found...
Jenkins [Fri, 2 Oct 2015 19:56:33 +0000 (19:56 +0000)]
Merge "Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'" into stable/liberty

9 years agoMerge "metadata: don't crash proxy on non-unicode user data" into stable/liberty
Jenkins [Fri, 2 Oct 2015 19:52:49 +0000 (19:52 +0000)]
Merge "metadata: don't crash proxy on non-unicode user data" into stable/liberty

9 years agoMerge "usage_audit: Fix usage_audit to work with ML2" into stable/liberty
Jenkins [Fri, 2 Oct 2015 19:44:54 +0000 (19:44 +0000)]
Merge "usage_audit: Fix usage_audit to work with ML2" into stable/liberty

9 years agoMerge "Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'" into stable...
Jenkins [Fri, 2 Oct 2015 19:43:55 +0000 (19:43 +0000)]
Merge "Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'" into stable/liberty

9 years agoMerge "Use format to convert ints to strings" into stable/liberty
Jenkins [Fri, 2 Oct 2015 19:43:42 +0000 (19:43 +0000)]
Merge "Use format to convert ints to strings" into stable/liberty

9 years agoMerge "Just call set-manager if connecting fails" into stable/liberty
Jenkins [Fri, 2 Oct 2015 19:38:50 +0000 (19:38 +0000)]
Merge "Just call set-manager if connecting fails" into stable/liberty

9 years agoMerge "Pecan: Fix quota enforcement" into stable/liberty
Jenkins [Fri, 2 Oct 2015 19:38:37 +0000 (19:38 +0000)]
Merge "Pecan: Fix quota enforcement" into stable/liberty

9 years agoMerge "Check idl.run() return value before blocking" into stable/liberty
Jenkins [Fri, 2 Oct 2015 18:27:17 +0000 (18:27 +0000)]
Merge "Check idl.run() return value before blocking" into stable/liberty

9 years agoTag the alembic migration revisions for Liberty
Henry Gessau [Sun, 27 Sep 2015 19:36:59 +0000 (15:36 -0400)]
Tag the alembic migration revisions for Liberty

Previously when we had one repo with one alembic branch we would
create a milestone revision on that single branch. Now we have
multiple repos and expand/contract branches for each repo.

So from now on we tag the final revision on every branch when we make
a milestone release. Update the cli to support the command:
  neutron-db-manage upgrade <milestone>
where <milestone> becomes an alias for all the revisions for a
milestone.

Closes-Bug: #1499033

Change-Id: I38623986dd574bec01fe147f9c6a747f3f512bb7
(cherry picked from commit 52236764a3a7c23ec24a86ccb84bc6737e2a4791)
Conflicts:
        neutron/db/migration/cli.py
neutron/tests/unit/db/test_migration.py

9 years ago/common/utils.py py34 incompatibility
Bogdan Tabor [Wed, 23 Sep 2015 08:52:25 +0000 (10:52 +0200)]
/common/utils.py py34 incompatibility

Fixes bug found during unit test of get_random_string() method.
For Python3 it is required to encode string as bytes object
before hashing.

Related-blueprint: neutron-python3
Closes-bug: #1502148
Change-Id: I93061a831b45fc8b3ede0211af665ce02f36f38a
(cherry picked from commit 3d54459c2971f01581354c8a6b9c58abea7743d8)

9 years agoJust call set-manager if connecting fails
Terry Wilson [Tue, 29 Sep 2015 02:01:30 +0000 (21:01 -0500)]
Just call set-manager if connecting fails

Instead of calling set-manager every init, only call it when
getting the schema fails inside of Connection.start() which is
only called once.

Closes-Bug: #1499784
Change-Id: Ib28cd912e1f2eba318a6b0a82269919a1c95312d
(cherry picked from commit c561c7c20acef7227e2eab2be30a2626e16d2354)

9 years agoFixes 'ovs-agent cannot start on Windows because root_helper opt is not found'
Adelina Tuvenie [Tue, 22 Sep 2015 06:51:42 +0000 (23:51 -0700)]
Fixes 'ovs-agent cannot start on Windows because root_helper opt is not found'

Change Ie1224f8a1c17268cd7d1c474ed82fdfb8852eaa8 removed
config.register_root_helper() from ovs_neutron_agent:main, thus the agent
cannot start on Windows since root_helper config option is never
registered.

The fix consists in adding config.register_root_helper in the Windows side
utils.

Closes-Bug: #1497930

Change-Id: I6adc3b869c9564cac3ab99174b8fe47584213e59
(cherry picked from commit 074f82d3ec18fd591e9d1805676dfe13bd508510)

9 years agoUse format to convert ints to strings
James Page [Thu, 1 Oct 2015 10:54:28 +0000 (11:54 +0100)]
Use format to convert ints to strings

This ensures that on 32bit architectures, where
sometimes an implicit long is created, the resulting
string does not contain a 'L' suffix as generated
by the hex function.

Change-Id: I264f90d68009963fe7a217c2170e1cf2f46ae2bb
Closes-Bug: 1501703
(cherry picked from commit 49883f1b2bfc9a4f06b1d336553d7f0ab4289a0d)

9 years agoFixes 'ovs-agent fails to start on Windows beacause of SIGHUP'
Adelina Tuvenie [Thu, 24 Sep 2015 13:17:06 +0000 (06:17 -0700)]
Fixes 'ovs-agent fails to start on Windows beacause of SIGHUP'

Change Ic0cf8a9ca7f3a16b556a6825e2979471ae136c33 has added the handling
of SIGHUP in neutron_ovs_agent. This does not work on Windows as there is
no SIGHUP signal on windows.

The fix consists in checking if signal has SIGHUP attr before setting the handler
for SIGHUP.

Change-Id: I08258580252d68db222cbb9db7812ff1dfb37a56
Closes-Bug: #1499345
(cherry picked from commit 584bb1aad8647872cb8722beeb84e9ec08abc208)

9 years agousage_audit: Fix usage_audit to work with ML2
Toni Ylenius [Wed, 5 Aug 2015 12:06:00 +0000 (15:06 +0300)]
usage_audit: Fix usage_audit to work with ML2

The script didn't work with the ML2 plugin as router related
functionality is moved to the L3 router service plugin. The fix assumes
that the L3 router service plugin is in use, and this seems to apply to
most of the current core plugins.

Change-Id: If3eb7bde4a5b8b9ca2ac0bd7327325f6c0ad620a
Closes-Bug: 1481692
(cherry picked from commit 2bded62d6a6a141e610a06e5f40bb28c0b26da5c)

9 years agoPecan: Fix quota enforcement
Salvatore Orlando [Thu, 1 Oct 2015 23:07:59 +0000 (16:07 -0700)]
Pecan: Fix quota enforcement

Ensure that core resources, and not only extension resources,
are registered with the quota engine. Otherwise no enforcement
will happen for them.

Further, do not pass anymore the 'resource name' to the resource's
count method as it is not necessary anymore since Liberty.

Change-Id: I895b4e69e50dbf1aac39e07eba07c3e3ff30808a
Closes-bug: #1501948
(cherry picked from commit 809ac2161577ef354b75713c0d5210e03fa16d6a)

9 years agometadata: don't crash proxy on non-unicode user data
Ihar Hrachyshka [Thu, 1 Oct 2015 15:13:25 +0000 (17:13 +0200)]
metadata: don't crash proxy on non-unicode user data

We attempt to log every successful metadata response with LOG.debug. But
as per oslo.log docs [1], we should make sure that what we pass into the
library is unicode.

Http.request returns a tuple of Response object and a string, which is
bytes in Python 2.x [2].

That's why we need to convert the response content to unicode before
passing it into oslo.log.

To achieve it, we utilize encodeutils.safe_decode with 'replace' errors
handling strategy, so that we don't get exceptions on input that does
not conform unicode.

For the unit test case, we pass a string that is not expected to convert
to unicode with errors='strict' strategy or similar, and check that we
still don't crash.

While at it, we remove a check for the number of log calls being
triggered, because it's something that we should avoid validating in
test cases, and it cannot trigger a real bug. The mock that was used to
count the number would also hide the bug that we try to reproduce.

Note that the bug does not require debug to be set because the crash
occurs before oslo.log machinery decides it should not log the message.

[1]: http://docs.openstack.org/developer/oslo.log/usage.html#no-more-implicit-conversion-to-unicode-str
[2]: http://bitworking.org/projects/httplib2/doc/html/libhttplib2.html#httplib2.Http.request

Closes-Bug: #1501772
Change-Id: I6a32c40ff117fae43913386134c8981539697ce8
(cherry picked from commit 80e3d9be4923ecad17377b1d15c8392b8a43dac6)

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 2 Oct 2015 06:33:59 +0000 (06:33 +0000)]
Imported Translations from Zanata

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

Change-Id: Ib6bba07a6f0cb3c2f9eda98c5f9f0c93c84e2ea0

9 years agoCheck idl.run() return value before blocking
Terry Wilson [Mon, 28 Sep 2015 22:42:25 +0000 (17:42 -0500)]
Check idl.run() return value before blocking

The IDL change_seqno can change as a result of running idl.run(), and
it returns True if there has been a change. The existing code would
block without checking the return value, and therefor could block
until another change occurred, or the timeout was reached.

Closes-Bug: #1501090
Change-Id: I9b7aac2755e6e6b69165023e01583337f9d30f15
(cherry picked from commit 5dba2ac71c16cfd11937cf4becbaabd5b807678d)

9 years agoNow neutron-server depends on python-openstackclient.
Thomas Goirand [Mon, 21 Sep 2015 13:04:03 +0000 (13:04 +0000)]
Now neutron-server depends on python-openstackclient.

9 years agoRebased patches.
Thomas Goirand [Fri, 25 Sep 2015 07:49:58 +0000 (09:49 +0200)]
Rebased patches.

9 years ago * New upstream release.
Thomas Goirand [Fri, 25 Sep 2015 07:41:28 +0000 (09:41 +0200)]
  * New upstream release.
  * Fixed (build-)depends for this release.

9 years agoMerge tag '7.0.0_rc1' into debian/liberty
Thomas Goirand [Fri, 25 Sep 2015 07:37:46 +0000 (09:37 +0200)]
Merge tag '7.0.0_rc1' into debian/liberty

Neutron liberty-rc1 milestone (7.0.0.0rc1)

9 years agoNow packaging Liberty rc1.
Thomas Goirand [Fri, 25 Sep 2015 07:37:23 +0000 (09:37 +0200)]
Now packaging Liberty rc1.

9 years agoMerge "Don't write DHCP opts for SLAAC entries" into stable/liberty
Jenkins [Thu, 24 Sep 2015 23:00:18 +0000 (23:00 +0000)]
Merge "Don't write DHCP opts for SLAAC entries" into stable/liberty

9 years agoMerge "Cleanup of Translations" into stable/liberty
Jenkins [Thu, 24 Sep 2015 22:56:02 +0000 (22:56 +0000)]
Merge "Cleanup of Translations" into stable/liberty

9 years agoDon't write DHCP opts for SLAAC entries
Kevin Benton [Fri, 18 Sep 2015 14:15:45 +0000 (07:15 -0700)]
Don't write DHCP opts for SLAAC entries

Change I81b4669eadaa9119e08c6a5e1d2a7b5959babdcc
caused DHCP options to be written for SLAAC entries
when they previously were not. This restores the previous
behavior.

Closes-Bug: #1499054
Change-Id: I81400305f166d62aa4612aab54602abb8178b64c
(cherry picked from commit 22f5fef5251cff9dbce35ca9a0ec8ea3b42f359c)

9 years agoCleanup of Translations
Andreas Jaeger [Thu, 24 Sep 2015 18:53:09 +0000 (20:53 +0200)]
Cleanup of Translations

In preparation for the release, do some cleanups for translations.

Removes all po files that are partially translated. The translation
team has decided to exclude files with less than 66 % of translated
content. There is no content lost, all data is in the translation
server, we just remove it from the repository.

This updates also recreates pot (translation source files) to
reflect the state of the repository in case there was no recent
import for them.

This change needs to be done manually since the automatic import does
not handle some of these cases.

Change-Id: I597258484d388091366bf9baed6e87dafb3f0cc3

9 years agoFix quota usage tracker for security group rules
Salvatore Orlando [Thu, 24 Sep 2015 12:45:40 +0000 (05:45 -0700)]
Fix quota usage tracker for security group rules

This simple patch ensures usage for security group rules is
marked as dirty when a security group rule is deleted.
To this aim, the security group rule is deleted using ORM
in order to ensure the sqlalchemy even if fired.

Closes-Bug: #1499339

Change-Id: I1e81fe03fed14ec438cea5d7675f66caeb91afd8
(cherry picked from commit 851b1b4bbbaa965f190bfacab03fd6ece80ad0ec)

9 years agoUpdate default branch in .gitreview to stable/liberty
Kyle Mestery [Thu, 24 Sep 2015 13:09:48 +0000 (13:09 +0000)]
Update default branch in .gitreview to stable/liberty

Change-Id: I5463e1ffb9e7fc772ba27dd7b7d7d2414a526b5a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
9 years agoMerge "Remove early yields in _iter_hosts in dhcp agent"
Jenkins [Wed, 23 Sep 2015 14:46:39 +0000 (14:46 +0000)]
Merge "Remove early yields in _iter_hosts in dhcp agent"

9 years agoMerge "Eliminate autoaddress check for DNS integration"
Jenkins [Wed, 23 Sep 2015 03:28:41 +0000 (03:28 +0000)]
Merge "Eliminate autoaddress check for DNS integration"

9 years agoMerge "Adds configurable agent type"
Jenkins [Wed, 23 Sep 2015 03:27:39 +0000 (03:27 +0000)]
Merge "Adds configurable agent type"

9 years agoMerge "Add neutron subproject & stable branch gerrit review links"
Jenkins [Wed, 23 Sep 2015 00:36:03 +0000 (00:36 +0000)]
Merge "Add neutron subproject & stable branch gerrit review links"

9 years agoMerge "Only get host data for floating ips on DVR routers"
Jenkins [Tue, 22 Sep 2015 23:52:56 +0000 (23:52 +0000)]
Merge "Only get host data for floating ips on DVR routers"

9 years agoEliminate autoaddress check for DNS integration
Miguel Lavalle [Tue, 22 Sep 2015 22:22:31 +0000 (17:22 -0500)]
Eliminate autoaddress check for DNS integration

The autoaddress check for DNS integartion is not required anymore. It is
removed from the DB plugin. This check was being performed to reflect
incorrect functionality in the DHCP agent as indicated in bug
https://bugs.launchpad.net/neutron/+bug/1498665

Change-Id: I4b00618c328567f998765ed9a023c4c50d950b2b
Closes-Bug: #1497450

9 years agoOnly get host data for floating ips on DVR routers
Carl Baldwin [Wed, 16 Sep 2015 21:53:54 +0000 (21:53 +0000)]
Only get host data for floating ips on DVR routers

First, we are only interested in setting the host attribute when
the router is a DVR router.  Second, we don't need to query all of
the ports on the host, we just need to query the ports that are
referenced by the set of floating ips that we already have.

Closes-bug: #1496974
Change-Id: If611de14b2ab77d2eb9ce8c5b307ea6dd4403fe1

9 years agoAdd neutron subproject & stable branch gerrit review links
Ryan Moats [Tue, 22 Sep 2015 16:47:26 +0000 (11:47 -0500)]
Add neutron subproject & stable branch gerrit review links

Add links to gerrit URLs that will list reviews for both neutron
subprojects as well as stable branches.

Change-Id: I3b6ab4e57e904dc19ef6e7d116c8b0465e53c21b
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoLink dashboards into generated documentation
Ryan Moats [Mon, 21 Sep 2015 20:56:26 +0000 (15:56 -0500)]
Link dashboards into generated documentation

Move the dashboard directory under the source tree so that
it is available on generated builds. In addition, recast
image pages as RST so that they will be rendered

Change-Id: I316128491e8dae70ac06e260f5bdd8f440d285aa
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoAdd neutron/master review link to dashboard/index.html
Ryan Moats [Mon, 21 Sep 2015 16:15:37 +0000 (11:15 -0500)]
Add neutron/master review link to dashboard/index.html

Add a link to gerrit that provide a summary of outstanding
neutron/master reviews

Change-Id: Ic79eedffc6c0bc761757525e6d7c812f9a470158

9 years agoMerge "Create dashboard page with gate jobs statistics"
Jenkins [Tue, 22 Sep 2015 18:36:33 +0000 (18:36 +0000)]
Merge "Create dashboard page with gate jobs statistics"

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Tue, 22 Sep 2015 15:59:52 +0000 (15:59 +0000)]
Merge "Imported Translations from Zanata"

9 years agoCreate dashboard page with gate jobs statistics
Ryan Moats [Mon, 14 Sep 2015 16:00:36 +0000 (11:00 -0500)]
Create dashboard page with gate jobs statistics

Also added index.html page to allow selection of which graphs
to show.  Linking to existing RST comes in a child patch

Change-Id: I6edd7976ae009fc0279238b30ca5223088b6d81d
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "ml2: don't consider drivers with no bind_port for qos supported rule types"
Jenkins [Tue, 22 Sep 2015 15:07:22 +0000 (15:07 +0000)]
Merge "ml2: don't consider drivers with no bind_port for qos supported rule types"

9 years agoml2: don't consider drivers with no bind_port for qos supported rule types
Ihar Hrachyshka [Thu, 17 Sep 2015 17:13:22 +0000 (19:13 +0200)]
ml2: don't consider drivers with no bind_port for qos supported rule types

If the driver is not going to bind a port, we should not use it as
justification to limit the subset of rule types available for the user.

The most common scenario for that would be l2pop, that does not handle port
binding, but merely modifies the implementation details of node
interconnection.

Change-Id: Iba0f3530deff3bb2871ebf893c43ef628a80c7c0
Closes-Bug: #1488996

9 years agoAdds configurable agent type
Sean Mooney [Fri, 26 Jun 2015 11:37:22 +0000 (12:37 +0100)]
Adds configurable agent type

This change introduces a new agent_type config option which
allows the ovs agent to be reused by out of tree
mechanism drivers.

DocImpact
Change-Id: I48f4be4b1d51bcff62e86e5814c12bd9bfa3c902
Closes-Bug: #1469871

9 years agoMerge "Relax service module check on service providers"
Jenkins [Tue, 22 Sep 2015 07:50:10 +0000 (07:50 +0000)]
Merge "Relax service module check on service providers"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Tue, 22 Sep 2015 07:42:20 +0000 (07:42 +0000)]
Imported Translations from Zanata

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

Change-Id: Ia2eae3b8a9b112856f7ede06e6f9521398baac8c

9 years agoMerge "tests: don't validate respawn as part of ovsdb monitor functional test"
Jenkins [Tue, 22 Sep 2015 03:58:37 +0000 (03:58 +0000)]
Merge "tests: don't validate respawn as part of ovsdb monitor functional test"

9 years agoMerge "ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods"
Jenkins [Tue, 22 Sep 2015 03:58:22 +0000 (03:58 +0000)]
Merge "ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods"

9 years agoMerge "Updated from global requirements"
Jenkins [Tue, 22 Sep 2015 03:32:46 +0000 (03:32 +0000)]
Merge "Updated from global requirements"

9 years agoMerge "Get rid of ConfigParser code in ProviderConfiguration"
Jenkins [Tue, 22 Sep 2015 02:28:46 +0000 (02:28 +0000)]
Merge "Get rid of ConfigParser code in ProviderConfiguration"

9 years agoMerge "Fix adding tap failure if bridge mapping is not provided"
Jenkins [Mon, 21 Sep 2015 23:52:15 +0000 (23:52 +0000)]
Merge "Fix adding tap failure if bridge mapping is not provided"

9 years agoMerge "Rename check pipeline dashboards"
Jenkins [Mon, 21 Sep 2015 23:46:56 +0000 (23:46 +0000)]
Merge "Rename check pipeline dashboards"

9 years agoMerge "Change ignore-errors to ignore_errors"
Jenkins [Mon, 21 Sep 2015 21:22:38 +0000 (21:22 +0000)]
Merge "Change ignore-errors to ignore_errors"

9 years agoMerge "Fix hostname roaming for ml2 tunnel endpoints."
Jenkins [Mon, 21 Sep 2015 21:22:25 +0000 (21:22 +0000)]
Merge "Fix hostname roaming for ml2 tunnel endpoints."

9 years agoUpdated from global requirements
OpenStack Proposal Bot [Mon, 21 Sep 2015 18:56:49 +0000 (18:56 +0000)]
Updated from global requirements

Change-Id: Ifc569f4371b0fafe071d99bf6542ca2802da8bd9

9 years agoMerge "delete_port: ensure quota usage is marked as dirty"
Jenkins [Mon, 21 Sep 2015 18:24:48 +0000 (18:24 +0000)]
Merge "delete_port: ensure quota usage is marked as dirty"

9 years agoRelax service module check on service providers
armando-migliaccio [Fri, 18 Sep 2015 20:13:59 +0000 (13:13 -0700)]
Relax service module check on service providers

service_provider is a 'special' configuration. It is a MultiStr
option that used to be in neutron.conf, but moved into its own *-aas
config files after the service split. We allow for the definition to
be available 'anywhere': either in neutron.conf or in the *-aas
service's config file.

The list of 'service_provider' can include drivers from within the *-aas
tree, or from elsewhere, and can apply to different service types. Due to
the polymorphic nature of this variable it is very tricky to identify only
the drivers that pertain a specific service module: the service module
may as well implement more than one service type and may have support
from drivers out of tree.

For this reason it is best to relax this check and rely on query filters
when the ServiceManager.get_service_providers() is invoked. Furthermore,
without this fix there was a situation where the value returned by
'service_providers' may be differ depending on how the configuration is
passed on the CLI, and this inconsistency may only cause headaches.

Closes-bug: #1492069

Change-Id: I4db4ce0b287c984d86181227edf769531ecb7bb8

9 years agoGet rid of ConfigParser code in ProviderConfiguration
armando-migliaccio [Fri, 18 Sep 2015 19:21:08 +0000 (12:21 -0700)]
Get rid of ConfigParser code in ProviderConfiguration

We may be unable to get rid of this code, but at least we can
make it slimmer and more oslo_config friendly.

This patch also fixes an issue where plain ConfigParser cannot
handle config options with the same name under same section.

Related-bug: #1492069

Change-Id: I596613eb7b2fc3e894a3c1cc7b7cb24d7137cbc5

9 years agoRename check pipeline dashboards
Ryan Moats [Mon, 21 Sep 2015 13:45:21 +0000 (08:45 -0500)]
Rename check pipeline dashboards

The title and filename of the original graphite dashboards is
incorrect - it should refer to the check pipeline.

Change-Id: Ib17bce084e9a83f1a3db33c47cb7e141e7f5903c
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agotests: don't validate respawn as part of ovsdb monitor functional test
Ihar Hrachyshka [Thu, 17 Sep 2015 13:20:51 +0000 (15:20 +0200)]
tests: don't validate respawn as part of ovsdb monitor functional test

It's already validated by AsyncProcess functional test suite. Instead,
just validate that the monitor generates the initial output, as
expected.

The test is still useful to validate that rootwrap filter works, so
not removing it completely.

Change-Id: I320edaaa2b210e4b34678c60deb31c4875eea298
Closes-Bug: #1495937

9 years agoovsdb monitor: get rid of custom _read_stdout/_read_stderr methods
Ihar Hrachyshka [Thu, 17 Sep 2015 12:57:43 +0000 (14:57 +0200)]
ovsdb monitor: get rid of custom _read_stdout/_read_stderr methods

Those methods do the same thing as AsyncProcess counterparts, just
with logging the received output. It's better to move the logging into
AsyncProcess and control it with __init__ arguments.

This allows us to get rid of some duplicate tests for ovsdb monitor.

Change-Id: Ic20ded27ba09afdd73e4d96c47469c2d7b4d4db5
Related-Bug: #1495937

9 years agoChange ignore-errors to ignore_errors
Monty Taylor [Mon, 21 Sep 2015 14:31:23 +0000 (14:31 +0000)]
Change ignore-errors to ignore_errors

Needed for coverage 4.0

Change-Id: I1e663c65e66b6e9088d4fb5f9b00ab81bfbbe327

9 years agoMerge "Re-adds VIF_TYPE_VHOST_USER to portbindings extension"
Jenkins [Mon, 21 Sep 2015 13:54:22 +0000 (13:54 +0000)]
Merge "Re-adds VIF_TYPE_VHOST_USER to portbindings extension"

9 years agodelete_port: ensure quota usage is marked as dirty
Salvatore Orlando [Fri, 18 Sep 2015 21:57:21 +0000 (14:57 -0700)]
delete_port: ensure quota usage is marked as dirty

To this aim the ORM session mapper must be used.
This patch simply uses context.session.delete rather than
query.delete, and handles UnmappedInstanceError to safely
complete the operation when the record is deleted by
another transaction.

Change-Id: I55c701fc1e2fda4461501aae532bbe11cce45b75
Closes-Bug: #1497459

9 years agoMerge "OVSAgentTestFramework: Remove _bind_ports"
Jenkins [Mon, 21 Sep 2015 11:59:39 +0000 (11:59 +0000)]
Merge "OVSAgentTestFramework: Remove _bind_ports"

9 years agoFix hostname roaming for ml2 tunnel endpoints.
Miguel Angel Ajo [Thu, 11 Jun 2015 11:15:17 +0000 (13:15 +0200)]
Fix hostname roaming for ml2 tunnel endpoints.

Change I75c6581fcc9f47a68bde29cbefcaa1a2a082344e introduced
a bug where host name changes broke tunneling endpoint updates.
Tunneling endpoint updates roaming a hostname from IP to IP
are a common method for active/passive HA with pacemaker and
should happen automatically without the need for API/CLI calls [1].

delete_endpoint_by_host_or_ip is introduced to allow cleanup of
endpoints that potentially belonged to the newly registered agent,
while preventing the race condition found when deleting ip1 & ip2
in the next situation at step 4:

1) we have hostA: ip1
2) hostA goes offline
3) hostB goes online, with ip1, and registers
4) hostA goes online, with ip2, and registers

[1] https://bugs.launchpad.net/python-neutronclient/+bug/1381664

Change-Id: I04d08d5b82ce9911f3af555b5776fc9823e0e5b6
Closes-Bug: #1464178

9 years agoMerge remote-tracking branch 'origin/feature/pecan' into merge-branch
Kyle Mestery [Sat, 19 Sep 2015 14:44:06 +0000 (14:44 +0000)]
Merge remote-tracking branch 'origin/feature/pecan' into merge-branch

Change-Id: I1c0b6a9837273f6a5a24f537d75c1ff43ff599f8

9 years agoMerge "Update _TestModelMigration"
Jenkins [Sat, 19 Sep 2015 05:30:01 +0000 (05:30 +0000)]
Merge "Update _TestModelMigration"

9 years agoFix adding tap failure if bridge mapping is not provided
Kahou Lei [Sun, 13 Sep 2015 01:48:04 +0000 (18:48 -0700)]
Fix adding tap failure if bridge mapping is not provided

When bridge mapping option is not provided, tap interface cannot be
added properly. The root cause is that linux bridge agent is expecting
bridge mapping option is provided if physical network is presented.

However it is not always the case as Kilo was working fine
without existing bridge mapping

Change-Id: Ie43905887a9bc60858e3edae7fc339a7e0485716
Closes-bug: #1495161

9 years agoMerge "Fixes SNAT port not found for internal port"
Jenkins [Fri, 18 Sep 2015 23:07:52 +0000 (23:07 +0000)]
Merge "Fixes SNAT port not found for internal port"

9 years agoMerge "Remove pecan branch reference from .gitreview file" into feature/pecan
Jenkins [Fri, 18 Sep 2015 22:50:34 +0000 (22:50 +0000)]
Merge "Remove pecan branch reference from .gitreview file" into feature/pecan

9 years agoMerge "Remove an invalid comment."
Jenkins [Fri, 18 Sep 2015 22:08:42 +0000 (22:08 +0000)]
Merge "Remove an invalid comment."

9 years agoRemove an invalid comment.
Margaret Frances [Tue, 15 Sep 2015 15:10:43 +0000 (11:10 -0400)]
Remove an invalid comment.

Closes-Bug: 1491110
Change-Id: I6c000f8891eb9c120dfaaac5938dfc69bf4c1572
Signed-off-by: Margaret Frances <margaret_frances@cable.comcast.com>
9 years agoMerge "Use pecan controllers for routing" into feature/pecan
Jenkins [Fri, 18 Sep 2015 19:36:32 +0000 (19:36 +0000)]
Merge "Use pecan controllers for routing" into feature/pecan

9 years agoMerge "Imported Translations from Zanata"
Jenkins [Fri, 18 Sep 2015 18:45:52 +0000 (18:45 +0000)]
Merge "Imported Translations from Zanata"

9 years agoFixes SNAT port not found for internal port
Swaminathan Vasudevan [Wed, 16 Sep 2015 18:13:46 +0000 (11:13 -0700)]
Fixes SNAT port not found for internal port

For every router interface added to a router
with a default gateway there will be an internal
SNAT port generated and will be required by the
L3 Agent to process the SNAT rules.

This bug was introduced by the change ID below
Icc099c1a97e3e68eeaf4690bc83167ba30d8099a.

When the gateway is removed these ports have to
be removed from the namespace. These ports are
cached in the router_info and should be provided
to the get_snat_port_for_internal_port function
when called from external_gateway_removed or when
called from _dvr_internal_network_removed.

This patch fixes this problem.

Closes-Bug: #1496578

Change-Id: Id5af4774ba246e24f343f5623af5ea9143bd5f6b

9 years agoMerge "Optimize if statement in dvr_local_router.py"
Jenkins [Fri, 18 Sep 2015 17:06:58 +0000 (17:06 +0000)]
Merge "Optimize if statement in dvr_local_router.py"

9 years agoMerge "Introduce a separate RPC server" into feature/pecan
Jenkins [Fri, 18 Sep 2015 16:58:54 +0000 (16:58 +0000)]
Merge "Introduce a separate RPC server" into feature/pecan

9 years agoMerge "Remove restriction of adding constraints to expand"
Jenkins [Fri, 18 Sep 2015 15:50:52 +0000 (15:50 +0000)]
Merge "Remove restriction of adding constraints to expand"

9 years agoMerge "Add skeleton to 'Effective Neutron' devref"
Jenkins [Fri, 18 Sep 2015 15:47:15 +0000 (15:47 +0000)]
Merge "Add skeleton to 'Effective Neutron' devref"

9 years agoUpdate _TestModelMigration
Ann Kamyshnikova [Fri, 18 Sep 2015 15:21:44 +0000 (18:21 +0300)]
Update _TestModelMigration

_TestModelMigrationTest contain some duplication of code from oslo.db.
As change 94d583acde16860e7ca535bd7a960e8993cd12d2 was merged and
included in oslo.db 2.4.1 this duplication can be avoid.

Change-Id: I5e789fb2fd6a27c1778b6155afc3d0396ccb5cb9

9 years agoUse pecan controllers for routing
Salvatore Orlando [Fri, 14 Aug 2015 23:32:38 +0000 (16:32 -0700)]
Use pecan controllers for routing

Pecan defines several efficient mechanism for routing requests to
the appropriate controller, but the current code for Neutron's
Pecan WSGI server basically uses Pecan hooks to route requests.

This patch partially fixes that, removing the 'resource_identifier'
pecan hook and replacing it with explicit pecan routes between
controllers added at resource registration time.

All the remaining hooks, like attribute_population and
policy_enforments, which were relying on finding the resource
name in the pecan.request threadlocal variable have been updated.

This patch also:
- ensures the appropriate plugin is always selected for a given
  resource
- add a common NeutronPecanController base class for the classes
  CollectionsController and ItemaController
- Fixes the way in which plurals and singulars are handled in
  neutron.api.v2.resource_heper

Change-Id: I4ec0d2276c3974117b497228d289c3fb0dc5a140

9 years agoMerge "Fix log statement to log correct variable first_ip"
Jenkins [Fri, 18 Sep 2015 06:31:18 +0000 (06:31 +0000)]
Merge "Fix log statement to log correct variable first_ip"

9 years agoImported Translations from Zanata
OpenStack Proposal Bot [Fri, 18 Sep 2015 06:06:47 +0000 (06:06 +0000)]
Imported Translations from Zanata

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

Change-Id: Ibbe1b9311c7b6c3fdf57afcca1d62590126caed8

9 years agoMerge "Introduce kill_signal parameter to AsynProcess.stop()"
Jenkins [Fri, 18 Sep 2015 03:52:43 +0000 (03:52 +0000)]
Merge "Introduce kill_signal parameter to AsynProcess.stop()"