21116 Commits

Author SHA1 Message Date
zhufl
65f1a7e521 Add missing ws seperator between words
This is to add missing ws seperator between words, usually
in log messages.

Change-Id: Ia975aba3883ce7b3be3cc22044a8cb33ee215f85
2018-11-19 13:57:05 +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
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
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
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
Zuul
094095b3d7 Merge "Incorporate capability for multiple mac generation" 2018-11-09 10:29:30 +00: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
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
Slawek Kaplonski
f4089680b5 Add missing step for ovs deploy guides
There was missing step about adding underlying interface to the
provider bridge in ovs deployment guides.
This patch adds this missing step.

Change-Id: I2ef5f12c469647d7f197cb5db71692e68d23f718
Closes-Bug: #1801361
2018-11-06 22:22:42 +00:00
Slawek Kaplonski
916e774516 Wait to ipv6 forwarding be really changed by L3 agent
In test test_ha_router_namespace_has_ipv6_forwarding_disabled
functional test it may happen that L3 agent will not change ipv6
forwarding and test fails because it checks that only once just
after router state is change to master.

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

Change-Id: I85a602561ebe9b7ab135913af49a3f010b09f196
Closes-Bug: #1801930
2018-11-06 15:40:34 +01:00
Boden R
3316b45665 use MAX_RETRIES from neutron-lib
The MAX_RETRIES constant from neutron.db.api is available in neutron-lib
and is already used by most of the code today. This patch changes the
remaining references over to use lib's constant and removes the
MAX_RETRIES from neutron.db.api

NeutronLibImpact

Change-Id: I79480daca9cca3d4e1504767d286aab22504e0b9
2018-11-06 07:40:05 -07:00
Zuul
c4f081d024 Merge "supported_vnic_type configurable for sriov" 2018-11-06 04:14:20 +00:00
Zuul
4afc4bf1de Merge "Add test cases to verify port number 0 for port_forwaring" 2018-11-06 03:20:10 +00:00
Zuul
75af9170a4 Merge "OVSNeutronAgent.rpc_loop is always called with "polling_manager"" 2018-11-05 23:53:29 +00:00
Slawek Kaplonski
a000fb0855 Update lower-constraints to meet neutron-lib
This patch updates minimal required versions of

oslo.concurrency
oslo.config

to be same as in neutron-lib.

Change-Id: I2a2f68731445634b2599f27b3146c1bff31cb0c9
2018-11-05 22:52:17 +01:00
Zuul
2a7079ddd1 Merge "notification: Add 'status' to agent after_create/update" 2018-11-05 21:25:10 +00:00
Rodolfo Alonso Hernandez
4f3cde2322 Use NetworkRBAC OVO in tests/unit/db/test_db_base_plugin_v2.py
Change-Id: I3655605ccb08cedd05e1da650d02a6aad1be6f9f
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2018-11-05 16:04:56 +00:00
Zuul
5fcfa3d874 Merge "Use NetworkRBAC OVO in neutron/db/external_net_db.py" 2018-11-05 12:45:33 +00:00
Lajos Katona
d860109bf6 supported_vnic_type configurable for sriov
Now supported_vnic_types is hardcoded to the mechanism drivers, but that
can depend on several factors, like type of the NIC, admin decision,
etc.
With this patch we put the right to decide which vnic types are
supported for ovs agent into the hands of the admin, by allowing
blacklisting items from the mechanism driver specific list.
Background: http://eavesdrop.openstack.org/meetings/neutron_qos/2018/
neutron_qos.2018-07-31-15.00.log.html#l-58

Change-Id: Iad9e2e966df53b4164d2a56a93215c69825b5241
Partial-Bug: #1578989
See-Also: https://review.openstack.org/502306 (nova spec)
See-Also: https://review.openstack.org/508149 (neutron spec)
2018-11-05 11:40:13 +01:00
Zuul
0587824123 Merge "Use NetworkRBAC OVO in neutron/db/db_base_plugin_v2.py" 2018-11-04 01:46:12 +00:00
Zuul
a6997efae6 Merge "Scan for MAC through all devices in macvtap agent" 2018-11-03 12:11:18 +00:00
Slawek Kaplonski
e9e374fa7d Increase timout of gate jobs
In patch [1] timeout for
- tempest-full
- tempest-full-py3
was increaced to 3h.
Unfortunatelly it was done only for check queue.
I forgot to do the same change for jobs in gate queue

This patch adds same change for gate queue.

[1] https://review.openstack.org/#/c/614423/

Change-Id: I263124aa732efea8295313aeff7697b91c00f3f4
2018-11-02 23:12:01 +01:00
LIU Yulong
c183781231 Add test cases to verify port number 0 for port_forwaring
Floating IP port forwarding internal or external port number should
not allow 0, otherwise you will get some ValueError exception in
neutron server.

Change-Id: I8bf8ed6f9c4b937743f8c0f998ee897e3af17459
Closes-Bug: #1799150
2018-11-02 15:41:48 +08:00
Zuul
5ad2bfdbfe Merge "iptables-restore wait period cannot be zero" 2018-11-02 01:05:20 +00:00
Zuul
2005700de4 Merge "Verify port_forwarding subnet and IP address both" 2018-11-01 23:13:25 +00:00
Zuul
8d338f2516 Merge "Update docs for disabling DNS server announcement" 2018-11-01 21:14:55 +00:00
Brian Haley
a58a527494 Scan for MAC through all devices in macvtap agent
The first device the agent happens to pick could be something
without a MAC address like a 6in6 interface. This was causing
the agent to fail to start if it was unlucky enough to pick
that address.

This patch just adjusts the logic to keep iterating through
the list until we find a MAC.

Change-Id: Iba9c7c3cb200e74a78ea885e8d9323de64c2c663
Closes-Bug: #1801030
2018-11-01 16:00:16 -04:00
Zuul
463db49a36 Merge "Increase tempest-full jobs timeout" 2018-11-01 19:57:46 +00:00
Slawek Kaplonski
5018d70241 Fix connection between 2 dvr routers
In case when 2 dvr routers are connected to each other with
tenant network, those routers needs to be always deployed
on same compute nodes.
So this patch changes dvr routers scheduler that it will create
dvr router on each host on which there are vms or other dvr routers
connected to same subnets.

Co-Authored-By: Swaminathan Vasudevan <SVasudevan@suse.com>

Closes-Bug: #1786272

Change-Id: I579c2522f8aed2b4388afacba34d9ffdc26708e3
2018-11-01 18:01:25 +01:00
Jens Harbott
698e6d475c Update docs for disabling DNS server announcement
The functionality allowing to disable DNS server announcement from the
DHCP agent for certain subnets was introduced in [0]. We should mention
this feature in the corresponding documentation.

[0] https://review.openstack.org/495781

Change-Id: I4adfa7ba789a59f967297ebb6c571deb0652c7ca
Related-Bug: 1311040
2018-11-01 11:15:01 +00:00
Zuul
4a4fa0db7f Merge "Block port update from unbound DHCP agent" 2018-11-01 01:11:53 +00:00
Zuul
6e98d52eb8 Merge "Fix incorrectly passing ext_ips as gateway ips" 2018-10-31 18:20:03 +00:00