22022 Commits

Author SHA1 Message Date
Slawek Kaplonski
9f857631d8 Add "project_name" variable to configure_functional_tests role
It will be useful when neutron-functional or neutron-fullstack
job will be used in stadium projects like e.g. in neutron-fwaas.

Change-Id: I73c446d43e44b8f06c93752ebf98684f165e6fcd
Related-Bug: #1804844
2019-05-22 15:30:46 +02:00
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
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
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
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
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
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
Rodolfo Alonso Hernandez
872dd7f484 Use created subnet in port generator in "test_port_ip_update_revises"
We are hitting sometimes a problem in "test_port_ip_update_revises" [1].
This happens because the port created doesn't belong to the previously
created subnet. We need to enforce that the port is created in the
subnet specifically created in this test.

[1]http://logs.openstack.org/69/650269/12/check/openstack-tox-lower-constraints/7adf36e/testr_results.html.gz

Change-Id: I399f100fe30b6a03248cef5e6026204d4d1ffb2e
Closes-Bug: #1828865
2019-05-14 10:05:17 +00:00
Brian Haley
09ee934786 Use --bind-dynamic with dnsmasq instead of --bind-interfaces
Dnsmasq emits a warning when started in most neutron deployments:

dnsmasq[27287]: LOUD WARNING: use --bind-dynamic rather than
    --bind-interfaces to avoid DNS amplification attacks via
    these interface(s)

Since option --bind-dynamic is available since dnsmasq 2.63
(https://github.com/liquidm/dnsmasq/blob/master/FAQ#L239) and
we require 2.67, change to use this option instead.

Change-Id: Id7971bd99b04aca38180ff109f542422b1a925d5
Closes-bug: #1828473
2019-05-13 21:43:07 +00:00
Lajos Katona
8f6939b4f3 Change curl to osc for listing resource provider inventories
Change-Id: I4ffca16ebd1998335132747482e85dbb18be70e7
Closes-Bug: #1827418
2019-05-13 12:04:25 +02:00
Zuul
17fa84613e Merge "Add skip_if_timeout to additional MySQL migration test" 2019-05-12 15:28:58 +00:00
Zuul
76de5ada47 Merge "Fix bandit warning" 2019-05-12 12:32:21 +00:00
Zuul
71e1cb6cb9 Merge "Add info about nf_conntrack_proto_gre when ovs fw is used" 2019-05-12 01:56:27 +00:00
Zuul
8ffa02bbdb Merge "Bump Pyroute2 version to 0.5.5" 2019-05-11 12:15:09 +00:00