summaryrefslogtreecommitdiffstats
path: root/nova
Commit message (Collapse)AuthorAgeFilesLines
* Initialize RPC machinery with our topic nameshared-key-msgSimo Sorce2013-07-021-2/+8
| | | | This is used by RPC code to use Secure Messages
* Merge "Fixes for quota_sets v3 extension"Jenkins2013-07-022-95/+41
|\
| * Fixes for quota_sets v3 extensionChris Yeoh2013-06-272-95/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various fixes for the quota_sets v3 extension: * Removes reference to ext_mgr as this is a v2 concept and causes the extension to fail to load * Merges os-extended-quotas extension which was just used as a switch by it being loaded or not and didn't contain any content itself. The extension presumes the functionality is always enabled. This means that the force paramter must now always be passed if the client wants to set the new quota lower than what is already used and reserved * Updates test suite and consolidates tests given extended quotas is no longer a separate extension Partially implements blueprint nova-v3-api Change-Id: I868636b526a5990f96e63168d50c2d894ed33d52
* | Merge "Break out Compute Manager unit tests"Jenkins2013-07-022-485/+524
|\ \
| * | Break out Compute Manager unit testsChris Behrens2013-07-012-485/+524
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we convert things to objects, it'll be easier to convert our compute Manager tests to be true unit tests if they are in their own class. There are currently a handful of tests that are true unit tests and require no DB access. These are now moved, subclassing from test.NoDBTestCase. Related to blueprint unified-object-model Change-Id: I5e7ca3a94c32fff268e8b329f165198c873756e1
* | | Merge "Break out compute API unit tests"Jenkins2013-07-022-119/+214
|\| |
| * | Break out compute API unit testsChris Behrens2013-07-012-119/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we convert things to objects, it'll be easier to convert our compute API tests to be true unit tests if they are in their own class. This also allows us to move away from the hacks needed to simulate 2 DBs in order to test ComputeCellsAPI(). There are currently a handful of tests that are true unit tests and require no DB access. These are now moved, subclassing from test.NoDBTestCase. Related to blueprint unified-object-model Change-Id: I72f4f6ada8d0586e813e551a1b361bcebb16ee66
* | | Merge "xenapi: Remove vestigial `compile_metrics` code"Jenkins2013-07-022-118/+0
|\ \ \
| * | | xenapi: Remove vestigial `compile_metrics` codeRick Harris2013-06-272-118/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `compile_metrics` is no longer called as it was superceded by: https://github.com/openstack/nova/commit/8887f10c66bca248f289db8f834ae8f36f9a03a1 Fixes bug 1194990 Change-Id: Ia651ac69fc38ed3f5cb29562556f7065caba225a
* | | | Merge "Session cleanup for db.security_group_* methods"Jenkins2013-07-011-63/+79
|\ \ \ \
| * | | | Session cleanup for db.security_group_* methodsRoman Bogorodskiy2013-06-281-63/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove session parameter from: security_group_get security_group_get_by_name security_group_create security_group_update security_group_ensure_default security_group_count_by_project left as is as it involves quota changes and will be done separately with other _count_by_project functions. Convert security_group_destroy to use model_query() instead of session.query(). blueprint db-session-cleanup Change-Id: I31e8333f67cf900b6f4aa6c5b967a9a6fb71147e
* | | | | Merge "Skip security group code when there is no network."Jenkins2013-07-012-0/+18
|\ \ \ \ \
| * | | | | Skip security group code when there is no network.Brent Eagles2013-06-252-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a simple check to the nova/quantum API that immediately returns an empty list if there are no configured networks available. Fixes bug 1191044 Change-Id: I34ac4dd56c71f99c7ed9ff632d6dc7036d91008d
* | | | | | Merge "Handle UnexpectedTaskState and InstanceNotFound exceptions"Jenkins2013-07-012-43/+80
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Handle UnexpectedTaskState and InstanceNotFound exceptionssridevik2013-07-012-43/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UnexpectedTaskState and InstanceNotFound are thrown when a delete of the instance happens before the ongoing action is completed. These are to be handled gracefully. These exceptions have to be logged and not reraised, as they are false alarms. Fixes: bug #1186447 Change-Id: I0647935c4452d4294f49a4c0d08e480584ebec7c
* | | | | | Imported Translations from TransifexOpenStack Jenkins2013-07-0141-11927/+13101
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I1d55e980a6fd10dedd832616850d12423776c7a6
* | | | | | Merge "Add resume state on host boot function to vmware Hyper."Jenkins2013-07-013-0/+63
|\ \ \ \ \ \
| * | | | | | Add resume state on host boot function to vmware Hyper.Yaguang Tang2013-06-293-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug #1183426 Change-Id: Ia4a0cce285aac01c59286f4899cbac0a021039c4
* | | | | | | Merge "Sync db.models with migrations."Jenkins2013-07-011-21/+32
|\ \ \ \ \ \ \
| * | | | | | | Sync db.models with migrations.Svetlana Shturm2013-07-011-21/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch syncs models with migrations for: - Snapshot - SnapshotIdMapping - TaskLog - VirtualInterface Blueprint: db-sync-models-with-migrations Change-Id: I4f2d5d4ca16f63522d6ebd70661992e4013085f0
* | | | | | | | Merge "Fix typo for instance_get_all_by_filters() function."Jenkins2013-07-011-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Fix typo for instance_get_all_by_filters() function.Yufang Zhang2013-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One special key to filter instance should be 'soft_deleted' instead of 'soft-deleted'. Change-Id: I73482a3307a18b8eaf8e179b39b44354248619b8
* | | | | | | | | Merge "New select_destinations scheduler call"Jenkins2013-07-0111-2/+170
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | New select_destinations scheduler callAndrew Laski2013-06-2811-2/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | select_destinations returns a list of (host, node) tuples that satisfy the request_spec and filter_properties passed to it. This will allow the conductor to get a list of destinations for workflows such as creating or resizing an instance and then handle the orchestration itself. part of bp query-scheduler Change-Id: I1a42cea64dbad67562d7efe8d759e6efb5ec8121
* | | | | | | | | | Merge "Move tests db.api.instance_* to own class"Jenkins2013-07-011-423/+432
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Move tests db.api.instance_* to own classSergey Skripnick2013-07-011-423/+432
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this change tests for instance_* moved to own class. blueprint db-api-tests Change-Id: Id0a2e4a6736cce9a1a3681ba8617cf0b40dd9678
* | | | | | | | | | | Merge "Update instance properties values in child cells to create instance."Jenkins2013-07-012-1/+7
|\ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / |/| | | | | | | | | |
| * | | | | | | | | | Update instance properties values in child cells to create instance.Yaguang Tang2013-06-262-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using nova cells, in child cell, instance properties dict received from API cell is returned by database that contains instance['name']. We need to pop this from dict before creating a instance entry in child cell. The system metadata also need to be recreated in child cell because instance properties dict is converted to primitive which makes instance['system_metadata'] a list of dicts. Fix bug #1193552 Change-Id: I43a8b4c1673a831b0c87881004eb0a7e5b149d9e
* | | | | | | | | | | Merge "Implement get_host_uptime for powervm driver"Jenkins2013-07-014-2/+55
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Implement get_host_uptime for powervm driverMatt Riedemann2013-06-274-2/+55
| | |_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements the get_host_uptime method for the powervm driver by calling the sysstat command on the backing hypervisor and returning the parsed results. Fixes bug 1191785 Change-Id: I67aaf6a5f5eb6b3a411ca9a0284d9a3016dd2947
* | | | | | | | | | | Merge "remove locals() from virt/hyperv package"Jenkins2013-07-019-60/+109
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | remove locals() from virt/hyperv packageEugene Nikanorov2013-06-299-60/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix logging issue with missing local variable for existing placeholder fixes bug 1171936 Change-Id: I6e32364983372945c2b69bb92cd3a96689b7a53c
* | | | | | | | | | | | Merge "Fix for failure of periodic instance cleanup"Jenkins2013-07-012-5/+7
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | Fix for failure of periodic instance cleanupDavid McNally2013-06-262-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The periodic task to identify and (optionally) delete instances which are running on the host but marked as deleted in the nova database currently fails if the option to delete is selected. This failure is because the instance data returned from the query in nova.compute.manager:_get_instances_on_driver does not include the system metadata expected by nova.compute.flavors:extract_instance_type. This change alters _get_instances_on_driver so the calling function can specify columns_to_join which is used in the call to instance_get_all_by_filters (leaving this set to None, rather than [] as it is currently, joins the default columns which includes the required system metadata). bug: 1190206 Change-Id: I44aecebdb4d0e20e52fdd59b46a022483cdd19d5
* | | | | | | | | | | | | Merge "Sync db.models and migrations."Jenkins2013-07-011-11/+22
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Sync db.models and migrations.Svetlana Shturm2013-06-251-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch syncs models with migrations for: - DNSDomain - AggregateMetadata - BandwidthUsage Blueprint: db-sync-models-with-migrations Change-Id: I09c48bac5ed780a7ec1b89cc8ce0684f4903d9dd
* | | | | | | | | | | | | | Merge "Fix types in test_ec2_ids_not_found_are_printable"Jenkins2013-07-011-10/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Fix types in test_ec2_ids_not_found_are_printableRoman Podolyaka2013-06-251-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test fails on PostgreSQL when trying to compare the VolumeIdMapping.id column (Integer) with a passed string value. Blueprint: db-api-tests-on-all-backends Change-Id: Ie529d25029667a5279f9c70f0f3f081b87fb6acb
* | | | | | | | | | | | | | Merge "Port images functionality to v3 API Part 2"Jenkins2013-06-303-75/+104
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Port images functionality to v3 API Part 2Chris Yeoh2013-06-293-75/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The images functionality is moved for the V3 API from core to an extension and is now accessed via /os-images instead of /images. Consensus appears to be that we continue to need this functionality for v3 because some deployers disable the public image endpoint due security concerns and whether this will be fixed in glance for Havana. Deployers can disable this extension if they do not want it. A further changeset will follow which changes the view builder to correctly handle the lack of project id in the path with the v3 API. Partially implements blueprint nova-v3-api Change-Id: I1237ad1ab5c58bb2d7cd9460b14666b4b97ef7fc
* | | | | | | | | | | | | | | Merge "Port server_diagnostics extension to v3 API Part2"Jenkins2013-06-303-17/+19
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Port server_diagnostics extension to v3 API Part2Chris Yeoh2013-06-293-17/+19
| |/ / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports the server_diagnostics extensions and the corresponding unittests to the v3 framework. Partially implements blueprint nova-v3-api Change-Id: I2ddf626a539d47884e845d73ec67e9f9169dcb2b
* | | | | | | | | | | | | | | Merge "Port cells extension to v3 API Part 2"Jenkins2013-06-293-22/+18
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / / / / / |/| | | | | | | | | | | | | |
| * | | | | | | | | | | | | | Port cells extension to v3 API Part 2Chris Yeoh2013-06-293-22/+18
| |/ / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports the cells extensions and the corresponding unittests to the v3 framework. Merges in functionality of the os-cells-capacities extension to be the default behavior. Does not yet address v3 TODO of returning capacity information in the cell detail method Partially implements blueprint nova-v3-api Change-Id: I24df708b9d6504a355fca0eacd0ffaeb6586610d
* | | | | | | | | | | | | | Merge "fix invalid logging"Jenkins2013-06-291-2/+10
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | fix invalid loggingMate Lakat2013-06-281-2/+10
| | |_|_|_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Logging parameters were passed as a tuple, yielding: TypeError: not enough arguments for format string fixes bug 1194917 Change-Id: Ifec893e1e4551f28849b96c7b1bf3c929b708b4d
* | | | | | | | | | | | | | Merge "Merged flavor_swap extension into core API"Jenkins2013-06-295-126/+50
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / / / / / |/| | | | | | | | | | | | |
| * | | | | | | | | | | | | Merged flavor_swap extension into core APIAlexei Kornienko2013-06-275-126/+50
| | |_|_|_|_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Partially implements blueprint nova-v3-api Change-Id: Ib58afac2159b25a38165882375e6d6ac57dc6da5
* | | | | | | | | | | | | Merge "Imported Translations from Transifex"OpenStack Jenkins2013-06-2941-18260/+47815
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Imported Translations from TransifexOpenStack Jenkins2013-06-2841-18260/+47815
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib2c4e2fd0303edec73bbf04dff8f3ef689686e2e