18356 Commits

Author SHA1 Message Date
James Anziano
2d77118771 Enable segments plugin in gate
Change-Id: I821f7c07f21a10c8a8d2b3c7e79da205b805d525
2017-05-16 16:24:15 +00:00
Miguel Lavalle
b244fa5f6e Fix tempest test failing with segments extension
This patchset fixes tempest test case test_filtering_shared_subnets that
fails when executed with the segments extension enabled, due to the fact
that the 'segment_id' attribute is returned in subnets listed with an
admin client but not in subnets listed with a non admin client.

Patchset https://review.openstack.org/#/c/459439/ proposes to enable the
segments extension in the gate.

Change-Id: I6b9bd6fe944c9485c21d25b37c943f3bd53fd7c9
Closes-Bug: #1690598
2017-05-16 11:14:38 -05:00
Jenkins
dfcfbc0aac Merge "Fix tempest router migration test when HA enabled, v2" 2017-05-15 21:12:38 +00:00
Jenkins
6d84a8fac5 Merge "devstack: Add neutron-sriov-agent alias for lib/neutron" 2017-05-15 14:19:31 +00:00
Jenkins
7a0c8350af Merge "OVSBridge: add --strict to allow priority in delete_flows" 2017-05-15 09:33:55 +00:00
Jenkins
9e5d01d7ed Merge "Remove deprecated eventlet TimeoutError exception" 2017-05-15 04:51:24 +00:00
Jenkins
1a9577f06c Merge "Add the parameter sub-resource-ID to the test show/update resource function." 2017-05-15 00:48:46 +00:00
Jenkins
32c4561988 Merge "Fix: set IPv6 forwarding when there's an IPv6 gw" 2017-05-12 16:23:20 +00:00
Jenkins
f1091b73a3 Merge "Bulk up port context retrieval" 2017-05-12 08:43:05 +00:00
OpenStack Proposal Bot
c3540d43f0 Updated from global requirements
Change-Id: I08d35a03e9298850661a798c9b90d1f63df30349
2017-05-08 20:59:29 +00:00
YAMAMOTO Takashi
26920b8712 test_dhcp: Use a safer host name
We use "foo_host" as a hostname in a test.
Usually "_" is not allowed in a hostname. (See RFC 952 etc)
Oslo.config (correctly) complains on that.

Closes-Bug: #1689019
Change-Id: Ife817d4f9f904ab1cecb1d8501b94069d5468bdf
2017-05-08 14:01:43 +09:00
YAMAMOTO Takashi
38feb491dd devstack: Add neutron-sriov-agent alias for lib/neutron
Change-Id: Id6f7cf1d859f4884aae5cbb950c91e136f5be669
2017-05-08 09:25:45 +09:00
Jenkins
db4ea430df Merge "Trivial fix typos while reading doc" 2017-05-05 21:30:18 +00:00
Jenkins
4cd57e4b9e Merge "Revert "Fix tempest router migration test when HA enabled"" 2017-05-05 21:27:47 +00:00
Daniel Alvarez
507cdde679 Fix: set IPv6 forwarding when there's an IPv6 gw
Currently when there is an IPv6 gateway set, IPv6 forwarding
configuration is skipped. This patch fixes it and also adds test
coverage to check the values of `accept_ra` and `forwarding` with
and without an IPv6 gateway.

Related-bug: #1667756

Change-Id: I0297aa6d0afeb56a8c69be41424d4b70509377d2
2017-05-05 19:59:37 +00:00
Ngo Quoc Cuong
a7df10146a Trivial fix typos while reading doc
Change-Id: I704a176664fd7a980309d7ff7a5021b1e4c4b033
2017-05-06 00:03:20 +07:00
Brian Haley
52ed8468a4 Fix tempest router migration test when HA enabled, v2
When run in an HA or DVR configured environment,
the test_update_router_extra_attributes_bumps_revision
API test can fail if the release does not support
router migration from CVR-HA to DVR.

Although Ocata and later releases support any type of
router migration, older ones do not, so the test
should be explicit and test a known valid migration.

Added missing l3-ha extension requirement from v1.

Change-Id: Ic48d078542492e933f71d24df85c54c53a0b110c
Related-bug: #1679794
2017-05-05 11:32:07 -04:00
YAMAMOTO Takashi
ff48a5eb38 Revert "Fix tempest router migration test when HA enabled"
This reverts commit 2e8e6b8395ae0f7a48c6742b7f5a8989867fba2b.

Change-Id: I43d2a58a53071a9ec48785057f8d2655a1c55255
Closes-Bug: #1688548
2017-05-05 13:01:30 +00:00
Hieu LE
0d3594bbbc Remove deprecated eventlet TimeoutError exception
Eventlet now deprecate TimeoutError exception [1].
Updating eventlet to latest 0.21.0 can cause UT fail because
of misunderstood between deprecated exception and the new exception class
Timeout. [2]

