summaryrefslogtreecommitdiffstats
path: root/nova/openstack
Commit message (Collapse)AuthorAgeFilesLines
* Sync to_primitive() IPAddress support from OsloDan Smith2013-06-271-0/+3
| | | | | | | | | | | | This enlightens to_primitive() that it may just call str() to serialize netaddr.IPAddress objects. We need this for NovaObject serialization through legacy interfaces temporarily while we migrate things. Related to blueprint unified-object-model Change-Id: Ibdee90e4bbd337d541344977e2a689982e0a7d34
* Merge "Remove the unused plugins framework"Jenkins2013-06-214-271/+0
|\
| * Remove the unused plugins frameworkMark McLoughlin2013-06-194-271/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | This framework was merged a year ago and AFAICT hasn't seen use beyond the two initial wikimedia extensions. The framework basically allows a way for a single plugin to register API extensions and notification drivers. Both of these can be done by directly using config opts like osapi_compute_extension and notification_driver so this framework really only helps if we expected to (and wanted to) lots of these plugins in the wild. Change-Id: I09a11f9931ee0436a56e8b0d925683b54f73b104
* | Sync oslo-incubator gettextutilsMatt Odden2013-06-191-0/+176
|/ | | | | | | | | This change brings in new functionality from gettextutils needed for supporting API message localization in Nova. bp user-locale-api Change-Id: Ia81f46bb980a237f345f6b8600dfe2a75e4b8c77
* Merge "Replace utils.to_bytes() with strutils.to_bytes()"Jenkins2013-06-191-12/+78
|\
| * Replace utils.to_bytes() with strutils.to_bytes()Zhongyue Luo2013-06-141-12/+78
| | | | | | | | | | | | | | The to_bytes() function have moved to oslo. Replaced/removed the to_bytes() function with the one in strutils Change-Id: I14c33c6fb86db3088c11e02ce6e38ec022fad042
* | Merge "Replace functions in utils with oslo.fileutils"Jenkins2013-06-151-0/+75
|\|
| * Replace functions in utils with oslo.fileutilsZhongyue Luo2013-06-111-0/+75
| | | | | | | | | | | | | | | | | | | | | | The following functions have moved to oslo. remove_path_on_error file_open delete_if_exists Replaced/removed overlapping functions with the ones in fileutils Change-Id: I41a19d76a777b6f899843bb0cc0582630accbd5c
* | Sync can_send_version() helper from oslo-incubator.Russell Bryant2013-06-121-0/+4
|/ | | | | | | This patch syncs a helper method added to the RpcProxy class from oslo-incubator. Change-Id: Ifd374245c15cef7af7487a19935193b590c1bd4e
* Enhance group handling in extract_optsJulien Danjou2013-06-102-0/+253
| | | | | | | | | | | | | | When there's 2 options with the same name, the script gets confused and doesn't know in which group it goes. This fixes it, and fixes also the template generation which is broken for various reasons: - gettext.install was missing - nova-rootwrap when imported calls exit() because it doesn't find a valid configuration file, so let's exclude it entirely anyway - eventlet/greendns needs to be ignored for this Change-Id: Iaa4e9a806e79032ce1675b46a6b7a7628c3eff89 Signed-off-by: Julien Danjou <julien@danjou.info>
* Rename unique constraints due to new convention.Victor Sergeyev2013-06-071-3/+4
| | | | | | | | | | | | | | | | | | | We have found that current constraint name convention allows us to create constraints with duplicate names. It happens if we add constraints in different tables with the same column names (for example, `name`, `deleted`). In this case we can not create new constraint in mysql due to database limitation (it requires constraint name to be unique within a database). To solve this issue unique constraint name convention has been changed from "uniq_c1_x_c2_x_c3" to "uniq_t0c10c20c3" where `t` is a table name and columns `c1`, `c2`, `c3` are in UniqueConstraint. Fixed unique constraints in models description. Synced db code from oslo (function `_raise_if_duplicate_entry_error()` modified respectively to new unique constraint name convention). blueprint db-enforce-unique-keys Fixes: bug 1182054 Change-Id: I4122dfb910a07a1a423781ebc22e9ce50596a05d
* Merge "Update rpc/impl_qpid.py from oslo"Jenkins2013-06-051-29/+82
|\
| * Update rpc/impl_qpid.py from osloAndrew Laski2013-06-051-29/+82
| | | | | | | | | | | | | | | | | | | | | | | | The current qpid driver cannot serialize objects containing strings longer than 65535 characters. This just became a breaking issue when the message to scheduler_run_instance went over that limit. The fix has been commited to oslo, so this just syncs it over to Nova. Bug 1175808 Bug 1187595 Change-Id: If95c11a7e03c81d89133f6cad0dcbb6d8acb8148
* | Improve Python 3.x compatibilityDirk Mueller2013-06-011-1/+1
|/ | | | | | | | | Mechanical translation of the deprecated except x,y: construct with except x as y: The latter works with any Python >= 2.6. Add Hacking check. Change-Id: I845829d97d379c1cd9b3a77e7e5786586f263b64
* Importing correlation_id middleware from oslo-incubatorAditi Raveesh2013-05-232-0/+29
| | | | | | | | | Including 'correlation_id' middleware from oslo-incubator. Adding this to openstack-common.conf to copy over the middleware to the location nova/openstack/common/middleware Change-Id: I21b27e8dae585345d03d59c125d9e1bbea95f830 Implements: blueprint cross-service-request-id
* Sync RPC serializer changes from OsloDan Smith2013-05-213-5/+113
| | | | | | | | | Pulls in the serializer object and changes to the dispatcher and proxy implementations to support it. Needed for bp/rpc-support-for-objects Change-Id: I349de94c80a183f244cbb10009b6922996cc4d82
* Sync latest RPC changes from osloChris Behrens2013-05-212-6/+21
| | | | | | | Pulls in capped version support and RPC_API_NAMESPACE support for RpcProxy. Change-Id: I8334ed62c0ffd16a05b35bbcd4d9352538ab0243
* Sync service and threadgroup modules from osloBrian Elliott2013-05-115-17/+465
| | | | | | blueprint use-oslo-services Change-Id: I8641dbed0a83a6d57c0b6c1a02796eb3e633fafd
* Merge "Sync rpc from oslo."Jenkins2013-05-164-6/+8
|\
| * Sync rpc from oslo.Russell Bryant2013-05-154-6/+8
| | | | | | | | | | | | | | | | Sync some trivial Python 3 compatibility and pep8 improvements from oslo. I just want to have this in sync so that pulling in a feature I'm working on comes in without unrelated changes Change-Id: I13fcb0bd538a153b90acf0b18497e335a64dc9d1
* | Merge "Remove openstack.common.version."Jenkins2013-05-151-94/+0
|\ \ | |/ |/|
| * Remove openstack.common.version.Monty Taylor2013-05-151-94/+0
| | | | | | | | Change-Id: Ieb9ac3c2ce85777a33a2e15640670d03b2e7d2b7
* | Merge "Use Oslo's `bool_from_string`"Jenkins2013-05-151-0/+150
|\ \ | |/ |/|
| * Use Oslo's `bool_from_string`Rick Harris2013-05-141-0/+150
| | | | | | | | | | | | | | Oslo provides an equivalent implmentation of `bool_from_str` so we should switch the code to use that instead. Change-Id: I382f23af2468e276ae4342dff18cf06e1c24b755
* | Hide lock_prefix argument using synchronized_with_prefix()Zhongyue Luo2013-05-141-0/+29
| | | | | | | | | | | | | | The lockfile module has a new convenience API which sets the lockfile prefix. Using this API, the prefix is not required everytime synchronized is used. Change-Id: Iac1cfcc83b59108164de924d20127c1cf4dd7dcd
* | Merge "Import new additions to oslo's processutils."Jenkins2013-05-131-0/+66
|\ \ | |/ |/|
| * Import new additions to oslo's processutils.Michael Still2013-05-081-0/+66
| | | | | | | | | | | | | | trycmd() and ssh_execute() have been moved into oslo. Copy the oslo version here. Conversion will occur in a later review. Change-Id: I69926af33ff824f712ae2b8e4023233afe1dff2f
* | Update rootwrap with code from oslo.Monty Taylor2013-05-091-0/+130
| | | | | | | | Change-Id: I30f1b8773840c098f1e38d09bf13f0863035289e
* | Transition from openstack.common.setup to pbr.Monty Taylor2013-05-071-369/+0
|/ | | | | | | | | | | Declarative approach to packaging, obviates the need for copying files. Also, removes the need for setup.py to import files from the nova module. ./run_tests.sh now ensure's that nova.egg-info/entry_points.txt is up to date before running tests. Change-Id: I7b7a18e065a62491ade54fbed5d8400db1d4e6c7
* Merge "Sync oslo-incubator print statement changes"Jenkins2013-05-072-7/+11
|\
| * Sync oslo-incubator print statement changesMatthew Sherborne2013-05-062-7/+11
| | | | | | | | | | | | | | | | | | Just changes openstack.common to use the new print statements. This is in preparation for another sync coming shortly for the scheduler library. Change-Id: I17a86ef87f3253d6bb756cbd40a3ff5df9be23ff
* | Merge "Convert to using oslo's execute() method."Jenkins2013-05-061-0/+6
|\ \
| * | Convert to using oslo's execute() method.Michael Still2013-05-041-0/+6
| |/ | | | | | | | | | | | | | | There are some small warts (mostly around other execute() like methods which reuse the exception). I will fix these warts in later reviews. Change-Id: Ice9cdbdc5f3e5a9f8365f5d99acf1863a9fe3e7a
* | Merge "Import latest log module from oslo"Jenkins2013-05-051-6/+11
|\ \ | |/ |/|
| * Import latest log module from osloAndrew Laski2013-05-031-20/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deprecates log_format in favor of the formatting options used by the context aware formatter, such as logging_default_format_string. Changes the default logging formatter back to a colorful and context aware formatter. The default was inadvertently changed in the great oslo sync at the start of Havana, this returns it to what was in at the end of Grizzly. Adds support for lazy instantiation of the logger. Bug 1167081 Bug 1165211 Change-Id: Ibe41afc6e9d7b432453785819821b3c8f0078613
* | Merge "Update our import of oslo's processutils."Jenkins2013-05-031-12/+52
|\ \
| * | Update our import of oslo's processutils.Michael Still2013-05-031-12/+52
| |/ | | | | | | | | | | | | I've just synced nova's processutils back to oslo and this is now the sync back in the other direction. Change-Id: I8389bdd85ed3dacbb02aec043dfd0f84ef07b18b
* / Update oslo-incubator import.Michael Still2013-05-034-22/+90
|/ | | | | | | These are all minor changes bringing nova up to commit 90e83530d4dc49d570fa05ea63a93805717dcfa0 in oslo-incubator. Change-Id: I0291eed31b1e650da211fe2a8b65fad0c35c9053
* Merge "Sync small and safe changes from oslo"Jenkins2013-05-0113-19/+20
|\
| * Sync small and safe changes from osloMatthew Sherborne2013-05-0113-19/+20
| | | | | | | | | | | | | | Ran the oslo-incubator sync script and brought across only the files that have small and safe changes. Change-Id: I41b400c189e52a2e7f642a03ad143d821aaa807c
* | Merge "Sync jsonutils from oslo"Jenkins2013-05-011-16/+42
|\ \
| * | Sync jsonutils from osloStanislaw Pitucha2013-05-011-16/+42
| |/ | | | | | | | | | | | | | | This is a sync of commit 9dcf688ea80f52cdb5413514198b2aa81d5a4e09 from the oslo-incubator project. It should improve the serialisation performance in general and tests runtime specifically. Change-Id: I6b0e7baeb24951ce3c0bc129d20c65daa0d8fa61
* / Import oslo periodic tasks support.Michael Still2013-05-011-0/+187
|/ | | | | | | I'll move nova across to this in the next review, I just want to make the import clearly separate. Change-Id: I4eefd9c73d443afcd0697ff5ddd59abf315b10e5
* Update NovaBase model per changes on oslo.db.sqlalchemyZhongyue Luo2013-04-272-35/+65
| | | | | | | | | | | Fixed NovaBase to inherit from models.TimestampMixin Added metadata attribute Added db.sqlalchemy to openstack-common.conf Oslo sync command: python update.py --modules db.sqlalchemy --base nova --dest-dir ../nova Change-Id: Ie4ad8e8b235e146ddb946cdf7f15d74e060ee4a3
* Merge "Import and convert to oslo loopingcall."Jenkins2013-04-241-0/+147
|\
| * Import and convert to oslo loopingcall.Michael Still2013-04-161-0/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Import the oslo looping call implementation (which is a copy of nova's), delete nova's local copy, convert all users to the new location. It should be noted that the oslo implementation of FixedIntervalLoopingCall measures time from the start of the periodic task, not the end, so periodic tasks will run with a constant frequency instead of the frequency changing depending on how long the periodic task takes to run. Change-Id: Ia62ce1988f5373c09146efa6b3b1d1dc094d50c4
* | Merge "Update the log module from oslo-incubator"Jenkins2013-04-231-6/+3
|\ \
| * | Update the log module from oslo-incubatorMichael Kerrin2013-04-181-6/+3
| |/ | | | | | | | | | | | | | | | | | | Contains fix to stop the logger system from logging events twice. Also includes PID in default logging_context_format_string Fixes bug: 1170049 Change-Id: I007786604138c41fbcf1127c01339132c56a6aab
* | Merge "Sync rpc from oslo-incubator."Jenkins2013-04-209-16/+233
|\ \ | |/ |/|
| * Sync rpc from oslo-incubator.Russell Bryant2013-04-149-16/+233
| | | | | | | | | | | | | | This includes rpc api namespace support, some minor configuration related fixes, and the redis based matchmaker for use with impl_zmq. Change-Id: I9fc826a498461417afe8b2a923edac8d68c2c18f