]> review.fuel-infra Code Review - openstack-build/neutron-build.git/log
openstack-build/neutron-build.git
10 years agoChange firewall to DOWN when admin state down
Xuhan Peng [Fri, 14 Feb 2014 09:20:01 +0000 (04:20 -0500)]
Change firewall to DOWN when admin state down

Currently firewall remains in status "ACTIVE" after admin state
is changed to DOWN.

This fix sets firewall status to "DOWN" if admin state is updated
from "UP" to "DOWN". "DOWN" status is used by other network resources
so use "DOWN" to keep consistent.

Change-Id: If316b114c4df78368b43c2a15a820bb1177b3a54
Closes-Bug: 1279213

10 years agoNSX: add missing space 'routeron'
Aaron Rosen [Fri, 28 Feb 2014 07:38:59 +0000 (23:38 -0800)]
NSX: add missing space 'routeron'

Noticed this in the logs and figured why not add the space...

Change-Id: Idb85aab428d5bbc5c901c49d4a65e95a60a93cb4

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 28 Feb 2014 06:28:34 +0000 (06:28 +0000)]
Imported Translations from Transifex

Change-Id: I66deed169f57a9501fd4b9a0170d4f2da037e0cc

10 years agoUpdate License Headers to replace Nicira with VMware
armando-migliaccio [Tue, 18 Feb 2014 16:51:34 +0000 (08:51 -0800)]
Update License Headers to replace Nicira with VMware

In the process __init__.py involved have been emptied;
vim modelines and author lines have been dropped from
the license headers affected by the change as well.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I9c535b59bb2e83f275816472e0e32b41444d3bbe

10 years agoRenaming plugin-specific exceptions to match NSX
armando-migliaccio [Fri, 14 Feb 2014 00:57:19 +0000 (16:57 -0800)]
Renaming plugin-specific exceptions to match NSX

Try to get rid of Nvp as much as possible, the base
class already uses the plugin short name so it's
pointless to carry it over.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: Ic3e53bc4e41ffe1a19ea03e807ec89bb6c864f51

10 years agoImported Translations from Transifex
OpenStack Jenkins [Thu, 27 Feb 2014 06:26:05 +0000 (06:26 +0000)]
Imported Translations from Transifex

Change-Id: If3e28d9e7df1d526e4bce2dfc01c6241b2115e72

10 years agoDB Mappings for NSX security groups
Salvatore Orlando [Fri, 27 Dec 2013 23:36:22 +0000 (15:36 -0800)]
DB Mappings for NSX security groups

This patch introduces DB mappings between neutron security
groups and NSX security profiles, thus not requiring anymore
the Neutron router ID to be equal to the NSX one.

This change is needed for enabling asynchronous operations in
the NSX plugin.

Related to blueprint nvp-async-backend-communication

Change-Id: I3b28d535c93cd2bfc776aabe0d99be18fce4454d

10 years agoNSX: port status must reflect fabric, not link status
Salvatore Orlando [Thu, 27 Feb 2014 00:43:59 +0000 (16:43 -0800)]
NSX: port status must reflect fabric, not link status

This patch ensures the status attribute for the port resource is
semantically consistent with the reference plugin when using the
NSX plugin.

Change-Id: Ifb9c7664da926d3e6d5c6ec7c0e375b53a97582a
Closes-Bug: 1285426

10 years agoTypo/grammar fixes for the example neutron config file
Jeremy Hanmer [Wed, 26 Feb 2014 23:59:51 +0000 (15:59 -0800)]
Typo/grammar fixes for the example neutron config file

Change-Id: I12d21ef2a5bff5a8cdd08fea42b413b062479926

10 years agoNSX: Pass NSX uuid when plugging l2 gw attachment
Salvatore Orlando [Wed, 26 Feb 2014 22:38:24 +0000 (14:38 -0800)]
NSX: Pass NSX uuid when plugging l2 gw attachment

The code passed the neutron network identifier.
This is no longer valid as identifiers on the backend are not
anymore the same as neutron identifiers.

Also, this would have hardly worked with networks on extended
logical switches.

Closes-Bug: 1285399
Change-Id: I6fe4d22d5b8d8b7dc3eb1cb3f47ad52ac1a2b565

10 years agostats table needs columns to be bigint
Stephen Gran [Mon, 24 Feb 2014 20:18:49 +0000 (20:18 +0000)]
stats table needs columns to be bigint

Bandwidth measurements trivially overrun 32bit counters.  Change storage
type to BigInteger from Integer.

Closes-Bug: #1284314
Change-Id: I20db25f374de66b8443ff50bac979bff634d8a14
Signed-off-by: Stephen Gran <stephen.gran@guardian.co.uk>
10 years agoRemove import extension dep from db migration
Mark McClain [Wed, 26 Feb 2014 18:24:55 +0000 (13:24 -0500)]
Remove import extension dep from db migration

Change-Id: Ic8907a9960807b30d8b89df0ee29e42b26a7675a
Closes-bug:1285294

10 years agoFix get_vif_port_by_id to only return relevant ports
Vincent Untz [Sun, 23 Feb 2014 16:57:05 +0000 (17:57 +0100)]
Fix get_vif_port_by_id to only return relevant ports

This is returning any port, even if it's not on the switch that we're
looking at. As a side-effect, this means that we can actually manipulate
these ports while we really shouldn't.

Co-Authored-By: Rossella Sblendido <rsblendido@suse.com>
Change-Id: Ia4f4e93237c1c2ea6cb4b6c2f5adf78d6b34c7bf
Closes-Bug: #1283765

10 years agoFix NSX migration path
Salvatore Orlando [Wed, 26 Feb 2014 11:06:38 +0000 (03:06 -0800)]
Fix NSX migration path

The migration path for the NSX plugin was not working correctly,
as two migrations (extra route and network gateways) were
skipped.
Therefore installations were partially relying on automatic
schema generation.

This patch fixes the migration path, as well as an attribute
whose name in the migration and the DB model differed.

Closes-Bug: 1285095

Change-Id: I9e4db294e618d1419d86e07cfb5505dcc01b54ca

10 years agoAdd user-supplied arguments in log_handler
Shuangtai Tian [Wed, 26 Feb 2014 11:11:38 +0000 (19:11 +0800)]
Add user-supplied arguments in log_handler

Sync from Oslo, change-id: I91289cc4a60f5dab89bca852e6f52b4b83831e47