This patch remove deprecated exception usage, fix the UT failure with eventlet
0.21.0 in order to upgrade eventlet upper-constraint to latest version.

[1]. https://github.com/eventlet/eventlet/blob/master/eventlet/__init__.py#L55
[2]. https://review.openstack.org/#/c/460424/

Change-Id: I48179953ef19ec6b2f3f6706337a1dae1b3830bd
2017-05-05 16:49:58 +07:00
Jenkins
3c014b854a Merge "Move _get_marker_obj() out of CommonDbMixin." 2017-05-05 04:42:15 +00:00
Jenkins
609aacadee Merge "Fix error getting segment_id in linux DHCP driver" 2017-05-05 03:36:17 +00:00
Jenkins
cdabbd14e3 Merge "TrivialFix: Remove dead code in iptables_firewall" 2017-05-04 17:04:15 +00:00
Jenkins
9658535afe Merge "Fix errors in PrefixDelegation.remove_stale_ri_ifname" 2017-05-04 11:08:07 +00:00
Thomas Morin
5981bf416d OVSBridge: add --strict to allow priority in delete_flows
n8g-sfc currently has its own variant of OVSBridge to allow the use
of priority in a delete_flows call

This change is meant to make this available outside n8g-sfc and
simplify n8g-sfc code.

This change adds a 'strict' boolean parameter to mod_flow and delete_flows
that results in ovs-ofctl to be run with --strict for del-flows and
mod-flows actions.  When strict is set, the use of priority is allowed
and hence not rejected anymore.

Note that for batched actions in a deffered bridge, we disallow mixing
calls with strict and without strict, which can't be translated in one CLI
call.

Needed-By: I3bf939590dd43bff685f133bff86eb7e9068de91
Change-Id: I289d546780f10dc1002ab6bc2e1b38c9ef2d728f
2017-05-04 11:52:34 +02:00
Jenkins
65ce6d6f49 Merge "Change list of available qos rules" 2017-05-04 09:34:39 +00:00
Guoshuai Li
b12b6deb33 Add the parameter sub-resource-ID to the test show/update resource function.
It is sometimes necessary to show/update sub-resources, such as QoS policy rules:
https://developer.openstack.org/api-ref/networking/v2/#update-bandwidth-limit-rule.
So you need to specify a sub resource ID in the GET/PUT URL.

Change-Id: Id7cb72e40fbb2b3685dde584ff85003187a0d4eb
2017-05-04 09:09:25 +00:00
OpenStack Proposal Bot
d33a59f83d Updated from global requirements
Change-Id: I1fc0f38d155a6fc338db12312c80940f15ead760
2017-05-03 21:21:59 +00:00
Brian Haley
d605967c97 Fix error getting segment_id in linux DHCP driver
A recent change [1] added code to the linux DHCP driver
to check the subnet segment_id attribute when adding
extra host routes for a subnet.  I have seen both
KeyError and AttributeError failures in various check
jobs lately since there is no guarantee all subnets
have this attribute.  Be safer by using getattr().

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

Related-bug: #1668154

Change-Id: I96bea4edab4c96f2ca28ba854f6ca8d4ab4df5f5
2017-05-03 20:39:52 +00:00
Sławek Kapłoński
3299cdffae Change list of available qos rules
This patch changes way how neutron calculates which QoS rules
are available to use. It now returns all rule types which are
supported by at least one loaded QoS driver.
If user will want to apply policy with rule unsupported by driver
used by port then it will be catched on port/network update event.
This validation mechanism was introduced in
I75bd18b3a1875daa5639dd141fb7bbd6e1c54118

DocImpact: list of returned available QoS rule types is changed

Change-Id: Ia00d349625db358ab486802fc0ff2e69eaa3895e
Closes-Bug: #1686898
2017-05-03 17:14:29 +00:00
Trevor McCasland
02aab92af1 TrivialFix: Remove dead code in iptables_firewall
While reading the iptables_firewall file, I didn't see these
functions being used anywhere in openstack.

If I'm mistaken, simply abandon the patch.

Change-Id: Ifb3e4a6cec8266dfebb1d76ec67c9c569cf9798b
2017-05-03 12:01:50 -05:00
Jakub Libosvar
1a3cd5bae5 tempest: Obey ssh_timeout config option
The patch creates a new in-tree class that overrides default value for
tempest ssh.Client to the one defined by ssh_timeout config option.

