19081 Commits

Author SHA1 Message Date
Jenkins
7c1e21a3f3 Merge "Make code follow log translation guideline" 2017-08-14 17:42:09 +00:00
Jenkins
d725e8c11d Merge "Remove 'persisted dirty' log message" 2017-08-14 12:38:46 +00:00
Jakub Libosvar
637734c1b6 Fix DefaultSubnetPool API test
As default subnetpool is a unique resource in the cloud, it needs to be
cleaned after each test is done. This patch adds a cleanup call to
DefaultSubnetPool tests in order to delete created default subnet pool.

Change-Id: I4c963d0d0e9910f7047061b51feb36c8a19de65c
Closes-bug: #1709938
2017-08-14 09:46:41 +00:00
Inessa Vasilevskaya
7322bd6efb Make code follow log translation guideline
Since Pike log messages should not be translated.
This patch removes calls to i18n _LC, _LI, _LE, _LW from
logging logic throughout the code. Translators definition
from neutron._i18n is removed as well.
This patch also removes log translation verification from
ignore directive in tox.ini.

Change-Id: If9aa76fcf121c0e61a7c08088006c5873faee56e
2017-08-14 02:01:48 +00:00
Jenkins
c65e541b6e Merge "Remove code to debug auto address allocation error" 2017-08-14 01:44:29 +00:00
Jenkins
f7e799a4a8 Merge "Apply network MTU changes to dhcp ports" 2017-08-12 22:57:34 +00:00
Jenkins
b503b32624 Merge "DVR: Provide options for DVR North/South routing centralized" 2017-08-12 13:08:29 +00:00
Jenkins
559f83a6c1 Merge "Apply network MTU changes to l3 ports" 2017-08-12 06:16:30 +00:00
Jenkins
21a7ad29bf Merge "Drop port_delete and port_update debug msgs" 2017-08-12 06:04:06 +00:00
Kevin Benton
2d8ffe2a08 Stop logging full object in RPC push code
We already log the full object on the agent side
and other server methods log important parts of
the object so there isn't much to gain logging the full
OVO components passed to this function's args.

This adds a specific debug statement that just indicates
the types, IDs, and revision_numbers being pushed out so
they can still be correlated with received objects on the
agent side.

Partial-Bug: #1707307
Change-Id: I4499bb328f0aeb58fe583b83fb42cd2d26c1c4c1
2017-08-11 20:37:16 -07:00
Jenkins
4f581d2168 Merge "Add API test for port dns_domain" 2017-08-11 20:30:25 +00:00
YAMAMOTO Takashi
daa1c85a3b releasenotes: Move Pike ignore-notes to a proper file
Now unreleased.rst is for Queen.

Related-Bug: #1708560
Change-Id: Iaf6642c8955d68a1f6b6572d3ae2a3dabc1244df
2017-08-12 01:43:47 +09:00
Jenkins
e53bb591ec Merge "Update reno for stable/pike" 2017-08-11 15:49:20 +00:00
Jenkins
76e1af8188 Merge "Allow unprivileged users to get their quota usage" 2017-08-11 15:24:15 +00:00
Ihar Hrachyshka
9df067f12d Apply network MTU changes to dhcp ports
This patch makes DHCP agent to update its ports' MTU when it's changed
on core plugin side.

Related-Bug: #1671634
Change-Id: Ie1e1ca6a5f908c1e5669ddb3988d49c57da4b9c4
2017-08-11 15:12:40 +00:00
Ihar Hrachyshka
cc69828ff0 Apply network MTU changes to l3 ports
This patch makes L3 agent to update its ports' MTU when it's changed on
core plugin side.

Related-Bug: #1671634
Change-Id: I4444da6358e8b8420a3a365e1107b02f5bb1161d
2017-08-11 11:10:10 -04:00
Jenkins
dfd8946edd Merge "Add unit tests for dns_domain for ports" 2017-08-11 13:54:09 +00:00
Jenkins
eb0eb01029 Merge "Add port dns_domain processing logic" 2017-08-11 13:53:52 +00:00
Jenkins
57950b9891 Merge "ovs-fw: Handle only known trusted ports" 2017-08-11 13:52:22 +00:00
Kevin Benton
62c1a4b687 Log policy filters in one line
Rather than generating an entire log line for each policy that
filters out an attribute, we can instead log the excluded attributes
once after all of the policy checks are done.

This only applies to the policy checks, policy enforcements
(e.g. preventing a user from entering a field value on create)
are still logged individually.

Partial-Bug: #1707307
Change-Id: I77401e30cb220901dacd61028acde4c79001ed9b
2017-08-11 02:08:22 -07:00
Kevin Benton
03898582c8 Stop logging versions on every agent update
This logging statement was being called on every agent update
even if no versions changed, resulting in a bunch of useless
messages.

