21141 Commits

Author SHA1 Message Date
Zuul
4b40a4c323 Merge "remove unused methods from CommonDbMixin" 2018-11-21 12:48:59 +00:00
Zuul
595e88f022 Merge "ml2/rpc: provide a small helper to avoid redundancy" 2018-11-21 12:10:36 +00:00
Zuul
7d6057739b Merge "Prevent create port forwarding to port which has binding fip" 2018-11-21 10:15:55 +00:00
Zuul
8418ecdbc6 Merge "Add python 3.6 unit test job" 2018-11-21 03:38:45 +00:00
Zuul
cad8763189 Merge "Add kill_timeout to AsyncProcess" 2018-11-20 22:45:32 +00:00
Boden R
a73deb9909 remove unused methods from CommonDbMixin
The register_model_query_hook and _apply_dict_extend_functions methods
from CommonDbMixin is not being used by consumers today. This patch
removes them and updates any doc references as well.

NeutronLibImpact

Change-Id: I3e72d7f33f5a7b0c9c023295302929410f94eefb
2018-11-20 06:55:13 -07:00
Zuul
180c30c9b1 Merge "Add networking-ovn job to Neutron's check pipeline" 2018-11-20 12:18:37 +00:00
Zuul
468fc5fa34 Merge "Implement ip_lib get_devices using pyroute2" 2018-11-20 04:56:59 +00:00
Zuul
d49edf1d77 Merge "Refactor _cache_related_dvr_routers_info_before_interface_removal()" 2018-11-20 04:56:55 +00:00
Zuul
9b7afc69c7 Merge "Make neutron-fullstack job run py3" 2018-11-20 04:56:52 +00:00
Zuul
5014cfa2e6 Merge "Import neutron.db.api module in common.utils" 2018-11-20 04:42:41 +00:00
Zuul
d35ed2ea84 Merge "Set router_id if floating IP has port_forwardings" 2018-11-20 04:34:39 +00:00
Zuul
216ed70e4f Merge "Duplicate words were deleted in openvswitch_agent.rst" 2018-11-19 18:31:00 +00:00
Zuul
511e043a0e Merge "Add test cases for port number 0 for port_forwarding" 2018-11-19 18:30:57 +00:00
guotao.bj
a26f5375e6 Duplicate words were deleted in openvswitch_agent.rst
Change-Id: I2b85b046409f935b9611e853ebfc96d822400450
2018-11-19 09:53:44 +00:00
LIU Yulong
c8cb1454af Add test cases for port number 0 for port_forwarding
Depends-On: https://review.openstack.org/#/c/616030/
Depends-On: https://review.openstack.org/#/c/613562/

Closes-Bug: #1799150
Change-Id: Iae80e59e3472cfccdf28ff29ba2f630781258ebc
2018-11-17 12:31:27 +08:00
Boden R
ddc72ebd41 use payloads for SEGMENT BEFORE_DELETE callbacks
This patch switches over to the payload style of callbacks for SEGMENT
BEFORE_DELETE events. It does so by using the publish callback function
with DBEventPayload payloads. Corresponding listener callbacks are
updated where necessary.

NeutronLibImpact

Change-Id: I64031129ad458d4468a316a9385288ced091d333
2018-11-16 10:57:21 -07:00
Slawek Kaplonski
9b23abbdb6 Add kill_timeout to AsyncProcess
AsyncProcess.stop() method has now additional parameter
kill_timeout. If this is set to some value different than
None, eventlet.green.subprocess.Popen.wait() will be called
with this timeout, so TimeoutExpired exception will be raised
in case if process will not be killed for this "kill_timeout"
time.
In such case process will be killed "again" with SIGKILL signal
to make sure that it is gone.

This should fix problem with failing fullstack tests, when
ovs_agent process is sometimes not killed and test timeout was
reached in this wait() method.

Change-Id: I1e12255e5e142c395adf4e67be9d9da0f7a3d4fd
Closes-Bug: #1798472
2018-11-16 15:33:13 +01:00
Zuul
1e0a5b901a Merge "Select service_provider on the basis of service_module" 2018-11-15 12:47:09 +00:00
Zuul
0008d3aa41 Merge "DVR: Centralized FloatingIPs are not cleared after migration." 2018-11-15 09:37:22 +00:00
Lucas Alvares Gomes
9dc5725996 Add networking-ovn job to Neutron's check pipeline
According with the ML thread [0] it was decided during the PTG in
Denver that Stadium projects are now allowed to add a non-voting job to
Neutron's check pipeling.

This patch is then adding a tempest job for the networking-ovn project.

