10 Commits

Author SHA1 Message Date
Alex Oughton
9d21b5ad7e Close XenAPI sessions in neutron-rootwrap-xen-dom0
Neutron with XenServer properly doesn't close XenAPI sessions.
If it creates these sessions so rapidly, the XenServer host eventually
exceeds its maximum allowed number of connections.
This patch adds a close process for session.

Closes-Bug: 1558721
Change-Id: Ida90a970c649745c492c28c41c4a151e4d940aa6
2016-03-18 13:05:09 -05:00
Emma Foley
dcf6ffe185 Fixes typos Openstack -> OpenStack
Occurances of Openstack (incorrect capitalization) are replaced with
OpenStack

Change-Id: I7f33060a2dd430cdd49aebf9420e3cd54d21c72c
Closes-Bug: #1535246
2016-01-18 16:04:56 +00:00
Kevin Benton
eef7983d4e Replace 'import json' with oslo_serialization
Replace remaining occurences of 'import json' with
'from oslo_serialization import jsonutils as json'
so pylint doesn't complain every time someone happens
to make a change to one of the modules that still
uses it.

Change-Id: Ife9f0fc54ad36887bdb939028f8903be16e590d6
2015-08-11 06:05:37 -07:00
Cyril Roelandt
8db41f04d5 Allow users to run 'tox -epy34'
With this commit, it is possible to successfully run 'tox -epy34', even though
only a small amount of tests will actually be run. This is a required step in
making Neutron compatible with Python 3, as described in the 'Porting to Python
3' specification.

This commit:
- fixes some broken imports, while making sure they still work with Python 3;
- updates a call to gettext.install;
- adds a py34 target in tox.ini.

Change-Id: I91cc7a992d05ea85f7004d1c5a45a1c02cbf1c85
Blueprint: neutron-python3
2015-05-11 16:09:51 +02:00
ronak
dce830671c adopt namespace-less oslo imports
Changing the leftovers that I found with latest code.
Initial review link: https://review.openstack.org/#/c/147215/

Change-Id: I5adbed9bbe9cb6e819dd2a8a72e7fbeee06fbf00
Closes-bug: #1423389
2015-02-20 17:36:47 -08:00
Thierry Carrez
171efa46e0 Use oslo.rootwrap library instead of local copy
Remove rootwrap code copied from oslo-incubator, make the
{neutron,quantum}-rootwrap console_script entrypoints point to
oslo.rootwrap code instead.

Adjust bin/{neutron,quantum}-rootwrap[-xen-dom0] so that it calls
into oslo.rootwrap.cmd.

Change-Id: I22df4060d6bca6affd7761fec49d2767ca8f59cf
Implements: blueprint neutron-oslo-rootwrap
2014-02-07 10:58:27 +01:00
Simon Pasquier
6cc8bd73ac neutron-rootwrap-xen-dom0 handles data from stdin
The neutron-rootwrap-xen-dom0 script and the netwrap plugin have been
modified to pass stdin from one to the other.

Change-Id: Ie97980873ed95f2c96eb68f8de611de1a733b130
Closes-Bug: #1259748
2013-12-19 09:50:10 +01:00
Chang Bo Guo
a37b4133b7 Use built-in print() instead of print statement
In python 3 print statement is not supported, so we should use
only print() functions.

This patch also removes print in unit test, left by accident

Fixes bug 1226943

Change-Id: I5ace50cb9e149682344b4c986ef9318f8dc50f72
2013-09-21 07:30:33 -07:00
ZhiQiang Fan
005879ee07 Change header from LLC to Foundation
Change-Id: I11d7e734ae56568f2387a208efe0d1487377cbf9
Closes-Bug: #1214176
2013-09-20 01:37:51 +08:00
Mate Lakat
ff48cc7d03 xenapi - rename quantum to neutron
Some changes were missing from the previous rename patch, so it broke
XenServer support. This patch contains the missing adjustments.

related to blueprint remove-use-of-quantum

Change-Id: I1ee5cc38d555bd5c26edf00a456ec71919604d79
2013-07-16 10:31:17 +01:00