16684 Commits

Author SHA1 Message Date
Henry Gessau
07c8e144d7 Update devref examples about alembic migrations
Because model_base.py is now in neutron-lib.

Change-Id: I4e508a9c88af1017ffa20f5346e3c859c5236223
2016-11-16 22:17:37 -05:00
Jenkins
310f83bc4e Merge "Stop using deprecated CORS.set_latent()" 2016-11-17 01:13:17 +00:00
Jenkins
de8c390dda Merge "Pecan: Find subresource controllers by parent" 2016-11-17 01:10:58 +00:00
Jenkins
ae3f3d8e61 Merge "Avoid UnboundLocalErrors in _create_bulk_ml2" 2016-11-16 22:25:23 +00:00
Henry Gessau
5d6585b00e Stop using deprecated CORS.set_latent()
Use cors.set_defaults instead.

The deprecation warning was:

neutron/pecan_wsgi/app.py:101: DeprecationWarning: Method
 'instancemethod.set_latent()' has moved to
 'instancemethod.set_defaults()': CORS.set_latent has been deprecated
 in favor of oslo_middleware.cors.set_defaults

Change-Id: I925c2d15cec2bf9c818bedc533c981ec185502f4
2016-11-16 15:27:53 -05:00
Jenkins
f060683634 Merge "Clean up agent status check debt" 2016-11-16 16:54:53 +00:00
Jenkins
c6dbc68ed3 Merge "Install OVS from git if current version < 2.5.1" 2016-11-16 15:28:17 +00:00
Jenkins
25997b8af9 Merge "Fix ML2, base db plugin update_subnet for transactions" 2016-11-16 14:03:32 +00:00
Omer Anson
7403bccbc3 Install OVS from git if current version < 2.5.1
In OVS version 2.5.1 there are several bug fixes to issues that Neutron
encounters. This fix allows devstack to install a newer version of OVS,
by default version 2.5.1.

Specifically, for bug 1640283, we need the following commit from OVS:
8c0b419a0b9ac0141d6973dcc80306dfc6a83d31 ofproto/trace: Fix "unchanged"
output for Final flow

The version is overridable by NEUTRON_OVERRIDE_OVS_BRANCH variable.

Change-Id: Icc9d9811e6fc1935966241ed499c5e597a675877
Related-Bug: 1602567
Closes-Bug: 1640283
2016-11-16 14:24:31 +02:00
Kevin Benton
081ad3bc12 Clean up agent status check debt
Get rid of the deprecated ways of adding agent status
checks.

TrivialFix
Change-Id: Ib9891ff1a3ffddf3e71a9669da63c961b97a2845
2016-11-16 09:55:47 +00:00
Kevin Benton
202564cd64 Fix ML2, base db plugin update_subnet for transactions
This refactors the DB base plugin update_subnet method into
precommit and postcommit methods so a core plugin can avoid
executing the postcommit methods while it has an open
transaction. Backwards compatibility is preserved for plugins
which do not need this.

This is important because the update_subnet method in the
base plugin performs operations that shouldn't be inside
of an uncommited transaction, such as updating ports,
generating AMQP notifications, and generating AFTER_UPDATE
callback events. Until this patch, ML2 was performing the
entire base plugin update_subnet operation in a transaction.

This is also necessary for the facade and push-notification
switch because ongoing db sessions will not be used for
core methods and notification generation.

Related-Bug: #1540844
Partially-Implements: blueprint push-notifications
Partially-Implements: blueprint enginefacade-switch
Change-Id: Ib825a9e0c0c6693a4e708ae6ce362775c70d843d
2016-11-15 18:04:16 -08:00
Jenkins
d41bed0ee6 Merge "Parse the output of ip route more robustly" 2016-11-15 15:34:36 +00:00
Jenkins
a39cbe3473 Merge "Add L3 HA test with linux bridge" 2016-11-15 09:38:47 +00:00
Jenkins
648e6ceede Merge "Fix "failed unplugging ha interface" error when deleting router" 2016-11-15 09:24:55 +00:00
Jenkins
c649de9a20 Merge "Updated from global requirements" 2016-11-15 09:07:42 +00:00
Omer Anson
7647e3e56f Parse the output of ip route more robustly
The code parsing the output of ip route assumes that the output is the
destination network, and then key/value pairs. This is not necessarily
the case, as the output may contain flags.

