16930 Commits

Author SHA1 Message Date
Zainub Wahid
bb78621a72 Make UUIDField actually validate UUIDs
Instead of using oslo.versionedobjects UUID type, use a custom UUIDField
class located in common_types that will actually validate passed values
for UUID-ness.

Closes-Bug: #1614537
Change-Id: I20b24ee57c521b1c68977c2ff7ae56b56875dd64
2016-12-07 15:11:43 +00:00
Jenkins
a405b42a03 Merge "Trivial Fix - Update code to use Pike as the code name" 2016-12-07 22:13:35 +00:00
Jenkins
f545cc50f1 Merge "Refactoring config opts for ml2 plugin openvswitch" 2016-12-07 21:15:14 +00:00
Jenkins
186ca78c67 Merge "Compare port_rule_masking() results with different approach" 2016-12-07 18:12:29 +00:00
Jenkins
2d036593a5 Merge "Remove fallback functions in agent/rpc" 2016-12-07 13:22:58 +00:00
Jenkins
ea61c3edcc Merge "Use Query.column_descriptions instead of private property" 2016-12-07 13:22:42 +00:00
Jenkins
9a541f03e6 Merge "Delete conntrack when remote ipset member removed" 2016-12-07 13:19:53 +00:00
Jenkins
c5dde0c87c Merge "Eliminate DVR inheritance of router create/update_db" 2016-12-07 03:47:47 +00:00
Henry Gessau
1ef552ac20 Use Query.column_descriptions instead of private property
TimeStamp_db_mixin was using the private '_mapper_adapter_map'
property of sqlalchemy's Query object. Replace it with the public
access property.

Change-Id: I9798078a6c3c4540379d419fb1f16b56d6a4efa6
2016-12-06 13:00:13 -05:00
Jenkins
f448cccabb Merge "doc: Fix a warning" 2016-12-06 17:44:03 +00:00
Marc Koderer
a2f971c7bf Remove fallback functions in agent/rpc
agent/rpc contains fallback functionality that
aren't needed any longer.

Change-Id: Ifd2d37c1e13bcf886c93860ae2313053225bed2f
Closes-bug: #1647730
2016-12-06 15:51:16 +01:00
YAMAMOTO Takashi
26020fed03 doc: Fix a warning
Fix the following warning:
    WARNING: Block quote ends without a blank line; unexpected unindent.

Closes-Bug: #1647541
Change-Id: I1025a22c4c97ca1b824f5fa26bfa3b354d42f4b8
2016-12-06 15:05:07 +09:00
Jenkins
24b5a3b73e Merge "Support alembic 0.8.9 in test_autogen_process_directives" 2016-12-06 02:06:59 +00:00
Jenkins
97af096727 Merge "Use ExtensionDescriptor from neutron-lib" 2016-12-06 02:04:42 +00:00
Jenkins
bd193cba73 Merge "Lock in DHCP agent based on network_id" 2016-12-05 23:55:25 +00:00
Jenkins
57f94f3cf1 Merge "Pecan: Remove get_resources() from get_pecan_resources()" 2016-12-05 19:28:11 +00:00
Jenkins
ef6a3d8789 Merge "Renamed all [AGENT] config sections into [agent]" 2016-12-03 07:42:06 +00:00
Jenkins
72821ddbe7 Merge "functional: Remove unused l3 config" 2016-12-02 23:01:40 +00:00
Jenkins
4bebf7209f Merge "Use to_policy_values for policy enforcement" 2016-12-02 23:00:00 +00:00
Kevin Benton
5e674bf738 Eliminate DVR inheritance of router create/update_db
This patch eliminates the following methods in L3 DVR DB
and converts the necessary logic into callbacks:

* _create_router_db
* _update_router_db

There should be no functional difference between the two.
However, this will get us closer to completely eliminating
the inheritance approach for the DVR DB and we can then move
all DVR specific logic into its service provider driver.

This patch had to fix some of the L3HA unit tests that
were instantiating both the regular L3 service plugin as
well as a custom test plugin for L3 operations.

Additionally, to ensure correct ordering of the flag
setting for 'distributed' and the verification of
user-provided flags by the L3 flavor framework, the
L3 flavor framework now subscribed to a BEFORE_CREATE
event that provides the API request before it's mutated
by the DVR code.

