18725 Commits

Author SHA1 Message Date
Jenkins
d76c45d546 Merge "use attribute functions/operations from neutron-lib" 2017-06-30 11:42:17 +00:00
Jenkins
d8a27bf352 Merge "Fix html_last_updated_fmt for Python3." 2017-06-30 11:16:57 +00:00
Jenkins
f0aaffc2f3 Merge "Add fullstack-python35 testenv in tox.ini" 2017-06-29 21:20:34 +00:00
Jenkins
d581931b65 Merge "tempest-api: Skip test if deployment has not enough agents" 2017-06-29 20:50:08 +00:00
Jenkins
3017329964 Merge "import the networking guide content from openstack-manuals" 2017-06-29 19:41:56 +00:00
Jenkins
73eb1318b6 Merge "Replace the usage of 'admin_manager' with 'os_admin'" 2017-06-29 16:53:12 +00:00
rajat29
09e3e902b7 Replace the usage of 'admin_manager' with 'os_admin'
In tempest, alias 'admin_manager' has been moved to 'os_admin'
'alt_manager' to 'os_alt' and 'manager' to 'os_primary' in
version Pike, and it will be removed in version Queens[1].


[1]I5f7164f7a7ec5d4380ca22885000caa0183a0bf7

Closes-bug: 1697588

Change-Id: Ib41a1bcff70cc7323b90a222c9f64d66e0203e53
2017-06-29 11:20:02 +00:00
Sławek Kapłoński
970488a8b0 Add fullstack-python35 testenv in tox.ini
Change-Id: Iebb36f050ae6831ff03d74079d98b2fa2f67b6ec
2017-06-29 07:38:14 +00:00
Jenkins
f54feddd4a Merge "test_floatingip: Add a case for SRC without FIP" 2017-06-29 04:30:15 +00:00
chenxing
2553f2b131 import the networking guide content from openstack-manuals
Change-Id: Ibcedc9389dbea4a5810f2cecf890f6ba9887a07b
2017-06-29 03:09:59 +00:00
Jenkins
27b2537392 Merge "use service type constants from neutron_lib plugins" 2017-06-28 10:35:07 +00:00
Jenkins
6d7bac7475 Merge "Fix tempest router creation" 2017-06-28 10:21:47 +00:00
Jenkins
9a72bfe389 Merge "functional: Replace unicode() with six.u()" 2017-06-28 02:40:00 +00:00
Jenkins
4723a11da9 Merge "Add provider info to network for update" 2017-06-27 21:19:11 +00:00
Boden R
0a1405794f use service type constants from neutron_lib plugins
The well known service type constants are in
neutron_lib.plugins.constants, but for legacy reasons a few still exist
and are referenced from neutron_lib.constants that we'd like to remove.
This patch switches references over to neutron_lib's plugin constants.

Change-Id: I1861448cec303725b30cef8f42029f467f9e03a3
2017-06-27 15:16:05 -06:00
Jenkins
c6bc9e3dd5 Merge "Fix list QoS rule_types tempest API test" 2017-06-27 18:15:32 +00:00
Jenkins
e3855c8b7c Merge "Common Agent loop: Catch delete_port extension failures" 2017-06-27 11:43:17 +00:00
Kevin Benton
5aa7192ffa Common Agent loop: Catch delete_port extension failures
Catch delete port extension failures like we do with normal port
removal to avoid interrupting the deletion processing for other
ports.

Related-Bug: #1697937
Change-Id: I42d86a86965d30e14c85ce975681a6b82be41ecc
2017-06-26 22:02:11 +00:00
Sławek Kapłoński
e10524e87e Fix list QoS rule_types tempest API test
Test was wrong because it was only checking if each of
expected rule types is in list returned from Neutron server.
As list of expected rule types was wrong, it didn't check anything.

This test was also dependent on deployment because it was checking
available rule types returned by neutron-server.

Now it is changed that it's checking only returned keys in each
rule_type and it's not checking returned values.

