17404 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
8aa7a46251 Updated from global requirements
Change-Id: I4de6712e7d554325ccf6f841b9e0bb1c911d749c
2017-02-03 00:19:33 +00:00
Jenkins
a292ae544b Merge "functional: Check for processes only if there are any" 2017-02-03 00:17:35 +00:00
Jenkins
1bfcd6e9d6 Merge "ovsfw: Refresh OFPort when necessary" 2017-02-02 23:56:14 +00:00
Jenkins
2040e5b7bc Merge "Use socket.AF_INET6 in ip_lib tests" 2017-02-02 22:03:25 +00:00
Jenkins
b1e0e4c666 Merge "Fix broken Windows compatibility in ovs_lib" 2017-02-02 22:02:53 +00:00
Jenkins
7a4fc0c07a Merge "Add IPLink class to Windows ip_lib implementation" 2017-02-02 20:31:52 +00:00
Jenkins
0e71248955 Merge "Revert "Setup firewall filters only for required ports"" 2017-02-02 00:06:55 +00:00
Jenkins
525d1908be Merge "Update bug triaging policy for documentation" 2017-02-01 22:42:54 +00:00
Brian Haley
5c5badf365 Use socket.AF_INET6 in ip_lib tests
Although AF_INET is always 2, AF_INET6 can vary
depending on the OS.  Use the system-defined
value so the routing table tests work on OSX.

Change-Id: I11dca8e4022b23282838799798f352beb2416881
2017-02-01 11:22:20 -05:00
Jenkins
ea9d837d55 Merge "Elminate join for network owner filter" 2017-02-01 13:54:57 +00:00
John Davidge
792cc0fddc Update bug triaging policy for documentation
Update the bug triage policy for neutron DocImpact bugs affecting
openstack-manuals.

The two policy additions are:

1. Tagging the bug for the appropriate guide. This will assist the
   openstack-manuals team with their part of the triage process.
2. Removing neutron from affected projects if the bug only affects
   openstack-manuals. This will help reduce clutter in the neutron bug queue.

Change-Id: Iac2dd10f1476cde0843c356f0d161b5a59943c99
2017-02-01 12:43:22 +00:00
Jenkins
883029c8ce Merge "policies: Replace Joe's graphite graphs with Grafana" 2017-02-01 09:40:13 +00:00
Jenkins
8ae18577d4 Merge "Fixes to allow OVO deserializion of ports/networks" 2017-02-01 09:38:30 +00:00
Jenkins
eeeee06bf0 Merge "Do not raise an error deleting neighbour entry" 2017-01-31 21:13:46 +00:00
Jenkins
20a7b3f873 Merge "Clear conntrack entries without zones if CT zones are not used" 2017-01-31 21:13:10 +00:00
Jenkins
c52a0cc5c1 Merge "Addressing L3 HA keepalived failures in functional tests" 2017-01-31 20:43:11 +00:00
Jenkins
96bffbf6d2 Merge "Remove unused params named "context" in filter_attributes" 2017-01-31 18:16:15 +00:00
Jenkins
f8b1bfdf59 Merge "Init privsep on l3 agent start" 2017-01-31 14:55:58 +00:00
Jenkins
d1b78959b2 Merge "Check arg type for SegmentTypeDriver functions" 2017-01-31 13:07:56 +00:00
Jakub Libosvar
e5320e7646 functional: Check for processes only if there are any
In one of tests, pstree received SIGSEGV signal and was terminated. This
means the output is empty and we check on empty string. This patch makes
the test less prone to the errors coming from executed binaries.

Change-Id: I22a7f2fea56c9d97a1d765f0f25e9f28c7942b55
Closes-bug: 1659965
2017-01-31 07:34:13 -05:00
Jenkins
cd37b97c29 Merge "Stop passing datapath as 'may_exist' argument" 2017-01-31 11:27:56 +00:00
Boden R
11825081ec Fix link in QoS devref
The QoS devref has a bad link to the L2 agent extensions
doc. This patch fixes the link.

Note: The bug reports a few other neutron dead links, but
these are either already fixed, or for liberty release notes
and liberty is already EOL.

Change-Id: I047f638f0a348d636aa533c0db93e8a1f23c6356
Closes-Bug: #1652944
2017-01-30 09:00:43 -07:00
Sławek Kapłoński
10bfa69088 Clear conntrack entries without zones if CT zones are not used
CT zones are used only in OVSHybridIptablesFirewallDriver.
Such zones are not set in IptablesFirewallDriver class but
even if iptables driver was is not using CT zones, it was
used by conntrack manager class during delete of conntrack
entry.
This cause issue that for Linuxbridge agent established and
active connection stayed active even after security group
rule was deleted.
This patch changes conntrack manager class that it will not
use CT zone (-w option) if zone for port was not assigned
earlier.

