summaryrefslogtreecommitdiffstats
path: root/openstack
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Switch common files to using jsonutils.Andrew Bogott2012-07-037-19/+20
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For blueprint use-common-jsonutils Pretty much just a search and replace. Change-Id: I66f63e7b0ff82a37d8a6b9acef94f4e10a45bf90
* | | | | Fix up pre-versioning based on testing in glance.Monty Taylor2012-07-091-7/+15
| | | | | | | | | | | | | | | | | | | | Change-Id: I137fee43509f079cb4b2def452cf23b6705cdda5
* | | | | Add a new module for use in consuming versioninfo.Monty Taylor2012-07-081-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new tag-based versioning produces files that we can consume that tell us the versioning. That's all well and good, but what good is automatically generated versioning if there are no apis to consume it. This is derived from work to add those to nova and python-swiftclient. Change-Id: I91568ef28a9ed7e7365f66bca2294670df6e0c41
* | | | | Move get_context_from_function_and_args() to context.pyAndrew Bogott2012-07-033-21/+18
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Word on the street is that exception.py may soon be deprecated, and context.py is a better place anyway. (Also removed an import of utils.py because /it/ imports exception.py.) Change-Id: I856fc6f4558cc01ddca350ee4cfd4684db47475b
* | | | Merge "Fix missing RPCException from raise"Jenkins2012-07-021-1/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | Fix missing RPCException from raiseEric Windisch2012-06-281-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ia850b07d29459b760d24f9bffdd88e4176cb7faf
* | | | Merge "Pass in stream as positional argument to StreamHandler."Jenkins2012-07-021-1/+3
|\ \ \ \
| * | | | Pass in stream as positional argument to StreamHandler.Andrew Bogott2012-06-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Naming it works in python 2.7 but not in 2.6. Change-Id: I09cb0e707c428fcfb5d8e825d1acf17b00d84073
* | | | | Fix mailmap.Joe Gordon2012-06-281-1/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Mailmap was broken in 01cec1dcb1a0b8d6a0ba098f8e18ab3c0f7cabab Revert offending line only to get unit tests passing again. Change-Id: I33e8d5d3587b429d44ae60f34ca2f132ce233793
* | | | Split read_versioninfo into a method.Monty Taylor2012-06-261-4/+17
|/ / / | | | | | | | | | Change-Id: Iec1f9776b6e6fcccdc21b2e67754fff1da23458a
* | | Merge "Add common logging and notification."Jenkins2012-06-269-0/+866
|\ \ \ | |_|/ |/| |
| * | Add common logging and notification.Andrew Bogott2012-06-259-0/+866
| | | | | | | | | | | | | | | | | | This code is migrated from Nova, and will soon replace it. Change-Id: I2dacac3ef251d419c7049154f6aaf0c18fdb9bb4
* | | Merge "Add missing gettextutils imports"Jenkins2012-06-252-0/+2
|\ \ \
| * | | Add missing gettextutils importsDoug Hellmann2012-06-222-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a problem we found in the ceilometer test suite under Python 2.6. The name '_' is not defined globally, so nose reports import errors trying to scan the modules changed here. Change-Id: Ie94cc4effba457342e25f991cf481fc40a1d8cf3
* | | | Add support for tag based versioning.Monty Taylor2012-06-241-24/+96
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Versions driven by git. If the current revision is tagged, then that's the version cut. If not, for post-versioning, the current version is the tag plus an count of the revs since the tag. For pre-versioning, it's the logic that's in create-tarball.sh. Additionally, a versioninfo file is added to the tree so that pkg-resources can find out what the version is. Change-Id: I5991345735fa14666305538c556b519160b02b4b
* | | Merge "Skip argparse when injecting requirements."Jenkins2012-06-221-0/+5
|\ \ \ | |/ / |/| |
| * | Skip argparse when injecting requirements.Dan Prince2012-06-201-0/+5
| | | | | | | | | | | | | | | | | | Also adds some unit tests parse_requirements. Change-Id: I3d8625d4627c7933d73059a63f96e19f8d9647ab
* | | Avoid erroneous "Unsupported RPC Version" message if method is missingDan Smith2012-06-211-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The recent RPC versioning support introduced some odd behavior if a non- existent method is called. Instead of reporting that the method does not exist (as the code used to do, in the form of an AttributeError), it now Reports "Unsupported RPC Version". This is highly confusing, as the RPC versions *do* match and is just a result of the logic used to check every advertised RPC proxy for the method. This patch notes if any of the RPC versions matched the requested one, and if so, raises an AttributeError if the method is never found, instead of UnsupportedRpcVersion. Also add unit tests for the cases where a method is missing, both when the API version matches and not. Change-Id: Icb7b13fa890000f1bd03382d5cce747e3311ef6a
* | | Merge "Added dictify() and uuids to the common request context."Jenkins2012-06-211-1/+27
|\ \ \
| * | | Added dictify() and uuids to the common request context.Andrew Bogott2012-06-201-1/+27
| |/ / | | | | | | | | | | | | | | | | | | | | | This makes the common context similar enough to the nova context that we can use it for annotating logs like we do in nova. Change-Id: I622c76f2e3013e4ff5e8c228d197a55918672447
* / / Call exception on the logger, not the logging module.Russell Bryant2012-06-201-1/+1
|/ / | | | | | | Change-Id: Ia3cffe7473c59308f9dcbb40fccb8e2028e2aa96
* / Fix import usage in AMQP for rpc.commonJulien Danjou2012-06-201-1/+1
|/ | | | | | | | | | | The existing line is technically OK, but it's not replaced by update.py on file copy, therefore the import of common.rpc.amqp fails. This fixes this problem by using a different syntax, the one that update.py understand. Change-Id: Id30f581477ab09c2b66fc0d65f1029554b311549 Signed-off-by: Julien Danjou <julien@danjou.info>
* Merge "Fix nova.rpc references in comments."Jenkins2012-06-192-14/+18
|\
| * Fix nova.rpc references in comments.Russell Bryant2012-06-132-14/+18
| | | | | | | | | | | | | | | | Part of blueprint common-rpc. Strip remaining references to 'nova.rpc' that existed in comments. Change-Id: I27885918a5e38eb730504c9e88bdda2b72b23257
* | Merge "add import_object_ns function"Jenkins2012-06-181-0/+13
|\ \
| * | add import_object_ns functionSean Dague2012-06-141-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support bp:virt-driver-cleanup, there is a desire to have shorter driver strings (i.e. libvirt.LibvirtDriver instead of nova.virt.libvirt.LibvirtDriver). One way to support this is with a new import_object variant that takes a namespace to load from. If the code fails to load the driver in the prefered namespace it will also try loading the full driver path, before throwing an exception. Change-Id: Ib97c92f38685ca89f29890f8015fc413acc744f8
* | | Merge "rpc: Update rpc_backend handling."Jenkins2012-06-181-2/+8
|\ \ \ | | |/ | |/|
| * | rpc: Update rpc_backend handling.Russell Bryant2012-06-131-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of blueprint common-rpc. This patch updates the rpc_backend option handling in a couple of ways. 1) Set the default based on wherever this code has been copied to. 2) If we fail to import the backend, replace 'nova.rpc' with 'nova.openstack.common.rpc' just in case the value came from an older nova configuration file. Backwards compatibility is a good thing. Change-Id: I9ad7c084a2f0813ca1559115e7612f0a24fcce67
* | | Update common code to support pep 1.3.Gary Kotton2012-06-1814-247/+248
| | | | | | | | | | | | | | | | | | bug 1014216 Change-Id: I3f8fa2e11c9d3f3d34fb20f65ce886bb9c94463d
* | | Merge "Add missing ack to impl_qpid."Jenkins2012-06-151-1/+6
|\| |
| * | Add missing ack to impl_qpid.Russell Bryant2012-06-131-1/+6
| |/ | | | | | | | | | | | | | | | | | | | | Fix bug 1012374. Johannes Erdfelt pointed out that impl_qpid wasn't acking messages that it received. This turned out to be a nasty oversight, resulting in unbounded message queue growth inside of the python-qpid library. This fixes it. Change-Id: I446530239e16701009c4db8407a344596bb17952
* / Add autodoc generation to the build_sphinx commandMonty Taylor2012-06-141-0/+52
|/ | | | | | | | | | | | | The logic is pulled from the nova code, but has been abstracted from being nova specific. It allows us to duplicate less info, because we know a lot of the meta information in setup.py anyway. Once this is in, we'll get autodoc module information everywhere pretty much for free, and we can delete the doc/ext dir and the doc/*sh from nova. (thanks to bcwaldon for pushing things to be better) Change-Id: I4c55c370ea6c3790958b5412e21e3378f4474104
* Merge "Add impl_zmq to rpc."Jenkins2012-06-122-0/+718
|\
| * Add impl_zmq to rpc.Russell Bryant2012-06-112-0/+718
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of blueprint common-rpc. This driver just went into nova.rpc. Pull it in over here. I haven't been able to test this, but I can't get the tests to work in nova, either. There is a bit of a complication with impl_zmq worth mentioning. It requires a service to run (nova/bin/nova-rpc-zmq-receiver). Only once instance of this service should run on a given machine, so it shouldn't be copied into each project that uses rpc. Once openstack-common is an installed library, it can be distributed with that, but until then ... we'll just leave it in nova for now. Change-Id: I2bd067be58d943d4f3a90e013b22282217484872
* | Merge "Fix utcnow_ts to return UTC timestamp"Jenkins2012-06-121-1/+2
|\ \ | |/ |/|
| * Fix utcnow_ts to return UTC timestampZhongyue Luo2012-06-111-1/+2
| | | | | | | | | | | | | | | | Fixes bug #1011121 Use calendar.timegm instead of time.mktime Change-Id: Idb8d470f1ef90162641d21122699a026fa38faf1
* | Merge "Use 'is not None' instead of '!= None'"Jenkins2012-06-111-3/+3
|\ \ | |/ |/|
| * Use 'is not None' instead of '!= None'Johannes Erdfelt2012-06-081-3/+3
| | | | | | | | | | | | | | | | Fixes bug 1010570 pep8 suggests the former over the latter Change-Id: Ice3a3b1cc2eea9228fffb4ee40fc360ff79054a3
* | Make jsonutils.dumps more generalZhongyue Luo2012-06-081-2/+2
|/ | | | | | | | Fixes bug #1009848 Fixed jsonutils.dumps to receive other parameters Change-Id: I34836ae89359bccb689a36a7b486e85bb41d70e4
* Merge "Add nova time util functions to timeutils"Jenkins2012-06-081-0/+35
|\
| * Add nova time util functions to timeutilsZhongyue Luo2012-06-061-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1009410 1. Add the following functions from nova/utils.py - strtime - parse_strtime - is_older_than - utcnow_ts - advance_time_delta - advance_time_seconds 2. Write unittests in tests/unit/test_timeutils.py Change-Id: Ie0bba90833e2ed31bb5ab867a7c1a76a9901cacb
* | Merge "Add support to include config aliases"Jenkins2012-06-081-15/+56
|\ \
| * | Add support to include config aliasesJoe Gordon2012-06-061-15/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements blueprint config-aliases * Supports loading deprecated aliased options from a config file * Supports using deprecated aliased CLI options * For MultiStrOpt Can use mix of name and alias Change-Id: I04678880bc8ee1f85335f5656367bd1437245c6e
* | | Handle xmlrpclib.DateTime types when serializing to JSONJohannes Erdfelt2012-06-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1010124 Convert xmlrpclib.DateTime types to datetime so they can be serialized without creating an exception. Change-Id: Ifcab69ad81d39d7f4066df5c71c6ab6734fb1fab
* | | Merge "Add rpc to openstack-common."Jenkins2012-06-079-0/+3025
|\ \ \
| * | | Add rpc to openstack-common.Russell Bryant2012-06-069-0/+3025
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements blueprint common-rpc. This patch imports nova.rpc to openstack-common. All of the necessary changes to the core code to make it compatible with openstack-common have been done in nova, so the only changes made here are to imports. There are more changes made to the tests, but nothing that changes the core functionality of the tests. Change-Id: I17330aa4adfd0f22c449a2376833c7fe9dfd0cf1
* / / Adds support for bol and eol spaces to ini filesVishvananda Ishaya2012-06-061-1/+4
|/ / | | | | | | | | | | | | * Fixes bug 1009639 * Adds tests Change-Id: Id00563dfcc6f143c3e86ec380d66cffc967b8c48
* | Revert "Add a load function wrapper to jsonutils"Russell Bryant2012-06-061-8/+3
| | | | | | | | | | | | | | | | | | | | | | This reverts commit 72840edc736b7f4d2366b5049f6516d8f5b901ff. This change breaks kombu, so revert it since there is no specific need for it. Fixes bug 1009127. Change-Id: Id0ef8b3948b63d0151289cb7ce8e617d9816bb4b
* | Add gettext support.Russell Bryant2012-06-061-0/+33
|/ | | | | | | | | | This patch adds gettext support for openstack-common modules. In the process of pulling in the rpc code, I didn't want to remove the usage of _() that was already in there. This allows it to stay in a way that doesn't conflict with gettext usage in the project using openstack-common. Change-Id: I9cad006f81244f0cce7b7f28659fa1daa5a4268a
* Replace datetime.utcnow with timeutils.utcnowZhongyue Luo2012-06-051-1/+1
| | | | | | | | Fixes bug #1008064 Replaced datetime.utcnow usage with timeutils.utcnow Change-Id: I8bfdc1abefc3891497554335a3078d4028ef8ac9