When using PublishErrorsHandler, it will missing user-supplied
arguments. For example, do LOG.info("blabla %s", "foo"), the
payload only contains "blabla %s", but we expect it like "blabla foo".

Change-Id: I9e5515da31a04b82d49e406bc6b246f940fb73fc

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 26 Feb 2014 06:29:30 +0000 (06:29 +0000)]
Imported Translations from Transifex

Change-Id: I69ef916bdf23529a175aa94b761f6f29f00b71d8

10 years agoNSX: Fix newly created port's status should be DOWN
Aaron Rosen [Wed, 12 Feb 2014 22:25:31 +0000 (14:25 -0800)]
NSX: Fix newly created port's status should be DOWN

Previously when creating a port in neutron using the nsx plugin
the port status returned would be ACTIVE even if this was not the
case. Now, DOWN is returned which will be updated by the backend
when the port goes ACTIVE.

Change-Id: I600fb1292ae79146cb14c7e23170262973878de0
Closes-bug: #1279551

10 years agoBigSwitch: Stop using external locks
Kevin Benton [Tue, 25 Feb 2014 19:37:06 +0000 (11:37 -0800)]
BigSwitch: Stop using external locks

Changes BigSwitch server manager REST lock
to an in-memory lock since the plugin isn't
expected to run in independent processes.

Closes-Bug: #1284881
Change-Id: I2fdd5ba79a0c4b94b2b410db54a63f7c0ca47525

10 years agoRename/refactoring of NVP api client to NSX
armando-migliaccio [Wed, 12 Feb 2014 21:39:48 +0000 (13:39 -0800)]
Rename/refactoring of NVP api client to NSX

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I7d3bc088762f53473892480b2e238fe60c2c0b74

10 years agoRemove pyudev dependency
Darragh O'Reilly [Tue, 14 Jan 2014 15:02:17 +0000 (15:02 +0000)]
Remove pyudev dependency

pyudev was only used by the linuxbridge-agent to get the list
of virtual network devices. This can be got from /sys instead.
This patch fixes the problem where testr could not import the
lb-agent module because pyudev was not in requirements.txt.

Change-Id: I0a78c91e97de4413f2ecf6fb56d2ff61b36baa78
Closes-Bug: 1269040

10 years agoRename DB models and related resources for VMware NSX plugin
armando-migliaccio [Wed, 12 Feb 2014 01:35:30 +0000 (17:35 -0800)]
Rename DB models and related resources for VMware NSX plugin

This patch also introduces a DB migration to update the
affected tables, and the enum type for those DB engines that
require it.

Additions made to existing migrations are needed to ensure
that green deployments using the new plugin name will apply
the migrations correctly.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: Ie0fdb51dfa399c44b749fa8345f334a2c8c29151

10 years agoLower log level of errors due to user requests to INFO
Akihiro Motoki [Wed, 19 Feb 2014 19:21:55 +0000 (04:21 +0900)]
Lower log level of errors due to user requests to INFO

Errors due to bad client requests (e.g., NotFound, BadRequest)
are logged as exception/trace level and it is annoying
from the point of operators' view.
This commit changes the log level for errors due to
user requests (HTTP 4xx errors) to INFO.

Closes-Bug: #1282394
Change-Id: Ic5646333db88ce856f9366e914cf961890d30501

10 years agoInclude proper Content-Type in the HTTP response headers
sridhargaddam [Mon, 24 Feb 2014 15:21:31 +0000 (20:51 +0530)]
Include proper Content-Type in the HTTP response headers

Neutron namespace proxy handler and metadata agent were not setting the
Content-Type in its response. Both of them were returning only the response
data which is obtained from the nova-metadata-service. Since they were returning
only the response data, the Content-Type returned to the clients has the default
one which is - "text/html". Ideally this should be set to the data type which is
present in the HTTP Response. The fix now includes the Content-Type which is
returned by nova-metadata-service

Closes-Bug: #1243878
Change-Id: If68f0b508fbea4ecd1eb0e58d602b5ba6ccbe263

10 years agoLBaaS: check for associations before deleting health monitor
Oleg Bondarev [Thu, 24 Oct 2013 12:53:55 +0000 (16:53 +0400)]
LBaaS: check for associations before deleting health monitor

Need to prohibit health monitor deletion if it has associations with
pools. Given that pools may belong to different lbaas drivers the process
of monitor deletion becomes complex and unreliable since association
deletion may fail on any single driver.

DocImpact

Closes-Bug: #1243129
Change-Id: I27c20e7a5be8433f90569534ecf838e33027cb00

10 years agol2-population/lb/vxlan : ip neigh add command failed
mathieu-rohon [Thu, 20 Feb 2014 16:39:00 +0000 (17:39 +0100)]
l2-population/lb/vxlan : ip neigh add command failed

we were using ip neigh add command which must be replaced by
ip neigh replace, to avoid error when creating a VM with an ip
previously used by a deleted VM

Change-Id: I2405096d5925ae37efd5f8abcc02b99cf0c9f5d3
Closes-Bug: #1282662

10 years agol2-population : send flooding entries when the last port goes down
mathieu-rohon [Thu, 20 Feb 2014 09:39:43 +0000 (10:39 +0100)]
l2-population : send flooding entries when the last port goes down

Delete port used to call update_port_down to calculate
its fdb entries during delete_port_precommit. But during
the pre-commit, the port is still up, so update_port_down
acts as if there was still one port on the agent, and
doesn't add flooding entry in its fdb_entries.

Closes bug #1282141

Change-Id: Icedd02f33d999200505950beb9169ae3634e551b

10 years agotests/service: consolidate setUp/tearDown logic
Isaku Yamahata [Mon, 3 Feb 2014 06:44:02 +0000 (15:44 +0900)]
tests/service: consolidate setUp/tearDown logic

Consolidate the duplicate code for extension api tests.
This will be also used by servicevm extensions later.

At the same time, a bug in test_extension_firewall.py is also fixed.
double call of super().setUp().

Closes-bug: #1275654
Change-Id: I72f185ef6e5af55729ced51fc0b72fae799d46ac

10 years agoEnsure ovsdb-client is stopped when OVS agent dies
Terry Wilson [Fri, 24 Jan 2014 19:04:18 +0000 (13:04 -0600)]
Ensure ovsdb-client is stopped when OVS agent dies

If the OVS agent is killed, the interpreter is killed before any cleanup
is done. This patch adds a signal handler for SIGTERM that exits
normally so that the existing cleanup is done and the ovsdb-client
process is terminated.

