Commit Graph

28 Commits

Author SHA1 Message Date
Eric Windisch 9e6ba904cf Add processutils from oslo.
RPC now depends on processutils.
Fixes bug 1131872.

Change-Id: I2c24f70aa37e56c2d12df370386629c76d89e4be
2013-02-22 13:13:03 -05:00
Chris Behrens de09aa254f Move DB thread pooling to DB API.
The eventlet db_pool wrapping done in sqlalchemy is wrong.  It needs to
be around the whole DB API call.

Fixes bug 1128605

Syncs nova with the fix in oslo.  Moves nova to use the oslo version of
db/api.py to import the DB API implementation.

Renames configuration option sql_dbpool_enable to dbapi_use_tpool

NOTE: tpool will not work without a fix to eventlet for Threads + locking.

DocImpact

Change-Id: I6c75b6138d38d12261d133f2cb2f5e59c667f837
2013-02-21 05:25:13 +00:00
Mark McLoughlin 706a137005 Use oslo-config-2013.1b4
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b4 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Add dependency_links to setup.py so that oslo-config can be installed
from the tarball URL specified in pip-requires.

Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Make tools/hacking.py include oslo in IMPORT_EXCEPTIONS like it already
does for paste. It turns out imp.find_module() doesn't correct handle
namespace packages.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-19 21:16:32 -08:00
Monty Taylor 4336152768 Update to simplified common oslo version code.
Based on https://review.openstack.org/#/c/19957/

Change-Id: Ieefee2af8812d0217e95eeffb3cf53d8e55c8fe6
2013-02-10 04:05:15 -06:00
Eric Windisch cd0c765ced Use oslo database code
Bring in the new database code from oslo.

Uses get_session() from oslo as well as changing NovaBase to derive from
a common class.

Remove test_sqlalchemy.py now that this code is test in oslo.

Implements blueprint db-common.

Change-Id: I090754981c871250dd981cbbe1a08e7181440120
2013-02-05 10:13:04 +00:00
Joe Gordon 64ded79907 import tools/flakes from oslo
Change-Id: Id6d99fe1fd39e8c061f591e9a82058aea9664674
2013-01-31 12:29:14 -08:00
Matthew Treinish c69ce047ad Use install_venv_common.py from oslo.
This syncs install_venv_common.py from oslo and reworks the
tools/install_venv.py script to use the new library.

Change-Id: I020eae1ec9e3a6aae0ecc7825c0ef723ab247f39
2013-01-28 13:57:59 -05:00
Thierry Carrez 476f15d610 Use common rootwrap from oslo-incubator
Make Nova use common rootwrap code from oslo-incubator.
Implements bp nova-common-rootwrap

Change-Id: I3282d65940375589fceb8485829097380d84d946
2013-01-17 13:32:30 +01:00
Joe Gordon eb39f01402 Add new cliutils code from oslo-incubator.
Change-Id: I03d93c5024965d4252a18d8cb564a7512b728994
2012-12-06 11:41:26 +02:00
Matthew Treinish 0f578217be Sync eventlet_backdoor from oslo.
Change-Id: I2b0021e0612226e71700d74c865a84a5b6d8e735
Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com>
2012-11-16 09:45:07 -05:00
Zhongyue Luo bb15f2b5b8 Add uuidutils module
Added uuidutils to openstack-common.conf file and
updated nova/openstack/common

Change-Id: I256a12ab4367a8ee408a38cda7ae35a762b56efe
2012-11-05 11:27:04 +08:00
Michael Still 0d4e6dbe6f Migrate to fileutils and lockutils.
Migrate nova to using openstack-common's file and lock utilities.
Resolves bug 1063230.

Change-Id: I1a4c87856bc08cd33b61d7098ed856baa4583654
2012-10-25 09:20:46 +11:00
Eugene Kirpichov 4a4fcc4685 Support for several HA RabbitMQ servers.
Port from openstack-common: https://review.openstack.org/#/c/10305/

Change-Id: Ib44abf115b42c3df42771344f6722ce1db043bbd
2012-09-26 18:59:20 +00:00
Andrew Bogott a30ed72967 Add the plugin framework from common; use and test.
For blueprint novaplugins.

Change-Id: Id4a5ae3ebb91f941956e2f73ecfd9ea1d290a235
2012-07-15 16:25:26 -05:00
Andrew Bogott aa87cc10d6 Switch to common notifiers.
- Added notifier files to openstack-common.conf, merged from common.
- Import notifiers from common rather than nova.
- Removed nova-specific notifier code.
- Update some driver paths to refer to the new location within nova.

Should be a no-op, as the common notification code is freshly copied from Nova.

Change-Id: Icdf892bc3826b683fc74f22ead00939beda2859f
2012-07-06 22:08:42 -05:00
Andrew Bogott d335457f48 Switch to common logging.
I only just moved logging from nova to common, so behavior should remain the same.

Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
2012-07-02 15:57:09 -05:00
Russell Bryant 7c3999d6ed Add missing gettextutils from openstack-common.
This patch adds gettextutils from openstack-common to nova.  It is used
by rpc, so some parts of rpc are broken without this patch.

