summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Add common logging and notification."Jenkins2012-06-2613-0/+1419
|\ \ \ | |_|/ |/| |
| * | Add common logging and notification.Andrew Bogott2012-06-2513-0/+1419
| | | | | | | | | | | | | | | | | | 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
* | | | Merge "Update tox.ini."Jenkins2012-06-251-26/+12
|\ \ \ \
| * | | | Update tox.ini.Clark Boylan2012-06-251-26/+12
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | The contents of tox.ini were out of date. Update them in preparation for Jenkins check and gate tests. Change-Id: I7b6e33b118e0bdab492560c8e36d50c5f7c2c10b
* / | | 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-222-8/+53
|\ \ \
| * | | Skip argparse when injecting requirements.Dan Prince2012-06-202-8/+53
| | | | | | | | | | | | | | | | | | | | | | | | Also adds some unit tests parse_requirements. Change-Id: I3d8625d4627c7933d73059a63f96e19f8d9647ab
* | | | Merge "Adds HACKING.rst to the tarball."Jenkins2012-06-221-0/+1
|\ \ \ \ | |_|/ / |/| | |
| * | | Adds HACKING.rst to the tarball.Dan Prince2012-06-201-0/+1
| |/ / | | | | | | | | | Change-Id: I4fee5c9212bada3288a41bd27af1b4ae1cbdadac
* | | Avoid erroneous "Unsupported RPC Version" message if method is missingDan Smith2012-06-212-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Merge "Call exception on the logger, not the logging module."Jenkins2012-06-211-1/+1
|\ \ \ \ | |/ / / |/| | |
| * | | Call exception on the logger, not the logging module.Russell Bryant2012-06-201-1/+1
| |/ / | | | | | | | | | Change-Id: Ia3cffe7473c59308f9dcbb40fccb8e2028e2aa96
* / / Added a base class for unit tests.Andrew Bogott2012-06-201-0/+56
|/ / | | | | | | | | | | | | | | | | This provides some basic cfg and subout infrastructure for tests. It's similar to the test base used in other OpenStack projects, so having it here should make migrating tests to common somewhat easier. Change-Id: I90775bf99313e7dd16929059132ee058287b3585
* / 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-193-21/+25
|\
| * Fix nova.rpc references in comments.Russell Bryant2012-06-133-21/+25
| | | | | | | | | | | | | | | | 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-182-0/+56
|\ \
| * | add import_object_ns functionSean Dague2012-06-142-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-182-2/+33
|\ \ \ | | |/ | |/|
| * | rpc: Update rpc_backend handling.Russell Bryant2012-06-132-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1828-439/+468
| | | | | | | | | | | | | | | | | | bug 1014216 Change-Id: I3f8fa2e11c9d3f3d34fb20f65ce886bb9c94463d
* | | Merge "Add missing ack to impl_qpid."Jenkins2012-06-152-1/+10
|\| |
| * | Add missing ack to impl_qpid.Russell Bryant2012-06-132-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 more realistic unit tests for importutils"Jenkins2012-06-142-0/+45
|\ \ | |/ |/|
| * add more realistic unit tests for importutilsSean Dague2012-06-122-0/+45
| | | | | | | | | | | | | | Add realistic tests including objects with and without args to importutils. Change-Id: If23db5ef80cdfa4be95e95b90e647ac2455fffc8
* | Merge "Get update.py to be able to copy rpc."Jenkins2012-06-121-1/+11
|\ \
| * | Get update.py to be able to copy rpc.Russell Bryant2012-06-111-1/+11
| | | | | | | | | | | | | | | | | | Part of blueprint common-rpc. Change-Id: I634bf7b0ce85900a34c9b5a4a295f1d806458bbf
* | | Merge "Add impl_zmq to rpc."Jenkins2012-06-123-0/+850
|\| |
| * | Add impl_zmq to rpc.Russell Bryant2012-06-113-0/+850
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-122-2/+6
|\ \ | |/ |/|
| * Fix utcnow_ts to return UTC timestampZhongyue Luo2012-06-112-2/+6
| | | | | | | | | | | | | | | | 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-082-10/+89
|\
| * Add nova time util functions to timeutilsZhongyue Luo2012-06-062-10/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-082-16/+200
|\ \
| * | Add support to include config aliasesJoe Gordon2012-06-062-16/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-072-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1010124 Convert xmlrpclib.DateTime types to datetime so they can be serialized without creating an exception. Change-Id: Ifcab69ad81d39d7f4066df5c71c6ab6734fb1fab
* | | Fix RPC tests to not use assertInJason Kölker2012-06-071-2/+2
| | | | | | | | | | | | | | | | | | * Fixes Bug #1010244 Change-Id: Idac365a1719c49846ef105b90683e631310fbf6c
* | | Merge "Fix a pep8 error."Jenkins2012-06-071-0/+1
|\ \ \
| * | | Fix a pep8 error.Russell Bryant2012-06-061-0/+1
| | | | | | | | | | | | | | | | Change-Id: Iab7e703254a354764a5667425ef887b0afc89115
* | | | Merge "Add rpc to openstack-common."Jenkins2012-06-0720-0/+4716
|\ \ \ \ | |/ / / |/| | |
| * | | Add rpc to openstack-common.Russell Bryant2012-06-0620-0/+4716
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Adds support for bol and eol spaces to ini files"Jenkins2012-06-062-1/+13
|\ \ \