| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
| |
I only just moved logging from nova to common, so behavior should remain the same.
Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
|
| |
|
|
|
|
|
|
| |
Final patch for blueprint common-rpc.
This patch removes nova.rpc in favor of the copy in openstack-common.
Change-Id: I9c2f6bdbe8cd0c44417f75284131dbf3c126d1dd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Fixes bug #1008023
Change-Id: Ifb8ecbb7430fdabd7b5d81ab23df66942abd9cb7
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
| |
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 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
|
| |
|
|
|
|
| |
Moved localization tests to tools/hacking.py.
Change-Id: I903b90dfb09a46a72b1c64c30301f90661999f5b
|
| |
|
|
|
|
|
| |
Looks like this fixes all HACKING problems that were around.
Thanks to Dina Belova and Alexander Kovalev for this work.
Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I59f02c33c3ecb0c446755a07562060a12f85e177
|
| |
|
|
|
|
|
| |
Re-added lost fake virt hypervisor info (required for local dev).
Added multiple exchange topic support to RabbitNotifier.
Change-Id: I33cc9076ee35061c21852cabba3275006fc87b86
|
| |
|
|
|
|
| |
* Make modules use getLogger(__name__) and log to the result
Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
|
| |
|
|
|
|
|
| |
Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.
Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
|
| |
|
|
|
|
|
|
|
|
|
| |
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 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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Change-Id: I79daf7519c99cc363ac7175c85912298f273da8a
|
| | |
|
| |\ |
|
| | |
| |
| |
| | |
Added default publisher_id flagw
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
w
|
| | | |
|
| | |
| |
| |
| | |
each notification driver that failed to import.
|
| | |
| |
| |
| | |
found.
|
| | |
| |
| |
| | |
drivers could not be loaded.
|
| |/
|
|
| |
other drivers.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| |\| |
|
| | |\ |
|
| | | |
| | |
| | |
| | | |
braindeadness.
|
| | | | |
|
| | |/
|/| |
|
| | | |
|
| |/ |
|