22079 Commits

Author SHA1 Message Date
Zuul
8887343782 Merge "Change provider network segmentation ID in OVS agent" 2019-05-22 12:36:20 +00:00
Zuul
6ba8d8d6f4 Merge "Allow first address in an IPv6 subnet as valid unicast" 2019-05-22 12:06:33 +00:00
Slawek Kaplonski
62b2f2b1b1 Wait to ipv6 accept_ra be really changed by L3 agent
In functional tests for L3 HA agent, like e.g.
L3HATestFailover.test_ha_router_failover
it may happen that L3 agent will not change ipv6 accept_ra
knob and test fails because it checks that only once just
after router state is change.

This patch fixes that race by adding wait for 60 seconds to
ipv6 accept_ra change.

Change-Id: I459ce4b791c27b1e3d977e0de9fbdb21a8a379f5
Closes-Bug: #1829889
2019-05-22 13:49:55 +02:00
Bence Romsics
d10ba94d36 Log when the placement service plugin is used wrongly
Log explicitly when an invalid plugin combination is requested in the
config.

The placement service plugin cannot be used with non-ML2 core
plugins. neutron-server already exits when misconfigured like that
(when a plugin raises an uncaught exception in its __init__())
so I didn't change anything about that. This change only adds a more
explicit log message for this misconfiguration.

Change-Id: Ida1a3188f8b3145cf270d280bf942b3950c0779c
Related-Bug: #1578989
Related-Bug: #1818479
2019-05-22 13:15:03 +02:00
Rodolfo Alonso Hernandez
079de324ab Add documentation about OVO "obj_make_compatible"
Adds new documentation about how to implement
"VersionedObject.obj_make_compatible" when a new object version
is released and how to test it.

Change-Id: I055cf2ae493759562175f9d859d2a065458ca7e2
Related-Bug: #1828437
2019-05-22 10:31:20 +00:00
Slawek Kaplonski
ea8b466970 [Docs] Add summary of Tempest and Grenade jobs running in CI
This patch adds summary of Tempest and Grenade jobs which we
have run in Neutron's check and gate queues.

Change-Id: I8b96413b33f037b601747ebaa0ff4f0791cad628
2019-05-22 07:22:46 +02:00
Zuul
dfc2586fb1 Merge "Conntrack Helper - OVO and db script" 2019-05-21 17:53:32 +00:00
Zuul
a235a39d35 Merge "Retrieve statistics from TC policy classes" 2019-05-21 17:13:28 +00:00
Nate Johnston
1916bc5c06 Allow first address in an IPv6 subnet as valid unicast
When looking at the RFC [1], there's no mention that this can't be the
gateway address.  Permit it.

[1] https://tools.ietf.org/html/rfc4291#section-2.6.1

Change-Id: I3f2905c2c4fca02406dfa3c801c166c14389ba41
Fixes-Bug: #1682094
2019-05-21 16:31:18 +00:00
Zuul
c3bad545f6 Merge "[DHCP] Don't resync network if same port is alredy in cache" 2019-05-21 12:20:06 +00:00
Slawek Kaplonski
d8bd30dc0f Ignore config-samples and policy sample file in git
Sphinx generates files and directories like:
doc/source/_static/config-samples/
doc/source/_static/neutron.policy.yaml.sample

when is building docs pages.
Those files should be ignored in git and this patch adds it
to the .gitignore file.

Change-Id: I42d358bf062f3bcb2809fd762773246186ca4482
2019-05-21 13:03:30 +02:00
Zuul
3e1cd9abef Merge "ML2 plugin: extract and postpone limit in port query" 2019-05-21 07:45:40 +00:00
Zuul
4c1bd3e4f5 Merge "Fix pep8 E1111 warning in test_securitygroup.py" 2019-05-21 03:17:34 +00:00
Zuul
f4a9b05b31 Merge "FdbInterfaceTestCase interface names should be randomly generated" 2019-05-21 00:48:04 +00:00
Zuul
76bbc9eca9 Merge "Use openstack-python3-train-jobs template" 2019-05-21 00:48:01 +00:00
Rodolfo Alonso Hernandez
2bcc178be1 Change provider network segmentation ID in OVS agent
Added the ability to change the segmentation ID of a network
with ports bound to OVS agent. The rules, both in the integration
bridge and the physical bridge, to convert the internal VLAN tag
and the external segmentation ID (external VLAN tag) are deleted
and created again with the new value. The traffic from the tenant
networks will be tagged then with the new segmentation ID.

Added get network details agent RPC call to retrieve the information
of the updated network.

Partial-Bug: #1806052

Change-Id: I69f6f3ef717c3ed40218099b1f389afd3d39bd62
2019-05-20 18:53:17 +00:00
Slawek Kaplonski
1920a37a94 Show all SG rules belong to SG in group's details
If security group contains rule(s) which were created by different
user (admin), owner of this security group should see such rules
even if those rules don't belong to him.

This patch changes to use admin_context to get security group rules
in get_security_group() method to achieve that.

Test to cover such case is added in neutron-tempest-plugin repo.