Change-Id: Ie4f8ff434098100f4699124403d58caa784084cf

10 years agoNSX: Fix status sync with correct mappings
Salvatore Orlando [Mon, 24 Feb 2014 18:44:46 +0000 (10:44 -0800)]
NSX: Fix status sync with correct mappings

The code that syncs router status to the neutron_db was using the nsx
router id instead of the neutron router id thus synchronize_router
would never update the database.

Also, the switch synchronization routine was not fetching the
appropriate neutron id tag thus causing switch synchronization to
be skipped.

This patch also fixes the error in the unit tests which allowed for
the bug to be introduced.

Co-Authored-By: Salvatore Orlando <salv.orlando@gmail.com>
Closes-bug: 1283856

Change-Id: I26342ecea6ad546b224b7fca1e55f754b4883363

10 years agoSupport Port Binding Extension in Cisco N1kv plugin
Abhishek Raut [Fri, 24 Jan 2014 01:37:49 +0000 (17:37 -0800)]
Support Port Binding Extension in Cisco N1kv plugin

Change-Id: I9bcacb2b1f1bb1500b9176a49736aac128938de8
Closes-Bug: #1272128

10 years agochange Openstack to OpenStack in neutron
Ailing Zhang [Mon, 24 Feb 2014 18:34:25 +0000 (10:34 -0800)]
change Openstack to OpenStack in neutron

Change-Id: I769e00efb8d61679a544ed5ded1c93dd3bc252db

10 years agoML2 binding:profile port attribute
Bob Kukura [Thu, 13 Feb 2014 17:35:25 +0000 (12:35 -0500)]
ML2 binding:profile port attribute

The ML2 plugin stores the binding:profile port attribute, defined as a
dictionary, in its ml2_port_bindings DB table. Since the plugin can
support a variety of MechanismDrivers with different needs for
binding:profile attribute content, the plugin will accept, store, and
return arbitrary key/value pairs within the attribute. As with the
binding:host_id attribute, updates to binding:profile trigger
rebinding.

Implements: blueprint ml2-binding-profile
Change-Id: I01cba8d09dde9de1c6160d0235b0d289eed91b29

10 years agoRename/remove Nicira NVP references from VMware NSX unit tests
armando-migliaccio [Mon, 3 Feb 2014 22:19:25 +0000 (14:19 -0800)]
Rename/remove Nicira NVP references from VMware NSX unit tests

This patch sweeps for Nicira and NVP references and replace
them with VMware and NSX where possible. Some clean-up is
done along the way to improve the organization of the
unit tests module.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: I48e4779ccec64ba300b26d4967d3f9fae7cfdc14

10 years agoFix webob.exc.HTTPForbidden parameter miss
Haiwei Xu [Mon, 24 Feb 2014 13:12:59 +0000 (22:12 +0900)]
Fix webob.exc.HTTPForbidden parameter miss

HTTPForbidden should use the parameter 'explanation'
instead of 'detail'.
This patch fixes this bug.

Change-Id: I4c66697daf0ce9e00c8820311dc7141eacd7e733
Closes-Bug: #1283872

10 years agoSync oslo cache with oslo-incubator
Jakub Libosvar [Mon, 24 Feb 2014 08:37:11 +0000 (09:37 +0100)]
Sync oslo cache with oslo-incubator

Due to removal of py3kcompat we need to sync with
oslo-incubator in order to use six package directly.

Related-Bug: #1276440
Change-Id: Ib3d1c9e09497f7ecd7495ef0f70c6105c14a9783

10 years agoChange tenant network type usage for IB Fabric
Irena Berezovsky [Thu, 16 Jan 2014 12:28:01 +0000 (14:28 +0200)]
Change tenant network type usage for IB Fabric

This patch changes tenant network type usage for InfiniBand Fabric
to vlan type. Add the indication of Fabric Type (Ethernet/InfiniBand)
to the provider_network via the plugin configuration file.
If physical network type is not specified for some provider network
listed in the network_vlan_ranges, use default physical network type.

Co-authored-by: Roey Chen <roeyc@mellanox.com>
Change-Id: Id45acfb8234359a43303c2eee2205a44998c039a
Closes-Bug: 1263638

10 years agooptions: consolidate options definitions
Isaku Yamahata [Thu, 13 Feb 2014 11:19:25 +0000 (20:19 +0900)]
options: consolidate options definitions

Some config options(interface_driver, use_namespaces) are defined
multiple times in ad-hoc way.  It causes DuplicateOptError exception
when using those module at the same time.  Right now the exception is
avoided in ad-hoc way by each executable.  Those duplicated
definitions should be consolidated and treated in uniformed way.

This is the blocker for blueprint: l3-agent-consolidation

neutron.services.loadbalancer.drivers.haproxy.agent periodic_interval
conflicts with neutron.service one. Since there is no way to fix it
without changing existing behavior/default value, it is untouched for now.

Closes-bug: #1279769
Change-Id: Ifed79b7ee0033644854499416f8a2b22a20416fe

10 years agoReplace binding:capabilities with binding:vif_details
Bob Kukura [Tue, 4 Feb 2014 04:18:44 +0000 (23:18 -0500)]
Replace binding:capabilities with binding:vif_details

In addition to binding:vif_type, the neutron core plugin needs to
supply various information to nova's VIF driver, such as VIF security
details and PCI details when SR-IOV is being used. This information is
read-only, requires admin privileges, and is not intended for normal
users. Rather than add separate mechanisms throughout the stack for
each such requirement, the binding:capabilities port attibute, which
is a dictionary and is not currently not used by nova, is renamed to
binding:vif_details to serve as a general-purpose mechanism for
supplying binding-specific details to the VIF driver.

This patch does not remove or replace the CAP_PORT_FILTER boolean
previously used in binding:capabilities. A separate patch should
implement the specific key/value pairs carried by binding:vif_details
to implement VIF security. Another patch will implement the key/value
pairs needed for SR-IOV.

The ML2 plugin now allows the bound mechanism driver to supply the
binding:vif_details dictionary content, instead of just the
CAP_PORT_FILTER boolean previously carried by the binding:capabilities
attribute.

DocImpact: Need to update portbinding extension API, but no impact on
user or administrator documentation.

Implements: blueprint vif-details
Related-Bug: 1112912
Change-Id: I34be746fcfa73c70f72b4f9add8eff3ac88c723f

