22684 Commits

Author SHA1 Message Date
Zuul
8b64b5ad02 Merge "Remove info about "ovsdb_interface" from config description" 2019-11-17 12:57:21 +00:00
Zuul
4fc0900f54 Merge "Revise log when create port failed" 2019-11-17 12:49:59 +00:00
Zuul
9ab8fab358 Merge "Add profiler decorator to Neutron" 2019-11-17 12:49:56 +00:00
Zuul
7a2ef88686 Merge "Catch FileNotFoundError when listing namespace PIDs" 2019-11-17 01:59:08 +00:00
Zuul
d6cde7b05b Merge "SR-IOV: macvtap assigned vf check using sysfs" 2019-11-16 14:07:35 +00:00
Zuul
09aa443741 Merge "Trivial: fix firewall_refresh_needed return value type" 2019-11-16 07:48:31 +00:00
Zuul
799a539c8a Merge "[Fullstack] Fix waiting for packet with DSCP mark in test" 2019-11-16 07:13:40 +00:00
Zuul
5aec36b313 Merge "Switch to use cast method in dhcp_ready_on_ports method" 2019-11-15 14:47:24 +00:00
Zuul
058dd639a9 Merge "[fullstack] find ip based on allocation_pool" 2019-11-15 11:48:09 +00:00
Slawek Kaplonski
458fd224db [Fullstack] Fix waiting for packet with DSCP mark in test
In test_dscp_marking_packets, sender vm is sending ICMP packets to the
receiver_vm.
Before this patch even if first ICMP packet wasn't send properly, test
failed due to exception raised in execute method.

It can happend sometimes that first packet will fail to be send as there
can be e.g. some configuration on agent's side not done yet. So we
should try to ping receiver_vm for 60 seconds instead of failing on
first attempt.
This patch changes that behaviour in test.

Change-Id: Ic84e1ef507f017516d47a6b66e646e7e7b5ded8d
Closes-Bug: #1852724
2019-11-15 11:26:27 +01:00
Zuul
69646dc461 Merge ""round" with ndigits=None returns an integer" 2019-11-15 08:43:48 +00:00
Zuul
7fffd4bea6 Merge "doc: Adjust heading levels" 2019-11-15 08:43:44 +00:00
Zuul
5c742ede6f Merge "Update liaison for networking-sfc project" 2019-11-15 08:43:41 +00:00
Slawek Kaplonski
a2fdf8aa72 Remove one of iptables_hybrid jobs
In check queue there were 2 iptables_hybrid jobs. One was run on Ubuntu
and one on Fedora.
During the Shanghai PTG we agreed to remove one of those jobs and left
only one of them to be run in both check and gate queues.

This commit removes iptables_hybrid job based on Fedora image.

Change-Id: If0adb7ca4e254f5b19375b471679bcc18e0c7790
2019-11-14 12:25:04 +01:00
Slawek Kaplonski
1d6207187c Update liaison for networking-sfc project
During Shanghai PTG Akihiro talked with Dharmendra, who is the Tacker
PTL that Dharmendra can be maintainer of networking-sfc project for now
as Tacker is using this project.
So lets say that officially in our documentation now.

Change-Id: Iea9fbf997130e95252fcd1063fd7a28ad84dd369
2019-11-13 22:41:59 +01:00
Akihiro Motoki
eeefd54c53 doc: Adjust heading levels
In the openstackdocstheme, one page should have a single title heading
(the highest level). If we have multiple title headings, only the first
one is shown at the top of the page and the remaining one(s) are not
shown in the main contents. (They are shown only in "Page Contents"
of the left TOC.) It is confusing a bit.

As far as I checked, this happens in two files in the current neutron doc.

contributor/policies/neutron-teams.rst:
It looks better to introduce a page title and keep the existing
titles as subsections.

contributor/internals/layer3.rst:
There is no need to include a page on the L3 agent
as it is a separate page.