Change-Id: I467672cc0ba1e579cddfff6020658c82e80fa5af
2017-06-26 21:54:22 +00:00
Jenkins
3c5e099733 Merge "functional-tests: Make addresses for tunneling unique" 2017-06-26 18:25:21 +00:00
Jenkins
440d700601 Merge "Enable some off-by-default checks" 2017-06-26 13:06:13 +00:00
Jenkins
6e75ddae86 Merge "Manually increment revision numbers in revision plugin" 2017-06-25 13:37:49 +00:00
Jenkins
5cd3b2a8bb Merge "Add missing description of Linuxbridge egress bw limit" 2017-06-25 11:31:09 +00:00
Sławek Kapłoński
ad49bbd0f2 Add missing description of Linuxbridge egress bw limit
Add to QoS devref document missing description about how
egress bandwidth limit rules are implemented by Linuxbridge
agent driver.

Change-Id: I1ce44aba14d54179e64f8d0516e0a60605b2add1
2017-06-24 08:42:07 +00:00
Jenkins
11acb1d642 Merge "Replaced assertTrue(False) with fail()" 2017-06-23 23:42:14 +00:00
YAMAMOTO Takashi
02cd20a3c1 test_floatingip: Add a case for SRC without FIP
Change-Id: Iaa7121ced07f7877292e4ff15926bf02b5e7aaa1
2017-06-23 18:21:06 +09:00
lingyongxu
c68e2a19aa Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None

Change-Id: Ie38ec248651b57f2f2886cf90366cbf13673ffaf
2017-06-23 09:51:01 +08:00
Jenkins
7078a5d8ea Merge "DHCP Agent: Set dhcp-range netmask property" 2017-06-22 22:09:21 +00:00
Viktor Varga
c4d65601ed Replaced assertTrue(False) with fail()
In some unit and functional tests self.assertTrue(False) was used
instead of self.fail(), which might be against readability.

Using assertTrue(False) gives the following message on fail:

  File "C:\Python361\lib\unittest\case.py", line 678, in assertTrue
    raise self.failureException(msg)
    AssertionError: False is not true

After replacing assertTrue(False) with fail():

  File "C:\Python361\lib\unittest\case.py", line 666, in fail
    raise self.failureException(msg)
    AssertionError: None

Although the results are the same (both tests failed), the
message 'False is not true' is unnecessary, and can be omitted
from the log by using fail().

Change-Id: I81e21040fd6a2f9713889912fafd2b19bd056b5a
2017-06-22 19:31:00 +02:00
Brian Haley
91b579c287 Fix tempest router creation
Tempest router migration tests need to create
routers explicitly - without HA and/or Distributed
values set, since they might be run in different
environments where those migrations are not
allowed.

Change-Id: Ib817c9390b506a935a46f57e93e8a083ddd304e6
2017-06-22 11:44:52 -04:00
Harald Jensas
c28dd28514 DHCP Agent: Set dhcp-range netmask property
To complete the DHCP support for non-local routed networks via relay
agent the dhcp agent must configure the netmask in the --dhcp-range
option for IPv4 networks. This was previously not required becuase
dnsmasq can determine it from the local interface information for
local networks.

DNSMASQ(8)
  For directly connected networks (ie, networks on which the machine
  running dnsmasq has an interface) the netmask is optional: dnsmasq
  will determine it from the interface configuration. For networks
  which receive DHCP service via a relay agent, dnsmasq cannot
  determine the netmask itself, so it should be specified, otherwise
  dnsmasq will have to guess, based on the class (A, B or C) of the
  network address. The broadcast address is always optional. It is
  always allowed to have more than one dhcp-range in a single subnet.

Change-Id: I5d609e47a3463c11338dd38aedebfb4a6822f503
Closes-Bug: #1699754
2017-06-22 16:28:20 +02:00
Jenkins
2ce4f19afd Merge "Ingress bandwidth limit rule in Linuxbridge agent" 2017-06-22 13:59:07 +00:00
Jakub Libosvar
4548ffd6b3 tempest-api: Skip test if deployment has not enough agents
Neutron deployments can have various number of agents. For agentless
deployments there is no point in running agent API tests so that should
be reflected in tempest.conf available extension.

One of the tests require at least two agents - this patch skips such
test if environment doesn't contain enough agents for running the test.