This change modifies the parsing of ip route's output to look
specifically for the keys of interest, and read their values
exclusively.

Change-Id: I34b6c0afb05550c970b1cacda8ec472294215403
Closes-Bug: 1640008
2016-11-14 22:34:51 -05:00
Kevin Benton
16ae4190a7 Add L3 HA test with linux bridge
Adds an HA test case using the linux bridge interface and
a test to recreate the router to ensure all cleanup was
done appropriately on teardown.

Related-Bug: #1629159
Change-Id: I80b70b848ea64d5f996055edc4bfb0ec1f4ae548
2016-11-15 00:06:17 +00:00
Perry Zou
bc03048134 Fix "failed unplugging ha interface" error when deleting router
Deleting router namespaces happens before deleting router ha interface.
So it will fail when deleting router ha interface. The change
is to remove router ha interface before deleting router namespace.

Change-Id: I3d936701c9dac7671f12e1966449662988a0f26a
Closes-Bug: #1629159
Related-Bug: #1488730
2016-11-15 00:01:26 +00:00
Kevin Benton
d2c292e5dc Add a trunk rally test
This adds a basic rally scenario to create a trunk
with a bunch of subports so we can keep an eye on the
performance of the trunk API.

Change-Id: I12aaf6121b677e9696131601b3539a7091e2858c
2016-11-14 23:59:56 +00:00
OpenStack Proposal Bot
56a195e7ae Updated from global requirements
Change-Id: I5d9c28bac32403325c6f7f13a6019187dfd20ffe
2016-11-14 21:07:37 +00:00
Jenkins
4d7653848d Merge "Log OVS IDL library errors to neutron logs" 2016-11-14 20:56:03 +00:00
Jenkins
0d841d2d60 Merge "neutron-lib: complete usage of helpers" 2016-11-14 16:02:46 +00:00
Jenkins
732ee4fe58 Merge "Use new enginefacade for servicetype_db" 2016-11-14 15:37:14 +00:00
Ann Kamyshnikova
9cb31b1e25 Use new enginefacade for servicetype_db
Use reader and writer for db operations with servicetype.

Partially-Implements blueprint: enginefacade-switch

Change-Id: I7cf29890d4d498c241a7c6e99edfbfc258b8cb60
2016-11-14 12:34:39 +00:00
Jenkins
f51c872a12 Merge "Add unit tests for ip_lib.get_routing_table" 2016-11-14 12:06:10 +00:00
Jenkins
13c0193a67 Merge "Change import statement to not rename the module" 2016-11-14 11:21:51 +00:00
Jenkins
8583c229fa Merge "Use new enginefacade for address_scope_db" 2016-11-14 09:23:51 +00:00
Cao Xuan Hoang
4a91eea3e0 Change import statement to not rename the module
Importing "config" then renaming it to "config" is duplicative.

Change-Id: I630c4d23b233e65244d53746ddcb50b4e2bf8b4a
2016-11-14 13:53:51 +07:00
Jenkins
b51c5635ab Merge "Changing arping command execute to accept 1 as extra OK code" 2016-11-13 18:42:06 +00:00
Jenkins
ab908ed763 Merge "Register osprofiler options before setting engine hook" 2016-11-13 18:41:55 +00:00
Jenkins
1edd34f7c2 Merge "Deprecate SR-IOV 'physical_device_mappings' config option" 2016-11-13 17:22:46 +00:00
Omer Anson
90e671579c Add unit tests for ip_lib.get_routing_table
Change-Id: I9d5c68de6cfdcd47a59bdbc39c742f64df9e2d9c
Related-Bug: 1640008
2016-11-13 18:14:10 +02:00
Arun Sriraman
cc9ce5189d Changing arping command execute to accept 1 as extra OK code
Connecting any network to a router causes l3-agent to send out
gratuitous ARP packets that do not require a response. On Ubuntu 14.04
sometimes this command returns 1, which causes it to falsely report
arping command failure. This is now added to the extra OK codes.