We already log when the actual versions change in the _set_version
call here: [1]

To cover the cases where versions are removed, this adds two logging
statements so we can be sure we see when the tracked versions do
change but not be bothered by version logs in any other condition.

1.
http://git.openstack.org/cgit/openstack/neutron/tree/neutron/api/rpc/callbacks/version_manager.py?h=d225b86738a9db56bc643dfe637b1f21393ad27e#n113

Partial-Bug: #1707307
Change-Id: I4761d21257dabfbd661bba1b24fe09d208d16ae6
2017-08-11 02:03:50 -07:00
60517921fe Update reno for stable/pike
Change-Id: I4ad9adc99c97d4f0b60c0812090fd1005970a14a
2017-08-11 08:59:15 +00:00
Kevin Benton
e0a2602904 Add a target to Sinkhole so it's compatible
This prevents oslo messaging dispatch from trying
to treat the receiver function as a target. When it
thought it was a target it was referencing attributes
it didn't have.

Closes-Bug: #1710064
Change-Id: I1832a05f23cd76c1732d3b98539988bc9519d79e
2017-08-11 01:31:09 -07:00
Jenkins
d225b86738 Merge "Deprecate web_framework option" 2017-08-11 07:06:29 +00:00
Jenkins
ceb86366d2 Merge "Allow to set/modify network mtu" 2017-08-11 07:06:15 +00:00
Zhengwei Gao
9e185bca08 Allow unprivileged users to get their quota usage
When user try to get quota usage detail for their own project, it will
return null. As process logic of details method is incorrect, it only
allow admin to get other's project quota usage detail.

Change-Id: I2e21dac497a6c5bffba6b55cb4456820900449df
Closes-Bug: #1708133
2017-08-11 06:41:24 +00:00
Jenkins
6280787f84 Merge "Allow extension driver to provide multiple aliases" 2017-08-11 03:13:57 +00:00
Jenkins
b940f041a6 Merge "Reduce rally sub-port count" 2017-08-11 02:26:07 +00:00
Jenkins
a04f8fd049 Merge "DVR: Fix router_update failure when agent restarts" 2017-08-11 01:15:50 +00:00
Kevin Benton
a6a2d4d134 Deprecate web_framework option
We didn't quite get around to pulling out all of the old API
code before the end of the cycle so we should deprecate this
option to make sure people don't use it.

Change-Id: Idf9d497bbccdb89c6e5898611d1cad9a18b1bcbb
Implements: blueprint wsgi-pecan-switch
2017-08-11 01:11:19 +00:00
Ihar Hrachyshka
f21c7e2851 Allow to set/modify network mtu
This patch adds ``net-mtu-writable`` API extension that allows to write
to network ``mtu`` attribute.

The patch also adds support for the extension to ml2, as well as covers
the feature with unit and tempest tests. Agent side implementation of
the feature is moved into a separate patch to ease review.

DocImpact: neutron controller now supports ``net-mtu-writable`` API
           extension.
APIImpact: new ``net-mtu-writable`` API extension was added.

Related-Bug: #1671634
Change-Id: Ib232796562edd8fa69ec06b0cc5cb752c1467add
2017-08-11 00:57:34 +00:00
Swaminathan Vasudevan
9515c771e7 DVR: Provide options for DVR North/South routing centralized
DVR supports both East/West and North/South routing. While the
SNAT is centralized the DNAT is mostly distributed. There are
certain circumstances where the DNAT might be centralized when
the ports are unbound.

In order to have a well defined behavior and when there are
no external network connectivity available in the compute host,
the DNAT functionality is centralized.
In order to achieve this we are introducing a new agent type
option 'dvr_no_external' to centralize the DNAT.

This new L3 agent type ('dvr_no_external') would only allow the East/West
routing to occur in the compute host and the DNAT or Floating IP will be
configured in the centralized network node.

Change-Id: Ia5d7336e478e0fa5ba62b7ae5ed0c56656116d94
Partial-Bug: #1667877
2017-08-10 23:40:31 +00:00
Kevin Benton
e97ee8a972 Reduce rally sub-port count
This test is executed 4 times and creating 1000 Neutron ports
just to run this scenario 4 times results in this job taking
15 minutes to complete its iterations.

This cuts the count in half to 125 per execution to cut the run
time in half and ensure we don't get to close to the gate timeout.

This was done once before as part of
817a19c4b9ced01af9bbb6f7383283e3f0f0e9bd but unfortunately being
part of another SLA change resulted in it being reverted as part
of the SLA change.

Change-Id: I61466d87b002252efc163cbb5d03eafc5d4da3fb
2017-08-10 11:21:03 -07:00
Itzik Brown
34ad023ea3 Fixing test_convert_default_subnetpool_to_non_default
Susbnetpool is created by admin but the show command
is using non-admin client.