Change-Id: I354182b900bdd04b4fcd64dcf2adbe00d7f8df5a
2019-11-13 04:48:05 +09:00
elajkat
3c9b0a5fac [fullstack] find ip based on allocation_pool
_find_available_ips tried to find available ips based on the given
subnet's cidr field, which can be misleading if random selection goes
out-of allocation-pool. This patch changes this behaviour to use
cidr's allocation_pool field.

Closes-Bug: #1850292
Change-Id: Ied2ffb5ed58007789b0f5157731687dc2e0b9bb1
2019-11-12 14:56:34 +01:00
LIU Yulong
c03b263a67 Trivial: fix firewall_refresh_needed return value type
Commit 614b95c83759f6476841f405b08806601a3c89a0 changed
the return value type of funcion firewall_refresh_needed
unexpectedly. This one fixes it.

Change-Id: I92dbdb02742af55534e16b87be551bae101262a1
2019-11-12 01:01:13 +00:00
zhengyong
cae66a4d8d Revise log when create port failed
Log network_id passed from api rather than subnet['network_id']

Change-Id: Ia36635014e827b4a321dbdce22f605c76cc88390
Closes-Bug: #1844607
2019-11-12 07:17:29 +08:00
Adrian Chiris
76de8a715d SR-IOV: macvtap assigned vf check using sysfs
This reverts commits:
 9a022e7d7b85b7c21cf26698fe59c818c4577194
 d7604169988726d121cdc9727accfeb6e29f4aed

As the issue is relevant only for old kernels and almost 4 years
have passed since this fix was introduced, it is safe to undo the
workaround to use ip link show command for determining whether or not
a VF is assigned with macvtap(and followup patch that fixed excessive
use of ip link show commans).

reverting this commit will benefit the agent by reducing the amount of
ip link calls.

While it is possible to perform a revert-per-commit, this change should
really go in as one commit for clarity and avoid introducing a
performance degradation in case one is merged without the other.

 Conflicts:
	neutron/plugins/ml2/drivers/mech_sriov/agent/eswitch_manager.py
	neutron/plugins/ml2/drivers/mech_sriov/agent/pci_lib.py
	neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_eswitch_manager.py
	neutron/tests/unit/plugins/ml2/drivers/mech_sriov/agent/test_pci_lib.py

 Conflicts details:
   In eswitch_manager: merge tool was unable to properly revert
                       is_assigned_vf() due to changes in later patches.
   In pci_lib: conflicts with later changes to is_macvtap_assigned()
               and link_show() that are no longer required and revert
               of IPCommandDeviceError definition.
   In unit tests: conflicts due to newly added tests and reverting the
                  IPCommandDeviceError exception definition.
                  Sorting out mocks as link_show() method was removed

Related-bug: #1523083

Change-Id: I04ea8eb63de07a6e1e51c2790c5920b086b8542c
2019-11-11 17:13:00 +02:00
Zuul
19bc090b1b Merge "Remove Floating IP DNS record upon associated port deletion" 2019-11-11 13:32:33 +00:00
Zuul
361b216a87 Merge "Fix Geneve max_header_size config option text" 2019-11-10 12:31:52 +00:00
Rodolfo Alonso Hernandez
d15ad2e481 Increase waiting time for network rescheduling
Increate waiting time in "test_reschedule_network_on_new_agent", when
the network is being rescheduled from a dead DHCP agent to an running
one.

According to [1], 120 seconds could be a convervative and enough value
to wait for this transition.

[1] https://bugs.launchpad.net/neutron/+bug/1799555/comments/23

Change-Id: I2fec6015b56fd1b5d21b75f7432c40b2110fe6bc
Related-Bug: #1799555
2019-11-05 18:48:22 +00:00
Rodolfo Alonso Hernandez
9ad03dcf96 Catch FileNotFoundError when listing namespace PIDs
During the namespace PID listing, if a process is stopped, it will
disappear from "/proc/<pid>". When "os.stat(path)" is executed on
an unexistent path, returns "FileNotFoundError". This exception
should be catched and ignored.