Change-Id: I0f006258aa89c1f52fac73669352d725b109696c
Closes-bug: #1699199
2017-06-22 12:15:12 +00:00
Jenkins
3b93fad8d6 Merge "Correct the config group in check_trunk_dependencies" 2017-06-22 09:37:20 +00:00
Jenkins
8114dec504 Merge "Add revises_on_change to Binding DB models" 2017-06-22 09:36:57 +00:00
Jenkins
a8fe290c63 Merge "Use objects instead of SQLA deep copies in PortContext" 2017-06-22 09:35:13 +00:00
Sławek Kapłoński
da646496e3 Ingress bandwidth limit rule in Linuxbridge agent
Add support for QoS ingress bandwidth limiting in
linuxbridge agent.
It uses traffic shaping done by tc with tbf qdisc.

DocImpact: Ingress bandwidth limit in QoS supported by
           Linuxbridge agent

Change-Id: Id495b302d31f5527db3e45b51517bc53153e7fc2
Partial-Bug: #1560961
2017-06-22 08:20:48 +00:00
Jenkins
16d16206c9 Merge "Using constants in local" 2017-06-22 07:11:43 +00:00
Jenkins
39fc8522bc Merge "Fix bug when checking duplicated subnets for router interface" 2017-06-22 07:08:29 +00:00
Jenkins
6077d778e9 Merge "dvr: Move normal/output br-int flows to table TRANSIENT" 2017-06-22 07:08:12 +00:00
Jenkins
4f8128c8bc Merge "security group: pass update value to precommit_update" 2017-06-22 06:42:31 +00:00
Jenkins
dd52e9fbb8 Merge "Revert "Change list of available qos rules"" 2017-06-22 00:21:04 +00:00
ZhaoBo
012de2ea08 Correct the config group in check_trunk_dependencies
The 'securitygroup' is registered as cfg.CONF.SECURITYGROUP. Currently,
this check always raise error as no 'cfg.CONF.securitygroup', then neutron
will abort the trunk_create. So nova will error when create VM with trunk
parent port for waiting timeout about the network-vif-plugged event.

Closes-Bug: #1699516
Related-Bug: #1669074
Change-Id: I0b0bdb5a39f1978e12ddaeddd4e0d825894ea241
2017-06-21 22:07:44 +00:00
Boden R
cbb0970b36 use attribute functions/operations from neutron-lib
neutron-lib now contains the functionality from neutron's attributes
module. This patch moves the local references over to neturon-lib's
implementation and removes the functionality from the attributes
module.

NeutronLibImpact

Change-Id: I773702ebd4b66d28059cb3ced64b2b477ceff8af
2017-06-21 10:58:28 -06:00
Brian Haley
bd9fc827c6 Fix some tempest deprecation warnings
Saw this recently in a tempest test run:

    DeprecationWarning: Read-only property 'manager'
    has moved to 'os_primary' in version 'Pike' and
    will be removed in version 'Queens'

Tempest BaseTestCase class credential names have changed
from manager->os_primary, admin->os_admin, and
alt_manager->os_alt, so we should start using them.

Closes-bug: #1697588
Change-Id: I44de8046fc983bf6780c310e8db174a5902c2826
2017-06-21 15:46:30 +00:00
Jakub Libosvar
b12e0f01fc functional: Replace unicode() with six.u()
unicode() is not present in Python 3

Change-Id: I1a6487d5c46884bf95704e3fd726e78c1dde9517
2017-06-21 13:53:31 +00:00
Isaku Yamahata
154b8750bc security group: pass update value to precommit_update
This patch is follow up for [1].
When updating security group, pass updated value to precommit.
old value is passed as original_security_group and new value
is passed as security_group.
[1] https://review.openstack.org/#/c/448420/

Although argument to callbacks will be unified by EventPayload
eventually, it's necessary to unbreak decomposed modules.

Change-Id: I5a27d1d218a0be4fae6f9740559bbbf773518821
Related-bug: #1546910
2017-06-20 22:21:23 -07:00
Jenkins
05c22d6199 Merge "Fix race between create subnet and port requests" 2017-06-21 03:36:31 +00:00
Jenkins
ccd7dadec5 Merge "Updated from global requirements" 2017-06-21 03:06:42 +00:00
Jenkins
5449e44587 Merge "DVR: Add forwarding routes based on address_scopes" 2017-06-21 03:06:15 +00:00