10 years agoMake sure dnsmasq can distinguish IPv6 address from MAC address
Dazhao [Fri, 21 Feb 2014 09:53:30 +0000 (17:53 +0800)]
Make sure dnsmasq can distinguish IPv6 address from MAC address

Currrently, due to in dnsmasq host file, the IPv6 address does
not be wrapped with '[]', dnsmasq cannot distinguish IPv6 address
from MAC address, it will cause the deployed instances cannot get
IPv6 address via dnsmasq dhcp service.

Change-Id: I023e44667a238664d11f2ac2cc484432cd301bcc
Closes-Bug: #1281916

10 years agoRename Neutron core/service plugins for VMware NSX
armando-migliaccio [Mon, 3 Feb 2014 21:03:29 +0000 (13:03 -0800)]
Rename Neutron core/service plugins for VMware NSX

Short aliases are introduced for the NSX plugin(s). This patch
also switches to using the new plugin names/naming scheme in
the unit tests.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: If1f1431b098bf77b9c85e0afb3d7848083d9d451

10 years agoMake metaplugin be used with a router service plugin
Itsuro Oda [Mon, 6 Jan 2014 06:03:14 +0000 (15:03 +0900)]
Make metaplugin be used with a router service plugin

"l3_plugin_list" configuration parameter of the metaplugin is permitted
blank now.
If "l3_plugin_list" is blank, router extension and extensions which extend
the router extension don't be included in "supported-extension-aliases" of
the metaplugin.
This makes the metaplugin be able to be used with a router service plugin.
Note that if "l3_plugin_list" is not blank, a router service plugin must
not be specified, otherwise the error of the bug report still occurs.

This patch removes some router extension related meaningless codes also.
(e.g.  external-net extension belongs to L2 functionality and be handled
 by core plugins properly.)

Closes-bug: 1266347
DocImpact

Change-Id: I0454bc0a4bd7eda5dad18b0538fb7baebe0b9f91

10 years agoFix wrap target in iptables_manager
Sylvain Afchain [Thu, 16 Jan 2014 13:37:36 +0000 (14:37 +0100)]
Fix wrap target in iptables_manager

This patch fixes issues when using wrap target
for add_rule and remove_rule methods.

Change-Id: I01926719ef5ccf229748b9ceb1553e5314ab623e
Closes-bug: #1269189

10 years agoBigSwitch: Fix tenant_id for shared net requests
Kevin Benton [Sun, 9 Feb 2014 19:39:39 +0000 (11:39 -0800)]
BigSwitch: Fix tenant_id for shared net requests

The URI port requests are sent to on the backend
contains the tenant_id of the network. This corrects
a bug where, on port updates and deletes, the tenant_id
of the port rather than the network was being used,
which was incorrect when attached to a shared network.

Closes-Bug: #1278530
Change-Id: I09ffc767c669416555867e975d0b7057a5cfa0cb

10 years agoBigSwitch: Use backend floating IP endpoint
Kevin Benton [Fri, 14 Feb 2014 12:25:40 +0000 (12:25 +0000)]
BigSwitch: Use backend floating IP endpoint

Adds new floating IP REST calls for backend
controllers that support it. Adds backend
capability discovery mechanism.

Implements: blueprint bsn-floating-ip-endpoints
Change-Id: I2301d62a05d256867255865556625603918e84cf

10 years agoUpdated from global requirements
OpenStack Jenkins [Sun, 23 Feb 2014 09:26:34 +0000 (09:26 +0000)]
Updated from global requirements

Change-Id: I194bd7c742152739717882774fef61174ccda9b9

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 23 Feb 2014 06:27:52 +0000 (06:27 +0000)]
Imported Translations from Transifex

Change-Id: I1417148b8fffe3ccb12ea7435997d6b43197b8f8

10 years agoRaise max header size to accommodate large tokens
zhhuabj [Fri, 17 Jan 2014 10:21:01 +0000 (18:21 +0800)]
Raise max header size to accommodate large tokens

The max header is exceeded in the following scenario
- Auth tokens built with a keystone v3 API catalog
- A catalog with approximately 8 or more endpoints defined

Change-Id: Ie815e457c0b25ab828e780b5d90233ba0ceff61f
Closes-Bug: #1251026

10 years agoNSX: get_port_status passed wrong id for network
Aaron Rosen [Tue, 18 Feb 2014 21:15:02 +0000 (13:15 -0800)]
NSX: get_port_status passed wrong id for network

The call to get_port_status in update_port was passing in the neutron
network_id instead of the nsx_network_id. These used to be the same
but now are different. This patch updates the code so that it now
passes in the correct uuid.

Change-Id: I7b0bd617f68291fa457a49e52d595bb8de1d4835
Closes-bug: #1281789

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sat, 22 Feb 2014 06:33:35 +0000 (06:33 +0000)]
Imported Translations from Transifex

Change-Id: I9f7b5e2d2fffd8c54cd0ef5a0358a92b3a550f40

10 years agoReset API naming scheme for VMware NSX plugin
armando-migliaccio [Fri, 24 Jan 2014 00:23:26 +0000 (16:23 -0800)]
Reset API naming scheme for VMware NSX plugin

Introduce new naming scheme, whilst preserving
backward compatibility for the extensions affected.

Deprecated extensions will be removed from Juno.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: Icd68e5db04aa008ac31994ae0cb5c1b7f2551303

10 years agoremove pointless test TestN1kvNonDbTest
Aaron Rosen [Fri, 21 Feb 2014 21:29:41 +0000 (13:29 -0800)]
remove pointless test TestN1kvNonDbTest

Change-Id: Id0cd2ea394276f159c7edfadbdc517a16b24776c
closes-bug: #1283250

10 years agoRename Security Groups related methods for VMware NSX plugin
armando-migliaccio [Fri, 17 Jan 2014 07:08:20 +0000 (23:08 -0800)]
Rename Security Groups related methods for VMware NSX plugin

Second to last step for the renaming/refactoring of nvplib
and related modules. This is about security groups.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I0099bf25be77fdec90d515c890b728a477409ef9

10 years agoRename L2 Switch/Gateway related methods for VMware NSX plugin
armando-migliaccio [Thu, 16 Jan 2014 21:06:30 +0000 (13:06 -0800)]
Rename L2 Switch/Gateway related methods for VMware NSX plugin

Yet another another step for the renaming/refactoring
of nvplib and related modules. This is about l2 switches
and l2 gateways.

Partial-implements blueprint nicira-plugin-renaming

