summaryrefslogtreecommitdiffstats
path: root/nova/notifier
Commit message (Collapse)AuthorAgeFilesLines
* Switch to common notifiers.Andrew Bogott2012-07-068-427/+0
| | | | | | | | | | | - 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
* Switch to common logging.Andrew Bogott2012-07-025-5/+5
| | | | | | I only just moved logging from nova to common, so behavior should remain the same. Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
* Use rpc from openstack-common.Russell Bryant2012-06-201-1/+1
| | | | | | | | Final patch for blueprint common-rpc. This patch removes nova.rpc in favor of the copy in openstack-common. Change-Id: I9c2f6bdbe8cd0c44417f75284131dbf3c126d1dd
* Replaces functions in utils.py with openstack/common/timeutils.pyZhongyue Luo2012-06-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | 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
* Replace standard json module with openstack.common.jsonutilsZhongyue Luo2012-06-071-3/+2
| | | | | | | | | | | Implements blueprint use-common-jsonutils 1. Edit openstack-common.conf and import nova/openstack/common/jsonutils.py 2. Remove json package imports and replace with jsonutils Places where using json.load hasn't changed. Change-Id: Ie6feab605fb0474fd505c56ef57b7a9ecfa5269d
* Unused imports cleanup (folsom-2)Zhongyue Luo2012-06-031-1/+0
| | | | | | Fixes bug #1008023 Change-Id: Ifb8ecbb7430fdabd7b5d81ab23df66942abd9cb7
* Make use of openstack.common.jsonutils.Russell Bryant2012-05-151-1/+2
| | | | | | | | | 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
* Pass context to notification drivers when we can.Andrew Bogott2012-05-027-16/+22
| | | | | | | | | | | Note that previously several notification drivers created an admin context and embedded it in their messages. Those drivers now use the passed-in context instead if it's available. For blueprint novaplugins. Change-Id: Icb89030256022d0a68db4a147611fd37fe83316a
* Update common.importutils from openstack-common.Russell Bryant2012-05-021-1/+0
| | | | | | | | | 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
* Use openstack.common.importutils.Russell Bryant2012-04-282-5/+6
| | | | | | | | | | | | | | 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
* Improved localization testing.Yuriy Taraday2012-04-102-2/+2
| | | | | | Moved localization tests to tools/hacking.py. Change-Id: I903b90dfb09a46a72b1c64c30301f90661999f5b
* HACKING fixes, all but sqlalchemy.Yuriy Taraday2012-03-072-2/+4
| | | | | | | Looks like this fixes all HACKING problems that were around. Thanks to Dina Belova and Alexander Kovalev for this work. Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
* fix restructuredtext formatting in docstrings that show up in the developer ↵Doug Hellmann2012-03-051-18/+18
| | | | | | | | | | | | | | guide blueprint sphinx-doc-cleanup bug 945160 - Correct parameter declarations, list formatting, cross-references, etc. - We don't need "let" in generate_autodoc_index.sh since we aren't doing math. - Change conf.py to not prefix class and function names with full namespace in generated output to save width on the screen. Change-Id: I9adc8681951913fd291d03e7142146e9d46841df
* Only raw string literals should be used with _()Johannes Erdfelt2012-03-041-3/+3
| | | | | | | | | | Fix a number of places where formatted strings were used with _() (causing gettext to not match the string) or variables with _() (causing xgettext to not extract a string) Also, there's no value in internationalizing an empty string Change-Id: Iac7dbe46eeaa8ddf03c2a357ecd52f69aa8678aa
* Minor cleanup based on HACKINGJoe Gordon2012-03-011-2/+2
| | | | Change-Id: I59f02c33c3ecb0c446755a07562060a12f85e177
* Scheduler notifications added.Sandy Walsh2012-02-211-5/+10
| | | | | | | Re-added lost fake virt hypervisor info (required for local dev). Added multiple exchange topic support to RabbitNotifier. Change-Id: I33cc9076ee35061c21852cabba3275006fc87b86
* Standardize logging delaration and useJason Kölker2012-02-143-3/+3
| | | | | | * Make modules use getLogger(__name__) and log to the result Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
* Remove the last of the gflags shim layerMark McLoughlin2012-02-103-3/+3
| | | | | | | Make FLAGS a ConfigOpts instance and fix up all the places where we expected FlagValues behaviour. Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
* Backslash continuations (misc.)Zhongyue Luo2012-02-082-8/+6
| | | | | | | | | | | Fixes bug #925166 This patch for packages which have few backslash continuations. Follow up patches will be for packages network, scheduler, virt, db/sqlalchemy, tests, and api/openstack. Change-Id: I4200010b47b33fa8b9115b5d379b543200f6668d
* Move cfg to nova.openstack.commonMark McLoughlin2012-02-033-3/+3
| | | | | | | | | | | | | | | Move it here so that it can be kept in sync with openstack-common using the new update.py script for code in openstack-common's incubation area. See here for more details: http://wiki.openstack.org/CommonLibrary#Incubation Note: this commit just moves the existing code in Nova with no other changes. A subsequent commit will sync it with latest openstack-common so that it is easier see the new changes. Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8
* Refactor away the flags.DEFINE_* helpersMark McLoughlin2012-01-283-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | The next obvious step in porting to cfg is to define all options using cfg schemas directly rather than using the flags.DEFINE_* helpers. This is a large change, but it is almost entirely pure refactoring and does not result in any functional changes. The only change to note is that the default values for glance_host, glance_api_servers and default_publisher_id options are now using opt value interpolation i.e. -glance_host=_get_my_ip() +glance_host='$my_ip' -glance_api_servers=['%s:%d' % (FLAGS.glance_host, FLAGS.glance_port)] +glance_api_servers=['$glance_host:$glance_port'] -default_publisher_id=FLAGS.host +default_publisher_id='$host' Also note that the lower_bound check on the {report,periodic}_interval options are no more, but this has been true since cfg was first added. Change-Id: Ia58c8f0aaf61628bb55b1b8485118a2a9852ed17
* ComputeNode Capacity supportSandy Walsh2012-01-231-0/+81
| | | | | | | | | | | | | | | | | | The table represents the current state of compute nodes and will be used by the scheduler when selecting a host. Re: https://blueprints.launchpad.net/nova/+spec/scaling-zones This is just the db & notification portion of the branch. The scheduler portion is being deferring until comstuds branch gets merged since it conflicts heavily. NOTE: Compute notifications are now two-part. There is a compute.instance.XXX.start event and a compute.instance.XXX.end message instead of the previous compute.instance.XXX event (which is the same as the .end message) Change-Id: Ia8e68680cb0924c59df84f2eec858febf4926d65
* Remove a whole bunch of unused importsVishvananda Ishaya2012-01-131-3/+0
| | | | Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
* Create notification queues as durableJohannes Erdfelt2011-12-281-1/+1
| | | | | | | | | | Fixes bug lp901375 The notification system in Nova is built on top of nova.rpc. It uses a set of defaults for queues that isn't ideal for notification queues. This change makes the notification queue durable across restarts. Change-Id: I14c4d5da8d8af027b7d11631f3ac7707f2611a20
* More spelling fixes inside of novaJoe Gordon2011-11-091-1/+1
| | | | Change-Id: I79daf7519c99cc363ac7175c85912298f273da8a
* more logging info to help identify bad payloadsSandy Walsh2011-08-291-1/+2
|
* Merged from upstream.Tim Simpson2011-08-231-0/+27
|\
| * Fixed some docstringNachi Ueno2011-08-231-2/+5
| | | | | | | | Added default publisher_id flagw
| * Fixed typo and docstring and example class nameNachi Ueno2011-08-231-4/+3
| |
| * Added Test Code, doc string, and fixed pip-requireswNachi Ueno2011-08-221-0/+8
| |
| * Fixed NoneType returned bugwNachi Ueno2011-08-191-2/+1
| |
| * Added monkey patching notification code functionNachi Ueno2011-08-191-0/+18
| | | | | | | | w
* | Fixed some pep8 and pylint issues.Tim Simpson2011-08-231-3/+4
| |
* | Switched list_notifier to log an exception each time notify is called, for ↵Tim Simpson2011-08-231-2/+11
| | | | | | | | each notification driver that failed to import.
* | Changed list_notifier to call sys.exit if a notification driver could not be ↵Tim Simpson2011-08-221-11/+4
| | | | | | | | found.
* | Added ability to detect import errors in list_notifier if one or more ↵Tim Simpson2011-08-221-4/+19
| | | | | | | | drivers could not be loaded.
* | Added list_notifier, a driver for the notifer api which calls a list of ↵Tim Simpson2011-08-161-0/+50
|/ | | | other drivers.
* made the whole instance handling thing optionalSandy Walsh2011-07-291-1/+1
|
* added instance support to to_primitive and testsSandy Walsh2011-07-291-3/+1
|
* unicode instead of str()Sandy Walsh2011-07-281-1/+1
|
* make payload json serializableSandy Walsh2011-07-281-0/+6
|
* review fixesSandy Walsh2011-07-011-9/+5
|
* phew ... workingSandy Walsh2011-06-291-1/+4
|\
* | trunk mergeSandy Walsh2011-06-292-1/+29
|\|
| * remerged trunk Monsyne Dragon2011-06-283-4/+6
| |\
| * | Re-merging code for generating system-usages to get around bzr merge ↵Monsyne Dragon2011-06-281-0/+28
| | | | | | | | | | | | braindeadness.
* | | moved to wrap_exception decoratorSandy Walsh2011-06-281-26/+0
| | |
* | | refactoring to compute from schedulerSandy Walsh2011-06-281-0/+39
| |/ |/|
* | make all uses of utcnow use our testable utils.utcnowVishvananda Ishaya2011-06-021-4/+3
| |
* | Spacing changesCerberus2011-05-183-0/+3
|/