Change-Id: Ib9c8d0a09d0858ff6f36db406c6b2a9191f304d1
Closes-bug: 1657260
2017-01-30 15:25:52 +00:00
Jakub Libosvar
3a1873f6c6 policies: Replace Joe's graphite graphs with Grafana
It seems the link doesn't show any results anymore and nowadays we have
Grafana.

Change-Id: Ie8caf2b845c754cb307b61619bfd89e40532078e
2017-01-30 14:08:18 +01:00
Jenkins
ca8bc94331 Merge "Retry on routerport delete race" 2017-01-30 12:18:43 +00:00
Oleg Bondarev
4750112ea3 Init privsep on l3 agent start
Should fix the problem with privsep call failures

Change-Id: I1150291eb6310677f4f4ab035a5cd275d21b7e39
Closes-Bug: #1660305
2017-01-30 16:00:56 +04:00
Jenkins
1fc3fdbc9e Merge "Always acquire network.id lock in dhcp port update" 2017-01-30 10:48:30 +00:00
Sławek Kapłoński
afab7c6701 Display deprecation warning in test only once
WarningsFixture class was set to display deprecation
warnings "alway" - which means every occurence of
a warning.
Since oslo.context 2.12.0 there was huge amount of such
warnings displayed. It causes functional tests fails due
to reach global timeout for tests.

Now deprecation warning should be disaplayed only on first
occurence of matching warning in test.

Change-Id: I91196a8457c25e6eb5561fb74fd5864de85a070a
Closes-Bug: 1660088
2017-01-29 09:44:03 +00:00
Jenkins
0425a4db6e Merge "Use plugin directory fixture" 2017-01-28 06:17:10 +00:00
Jenkins
74fcf15631 Merge "Use weakrefs for common_db_mixin callbacks" 2017-01-28 00:24:50 +00:00
Jenkins
8a910c30d4 Merge "Handle attempt to enable br_netfilter in namespace" 2017-01-27 23:05:26 +00:00
Kevin Benton
38de22bf2d Always acquire network.id lock in dhcp port update
Looking at the cache before aqcuiring a lock may cause the
agent to mistakenly think the network doesn't exist when it
is actually being wired in parallel.

Always acquiring the network-based semaphore will ensure that
the network isn't currently being setup in another coroutine.

Closes-Bug: #1659919
Change-Id: I99ae71e3c5b1cd91dca3f6c80b04d2ecb79de64f
2017-01-27 11:26:24 -08:00
Jenkins
c001ac434a Merge "Add missing module-level SUBNET ref" 2017-01-27 17:36:31 +00:00
Jenkins
5f3c28880e Merge "[Live Migration] Extend ml2_port_binding table" 2017-01-27 11:36:24 +00:00
Artur Korzeniewski
8d3f216e24 Addressing L3 HA keepalived failures in functional tests
Current testing of Keepalived was not configuring the connectivity
between 2 agent namespaces.
Added setting up the veth pair.

Also, bridges external qg-<id> and internal qr-<id> were removed
from agent1 namespace and moved to agent2 namespace, because they had
the same name.
Added patching the qg and qr bridges name creation to be different for
functional tests.


Change-Id: I82b3218091da4feb39a9e820d0e54639ae27c97d
Closes-Bug: #1580648
2017-01-27 11:19:16 +01:00
Jenkins
9523901b08 Merge "Fix a bad docstring in provisioning blocks module" 2017-01-27 07:03:59 +00:00
Kevin Benton
6ce47f1d62 Stop passing datapath as 'may_exist' argument
While debugging the related bug, this showed up in the logs:
AddBridgeCommand(datapath_type=None, may_exist=system, name=test-brd8f3648c)

This was caused by the add_bridge command not passing in the datapath
type as named argument so it was taking the positional argument of
may_exist. So the datapath type was being lost whenever this command
was being used.

This fixes it by makeing add_bridge use a named argument for
datapath_type and it also switches it to using the
OVSBridge.create() method to unify the code-paths for bridge
creation.

It's not clear that this was a cause of the bug though, so
this fix is only related.