Change-Id: I6299e936d4e4e7fd7497d23224e7abf605a99c15
Closes-bug: #1578842
2016-11-12 16:14:17 +05:30
Jenkins
9f022dad4f Merge "Add link to review dashboard in the effective guide" 2016-11-11 22:28:46 +00:00
Jenkins
ac834fd040 Merge "Remove duplicated tool" 2016-11-11 22:26:52 +00:00
Jenkins
f46cba17f0 Merge "Truncate IPDevice's name to interface max size" 2016-11-11 21:22:33 +00:00
Jenkins
0e6aea1553 Merge "Make OVO exception NeutronDbObjectDuplicateEntry retriable" 2016-11-11 17:04:41 +00:00
Jenkins
b062683737 Merge "Move OVO exceptions to neutron/objects/exceptions" 2016-11-11 17:04:06 +00:00
Jenkins
bdb4c92004 Merge "l3-ha: Send gratuitous ARP when new floating IP is added" 2016-11-11 13:55:07 +00:00
Jenkins
1020c515c9 Merge "Removed dispose_pool() from db/api" 2016-11-11 04:12:55 +00:00
Jenkins
bef90aadd8 Merge "Removed paginate_query and sqlalchemyutils module" 2016-11-10 20:33:21 +00:00
Jakub Libosvar
4fdd89e94f l3-ha: Send gratuitous ARP when new floating IP is added
We rely on keepalived to send gratuitous ARPs when floating IP is added.
Older versions of keepalived up to 1.2.20 (exclusive) contain bug [1] where
keepalived does not send GARP on receiving SIGHUP. Unfortunately, newer
versions containing the fix are not packaged yet for some distributions
like RHEL or CentOS or Ubuntu Xenial, so this patch adds a workaround for
such distributions until new packages are available.

The patch also sets net.ipv4.ip_nonlocal_bind kernel parameter to 0 for
Snat and HA router namespaces in order to avoid sending gratuitous ARPs
for IP addresses that are not bound to the interface anymore - possibly
because of failover or removal. Note that kernel < 3.19 contain a bug
where this knob is missing. In case it attempts to set the parameter and
it's missing on the system, it doesn't set the knob in root
namespace like it's done for fip namespaces, but only issues a warning
message.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1391553

Change-Id: Ieab53624dc34dc687a0e8eebd84778f7fc95dd77
Closes-bug: 1639315
2016-11-10 15:27:21 -05:00
Jenkins
7775beaa43 Merge "Removed deprecated function import_modules_recursively" 2016-11-10 18:45:20 +00:00
Mohit Malik
17ecc54493 Make OVO exception NeutronDbObjectDuplicateEntry retriable
OVO object create() raises exception NeutronDbObjectDuplicateEntry
on seeing duplicate entries which should be handled by retrying the
transaction.

Partially-Implements: blueprint adopt-oslo-versioned-objects-for-db
Closes-Bug: #1627811

Change-Id: I2b311326c2caa7500aa9318d0b5bf753cf0eb543
2016-11-10 10:25:06 -07:00
John Perkins
0a27cf7fd6 Move OVO exceptions to neutron/objects/exceptions
Change-Id: Ibf424b4e317e910e33c29fb9ec150452caa06a89
Partial-Bug: #1614920
2016-11-10 10:25:06 -07:00
Jenkins
0f8fa89432 Merge "Add OVO for dns Objects" 2016-11-10 16:46:21 +00:00
Jenkins
2f7856092a Merge "Retire deprecations for constants, exceptions, attributes" 2016-11-10 15:54:16 +00:00
Gary Kotton
7c0b219e66 neutron-lib: complete usage of helpers
Add support for:
    - get_random_string
    - camelize
    - round_val
    - safe_decode_utf8

Change-Id: I3b5ccbbcfa18aa488b1772f4ae9a591eb494de59
2016-11-10 05:40:15 -08:00
Jenkins
a36dfabd25 Merge "Introduce context in methods for Router Extra Attributes OVO usage." 2016-11-10 13:03:29 +00:00
Jenkins
584e6a518c Merge "Add rally hook to neutron devstack plugin" 2016-11-10 11:23:31 +00:00