Change-Id: I418519866e3cbd486fe0ffec23e1553ea0891420
2017-05-03 09:17:02 +00:00
Jenkins
617fc6087b Merge "Update auto-addresses on MAC change" 2017-05-03 00:30:56 +00:00
Jenkins
b9f2d0590f Merge "Prevent regression of IP loss on MAC update" 2017-05-03 00:09:41 +00:00
Jenkins
96d13e42f4 Merge "Verify metering label exists before applying rule" 2017-05-02 21:01:30 +00:00
Jenkins
c2dcb78b76 Merge "Fix tempest router migration test when HA enabled" 2017-05-02 20:54:43 +00:00
Trevor McCasland
ac527e2429 Clean MissingAuthPlugin from unit tests
In the unit test logs there is a MissingAuthPlugin exception
printed several times.

This patch aims to mock the notifier when it's not being tested.
When it is being tested, like in the NovaSegmentNotifierTestCase,
mocking the keystone auth prevents the exception from being
thrown.

Closes-Bug: #1683606
Change-Id: I63a1c887f6a7a43f2bddd48b86078e5836cbf438
2017-05-02 16:49:51 +00:00
Henry Gessau
bb49c4f682 Move _get_marker_obj() out of CommonDbMixin.
This refactoring is a step towards the goal of removing the
CommonDbMixin mixin class.

Related-Blueprint: neutron-lib

Change-Id: I1e2da0687310cc2da767dc2a6d13500307bba1ee
2017-05-02 16:47:42 +00:00
Hunt Xu
29edea0588 Fix errors in PrefixDelegation.remove_stale_ri_ifname
Firstly fix a typo (iteriterms -> iteritems) introduced by [1]. Then a
"dictionary changed size during iteration" RuntimeError is reported by
the newly added unit test.

[1] I17df98128c7a88e72e31251687f30f569df6b860.

TrivialFix

Change-Id: I70c548eab2264b3f94ba1a215f933046345411a7
Signed-off-by: Hunt Xu <mhuntxu@gmail.com>
2017-05-02 16:46:56 +00:00
Brian Haley
2e8e6b8395 Fix tempest router migration test when HA enabled
When run in an HA or DVR configured environment,
the test_update_router_extra_attributes_bumps_revision
API test can fail if the release does not support
router migration from CVR-HA to DVR.

Although Ocata and later releases support any type of
router migration, older ones do not, so the test
should be explicit and test a known valid migration.

Change-Id: I8caf86817a5cd8e4d0cf05d7beef850756e84bab
Related-bug: #1679794
2017-05-02 16:46:36 +00:00
YAMAMOTO Takashi
984ab8c87a tempest: Obey identity_feature_enabled.api_v2_admin in a few tests
Skip tests when the endpoint is not available, which is the case in gate
after [1]. We'll enable them back once we adopt them to v3.

[1] Ic233f6b43dd1e3cfdadff0f18aba4ea78825a996

Related-Bug: #1687544
Change-Id: I8fffc50fd45e43f34ca591416924bcf29626b21f
2017-05-02 09:41:11 -07:00
Jenkins
951e765bbf Merge "Only add "on-link" routes for L2 adjacent subnets" 2017-05-01 22:13:42 +00:00
Jenkins
90b01bb6ca Merge "Add QoS bandwidth limit for instance ingress traffic" 2017-05-01 11:20:39 +00:00
Jenkins
e8e89d8a87 Merge "Monkey patch the os and thread modules on Windows" 2017-04-27 20:06:17 +00:00
Jenkins
8bc515a951 Merge "Replace subprocess.Popen with CreateProcess on Windows" 2017-04-27 20:04:47 +00:00
Jenkins
c910841586 Merge "Metering to OVO" 2017-04-27 15:02:31 +00:00
Sławek Kapłoński
c29f3aaa7c Add QoS bandwidth limit for instance ingress traffic
This patch introduces the new parameter "direction" to
the QoS bandwidth limit rule. It will allow the creation
of bandwidth limit rules for either ingress or egress
traffic. For backwards compatibility the default direction
will be egress.

DocImpact: Ingress bandwidth limit available for QoS
APIImpact: New type of parameter for QoS rule in neutron API

Change-Id: Ia13568879c2b6f80fb190ccafe7e19ca05b0c6a8
Partial-Bug: #1560961
2017-04-27 12:51:50 +00:00
Jenkins
f27425ef5e Merge "Make api_all_exntesions hook readable" 2017-04-27 08:32:44 +00:00
YAMAMOTO Takashi
98373690b2 l3_db: Fix a regression in the recent CommonDbMixin change
The recently merged change [1] modified the logic in the way
to break deployments without dns-integration.  It broke
networking-midonet gate jobs.

[1] If1252c42c49cd59dba7ec7c02c9b887fdc169f51

Closes-Bug: #1686584
Change-Id: I80696fa1227d1d36ae67d8f2b70e4206c4cdcd70
2017-04-27 14:07:45 +09:00
Jenkins
03c5283c69 Merge "use neutron-lib callbacks" 2017-04-26 21:29:44 +00:00
Jenkins
ec97d258d4 Merge "devstack: use neutron_service_plugin_class_add for service plugins" 2017-04-26 21:23:21 +00:00