Change-Id: I5711c29c21741dd847f2c27fb621f723b24cb7fd
Related-Bug: #1627106
2017-01-26 18:26:27 -08:00
Jenkins
76a2227536 Merge "Use unique subnetpools in SubnetPoolPrefixDbObjectTestCase" 2017-01-27 02:09:55 +00:00
Jenkins
1b24e8761b Merge "adds support for vhost user reconnect." 2017-01-27 02:08:11 +00:00
Jenkins
2dba0775e9 Merge "Transition qos notification driver into qos driver" 2017-01-27 02:01:52 +00:00
Kevin Benton
4c636bd1e6 Retry on routerport delete race
After deleting the router interfaces, another concurrent
process (e.g. HA port creation) could happen before the actual
router is deleted, which would lead to an SQLAlchemy error due
to the relationship being violated.

This patch fixes the issue by bumping the router revision before
deleting the router to check for concurrent interface additions.
A race will trigger a staledataerror which will be retried by
the decorator

Closes-Bug: #1655281
Change-Id: I465e9a2f9b216991afa26c16271854fb88068006
2017-01-26 21:41:45 +00:00
Brian Haley
c148edb857 Do not raise an error deleting neighbour entry
Ever since https://review.openstack.org/#/c/418609/
merged, changing to use the pyroute2 library for managing
neighbour entries, there has been an up-tick in DVR
error messages - "DVR: Failed updating arp entry" is
happening trying to delete a non-existent entry.

Since the error is not fatal, just catch and ignore it.

Change-Id: If6c4715b85c0bd65f5f58600ce5572fa60651510
2017-01-26 16:22:20 -05:00
Anindita Das
7872508f9f [Live Migration] Extend ml2_port_binding table
Extended the Primary Key of ml2_port_binding table to include "hosts"
and added a new column named "status" to indicate the status of the
port similar to the ml2_distributed_port_binding table. Updated the
PortBinding object with the above changes.

Change-Id: Ie01f83b01ab673b9ae7e05b4eaed504ffc8db773
Co-Authored-By: Brian Stajkowski <brian.stajkowski@rackspace.com>
Partial-Bug: #1580880
2017-01-26 16:49:15 +00:00
Kevin Benton
faf80b950f Use weakrefs for common_db_mixin callbacks
This will prevent the common_db_mixin dictionary
extension functions and query hooks from stopping
the GC of plugins in tests and causing resource leaks.

Change-Id: I7576851a44abd14cbc337a3d3e28690c7316ec81
2017-01-26 07:10:06 -08:00
Sławek Kapłoński
750c491df7 Handle attempt to enable br_netfilter in namespace
When the process is using the IptablesFirewall driver
and is running in namespaces, there is no
/proc/sys/net/bridge in the namespace available and
enable of netfilter for bridge fails with stacktrace
in logs.
This patch handles the exception thrown during a
failed attempted to retrieve net.bridge variable names
and prints an info message in agent logs instead of
printing a stacktrace.

Change-Id: I1ff6cedbf933ac54ef4bbf1d44fc8f57f68d57fc
Closes-bug: 1658343
2017-01-26 11:54:02 +00:00
Jenkins
4ae6790d82 Merge "Adjust psutil usage for psutil > 2" 2017-01-26 09:19:44 +00:00
Jenkins
2092935b57 Merge "Always add unique sort keys when sorting" 2017-01-26 08:59:11 +00:00
Ann Kamyshnikova
59727be401 Check arg type for SegmentTypeDriver functions
Change 68ac442f11a6698bc43210fae877ba3809b1c02d introduce refactor
and start passing context instead of session.

For those who still use old TypeDriver usage methods

* allocate_fully_specified_segment
* allocate_partially_specified_segment

can end up with error. Current change adds check for type of the
argument that has been passed.

Change-Id: I8c6e60408dcc0a83ac401585c7cf962a84af92bd
2017-01-26 10:54:14 +04:00
Kevin Benton
28d2e699b5 Fixes to allow OVO deserializion of ports/networks
A few fixes required to allow deserialization/serialization
of OVO resources.

* Set shared to False when context is missing for RBAC calculations
* Parse strings received from json into netaddr objects

Partially-Implements: blueprint push-notifications
Change-Id: I1609014d6100a0c410c66d159f9e682d8aa3e7ba
2017-01-25 19:30:36 -08:00
Kevin Benton
7915b4a2ea Add missing module-level SUBNET ref
The resources module was missing the SUBNET variable
so it wasn't possible for consumers to reference it
like the other resources.

TrivialFix
Partially-Implements: blueprint push-notifications
Change-Id: I954858f5c4487ea97a482a24576a6ca523d4d5d6
2017-01-25 19:29:51 -08:00