Change-Id: I35c2b20a33ed8f2df4334c335f91472f7b822f8e

10 years agoRename Router related methods for VMware NSX plugin
armando-migliaccio [Thu, 16 Jan 2014 01:18:54 +0000 (17:18 -0800)]
Rename Router related methods for VMware NSX plugin

This is another step for the renaming/refactoring of
nvplib and related modules. This is about routers.

Partial-implements blueprint: nicira-plugin-renaming

Change-Id: Ic69b2777fa1ae3125b8adf23943360e3fe18e4c2

10 years agoPlugins should call __init__ of db_base_plugin for db.configure
Aaron Rosen [Wed, 19 Feb 2014 23:08:54 +0000 (15:08 -0800)]
Plugins should call __init__ of db_base_plugin for db.configure

Currently each plugin calls db.configure() within the plugin's __init__
class or defines an initialize() method that's sole job is to call this
method. Instead we should just call the super method of a plugin so that
db.configure() is called for us out of the db_base_plugin class.

Note: the only reason why I'm making this change is that I want to add
something to the __init__() class of the db_base_plugin that's needed for
the nova-event-callback blueprint and adding it in the base class of init
looks to be the best place.

Change-Id: Iec3c912735021ceb90f657108aad3a57460d66e7
Closes-bug: #1282303

10 years agoFixes Tempest XML test failures for Cisco N1kv plugin
Sourabh Patwardhan [Thu, 20 Feb 2014 02:16:47 +0000 (18:16 -0800)]
Fixes Tempest XML test failures for Cisco N1kv plugin

Renamed N1kv_profile class to N1kv.
Modified N1kv attribute extension class to fix XML namespace issues.

Change-Id: I29b541730fc95c5e16667b64efd180be31e25b17
Closes-Bug: #1282352

10 years agoFixes broken documentation hyperlinks
Joe Harrison [Mon, 13 Jan 2014 14:27:38 +0000 (15:27 +0100)]
Fixes broken documentation hyperlinks

Several hyperlinks were incorrectly specified in one page of the docs.
These syntax typos have been fixed.

Change-Id: I1a4fe91ac05f51b71e01c001b76712752664ae74
Closes-Bug: #1268611

10 years agoUse "!=" instead of "is not" when comparing two values
Akihiro Motoki [Fri, 21 Feb 2014 12:15:19 +0000 (21:15 +0900)]
Use "!=" instead of "is not" when comparing two values

Change-Id: I2cd9575585dde7c44b528077a7bffa16379b1759
Closes-Bug: #1283019

10 years agoML2/vxlan/test: remove unnecessary self.addCleanup(cfg.CONF.reset)
Isaku Yamahata [Fri, 20 Dec 2013 03:50:17 +0000 (12:50 +0900)]
ML2/vxlan/test: remove unnecessary self.addCleanup(cfg.CONF.reset)

This patch is follow up of change set of
4808f91eb2c245344517fc89c37c6c4c88e9051b bug/1260262 review/61694.
The change set adds unnecessary self.addCleanup(cfg.CONF.reset) to
VxlanTypeMultiRangeTest as pointed out. This patch Remove the line.

Change-Id: Ia6ce4bc346cf6320ba556e80689dadb7d84e5ee8

10 years agoFix test_db_plugin.test_delete_port
Akihiro Motoki [Fri, 21 Feb 2014 09:25:28 +0000 (18:25 +0900)]
Fix test_db_plugin.test_delete_port

Also add PortNotFound check to test_delete_port_public_network.

Change-Id: Iec461364345b200e2d17ba26a6c5362eec6d93ef
Closes-Bug: #1282946

10 years agoHandle racing condition in OFC port deletion
Akihiro Motoki [Tue, 18 Feb 2014 08:01:01 +0000 (17:01 +0900)]
Handle racing condition in OFC port deletion

Multiple delete_port operations can run in parallel.
For such case later operation(s) will receive 404 (NotFound)
error from OFC or NotResultFound sqlalchemy exception.
These are valid exceptions and they should be ignored
in delete_port operations.

Closes-Bug: #1281574

OFCConsistencyBroken is renamed to OFCMappingNotFound
because when multiple delete_port operations run in parallel
OFCConsistencyBroken can occur and it is a valid case
so the excepion name looks inappropriate.

Change-Id: I1511d55994c88b8828f0ff62610c18ddc6dfac8f

10 years agoImported Translations from Transifex
OpenStack Jenkins [Fri, 21 Feb 2014 06:38:31 +0000 (06:38 +0000)]
Imported Translations from Transifex

Change-Id: Ia424e2ea79fa28a561b7d4a85178d111fd0a7f6e

10 years agoAdds https support for metadata agent
Xiaolin Zhang [Thu, 16 Jan 2014 14:28:28 +0000 (22:28 +0800)]
Adds https support for metadata agent

Adds two configure options to support https client for metadata proxy
* auth_insecure: turn off verification of the certificate for ssl, or
* auth_ca_cert: CA cert to check against with for ssl.

Change-Id: I3ffb86ae9ce31931436a4e13957aae30eebf9d92
Closes-Bug: #1263872

10 years agoFix VPN agent does not handle multiple connections per vpn service
berlin [Wed, 19 Feb 2014 07:34:47 +0000 (15:34 +0800)]
Fix VPN agent does not handle multiple connections per vpn service

    Once the OpenSwan process is created, incoming updated vpnservice
data would not be updated into the process class which leads to config
files and openswan process always keep old configurations

Change-Id: Ia91ab08b1d03fbbe46bafd4967b57181fc4c6e71
Closes-Bug: 1263194

10 years agoDon't require passing in port_security=False if security_groups present
Aaron Rosen [Wed, 8 Jan 2014 21:10:54 +0000 (13:10 -0800)]
Don't require passing in port_security=False if security_groups present

If creating a port on a network that is marked as port_security_enabled=False
and one passes in a security_group in the port_create request previously an
error was raised saying they needed to also pass in
port_security_enabled=False. This patch removes that requirement and instead
sets port_security_enabled=True internally if a port has an ip_address and a
security_group is passed in. This is more convient and does not break
backwards compatibility.

Closes-bug: #1267249
Change-Id: Ifb5a5511f016a5d8c5b5075c9fdc27279cdd9bb5

10 years agowsgi.run_server no longer used
Aaron Rosen [Fri, 21 Feb 2014 04:15:21 +0000 (20:15 -0800)]
wsgi.run_server no longer used