[0]
http://lists.openstack.org/pipermail/openstack-dev/2018-September/135273.html

Depends-On: I49a644631365465ba4fbe2ca864dfa3d018c4b56
Change-Id: I4b7e7677b0f161048b7350cd491aba9e72d6b1d0
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2018-11-14 09:35:13 +00:00
Rodolfo Alonso Hernandez
aa19fa1c3f Implement ip_lib get_devices using pyroute2
IPWrapper.get_devices() now uses pyroute2 and priv_sep.

Related-Bug: #1492714
Change-Id: Idb847bf16fe8898735266d93d39430da1f5410f9
2018-11-14 09:27:26 +00:00
Swaminathan Vasudevan
cd0cc47a6a DVR: Centralized FloatingIPs are not cleared after migration.
With DVR routers, if a port is associated with a FloatingIP,
before it is used by a VM, the FloatingIP will be initially
started at the Network Node SNAT Namespace, since the port
is not bound to any host.

Then when the port is attached to a VM, the port gets its
host binding, and then the FloatingIP setup should be migrated
to the Compute host and the original FloatingIP in the Network
Node SNAT Namespace should be cleared.

But the original FloatingIP setup in SNAT Namespace was not
cleared by the agent.

This patch addresses the issue.

Change-Id: I55a16bcc0020087aa1abe76f5bc85cd64ccdaecd
Closes-Bug: #1796491
2018-11-13 16:25:04 -05:00
Zuul
84e22945ce Merge "Notify router_update after directly gateway IP change" 2018-11-13 21:23:51 +00:00
Bernard Cafarelli
e67d99b654
Make neutron-fullstack job run py3
In the Neutron CI meeting on 2018-10-02 [1] we decided on the proper
approach for fullstack testing of Neutron in Zuul.  The approach is:

1. There should be only one fullstack CI job, named "neutron-fullstack"
2. The neutron-fullstack job should invoke python3 in tox.ini

This change implements the agreed-upon approach.
Switching the nodeset to newer OS will be handled in a separate step

[1] http://eavesdrop.openstack.org/meetings/neutron_ci/2018/neutron_ci.2018-10-02-16.00.html

Co-Authored-By: Nate Johnston <nate.johnston@redhat.com>
Change-Id: I37c1cb42b3a94532e7b7fea21a929a39fe63f00b
2018-11-13 14:31:19 +01:00
LIU Yulong
8c17df7138 Notify router_update after directly gateway IP change
If directly change router gateway port IP address, the gateway IP
does not changed in router related namespace in l3 agent side. This
patch adds a method to catch a 'PORT' IP change event, and notify
the L3 agent.

Closes-Bug: #1795222
Change-Id: If276a7613c156f8c826967c9c8cbd6f2a8d32674
2018-11-12 16:13:20 -05:00
zhangzs
90dd08b156 Removed duplicated word "and".
Change-Id: Iff446e811bf1a76f2cdd76a5a2acc4a24688d384
2018-11-12 17:36:10 +08:00
Zuul
14c940333c Merge "Switch to new engine facade in neutron/db/agents_db.py" 2018-11-11 17:03:48 +00:00
Zuul
348509b3ca Merge "Update lower-constraints to meet neutron-lib" 2018-11-11 12:19:07 +00:00
Zuul
bdaf4ffc3b Merge "Increment versioning with pbr instruction" 2018-11-11 06:11:36 +00:00
Slawek Kaplonski
593c04d10d Import neutron.db.api module in common.utils
Patch [1] removed import of neutron.db.api module in
neutron.common.utils.
This cause some issues e.g. in networking-ovn projects because
listeners:

@event.listens_for(orm.session.Session, "persistent_to_deleted")
on _persistent_to_deleted() function [2] and

@event.listens_for(model_base.BASEV2, "attribute_instrument", propagate=True)
on _listen_for_changes() function [3]

aren't created as they where before.

This patch adds import of this neutron.db.api module again just to
ensure that those listeners are created properly.

[1] https://review.openstack.org/#/c/614252/
[2] https://github.com/openstack/neutron/blob/master/neutron/db/api.py#L110
[3] https://github.com/openstack/neutron/blob/master/neutron/db/api.py#L134

Closes-Bug: #1802369

Change-Id: I3e427ee5c904c34115aaf1afa67e1109ea58d603
2018-11-10 15:57:25 +01:00
LIU Yulong
b8d2ab8543 Prevent create port forwarding to port which has binding fip
For dvr scenario, if port has a bound floating, and then create
port forwarding to it, this port forwarding will not work, due to
the traffic is redirected to dvr rules.