Change-Id: I4cac1b87c03053255ed298d4423ea672e60b410d
Closes-bug: #1709869
2017-08-10 15:50:28 +03:00
Jenkins
55a7ab79ff Merge "tests: apply latest release milestone alembic scripts first" 2017-08-10 10:59:59 +00:00
Kevin Benton
c36676877e Remove 'persisted dirty' log message
In a gate run the neutron.quota.resource module logged 5235
lines from this module, making it one of the top offenders.
This single line accounted for 3297 of those entries and it
offers limited information since the quota engine is quite
stable at this point and debugging tenants' dirty status isn't
an issue that comes up.

We can just get rid of this particular log line.

Change-Id: I9cb0fcfbad51a0863d04fb89fbb8b09e3e21bdf0
Partial-Bug: #1707307
2017-08-10 07:54:34 +00:00
IWAMOTO Toshihiro
6d5dc8677b fullstack: Actually run ovsfw tests
super(...).setUp() must be called before OVSVersionChecker so that
rootwrap gets configured first.

Change-Id: Ie152f64a598a68566e36a4903017132e03eb35a6
Closes-bug: #1709547
2017-08-10 16:28:59 +09:00
Armando Migliaccio
85a3e93537 Hook bandit security linter to pep8 target
This helps catch a number of potential issues with the neutron
code in advance. A false positive can be skipped with #nosec
at the offending line, just like #noqa can be added on
offending module imports.

Change-Id: I3e4cbc94539dd2cce61bfa5cd0265e75d7336311
2017-08-09 19:48:05 -07:00
Jenkins
7543948ea8 Merge "functional: disable netlink tests" 2017-08-10 02:29:29 +00:00
Miguel Lavalle
39a9e09716 Add API test for port dns_domain
This patchset adds a Tempest API test for the port dns_domain attribute.

It also enables the dns-domain-ports extension for testing, which is a
super-set of the dns extension.

Change-Id: I5c1da61a8a49c190aad549713da646a3abb8ccb1
2017-08-09 16:20:48 -05:00
Miguel Lavalle
589d206987 Add unit tests for dns_domain for ports
This patchset adds unit tests for dns_domain for ports.

Change-Id: Ib8c05260334703088f48ce932054146d796e56e0
2017-08-09 16:12:53 -05:00
Jakub Libosvar
75ddc9c34e functional: disable netlink tests
Current gate runs with kernel 4.4.0-89. Creating conntrack entries fails
with this version and leaves conntrack in stuck state leading to
functional tests to hang.

This patch proposes to skip those tests that create conntrack entries so
we can enable back the functional job to voting to avoid new regressions
at this suite.

Change-Id: I9f883cea1d101efe6a7214c3a9b679fc32427365
Related-bug: #1709032
2017-08-09 13:44:12 +00:00
Rodolfo Alonso Hernandez
1908829ace Add documentation for Linux Bridge and OVS ingress QoS
Added documentation reference for ingress bandwith limit QoS rule
for Open vSwitch and Linux Bridge backends.

Change-Id: I605b941efe661621298e703ee9f8ea0c1938135f
Closes-Bug: #1699802
Closes-Bug: #1698046
2017-08-09 09:33:35 +01:00
Jenkins
90098180fa Merge "[log]: Add validator to logging api" 2017-08-09 06:31:44 +00:00
Jenkins
30ce6749f9 Merge "DVR: Configure centralized floatingips to snat_namespace." 2017-08-09 03:56:47 +00:00
Jenkins
9dd4fd133a Merge "[log]: add driver manager to LoggingPlugin" 2017-08-09 01:52:40 +00:00
Jenkins
90af23080e Merge "Fill device_info with port_security_enabled data" 2017-08-09 01:06:28 +00:00
Miguel Lavalle
4a77533259 Add port dns_domain processing logic
This patchset adds logic to the ML2 DNS integration extension to process
a new dns_domain attribute associated to ports.

This patchset belongs to a series that adds dns_domain attribute
functionality to ports.

DocImpact: Ports have a new dns_domain attribute, that takes precedence
           over networks dns_domain when published to an external DNS
           service.

APIImpact: Users can now specify a dns_domain attribute in port POST and
           PUT operations.

Change-Id: I02d8587d3a1f9f3f6b8cbc79dbe8df4b4b99a893
Partial-Bug: #1650678
2017-08-08 18:42:43 -05:00
Kevin Benton
37d33b2fcd Allow extension driver to provide multiple aliases
This allows extensions to supercede older extensions
if they provide all of the same functionality plus more.
This is used by the DNS domain port extension driver.

Change-Id: I3e91669a83e9e16039f4063bf54b511cec94cecc
Partial-bug: #1650678
2017-08-08 16:29:28 -07:00
Jenkins
9629bd1302 Merge "Degrade log message for missing fanout exchange to debug" 2017-08-08 20:21:30 +00:00