Change-Id: I890c81bb6eabc5caa620ed4fcc4dc88ebfa6e1b0
Closes-Bug: #1824248
2019-05-20 18:47:18 +02:00
Harald Jensås
3ab7878384 Conntrack Helper - OVO and db script
Implements the conntrack helper OVO and db layer code.
- New object 'ConntrackHelper'
- New db model
- migration db script

Related-Bug: #1823633
Change-Id: I0d9c039b260845b6544eccf63f5a2ffaa929120b
2019-05-20 18:00:18 +02:00
Zuul
15dc507f9e Merge "Fullstack test for placement sync" 2019-05-20 15:26:22 +00:00
Zuul
f2f5635e11 Merge "Correct fwaas_v2 scenario in neutron" 2019-05-20 11:04:49 +00:00
Slawek Kaplonski
a5b53ec6e3 Integrate rally with osprofiler
This patch adds integration of osprofiler with rally.
Rally provides possibility for such integration and when
osprofiler is configured in rally it will now place
osprofiler's report for each rally test iteration in
"Scenario Data" tab.

Change-Id: I730de963ef6fd0485be6ea947d085067057a500c
2019-05-20 09:58:59 +00:00
ZhongShengping
5f5918df8b Use openstack-python3-train-jobs template
This goal is to implement the process set out in the 2018-10-24 Python
Update Process TC resolution[1], for the Train cycle to ensure unit
testing is in place for all of the Tested Runtimes for Train[2].
In practice, this generally means adding unit tests for Python 3.7 and
dropping unit tests for Python 3.5.
For Neutron, which already runs py36 and py37 unit tests it generally
means switch to use the Zuul template openstack-python3-train-jobs
for Train.
Using this template will ensure that all projects that support Python3
will be tested against the agreed runtime versions, and make it easier
to update them in future.