Change-Id: I5d4752bf0f8be412af8924d8209bb5fa6d94f40d
2016-12-02 14:29:43 -05:00
Henry Gessau
dfe738a83f Use ExtensionDescriptor from neutron-lib
Adopt the class rehomed in https://review.openstack.org/389825

This change impacts subprojects that use ExtensionDescriptor from
neutron core. All subprojects should switch to using the class
directly from neutron-lib.

NeutronLibImpact

Change-Id: I0da90fb9d27a0a2008b60e56ed69bc9b9ae63c3e
2016-12-02 14:16:06 -05:00
Ihar Hrachyshka
d8055d52e5 Support alembic 0.8.9 in test_autogen_process_directives
The test case validates that autogenerated alembic commands meet
our expectations.

The new alembic version adds a leading '# ' to each autogenerated
comment to make flake8 happy. This patch adopts the test case to handle
both new and older versions. This is achieved by switching from exact
match to using a regexp.

Change-Id: I9ca411e5b3d20412fffa05f6eb79659f6c56f3fd
Closes-Bug: #1647027
2016-12-02 18:41:03 +00:00
Jenkins
aa7d30f797 Merge "Use Port OVO object in test_l3_ext_gw_mode" 2016-12-02 16:19:38 +00:00
Jenkins
7e9986411c Merge "Remove allow_pagination and allow_sorting config options" 2016-12-02 16:01:48 +00:00
Manjeet Singh Bhatia
d49b6f5607 Use Port OVO object in test_l3_ext_gw_mode
Port object is already merged. This patch uses it for the unit test.

Change-Id: I4bb5918ea09325f012783b06b49906590c412882
Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
2016-12-02 12:37:48 +00:00
Jenkins
bbb919ae7f Merge "gate_hook: Remove a stale comment" 2016-12-02 08:51:01 +00:00
Jenkins
43b66c7f24 Merge "Improve performance of _modify_rules" 2016-12-02 04:00:01 +00:00
Jenkins
b511d5c6ff Merge "Don't compile OVS kernel modules for functional job" 2016-12-02 03:14:03 +00:00
Jenkins
8ee5b3d45c Merge "policy: cache extracted parent fields for OwnerCheck" 2016-12-01 21:02:18 +00:00
Jenkins
e8679ded6a Merge "Remove PLURALS" 2016-12-01 20:32:15 +00:00
Jenkins
2227f0dce8 Merge "Update bug tag contacts due to absconsions" 2016-12-01 17:54:29 +00:00
Aradhana Singh
42031f7547 Refactoring config opts for ml2 plugin openvswitch
Refactoring ml2 plugin openvswitch driver configuration options to be
in neutron/conf/plugins/ml2/drivers. This would allow centralization
of all configuration options and provides an easy way to import.

Change-Id: Ie8c6023b2d012eae7ecdb99d5d413956608f4294
Partial-Bug: #1563069
2016-12-01 11:13:54 -06:00
Jakub Libosvar
b0ea7c95a3 Don't compile OVS kernel modules for functional job
The only reason we need newer openvswitch is following fix [1] for
user-space part of openvswitch. This patch fixes our
test_install_flood_to_tun tests.

Current 2.6 branch has issues with ovsdb where connection with native
interface is getting lost and functional job gets stuck. To mitigate
that, this patch switches back to OVS 2.5.1 version for functional jobs,
compiling only user-space part as OVS 2.5.1 kernel modules are not
supported by Xenial.

Fullstack job remains running with 2.6 because the job needs OVS kernel patch
for local VXLAN tunneling.

[1] 56de2148f6

Related-bug: bug/1646107
Change-Id: Ic5419afe7170e759749afd7055441c82c317efe0
2016-12-01 11:28:17 -05:00
Jenkins
5fbe5212ce Merge "Functional tests: change assert to wait_until_true" 2016-12-01 15:41:29 +00:00
Henry Gessau
5b49eff748 Update bug tag contacts due to absconsions
Also performed other house cleaning, like removing lbaas,
which is now part of Octavia, and removing vpnaas since
it is out of the stadium.

