summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge "Use print_function __future__ import"Jenkins2013-04-223-0/+7
|\ \ \
| * | | Use print_function __future__ importMark McLoughlin2013-04-223-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than continuing to use the old print statement, use the actual print function introduced in python 2.6. See: http://docs.python.org/2/whatsnew/2.6.html#pep-3105-print-as-a-function Change-Id: I059d982d60e13f13e1caf49509c0fe0b18eda723
* | | | Merge "Improve Python 3.x compatibility"Jenkins2013-04-2217-31/+31
|\| | | | |/ / |/| |
| * | Improve Python 3.x compatibilityDirk Mueller2013-04-2217-31/+31
| | | | | | | | | | | | | | | | | | | | | Mechanical translation of deprecated constructs to 3.x compatible variants. Change-Id: I4988d0ac656903e0d0320aaa8361d4eeb774a0f9
* | | Merge "Move wsgi.Service socket creation into the constructor."Jenkins2013-04-222-6/+5
|\ \ \ | |/ / |/| |
| * | Move wsgi.Service socket creation into the constructor.Kiall Mac Innes2013-03-172-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | This allows wsgi.Service to be used with service.ProcessLauncher Fixes Bug #1156182 Change-Id: I71714d243c8a1b90c7bc1006ca2ad1e8c4b30e57
* | | Removes metadata from ModelBaseZhongyue Luo2013-04-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Next step is adding metadata to nova.db.sqlalchemy.models.NovaBase Fixes bug #1119699 Change-Id: I306a061e0b17660f612a111067ac618342f4ee99
* | | Merge "Removes created_at, updated_at from ModelBase"Jenkins2013-04-202-2/+27
|\ \ \
| * | | Removes created_at, updated_at from ModelBaseZhongyue Luo2013-04-112-2/+27
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Created a 'TimestampMixin' class. Next step is to update Nova which is the only project using oslo.db Fixes bug #1119702 Change-Id: I1ffcc09a2971e6e6102da7ecb855a2837a159baf
* | | Merge "Replaces standard logging with common logging"Jenkins2013-04-206-8/+14
|\ \ \
| * | | Replaces standard logging with common loggingZhongyue Luo2013-04-096-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I0ad12d7e6e623657c40659aca4148439cd03d3fa
* | | | Merge "Replaces the standard uuid with common in the context module"Jenkins2013-04-201-2/+3
|\ \ \ \
| * | | | Replaces the standard uuid with common in the context moduleZhongyue Luo2013-04-091-2/+3
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Common modules can now safely import other common modules since update.py will automatically install dependencies. Change-Id: I9fca5959581ae4f4ab3da20caabbe9c0d53247b6
* | | | Merge "Incorrect logging setup - duplicating root handlers"Jenkins2013-04-151-3/+0
|\ \ \ \
| * | | | Incorrect logging setup - duplicating root handlersMichael Kerrin2013-04-091-3/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stop adding the log handlers from the root logger to the logger specified via the default_log_levels configuration setting. If the handler should dispatch a event then it will do it once for the specified logger and once for root logger thus duplicating the event. Change-Id: I1a7880322ff53cbdf8048e1d805511ca76929ee3
* | | | Merge "Add rpc method namespace support."Jenkins2013-04-147-20/+91
|\ \ \ \
| * | | | Add rpc method namespace support.Russell Bryant2013-04-127-20/+91
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RPC endpoints already had the ability to expose multiple APIs ... sort of. You could pass multiple callback objects to the dispatcher and it would check all of them for a method call. This patch adds the ability to set a namespace on a callback object. This makes exposing multiple APIs a bit more like you would expect it to work. You can invoke a method on a specific callback object, as opposed to having it check all of them for the method. This will allow you to create, manage, and version APIs without any potential conflicts with other APIs being exposed by the same endpoint. An example of where I would like to use this is in Nova, where we have some methods that we would like to expose on *all* rpc endpoints. This includes no public API changes and is fully backwards compatible. Implement blueprint rpc-multi-api. Change-Id: Ief4433e2e1c32cfb05b4cd27b87fe32b40f4341d
* / | | Fixes private functions privateZhongyue Luo2013-04-101-21/+21
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed functions below to private APIs. raise_if_duplicate_entry_error() raise_if_deadlock_error() wrap_db_error() synchronous_switch_listener() add_regexp_listener() greenthread_yield() ping_listener() is_db_connection_error() patch_mysqldb_with_stacktrace_comments() Fixes bug #1119709 Change-Id: I61f700cdbae0126a8b89f6895e4332d695191dd0
* / / Optimise to_primitive common casesStanislaw Pitucha2013-04-091-16/+42
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | to_primitive included many checks that were executed before any usual types have been checked. It's safe to reorder / duplicate the most common ones. Especially built-in types can be checked before other more complicated scenarios. This is important since to_primitive gets called over a million times in usual test run and many more times in a live environment. This change strips around 4% of nova testing time on my machine and the function itself is ~5x faster on average according to the profiler. Change-Id: I71e0c06bbcc31793a1cdcebb36d4e3d8c5876f73
* | Merge "Finds dependencies of configured modules for update.py"Jenkins2013-04-091-1/+47
|\ \
| * | Finds dependencies of configured modules for update.pyZhongyue Luo2013-04-081-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | Looks up import lines in the configures modules and finds dependencies. Did not load modules since it seemed as an overkill Fixes bug #963509 Change-Id: I690cdf6fb149bbe243add3a35b96f6045ebe10f4
* | | Merge "Import nova's looping call."Jenkins2013-04-083-11/+63
|\ \ \
| * | | Import nova's looping call.Michael Still2013-04-083-11/+63
| |/ / | | | | | | | | | | | | | | | | | | | | | The looping call implementation had drifted in nova away from what was in oslo. Update olso. I will move nova over to this code in a later review. Change-Id: I0e9214a150223dcd4fb1d695db36961bba794166
* | | Merge "Move bin/ scripts to entrypoints."Jenkins2013-04-085-15/+6
|\ \ \ | |/ / |/| |
| * | Move bin/ scripts to entrypoints.Monty Taylor2013-04-075-15/+6
| | | | | | | | | | | | | | | | | | | | | Instead of propogating more bin scripts, migrate these to be things that can be consumed as entrypoints. Change-Id: Ic01e0f16fe9e7634708fbb51499ccea3f4f40d63
* | | Merge "Support overriding oslo localedir too"Jenkins2013-04-041-3/+3
|\ \ \
| * | | Support overriding oslo localedir tooMark McLoughlin2013-04-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of fixing bug #995287 Libraries need to translate strings according to their translation domain but they should not override the default _() builtin (which should only be installed by the top-level script) and instead should gettextutils._(). To support the case where message catalogs are installed in a non-default (and perhaps project-specific) location, we allow the default localedir to be override with a project-specific environment variable e.g. QUANTUMCLIENT_LOCALEDIR. The code makes it seem like OSLO_LOCALEDIR is the env variable we're adding but, in fact, update.py magically replaces 'oslo' with the project name. Change-Id: I62b66892a4e27892ee488d2884ffd2f40ab467ee
* | | | Merge "Add a gettextutils.install() helper function"Jenkins2013-04-042-2/+33
|\| | |
| * | | Add a gettextutils.install() helper functionMark McLoughlin2013-04-032-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of fixing bug #995287 Every top-level script in every project needs to call gettext.install() so that a _() builtin function is installed and strings are translated using the correct translation domain. However, translations are always installed in the default localedir (which is commonly '/usr/share/locale') and, in cases like devstack, may be found in a project-specific localedir. To support such a use case we should have project-specific environment variables for overriding the default value of localedir - e.g. NOVA_LOCALEDIR. Add a new gettextutils.install() helper method to make this as easy as possible for projects to get right. Change-Id: I6c8549c8ff00797c96f2dd4b0b5266d18d77aa19
* | | | Copy recent changes in periodic tasks from nova.Michael Still2013-04-042-27/+276
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | The nova periodic task code has moved on. Bring oslo inline with the new code. The next step after this is to update Quantum (the only user of this code I can find) to the new interface, and then move nova across to using this code. Change-Id: I3f041ca9a6ba9f0e5be4b29198d16454c9797fef
* | | Merge "Fix IBM copyright strings"Jenkins2013-04-034-4/+4
|\ \ \
| * | | Fix IBM copyright stringsKurt Taylor2013-04-024-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Update IBM copyright strings to one consistant format Change-Id: I838321f9126d78818bae9ba0c79615b5f2d71226
* | | | Merge "Add PathFilter to rootwrap."Jenkins2013-04-032-0/+165
|\ \ \ \
| * | | | Add PathFilter to rootwrap.Roman Podolyaka2013-04-012-0/+165
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PathFilter is a type of filter that allows to check if path arguments of a command resolve to file system paths within given directories. Fixes bug 1098568. Change-Id: Ie2686ad2ff114075c6d8d804031b6e3fa60a43ca
* | | | Merge "rpc: fix positional args in remote exceptions"Jenkins2013-04-022-3/+24
|\ \ \ \ | |_|/ / |/| | |
| * | | rpc: fix positional args in remote exceptionsKiall Mac Innes2013-03-312-3/+24
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1160475. Positional arguments were dropped during the deserialization of valid remote exceptions, while keyword arguments are correctly supplied. Change-Id: I7b95fc4ed3fb9e5c75f5711ed6aace7aa5593727
* / / Fix the co-authored-by processing.Monty Taylor2013-04-022-3/+3
|/ / | | | | | | | | | | | | One of the problems with fakes is that sometimes you can fake away a bug and have happily passing tests and broken code. Change-Id: Ib544739699b63d3f5e80edc16e19377d45782334
* | Merge "Change qpid_port to IntOpt"Jenkins2013-03-291-2/+2
|\ \
| * | Change qpid_port to IntOptAaron Rosen2013-03-281-2/+2
| | | | | | | | | | | | | | | | | | Fixes bug 1161679 Change-Id: I4b64fccbb7871dfab4fb74534514aa269c31f03d
* | | Fix test_write_git_changelogAlessio Ababilov2013-03-281-8/+11
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test changes current directory to a temporary one and ChangeLog file is created here. That's why the file doesn't reside in project's root directory. The correct behavior is to look for ChangeLog at cwd as is done in test_generate_authors for AUTHORS file. Use openstack.common.setup.__file__ to determine the root directory of openstack package. Change-Id: Ic7c9b01485a08b8921c88ac624e0aecd9409fa7c Fixes: bug #1161362
* | Mark sql_connection with secret flagMichael J Fork2013-03-271-1/+2
| | | | | | | | | | | | | | | | | | sql_connection contains the password in some setups and marking as secret prevents accidental logging fixes bug 1160680 Change-Id: Ib2d00219ea40a010c62e6a29045309f030e6de28
* | Merge "Include PID in default logging_context_format_string"Jenkins2013-03-261-3/+3
|\ \
| * | Include PID in default logging_context_format_stringKiall Mac Innes2013-03-171-3/+3
| |/ | | | | | | Change-Id: I1d0458ecb1314c941d8c72a54c76f9e554ef4348
* | Merge "gettextutils: fix translation domain"Jenkins2013-03-261-1/+1
|\ \
| * | gettextutils: fix translation domainMark McLoughlin2013-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1076285 When oslo-incubator code gets copied into a project, the project's l10n infrastructure will extract translatable messages from the oslo code into the project's message catalog. Translations of those messages will not be found if we use 'openstack.common' as the translation domain. Instead, use 'oslo' as the translation domain and update.py will change this to the project name. Change-Id: I7ab46c4f860c9c307758ab63002ae410e4f975fe
* | | Merge "Remove deprecated Grizzly features"Jenkins2013-03-263-35/+2
|\ \ \
| * | | Remove deprecated Grizzly featuresJoe Gordon2013-03-253-35/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that Havana has started, remove deprecated Grizzly features * deprecated alias list_notifier_drivers (for notification_driver) * openstack/common/notifier/rabbit_notifier.py (use rpc_notifier instead) Change-Id: I0dbb997ba774f58766bddf950049ec1e2d5b79de
* | | | Merge "Fix default values for Matchmaker IntOpts"Jenkins2013-03-261-2/+2
|\ \ \ \
| * | | | Fix default values for Matchmaker IntOptsJoe Gordon2013-03-251-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following should use ints not strings. * matchmaker_heartbeat_freq * matchmaker_heartbeat_ttl Fix bug 1159889 Change-Id: If2ce034d2a9876dbe6b232a1f5d73367d29074b0
* | | | Merge "Update to use flake8."Jenkins2013-03-2615-122/+141
|\ \ \ \ | |/ / / |/| | |