Removes run_server method and test that is not used by anything.

Change-Id: I280c3e249b8e3f46de5a3d364a4a34ffc5acd064
Closes-bug: #1282873

10 years agoUse different context for each API request in unit tests
Salvatore Orlando [Fri, 14 Feb 2014 16:17:30 +0000 (08:17 -0800)]
Use different context for each API request in unit tests

test_router_add_interface_subnet_with_port_from_other_tenant in
neutron.tests.unit.test_l3_plugin.L3NatTestCaseBase was mocking
neutron.context.Context thus performing multiple API requests
with the same context instance. As a context instance also has
a DB session attribute, this might cause unexpected side effects,
especially for plugins which process request asynchronously.

The plugin neutron.plugins.nicira.NeutronServicePlugin was being
affected.

This patch ensures each request has a different context object
without changing the unit test semantics.

It also refactors slightly test_edge_router.py in the nicira
unit test package to avoid executing twice the same unit tests.

Change-Id: I4895faa00ebd915eb9e259930db2d004a9e78a86
Closes-Bug: #1280035

10 years agoSync minimum requirements
Justin Lund [Thu, 20 Feb 2014 23:53:39 +0000 (18:53 -0500)]
Sync minimum requirements

Change-Id: I1a0653058f1f8085918d7c43147d6b2631acb013
Closes-bug:1280941

10 years agoImplements an LBaaS driver for NetScaler devices
Youcef Laribi [Wed, 20 Nov 2013 20:29:01 +0000 (12:29 -0800)]
Implements an LBaaS driver for NetScaler devices

This driver for the Neutron LBaaS plugin allows for
using the Citrix NetScaler loadbalancing devices
to provide Neutron LBaaS functionality in OpenStack.

Change-Id: Ibfeb54c4402943fb3696a1c599fa373e42e520d4
Implements: blueprint netscaler-lbaas-driver

10 years agovshield task manager: abort tasks in stop() on termination
Salvatore Orlando [Thu, 20 Feb 2014 14:30:11 +0000 (06:30 -0800)]
vshield task manager: abort tasks in stop() on termination

This patch kills the manager thread, and aborts active tasks
rather than sending an exception to the manager thread and
have it do the abort on termination.

Unit tests involving vshield task manager might take longer
as a side effect of this patch.

Related-bug: #1282452

Change-Id: I9e9e41ce7e8969a2ea51bfce96b1303125a24308

10 years agoCopy cache package from oslo-incubator
Jakub Libosvar [Wed, 5 Feb 2014 09:07:02 +0000 (10:07 +0100)]
Copy cache package from oslo-incubator

Related-Bug: #1276440
Change-Id: I7aaf8ae2eb909816d85092baa5c111f00e60d2c7

10 years agoBigSwitch: Move config and REST to diff modules
Kevin Benton [Fri, 14 Feb 2014 06:52:36 +0000 (06:52 +0000)]
BigSwitch: Move config and REST to diff modules

No functionality change. Separates the config,
rest call, and backend server management from
the main plugin.py file. Necessary to make
downstream patches more managable and easier
to review.

Implements: blueprint bigswitch-separate-server-module
Change-Id: Ie1fd18a9d8cde24945513c06f7b62239202258a3

10 years agoImplements provider network support in PLUMgrid plugin
Edgar Magana [Thu, 5 Dec 2013 23:42:04 +0000 (15:42 -0800)]
Implements provider network support in PLUMgrid plugin

Includes the provider network extension in PLUMgrid plugin
PLUMgrid drivers are updated with the new extension data
Unit tests are added

Change-Id: Ia7fc011c04d143bdb7fd8f67768a2076be8c5264
Implements: blueprint provider-network-plumgrid

10 years agoShould specify expect_errors=False for success response
Akihiro Motoki [Wed, 19 Feb 2014 19:37:39 +0000 (04:37 +0900)]
Should specify expect_errors=False for success response

In API unit tests, expect_errors=False should be specified
when expecting 2xx API response.

Closes-Bug: #1282401
Change-Id: Ib2d57aab16f73f234b3cb6ecfeecf2779bf17223

10 years agoAdd support to request vnic type on port
Irena Berezovsky [Mon, 10 Feb 2014 12:55:49 +0000 (14:55 +0200)]
Add support to request vnic type on port

This patch adds support for requested vnic_type to be plugged to neutron port to ML2 plugin.
This patch contains:
1. New attribute 'binding:vnic_type' added to port binding extension.
   Possible values are 'direct', 'macvtap' and 'normal'.
   'binding:vnic_type' is allowed to be defined on port creation or changed
   on port update by admin or tenant user.
   'binding:vnic_type' can be also skipped in port defintion
2. Management of vnic_type by ML2 plugin, assuming default
vnic_type=normal
3. Add 'vnic_type' to ml2_port_bindings DB table
4. Add supported vnic_types for MechanismDrivers that are capable to bind
port.
5. Add DB migration script for ml2_vnic_type.

DocImpact: Need to update portbindings API docs and include in SR-IOV user docs

Change-Id: Ic88708fa9ece742f807c1d09bb49e499f99bd092
Implements: blueprint ml2-request-vnic-type

10 years agotests/unit: Initialize core plugin in TestL3GwModeMixin
Isaku Yamahata [Tue, 18 Feb 2014 02:02:56 +0000 (11:02 +0900)]
tests/unit: Initialize core plugin in TestL3GwModeMixin

TestL3GwModeMixin can fail randomly because it doesn't initialize
core_plugin and can be run random core plugin depending on execution
order of tests. It also fails with core plugin uninitialized when it
is run without other tests.

This patch refactors the setup code of core plugin and apply it to the
related tests.
This patch reveled the same bug of test_metaplugin.py which is also
fixed by this patch.

Closes-bug: #1273259
Change-Id: I3c1d4d8b3d69262b89c7747daa8267bf2c8e7f6b

10 years agoRevert "Skip a test for nicira service plugin"
Salvatore Orlando [Thu, 20 Feb 2014 00:41:03 +0000 (16:41 -0800)]
Revert "Skip a test for nicira service plugin"

This reverts commit 95807c9436be7eb34fe37289d76fb4611ab77783.

Change-Id: I03dc9bb99b8372bfa4bb05246916b856569969f7

10 years agoImprove unit test coverage for Cisco plugin model code
Dane LeBlanc [Thu, 21 Nov 2013 17:34:57 +0000 (12:34 -0500)]
Improve unit test coverage for Cisco plugin model code