Change-Id: Icde5e15bd97578f5ec8273f22ef8384502be1850
Related-Bug: #1841753
2019-11-05 15:21:30 +00:00
Zuul
0fa7e74ebb Merge "Increase timeout when waiting for dnsmasq enablement" 2019-11-05 14:49:57 +00:00
Zuul
7fe44be27d Merge "Add "igmp_snooping_enable" config option for OVS agent" 2019-11-05 11:08:13 +00:00
Zuul
e5a4a45454 Merge "Move migration to proper dir and fix objects tests" 2019-11-05 10:58:32 +00:00
Zuul
f5975eca2e Merge "Adding check for IPv6 address in setup_controllers" 2019-11-04 23:00:27 +00:00
Oleg Bondarev
0a3c53e411 Move migration to proper dir and fix objects tests
This is an alternative to revert patch:
https://review.opendev.org/#/c/691710/

Change-Id: I72082226e6b3930efb537cab9d979e5770211f72
Closes-Bug: #1849976
2019-11-04 17:44:44 +00:00
Zuul
38c06ff3d0 Merge "Add Source links to readme and update Documentation" 2019-11-04 09:25:42 +00:00
Zuul
c3a01890b0 Merge "Set rootwrap daemon timeout for fullstack and functional tests" 2019-11-04 08:37:55 +00:00
Slawek Kaplonski
5b341150e2 Add "igmp_snooping_enable" config option for OVS agent
Neutron-ovs-agent can now enable IGMP snooping in integration bridge
if config option "igmp_snooping_enable" in OVS section in config will
be set to True.
It will also set mcast-snooping-disable-flood-unregistered=true
so flooding of multicast packets to all unregistered ports will be
disabled also.
Both changes are applied on integration bridge.

Change-Id: I12f4030a35d10d1715d3b4bfb3ed5efb9aa28f2b
Closes-Bug: #1840136
2019-11-02 13:46:13 +01:00
Zuul
188a057d11 Merge "Remove deprecated agent_type option" 2019-11-02 11:59:34 +00:00
Slawek Kaplonski
02be7c13b3 Remove deprecated agent_type option
This config option was added by [1] and deprecated to
be removed in Mitaka cycle. As we are now in Ussuri, it's
time to finally get rid of it.

[1] https://review.opendev.org/#/c/197210/

Change-Id: Ibd16a0587c88e2dbee1b7938e52140f68821eec6
2019-11-01 18:59:37 +00:00
Brian Haley
30d3e4c56c Fix Geneve max_header_size config option text
The max_header_size config option only applies to the
Geneve header itself, not the underlying IP/IPv6 header,
whose size is calculated separately. Remove a misleading
sentence and correct the help text to say '30'.

Trivialfix

Change-Id: If856bba4e61a6f1326138fc3a7ab29ce87c3ad04
2019-11-01 08:47:21 -04:00
Miguel Lavalle
eb3302207f Add profiler decorator to Neutron
This patch proposes a decorator to be used to profile code with
cProfile. Config options are added to control whether the code is
profiled or not. The default is no profiling performed.

The decorator is then used in the Neutron API base and Pecan controllers
for the index, show, create, delete and update operations. The rpc_loop
method of the OVS agent is also decorated.

Finally, profiling is enabled for neutron-rally-task.

Change-Id: I5c847a255b4b973add7fce5a38a2594912c491ac
2019-10-31 10:05:01 -05:00
Rodolfo Alonso Hernandez
7218873050 Set rootwrap daemon timeout for fullstack and functional tests
Set a big timeout for rootwrap daemon in functional and fullstack
tests. The value defined in 7800, the same as the Zuul jobs
timeout.

This timeout increase will prevent the daemon to close when
executing a test root command, as described in the bug. An
unexpected rootwrap daemon closure is not considered as a normal
event during the test execution.

The default value set in the configuration file is 600 seconds, the
same as daemon default value. This timeout is increased only when
OS_SUDO_TESTING=1, that means functional and fullstack tests, when
using the script "tools/deploy_rootwrap.sh".