[1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html
[2]https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I41d232a10a40d97347566e189457d8044e3639db
Depends-On: https://review.opendev.org/#/c/641878/
2019-05-20 08:58:48 +00:00
Zuul
844db868e9 Merge "Fixes agent gw port creation" 2019-05-18 21:21:57 +00:00
zhanghao2
6360084528 Correct fwaas_v2 scenario in neutron
The neutron command line can not create fwass_v2 resources,
and so replace it with the openstack command line.

Change-Id: Iad324fa12334f53b1f36c65103a702c3a961dabc
Closes-bug: #1829357
2019-05-17 21:00:02 -07:00
Zuul
ea78659e36 Merge "Make OVS controller inactivity_probe configurable" 2019-05-18 00:05:34 +00:00
Brian Haley
1419c12e74 Fix pep8 E1111 warning in test_securitygroup.py
'res' is never used after the call to self._delete(),
just like the line below it, so don't save it.

Trivialfix

Change-Id: Iaaba249cfd658afe3cf0ea8543a9f001cc7b8908
2019-05-17 14:38:18 -04:00
Zuul
3ad5340d6b Merge "Add RHEL8 platform-python to the L3 rootwrap filters" 2019-05-17 16:13:00 +00:00
Darragh O'Reilly
540d00f68e Make OVS controller inactivity_probe configurable
This parameter applies to the OVSDB Controller table when the
native openflow driver is used. There are reports that increasing
it can reduce errors on busy systems. This patch also sets the
default value to 10s which is more than the OVS default of 5s.
See the ovs-vswitchd.conf.db man page for full description.

Change-Id: If0d42919412dac75deb4d7f484c42cea630fbc59
Partial-Bug: #1817022
2019-05-17 16:08:21 +00:00
Lajos Katona
d4d2fbc30d Fullstack test for placement sync
Fullstack test for placement reporter service plugin. To test it in
fullstack environment a new stupid placement process is started which
answers to placement REST API requests.

Change-Id: I9dd9f6c9e8c8fcf1be1e91d49a59a00c2eb24026
Depends-On: https://review.openstack.org/638666
Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
2019-05-17 17:56:45 +02:00
Zuul
36517c6016 Merge "Limit monotonic to python < 3.3" 2019-05-17 08:31:20 +00:00
Slawek Kaplonski
4597dfc136 Add RHEL8 platform-python to the L3 rootwrap filters
In L3 rootwrap filters we have filter to kill
neutron-keepalived-state-change process.
As this process is run under python, in commit [1] we added
KillFilter rules to allow kill various Python processes.

In RHEL8 there are "system" and "user" python versions provided.
It is called "platform-python" and is placed in /usr/libexec dir.
Details about it are in [2].

So this patch adds to neutron-keepalived-state-change Kill filters also
/usr/libexec/platform-python and /usr/libexec/platform-python3.6 to
allow killing this process on RHEL8 based OS.

[1] https://review.opendev.org/#/c/636710/
[2] https://developers.redhat.com/blog/2018/11/14/python-in-rhel-8/

Change-Id: Iafdaf2c1a6e5c1f5de856ff99e04c72c911c5123
2019-05-17 10:15:45 +02:00
Zuul
1134b2a44d Merge "Use --bind-dynamic with dnsmasq instead of --bind-interfaces" 2019-05-17 01:36:06 +00:00
Zuul
d5865ad7a7 Merge "Change curl to osc for listing resource provider inventories" 2019-05-16 23:33:47 +00:00
Zuul
a887a026b4 Merge "Define dhcp_agents_per_network with min=1" 2019-05-16 23:33:44 +00:00
Zuul
844a3b6923 Merge "Use six.viewkeys instead of dict.keys to avoid py2 to py3 problems" 2019-05-16 23:25:00 +00:00
Zuul
39eb043bf3 Merge "Use created subnet in port generator in "test_port_ip_update_revises"" 2019-05-16 23:08:22 +00:00
Zuul
11c82e390c Merge "Remove rootwrap configuration from neutron-keepalived-state-change" 2019-05-16 23:08:09 +00:00
Zuul
098cc02bf1 Merge "Revert "Bump Pyroute2 version to 0.5.5"" 2019-05-16 22:48:20 +00:00
Rodolfo Alonso Hernandez
59e1796bd2 Retrieve statistics from TC policy classes
Those statistics will be needed initially to test the TC filter
for VXLAN traffic. Those tests will create several classes on the
same interface with only one filter applied, diverting the traffic
to only one of those classes. Once sample traffic matching the
filter is injected, only the selected class should increase the
packet/byte counters.

Related-Bug: #1560963
Change-Id: Ifc95051b67c031c0dfe209751df3d35c47d61148
2019-05-16 13:38:59 +00:00
Oleg Bondarev
38daf9eaae Define orm relationships after db classes
This is to fix race conditions on neutron server init.
Please see bug for details.

Change-Id: I943e6397319b9a4a7fc1a5b3acb721920ddffb02
Partial-Bug: #1824299
2019-05-16 13:45:56 +04:00
Zuul
683df8fd53 Merge "Fix use of port context in tests" 2019-05-16 06:23:12 +00:00
Nate Johnston
2c1098b3af Use six.viewkeys instead of dict.keys to avoid py2 to py3 problems
This change fixes an 'RuntimeError: dictionary changed size during
iteration' error that is raised because of different behaviour between
python2 and python3. We use the six library to ensure that the behavior
is compatible across versions.

Change-Id: I0723ae10825e1e2d86789627895e3286d8c97602
Resolves-Bug: #1829304
2019-05-15 19:18:52 -04:00
Matt Riedemann
8eb6c8cc6f Define dhcp_agents_per_network with min=1
The minimum value for dhcp_agents_per_network was being
inforced with an explicit check in code but we can do that
with simply defining the min value in the option itself.

This adds the minimum to the option definition and removes
the explicit check in the code. Note that as a result the
validate_post_plugin_load method needed to be removed
otherwise it fails the E1128 pylint check.

Change-Id: I103855d363c49fad4119ac850aed0a166d8c046d
2019-05-15 14:08:21 -04:00
Rodolfo Alonso Hernandez
aacd11ab9f Remove rootwrap configuration from neutron-keepalived-state-change
New IP command introduced by Ie3fe825d65408fc969c478767b411fe0156e9fbc
requires only privsep initialization. This patch removes the prisep
error FailedToDropPrivileges when executed under neutron-rootwrap.

Closes-Bug: #1823038

Change-Id: I6cde3c9dae7ffdccce49e88c3c79d1c379f291cf
2019-05-15 17:22:48 +00:00
Zuul
92d7877c57 Merge "Update sphinx requirements" 2019-05-15 15:36:06 +00:00
YAMAMOTO Takashi
4353d1b06c Revert "Bump Pyroute2 version to 0.5.5"
This reverts commit d2d57371dc7dd35b1f66eb6390d96dfc512eeca1.

Change-Id: Ic04adae9cd27ce18324d5a2b2ec1966b38eddc2b
Closes-Bug: #1829239
2019-05-15 13:52:59 +00:00
Gabriele Cerami
94bc403078 ML2 plugin: extract and postpone limit in port query
as with https://review.opendev.org/#/c/656066/ if limit is applied in
any place other than at the end of the filters, sql alchemy will return
an error, and possibily we could return less result than intended.

Change-Id: I9a54ae99d2d5dfda63cb0061bcf3d727ed7cc992
Closes-Bug: #1827363
2019-05-15 14:19:34 +01:00
Zuul
1bc30c915c Merge "Make sure the port still in port map when prepare_port_filter" 2019-05-14 20:43:13 +00:00
Brian Haley
a36adfdb8b Fix use of port context in tests
After finding the mis-use of self.port() in the revision
tests, searched and found some other cases where the
subnet was not being passed. Fixed even though these
probably won't ever cause a test failure.

Trivialfix

Change-Id: I05402cfdbfd5c7941c5f442542eb0dd5a005e3fe
2019-05-14 10:27:52 -04:00
Harald Jensås
8addd662b5 Update sphinx requirements
Requirement check is failing on sphinx.

http://logs.openstack.org/87/658787/3/check/requirements-check/ce69c94/job-output.txt.gz#_2019-05-13_18_52_15_176388

Change-Id: I7b02523b7135b2f2977c1f5ac16cb79fd41b8ef5
2019-05-14 14:52:15 +02:00