Closes-Bug: #1190620

This fix improves unit test coverage for:
quantum/plugins/cisco/models/virt_phy_sw_v2.py
Test coverage is improved from about 78% to 99%.

One change included in this fix is removal of some code in
the _invoke_plugin() method in virt_phy_sw_v2.py which looks
like it's attempting to handle the case where the number of
arguments being passed to _invoke_plugin() exceeds the number
of arguments expected for the target plugin method. This
section of code does not get executed for any existing
calls to _invoke_plugin(), and it doesn't appear that
this logic would work (except when the target plugin method
includes a **kwargs expansion).

Change-Id: Ibceb7a462a213f3ba693bcbe94e77d97b2e1440a

10 years agoImported Translations from Transifex
OpenStack Jenkins [Wed, 19 Feb 2014 17:00:57 +0000 (17:00 +0000)]
Imported Translations from Transifex

Change-Id: Iacb4571f529a6697aa722fc88f0ca1b40fe61e8c

10 years agoFix class name typo in test_db_rpc_base
Takuma Watanabe [Wed, 19 Feb 2014 10:28:18 +0000 (19:28 +0900)]
Fix class name typo in test_db_rpc_base

Change-Id: I23fd11fe4fdd2988463f2cf592d884cba72cdb41
Closes-Bug: #1281921

10 years agoEmbrane Tempest Compliance
Ivar Lazzaro [Tue, 14 Jan 2014 19:17:05 +0000 (11:17 -0800)]
Embrane Tempest Compliance

This changeset tracks the changes needed by the Embrane's Neutron Plugin
in order to consistently  pass tempest tests.

Changes:

- Some db transactions were too long and were causing lock timeout
exception. Removed useless transactions (waiting on non-db tasks to complete)
to fix the problem.

- The operation filter was useless, and breaking the tests. Most of the
logic which guarantees the appliance correct state when an operation in executed
is now in the internal library used for the heleos APIs.
The filter was therefore removed (as well as the corresponding exception).

- Fixed "sync" mode. The behavior was incorrect due to the queue timeout.
Furthermore, parallel requests were not waiting on the correct thread.

- Added missing methods for floating IPs (not all the scenarios were covered).

- Minor bug fixes caught during the tests.

Change-Id: If081b50b4629158016ba421b94612a4cfac82257
Closes-Bug:1269098

10 years agoipt_mgr.ipv6 written in the wrong ipt_mgr.ipv4
llg8212 [Wed, 25 Dec 2013 01:57:21 +0000 (09:57 +0800)]
ipt_mgr.ipv6 written in the wrong ipt_mgr.ipv4

This patch fixes the issue of writing the wrong firewall rule where an IP6
rule is written to IP4.

Change-Id: Ie7c75c71c9dcfbd9feabaffe4416ede80ff350d8
Closes-Bug:#1263877

10 years agoUpdate help message of flag 'enable_isolated_metadata'
Édouard Thuleau [Thu, 16 Jan 2014 09:15:07 +0000 (10:15 +0100)]
Update help message of flag 'enable_isolated_metadata'

Thanks to the commit c73b54e50b62c489f04432bdbc5bee678b18226e,
the way of DHCP agent determines how a subnet is isolated evolves.
But the flag help message wasn't updtated accordingly to this evolution.

Change-Id: If07d8e0802524f9babdee0c8cc07d40cb0803afb
Closes-bug: #1269722

10 years agoImported Translations from Transifex
OpenStack Jenkins [Tue, 18 Feb 2014 06:25:33 +0000 (06:25 +0000)]
Imported Translations from Transifex

Change-Id: Iafb65bdd55952a9f8dba3f48c53c691f07ef344c

10 years agoFix invalid facilities documented in rootwrap.conf
shihanzhang [Tue, 18 Feb 2014 01:50:57 +0000 (09:50 +0800)]
Fix invalid facilities documented in rootwrap.conf

The values user0 and user1 do not map to valid facility values.
local1, etc.  Using user0 results in a  pri value that does not map
back to a facility of the same name in syslog.

RFC5424 suggest values values of local0 through local7.  Setting
syslog_log_facility to one of those values results in a message with a
priority that can be mapped back to the original string value.

This fix adjusts the comment in rootwrap.conf to suggest the local
prefix instead of the user prefix.

Change-Id: I835ad17c817b8623e382368b39b06944470be480
Closes-bug: #1280879

10 years agoFix typo in service_drivers.ipsec
Tomoko Inoue [Mon, 17 Feb 2014 19:10:30 +0000 (04:10 +0900)]
Fix typo in service_drivers.ipsec

Closes-Bug: #1280597

Change-Id: If2238d66af4db1b0134bbd6407b2229b4af363ee

10 years agoValidate rule uuids provided for update_policy
Eugene Nikanorov [Mon, 17 Feb 2014 12:35:09 +0000 (16:35 +0400)]
Validate rule uuids provided for update_policy

Add corresponding validation method to fwaas extension

Change-Id: I643c10a996813d251684d3b5de04c8826729129f
Closes-Bug: #1281083

10 years agoAdd update from agent to plugin on device up
Irena Berezovsky [Thu, 24 Oct 2013 12:59:46 +0000 (15:59 +0300)]
Add update from agent to plugin on device up

Add RPC message to plugin on device up once configured.
Update device details attribute to use segmentation_id
instead of vlan_id.

Change-Id: I9be8389c01c4c29025bbe868919e39fde3251a58
Closes-Bug: #1242532

10 years agoRemove dependent module py3kcompat
llg8212 [Sat, 15 Feb 2014 03:09:28 +0000 (11:09 +0800)]
Remove dependent module py3kcompat

Module py3kcompat was removed from oslo-incubator, we can use
six directly.

* Sync commit of removing py3kcompat from oslo
* use six replace usage of py3kcompat

Change-Id: Ifc9be2cc36c93d298402bd430be35b541c9b7eba
Closes-Bug: #1280033

10 years agoUse six.StringIO/BytesIO instead of StringIO.StringIO
He Yongli [Mon, 17 Feb 2014 02:28:03 +0000 (10:28 +0800)]
Use six.StringIO/BytesIO instead of StringIO.StringIO

to keep Python 3.x compatibility, use six.StringIO/BytesIO to
replace StringIO.StringIO

StringIO works for unicode
BytesIO works for bytes

Change-Id: I3892098e31d8d6984d58136110aae653dc4047ab
Closes-Bug: #1280100

