Commit Graph

20 Commits

Author SHA1 Message Date
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