Change-Id: I691300a4e9a7cccd8887bc8f95ba9cea32988bac
Closes-Bug: #1850558
2019-10-31 11:42:47 +00:00
Flavio Fernandes
cc3886fd78 PSExtDriverTestCase: initialize variable in case of exception
Avoid the following when test_create_net_port_security_default
hits an exception before variable network is set:

UnboundLocalError: local variable 'network' referenced before assignment

Related changes:
 - https://review.opendev.org/#/c/188209/
 - https://review.opendev.org/#/c/679399/

Change-Id: I494916567a4df2bef410e8dc54505c289bd55a61
2019-10-30 17:44:45 -04:00
Rodolfo Alonso Hernandez
aedc099176 Increase timeout when waiting for dnsmasq enablement
In the reported bug, a regression was introduced in [1] when limiting
the time to have a "dnsmasq" process enabled. It has been reported, as
documented in the bug, that in older versions (Queens), using Python 2
[2] and older versions of "ip_lib" (not implementing most of the
commands using Pyroute2), that the time needed to spawn a "dnsmasq"
process exceeds the default 60 seconds defined in
"common_utils.wait_until_true".

This patch increases this time by a reasonable 300 seconds.

[1] https://review.opendev.org/#/c/643732
[2] https://bugs.python.org/issue35757

Change-Id: I2d8693145da72825876b951f2d10afe9ca28ff6e
Closes-Bug: #1849676
2019-10-30 15:06:11 +00:00
Slawek Kaplonski
5537a81fbb Remove info about "ovsdb_interface" from config description
Config option "ovsdb_interface" was removed from neutron with [1]
but some small leftovers were still in description of other config
options.
So this patch cleans them.

TrivialFix

[1] https://review.opendev.org/#/c/570259/

Change-Id: I82b91153e697cd78bf7d7212bb842ea733d0ca66
2019-10-30 10:14:26 +01:00
Zuul
843b5ffd9a Merge "Make the MTU attribute not nullable" 2019-10-29 23:18:59 +00:00
SapanaJadhav
4d52b903eb Adding check for IPv6 address in setup_controllers
If it is IPv6 then adding [] to it before
creating the connection string.

Change-Id: Idd108cbef944cdd89808bb1ad5c8ab1db202d31a
Closes-Bug: #1846494
2019-10-29 15:10:25 +00:00
Rodolfo Alonso Hernandez
cb2ebcc998 "round" with ndigits=None returns an integer
Trivial-Fix

Change-Id: Ic21e34462aabd5cc2aa879ec4f47e2b1bc1dd934
2019-10-29 15:06:49 +00:00
Zuul
b7fbb74b46 Merge "Check dnsmasq process is active when spawned" 2019-10-29 02:51:14 +00:00
Zuul
59036dec77 Merge "Router synch shouldn't return unrelated routers" 2019-10-28 18:20:54 +00:00
Salvatore Orlando
4379310846 Remove Floating IP DNS record upon associated port deletion
Port deletion triggers disassociate_floatingips. This patch ensures
that method not only clears the port association for a Floating IP,
but also removes any DNS record associated with it.

Change-Id: Ia6202610c09811f240af35e2523126447bf02ca5
Closes-Bug: #1812168
2019-10-28 09:26:20 +00:00
zhangboye
a260afcf18 Add Source links to readme and update Documentation
Change-Id: I1470de4e395b50ca4cd9a11f6eeaaf0842d917fb
2019-10-28 07:52:16 +00:00
zhanghao
68625686a4 Make the MTU attribute not nullable
This patch sets the MTU attribute to non-nullable, the code
that get the MTU and update the network in some methods can
be removed. If the MTU is empty before the pike version, it
is set to the default value of 1500.

Change-Id: Id4d738dde7fa4b7caccabad0aac542b82b4d7af1
Closes-Bug: #1842261
2019-10-28 03:32:50 +00:00
Zuul
f5bdaec2c7 Merge "Stop testing python 2" 2019-10-28 00:52:16 +00:00
Zuul
a94cb83e18 Merge "Handle OVSFWPortNotFound and OVSFWTagNotFound in ovs firewall" 2019-10-27 20:44:05 +00:00