summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge "Fix import order."Jenkins2012-07-111-1/+1
|\ \ \ \ \
| * | | | | Fix import order.Russell Bryant2012-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix import order in rpc.common. They must be alphabetical. Nova tests for this and caught it when i synced in the latest changes. Change-Id: I0dbd6b5004d754d0bd2d1861905db3405c64e3d4
* | | | | | Merge "Improve exception from importutils.import_class()."Jenkins2012-07-111-1/+3
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Improve exception from importutils.import_class().Russell Bryant2012-06-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ImportError raised by import_class() attempted to tell you what the original error was by just doing str() on the original exception. Sometimes that's helpful, but sometimes a full traceback is needed. This patch includes a traceback for debugging purposes. Change-Id: I00cefb9ebf9d6a71ef491204d81765e30e7941f6
* | | | | | Merge "Add common plugin framework."Jenkins2012-07-117-0/+531
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | Add common plugin framework.Andrew Bogott2012-07-087-0/+531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For blueprint novaplugins. It turns out that most of the plugin framework applies equally well to other projects, so it's going into Nova via common so that other projects can pull it in with a minimum of fuss. Change-Id: Ia4455a8ca0b8c1c3e4b0b9647e8cacaf0a47c914
* | | | | | Rework the version consumer functionality.Monty Taylor2012-07-111-80/+123
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved the version routines into a class for better structure. Added caching/memoization logic so that pkg_resources/git doesn't get called more than is necessary. Added periodic-based caching that will only cause the meta info refs to be checked at most once a day, to reduce network load for developers. (The information in the meta refs should really only change once a month, and this will only affect local developer workstation version reporting, so we should be fine here. Added a deferred version string class and function to allow for consuming of the version string but doing the calculation only when it is requested, based on test runs in glance. Change-Id: I6a436c8817f6904959727a76d876b807ec545ee9
* | | | | Fix Zmq so it doesn't rely on nova flagsJason Kölker2012-07-102-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Embeded newlines in logging makes me cry * String formatting uses parens not curly braces * Fix LP1023039 * Hard skip Zmq tests so jenkins passes. Someone will have to fix. Change-Id: I9b12ac47b02edf1d8dba7236550deb8ee33f5e07
* | | | | Merge "Switch common files to using jsonutils."Jenkins2012-07-1012-57/+59
|\ \ \ \ \
| * | | | | Switch common files to using jsonutils.Andrew Bogott2012-07-0312-57/+59
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For blueprint use-common-jsonutils Pretty much just a search and replace. Change-Id: I66f63e7b0ff82a37d8a6b9acef94f4e10a45bf90
* | | | | Merge "Enable sitepackages in tox."Jenkins2012-07-101-0/+1
|\ \ \ \ \
| * | | | | Enable sitepackages in tox.Joe Gordon2012-06-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables support for testing qpid (not available in pip) Change-Id: I36bc0398ed8e8377dfc8af10ae0981e117a3ec20
* | | | | | Merge "Fix up pre-versioning based on testing in glance."Jenkins2012-07-091-7/+15
|\ \ \ \ \ \
| * | | | | | Fix up pre-versioning based on testing in glance.Monty Taylor2012-07-091-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I137fee43509f079cb4b2def452cf23b6705cdda5
* | | | | | | Merge "Update strings like 'openstack.common.notifier.driver'."Jenkins2012-07-091-0/+8
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Update strings like 'openstack.common.notifier.driver'.Andrew Bogott2012-06-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was running into trouble with driver names that were generically named in common but need to point to specific objects within nova. Change-Id: Ie75761c73a855b067b1bcec651a1bb998deba9f4
* | | | | | | 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
* | | | | | | Merge "Move get_context_from_function_and_args() to context.py"Jenkins2012-07-063-21/+18
|\ \ \ \ \ \ \
| * | | | | | | 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 "Add update.sh to avoid import conflicts"Jenkins2012-07-062-10/+17
|\ \ \ \ \ \ \
| * | | | | | | Add update.sh to avoid import conflictsMark McLoughlin2012-06-292-10/+17
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempts to fix #951197 The openstack nose plugin defines the openstack.common namespace which can result in exceptions when update.py attempts to import cfg. Avoid the issue by using an update.sh script which creates a no-site-packages virtualenv. Change-Id: I1ec5cf49361303b79306714122b860f6e4912215
* | | | | | | Fix up openstack-common build.Monty Taylor2012-07-026-20/+119
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ironically enough, even though the code to manage this is in openstack-common, openstack-common wasn't using it. This patch fixes doc generation, as well as setuptools-git integration and versioning. Change-Id: Ifb74ad539832d8cec4a536a96221eea8fb7527d2
* | | | | | 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-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