10 years agoParse JSON in ovs_lib.get_vif_port_by_id
Salvatore Orlando [Sun, 16 Feb 2014 23:47:34 +0000 (15:47 -0800)]
Parse JSON in ovs_lib.get_vif_port_by_id

This patch replaces regex matching of text output with parsing
of JSON output in ovs_lib.get_vif_port_by_id.
This makes the code more reliable as subtle, possibly even
cosmetic, changes in ovs-vsctl output format could cause the
regular expression match to fail.

Also, this makes the code consistent with ovs_lib.get_vif_port_set
which already uses JSON output.

Finally this patch slightly changes the behaviour of
ovs_lib.get_vif_port_by_id returning None if elements such as
mac address or ofport were not available.

Change-Id: Ia985a130739c72b5b88414a79b2c6083ca6a0a00
Closes-Bug: #1280827

10 years agoImported Translations from Transifex
OpenStack Jenkins [Sun, 16 Feb 2014 06:28:55 +0000 (06:28 +0000)]
Imported Translations from Transifex

Change-Id: Id68ff4a10fa3aa0bfdbc128723a9e0e47f3d93b3

10 years agoSkip a test for nicira service plugin
Salvatore Orlando [Sat, 15 Feb 2014 19:46:37 +0000 (11:46 -0800)]
Skip a test for nicira service plugin

test_router_add_interface_subnet_with_port_from_other_tenant
is causing intermittent failures in unit tests because of
issues related with sql session autoflush.

This patch skips this test, since it is already covered
by another test case in the same module. This should prevent
job failures while the relevant bug is addressed.

Change-Id: Iad33dada61d17fad14e569e241f4079465b5f792
Related-Bug: 1280035

10 years agoRemove DEBUG:....nsx_cluster:Attribute is empty or null
armando-migliaccio [Sat, 15 Feb 2014 00:35:36 +0000 (16:35 -0800)]
Remove DEBUG:....nsx_cluster:Attribute is empty or null

They serve no purpose, as if an important attribute is empty
or null and it shouldn't we'll know about it, and that's what
counts.

Change-Id: I7783cb6df76362d1b9b25b23f89a3a5d6df15406
Closes-bug: 1280500

10 years agoFix request timeout errors during calls to NSX controller
armando-migliaccio [Fri, 14 Feb 2014 18:59:17 +0000 (10:59 -0800)]
Fix request timeout errors during calls to NSX controller

Sometimes two correlated exception traces are observed in
the server log for the Neutron Server backed by NSX:
RequestTimeout (The nsx request has timed out) and
OperationalError (Lock wait timeout exceeded). This is
generally described by Guru Salvatore Orlando as the,
and I quote, the "infamous eventlet-mysql deadlock".

This patch tries to address the issue by adding a
cooperative yield in the nsx client code (it’s a good idea
to call sleep(0) occasionally in any case) and also by
avoiding the unnecessary spawning of another Greenthread
within a call that is already executed in Greenthred
itself.

Closes-bug: #1267101
Related-bug: #1279497

Change-Id: I8e298468fb730f11a66fbd4211121ee7d3e2a548

10 years agoremove unused imports
Yong Sheng Gong [Thu, 13 Feb 2014 04:13:34 +0000 (12:13 +0800)]
remove unused imports

Change-Id: I39c0de99fac423858da8c76f6cfff27b21a65601
Closes-Bug:1279644

10 years agoL3 agent fetches the external network id once
Carl Baldwin [Wed, 15 Jan 2014 18:46:17 +0000 (18:46 +0000)]
L3 agent fetches the external network id once

Rather than fetching the id of the external network each time that
_process_routers is called, get it once and remember it.  If the agent
is ever requested to connect to a different ext-net then it will fetch
the current ext-net to double check for the unlikely event that the
ext-net has changed.  If it has then it will remember the new ext-net.

This is only applicable in the case where there is only one ext-net
that has not been configured explicitly in the config file.  That was
the only case that would cause an RPC message in the first place.

Change-Id: I40bbbf6233131ea5d40122ef9495fd3cb7dc823a
Closes-Bug: #1269567

10 years agoAvoid processing ports which are not yet ready
Salvatore Orlando [Mon, 13 Jan 2014 20:51:03 +0000 (12:51 -0800)]
Avoid processing ports which are not yet ready

This patch changes get_vif_port_set in order to not return
OVS ports for which the ofport is not yet assigned, thus avoiding
a regex match failure in get_vif_port_by_id.
Because of this failure, treat_vif_port is unable to wire
the port.
As get_vif_port_by_id is also used elsewhere in the agent, it has
been enhanced in order to tolerate situations in which ofport might
have not yet been assigned.

The ofport field is added to the list of those monitored by the
SimpleInterfaceMonitor. This will guarantee an event is generated
when the ofport is assigned to a port. Otherwise there is a risk
a port would be never processed if it was not yet ready the first
time is was detected. This change won't trigger any extra processing
on the agent side.

Finally, this patch avoids fetching device details from the plugin
for ports which have disappeared from the OVS bridge. This is a
little optimization which might be beneficial for short lived ports.

Change-Id: Icf7f0c7d6fe5239a358567cc9dc9db8ec11c15be
Partial-Bug: #1253896

10 years agoEnsure that session is rolled back on bulk creates
armando-migliaccio [Thu, 13 Feb 2014 19:36:34 +0000 (11:36 -0800)]
Ensure that session is rolled back on bulk creates

During bulk creates, the session is began explicitely;
ensure that it gets rolled back before re-raising in
order to avoid triggering InvalidRequestError
exceptions when the session is reused.

Partial-bug: 1244757

Change-Id: I797faeec2ca5374620db905599ab6e6f04fdcabd

10 years agoAdd DB mappings with NSX logical routers
Salvatore Orlando [Sun, 27 Oct 2013 21:09:57 +0000 (14:09 -0700)]
Add DB mappings with NSX logical routers

This patch introduces DB mappings between neutron and NSX router,
thus not requiring anymore the Neutron router ID to be equal to the
NSX one.

This change is needed for enabling asynchronous operations in
the NSX plugin.

This patch also performs NVP/NSX renaming where appropriate, and
fixes delete router logic causing a 500 HTTP error to be returned
when a Neutron internal error occurs.

Related to blueprint nvp-async-backend-communication
Related to blueprint nicira-plugin-renaming

Change-Id: Ib0e9ed0f58e7fa3497a93e9cd3baa9cb81ad797b