Change-Id: I0830319f4e2011b87180abcc24354c935bea8d16
2012-07-02 11:30:10 -04:00
Russell Bryant ba3754e3ff Use rpc from openstack-common.
Final patch for blueprint common-rpc.

This patch removes nova.rpc in favor of the copy in openstack-common.

Change-Id: I9c2f6bdbe8cd0c44417f75284131dbf3c126d1dd
2012-06-20 12:57:21 -04:00
Zhongyue Luo 9ff3121bd9 Replaces functions in utils.py with openstack/common/timeutils.py
Fixes bug #1008628

1. Edit openstack-common.conf and import nova/openstack/common/timeutils.py
2. Move time related functions from utils.py to timeutils.py
3. Replace following functions in utils.py with timeutils.py
- isotime
- parse_isotime
- strtime
- parse_strtime
- normalize_time
- is_older_than
- utcnow_ts
- utcnow
- set_time_override
- advance_time_delta
- advance_time_seconds
- clear_time_override
4. Remove datetime related functions and datetime related unittests

Change-Id: I9a92be286fb071b6237dd39495d88dae106e2ce0
2012-06-16 07:17:01 +08:00
Kevin L. Mitchell 18ed0b0940 Use openstack-common's policy module
Reworks nova to use the new policy module in openstack-common.

Change-Id: Iea8651bad85f26804285616330107d9d5f23e6cb
2012-06-04 18:49:44 -05:00
Russell Bryant ba76b954e6 Make use of openstack.common.jsonutils.
This patch imports jsonutils from openstack-common.  It removes the
equivalent code from nova.utils and then converts the code base to use
jsonutils.  The primary motivator for this change was to remove the rest
of the dependencies from nova.rpc on nova.utils.

Change-Id: If43658b9b098ed56cba018c81be268b8c3e2916a
2012-05-15 15:44:14 -04:00
Chuck Short 7ba26ad4ba Generate a Changelog for Nova
Ubuntu uses a tarball to generate packages for Nova and
other openstack projects. This allows the user to find out
what is included in the tarball.

Signed-off-by: Chuck Short <chuck.short@canonical.com>

Change-Id: I0291e19eee1ff2c5fc98b499571b2563841c6076
2012-05-04 10:17:36 -07:00
Russell Bryant 29dc47bd50 Use save_and_reraise_exception() from common.
This patch common.excutils from openstack-common, which includes
save_and_reraise_exception().  The patch also converts the code
base to use it from there instead of nova.utils and then removes
it from nova.utils.

The initial motivation for this was removing another nova dependency
from nova.rpc so that it can eventually be moved to openstack-common.

Change-Id: I7354ca51a02aec9c709cf33f77d4abc46acc2742
2012-05-02 16:05:58 -04:00
Russell Bryant 524bfb84f5 Update common.importutils from openstack-common.
This patch updates common.importutils from openstack-common.  The change
was to remove the usage of common.exception.  The rest of the patch
includes the changes required in nova to no longer use common.exception,
as well.

Change-Id: Iacd186b2c466cba84248ae10589ffbb5a9cec0ba
2012-05-02 13:44:20 -04:00
Russell Bryant 7593a6948c Use openstack.common.importutils.
Use import_class(), import_object(), and import_module() from
openstack-common's importutils module.  The equivalent functions have
been removed from nova.utils.  A few modules had import order cleaned up
in passing, as well.

My initial motivation for this was to remove some more usage of nova
bits from nova.rpc as another step towards being able to move nova.rpc
import openstack-common.  Since I was pulling importutils into nova, I
went ahead and converted the whole thing.

Change-Id: I7c7786cf0001bcd06db52b9a99ff4284a3f6c6fa
2012-04-28 23:33:15 -04:00
Russell Bryant 14f0bc7c98 Use thread local storage from openstack.common.
nova.local was recently added to openstack-common.  Remove nova.local
and use openstack.common.local instead.

One benefit of this change is that it is another step toward decoupling
nova.rpc from the rest of nova.

Change-Id: I0240f4291a81f8390d3f329a11f207a1453d7cab
2012-04-04 11:47:55 -04:00
Johannes Erdfelt da1a151dfc Import recent openstack-common changes
Fixes MultiStrOpt, plus also adds secret kwarg for sanitizing logs

Change-Id: I87b979b38084f82b012872054262fc49d291e99e
2012-03-23 22:10:22 +00:00
Mark McLoughlin 259d3e356b Update cfg from openstack-common
Use openstack-common's update.py script to pull in some recent changes:

 * Add the Mapping interface to cfg.ConfigOpts
 * Add support to cfg for disabling interspersed args

Make use of both of these in nova/flags.py.

Add some dire warnings to HACKING about directly modifying the copy of
openstack-common code. I'm confident they won't be ignored :-)

Change-Id: I7ef75d18922c0bbb8844453b48cad0418034bc11
2012-02-07 21:35:30 +00:00