Change-Id: I0b625a156e80c3263453ab6790fb2f2453fe924d
2016-12-01 09:44:05 -05:00
John Schwarz
59bb1ecfb0 Functional tests: change assert to wait_until_true
In certain cases, the keepalived can take a few seconds to run/stop.
For this reason, the patch proposes a change to the tests, in which
instead of asserting that the process started/stopped, we'll wait a
short while until they do. This will cause failing tests to not fail
simply because it took a few extra CPU cycles to run.

Change-Id: I497ef32651fbb68bf49e172543f9675f6279df4b
2016-12-01 11:57:23 +02:00
Jenkins
bf84180411 Merge "Fix docs headers" 2016-12-01 05:17:40 +00:00
Jenkins
a3c12485ba Merge "Update DB lieutenant to Ann Taraday" 2016-12-01 03:37:24 +00:00
Jenkins
a6ca513e6e Merge "Pecan: Minor Fix in startup" 2016-11-30 22:57:16 +00:00
Jenkins
6e0868d24c Merge "Refactoring config options for mech_sriov opts" 2016-11-30 22:57:00 +00:00
Jenkins
4735c6b64c Merge "Migrate device_owner for router's interface" 2016-11-30 22:56:39 +00:00
Jenkins
d1cf5bcd6c Merge "Fix OSprofiler support" 2016-11-30 22:52:41 +00:00
Jenkins
45d61e5749 Merge "tests: introduce update_obj_fields method in base objects test class" 2016-11-30 22:50:46 +00:00
Mohit Malik
958c093d26 Pecan: Remove get_resources() from get_pecan_resources()
This is not required anymore.
Change-Id: I4794033fe23304de767e0b0ad7b16d27b2527c77
2016-11-30 20:40:54 +00:00
Armando Migliaccio
76c9984426 Fix docs headers
Ic68858aaf1a519085dff394e6edc8c8fe6aeee6a forgot to move these
sections one level up. Without this, tox -edocs barfs.

Change-Id: I649ba20013ccbe25023b2c8c3a2014fb7be47d97
2016-11-30 11:54:34 -08:00
Henry Gessau
f87274c9b5 Update DB lieutenant to Ann Taraday
Also split the API and DB areas in the table, although in
the code itself the line between them is fuzzy.

Change-Id: I6c1122bf22da1713b11d472c59cec422865eb1e7
2016-11-30 19:32:01 +00:00
Jakub Libosvar
aa5985dff1 Compare port_rule_masking() results with different approach
This patch creates test that generates port ranges and
uses software diversity for comparison the results.

Change-Id: I77a76aa8288b505a0f083357f26a3bce23625897
Related-bug: 1611991
2016-11-30 04:46:46 -05:00
Jamie Lennox
2e621eeb1c Use to_policy_values for policy enforcement
Use the common policy values for all services when enforcing policy
decisions. We add all possibly used policy values to maintain backwards
compatibility.

Change-Id: Ie1d0739ab4dfb0654d8767693dbdba5cd52a30b2
Closes-Bug: #1602081
2016-11-30 05:02:46 +00:00
Anindita Das
78d5b240c0 Refactoring config options for mech_sriov opts
Refactoring neutron ml2 plugin mech_sriov config opts to be in
neutron/conf/plugins/ml2/drivers/mech_sriov so that all the
configuration options for mech_sriov reside in a centralized
location. This simplifies the process of looking up the mech_sriov
config opts and provides an easy way to import.

Change-Id: I64b243f91f2e637279456b3b06c2998cd89dc076
Partial-Bug: #1563069
2016-11-29 22:57:38 +00:00
venkata anil
9168dbf93d Delete conntrack when remote ipset member removed
Through [1] ipset members are updated in update_security_group_members
instead of updating during firewall apply. In the same way, we will
delete conntrack entries immediately after deleting remote ipset
members(in update_security_group_members) instead of deleting them after
firewall apply.

As explained in [2], this change partially fixes bug #1580377 i.e it
deletes conntrack entries on remote hosts for a removed port.

[1] https://review.openstack.org/#/c/347068/
[2] https://bugs.launchpad.net/neutron/+bug/1580377/comments/13

Co-Authored-By:shihanzhang <shihanzhang@huawei.com>
Partial-Bug: #1580377
Change-Id: Iea3344a24e2a068b794c44796b4c945432379c13
2016-11-29 16:19:03 +00:00