This patch restricts such API request, if user try to create port
forwarding to a port, check if it has bound floating IP first.
This will be run for all type of routers, since neutron should
not let user to waste public IP address on a port which already
has a floating IP, it can take care all the procotol port
numbers.

Closes-Bug: #1799137
Change-Id: I4ba4b023d79185f8d478d60ce16417d3501bf785
2018-11-10 07:09:51 +08:00
Brian Haley
02e4efa01c Refactor _cache_related_dvr_routers_info_before_interface_removal()
Change from try/except to pop like other methods in the file.

Trivialfix

Change-Id: I79ce40bff400214de524b869a7c661c6b2ba9e23
2018-11-09 15:57:50 -05:00
Zuul
094095b3d7 Merge "Incorporate capability for multiple mac generation" 2018-11-09 10:29:30 +00:00
Nguyen Hai Truong
13b7f4f7da Add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I08e6b9fb4223569c3db04b54137d9092062c22ea
2018-11-08 23:41:08 +07:00
Nate Johnston
6098fc7430 Incorporate capability for multiple mac generation
The bulk port creation scenario requires the ability to generate
multiple MAC addresses for the bulk added ports.  This change leverages
the code added in [1] to make bulk MAC creation available.

[1] https://review.openstack.org/510830

Implements: blueprint speed-up-neutron-bulk-creation
Depends-On: https://review.openstack.org/613149
Change-Id: Ia769dadf69781ba511a19c52998949b668963a19
2018-11-08 09:43:33 -05:00
Sahid Orentino Ferdjaoui
e6dbef39d3 ml2/rpc: provide a small helper to avoid redundancy
Change-Id: I12e700c6ad523ebcf47f9bb049d407a674d4ef47
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
2018-11-08 13:04:44 +00:00
Zuul
6efb09fe22 Merge "ovs/sriov mech drivers: resource_provider_uuid5_namespace" 2018-11-08 12:04:36 +00:00
Zuul
db46210b45 Merge "DevStack: OVS: Only install kernel-* packages when needed" 2018-11-08 12:04:33 +00:00
Zuul
0fadcfe228 Merge "Use NetworkRBAC OVO in tests/unit/db/test_db_base_plugin_v2.py" 2018-11-08 09:52:33 +00:00
lujin
4ba87b06d7 Switch to new engine facade in neutron/db/agents_db.py
This patch changed the old engine facade to new engine
fade in neutron/db/agents_db.py.

Partially-Implements blueprint: enginefacade-switch

Change-Id: Iee6fbee98fae41d75b4e8eb0fbcf2283da545023
2018-11-07 19:16:33 -08:00
Zuul
02edde5cbf Merge "Fix connection between 2 dvr routers" 2018-11-08 01:24:47 +00:00
Zuul
ca904b254a Merge "Bump neutron-lib to version 1.20.0" 2018-11-08 00:38:46 +00:00
Zuul
db3f03d437 Merge "Increase timout of gate jobs" 2018-11-07 22:42:39 +00:00
Zuul
fa69527e90 Merge "Wait to ipv6 forwarding be really changed by L3 agent" 2018-11-07 18:16:59 +00:00
Lucas Alvares Gomes
cdfeeaf2bc DevStack: OVS: Only install kernel-* packages when needed
If the host OS is using an older kernel and invoke the compile_ovs
function from the DevStack OVS library (devstack/lib/ovs), that function
will try to install the kernel-dev and kernel-headers package even if
the "build_modules" parameter is set to False.

That could fail because the specific kernel-* packages for the version
of the kernel running may not be present in the distro's repository
anymore. Plus, if the kernel modules will not be compiled, there's no
reason to install such packages.

This patch is fixing this problem by using the "build_modules" parameter
as a flag to whether install or not those kernel-* packages.

Change-Id: I11af0e22d25973e6334e867ab2659fbdf9f10d86
Closes-Bug: #1802101
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2018-11-07 15:22:51 +00:00
Zuul
3c64c5caa0 Merge "Add missing step for ovs deploy guides" 2018-11-07 00:35:05 +00:00
Zuul
d5a8a6fa72 Merge "use MAX_RETRIES from neutron-lib" 2018-11-07 00:35:00 +00:00
Hongbin Lu
cf0b461836 Bump neutron-lib to version 1.20.0
Depends-On: https://review.openstack.org/#/c/615894/
Change-Id: I6625c5099828ee6e5df1f07f0cc8179f3ebabdb1
2018-11-06 23:27:25 +00:00
Zuul
6531cf9833 Merge "sriov-agent: fullstack test resource info report" 2018-11-06 22:38:40 +00:00