summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-305-75/+106
|\ \ \ \ \ \ \ \
| * | | | | | | | Port images functionality to v3 API Part 2Chris Yeoh2013-06-295-75/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-305-17/+21
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Port server_diagnostics extension to v3 API Part2Chris Yeoh2013-06-295-17/+21
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-295-22/+20
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | |
| * | | | | | | | Port cells extension to v3 API Part 2Chris Yeoh2013-06-295-22/+20
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | | Merge "Report the az based on the value in the instance table."Jenkins2013-06-285-14/+94
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Report the az based on the value in the instance table.Joshua Harlow2013-06-265-14/+94
| | |_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When attempting to find the availability zone of an instance do so by first trying to locate the availability zone of the host the instance is active on. If that fails then attempt to use the value that is in the instances 'availability_zone' key instead. For the caching used in the availability_zones module there was a new method added to get and reset the cache that is useful for unit tests, since during each run of a test you do not want to be affected by something in cache from a previous test. Fixes bug 1172246 Change-Id: I6f54a44cc87434120656ccc789cebcc08d434418
* | | | | | | | | | Merge "Fix sqlalchemy utils."Jenkins2013-06-282-4/+39
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Fix sqlalchemy utils.Yuriy Zveryanskyy2013-06-272-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch affects drop_unique_constraint() on sqlite engine. 1. Fix error for tables with foreign key(s). 2. Now work with tables contains reserved words in column names ("key" for example). Fix bug 1195216. Change-Id: Idc4dfa5006eee115f578b00d675cae1d6241ec69
* | | | | | | | | | | Merge "Port flavor_disabled extension to v3 API Part 2"Jenkins2013-06-285-27/+27
|\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Port flavor_disabled extension to v3 API Part 2Alexei Kornienko2013-06-275-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports the flavor_disabled extension and the corresponding unittests to the v3 framework. Partially implements blueprint nova-v3-api Change-Id: I8af3f69ebc0584b79499e2695d6120c7c0833d24
* | | | | | | | | | | | Merge "Port flavor_disabled extension to v3 API Part 1"Jenkins2013-06-282-0/+195
|\| | | | | | | | | | |
| * | | | | | | | | | | Port flavor_disabled extension to v3 API Part 1Alexei Kornienko2013-06-272-0/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset only copies the v2 files (implementation and test) into the appropriate v3 directories unchanged. The copy as-is will not be loaded by either the v2 or v3 extension loaders. The second changeset will then make the changes required for it to work as a v3 extension. This is being done in order to make reviewing of extension porting easier as gerrit will display only what is actually changed for v3 rather than entirely new files Partially implements blueprint nova-v3-api Change-Id: I01688d7f9d976b7e406d46283c6d0010ddc3476a
* | | | | | | | | | | | Merge "VNC console does not work with VCDriver"Jenkins2013-06-286-13/+308
|\ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | VNC console does not work with VCDriverhartsocks2013-06-276-13/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces get_vnc_console_vcenter as a way to get a modified vnc_console object that connects to the ESXi host underneath vCenter control. * adds new fake classes for testing * documents classes, methods & API logic fixes bug: #1178369 Change-Id: I48430cb9bc9615e02ca9af235f97853f3f0bdafd
* | | | | | | | | | | | | Merge "Port cells extension to v3 API Part 1"Jenkins2013-06-282-0/+821
|\ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / / / / |/| | | | | | | | | | | |
| * | | | | | | | | | | | Port cells extension to v3 API Part 1Chris Yeoh2013-06-142-0/+821
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset only copies the v2 files (implementation and test) into the appropriate v3 directories unchanged. The copy as-is will not be loaded by either the v2 or v3 extension loaders. The second changeset will then make the changes required for it to work as a v3 extension. This is being done in order to make reviewing of extension porting easier as gerrit will display only what is actually changed for v3 rather than entirely new files Partially implements blueprint nova-v3-api Change-Id: Ie629ee328d76a1595350b597c7874b430217c769
* | | | | | | | | | | | | Merge "Port server_diagnostics extension to v3 API Part1"Jenkins2013-06-282-0/+151
|\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Port server_diagnostics extension to v3 API Part1Chris Yeoh2013-06-172-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset only copies the v2 files (implementation and test) into the appropriate v3 directories unchanged. The copy as-is will not be loaded by either the v2 or v3 extension loaders. The second changeset will then make the changes required for it to work as a v3 extension. This is being done in order to make reviewing of extension porting easier as gerrit will display only what is actually changed for v3 rather than entirely new files Implements blueprint nova-v3-api Change-Id: I52f906948b5873cf3fdfff14270c7384ee5e7b9f
* | | | | | | | | | | | | | Merge "Allow retrying network allocations separately"Jenkins2013-06-282-19/+147
|\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Allow retrying network allocations separatelyChris Behrens2013-06-262-19/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce a new config option, 'network_allocate_retries', that allows one to retry network allocations. The default is 0 for no retries to match the current behavior. The network allocations currently get retried by a full retry of a build via the scheduler, if those are enabled. This patch reduces the need to re-schedule for simple network allocation issues. The retrying happens in the network alloc async greenthread, so for virt drivers that support the new NetworkModel, the retrying potentially happens in the background while the image is being downloaded, etc. DocImpact Change-Id: I1a5fdcccbb736fc0b1d8c0cbc3b45a8372a6aef7
* | | | | | | | | | | | | | | Merge "db.compute_node_update: ignore values['update_at']"Jenkins2013-06-282-2/+14
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | db.compute_node_update: ignore values['update_at']Peter Feiner2013-06-262-2/+14
| | |_|_|_|_|_|/ / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When individual instances are updated (e.g., during spawn and terminate), ResourceTracker (in nova.compute.resource_tracker) calls compute_node_update with values=self.compute_node. Since self.compute_node is an instance of ComputeNode that was retrieved from the database, it has updated_at set. Since updated_at is in values, sqlalchemy doesn't automatically change the record's updated_at column (see nova.openstack.common.db.sqlalchemy.models.TimestampMixin). Moreover, since updated_at is set to the last value's updated_at, updated_at effectively doesn't change until values without updated_at are sent, which only happens during the periodic task that calls ResourceTracker.update_available_resources. Nova-scheduler relies on ComputeNode.updated_at to keep its model of available resources up-to-date. In particular, nova-scheduler doesn't play a role in instance termination, so it doesn't account for freed resources until ComputeNode.updated_at changes. Thus, between nova-compute's periodic calls to ResourceTracker.update_available_resources, nova-scheduler's model of available resources monotonically decreases. If, for example, a node has resources for 10 instances, and you manage to boot 10, terminate 10, then attempt to boot another before the end of the period, nova-scheduler won't schedule the new instance on the vacant node. Fixes bug #1194900. Note that f398b9e195cda582bad57396b097dec274384c07 fixed a separate issue (bug #1153778) related to ComputeNode.update_at being stale. Change-Id: Ifd1e56edfd811241816970715071876857de80d3
* | | | | | | | | | | | | | | Merge "Port images functionality to v3 API Part 1"Jenkins2013-06-282-0/+1550
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | Port images functionality to v3 API Part 1Chris Yeoh2013-06-282-0/+1550
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset only copies the v2 implementation file into the appropriate v3 directory unchanged. The copy as-is will not be loaded by either the v2 or v3 extension loaders. The second changeset will then make the changes required for it to work as a v3 extension. This is being done in order to make reviewing of extension porting easier as gerrit will display only what is actually changed for v3 rather than entirely new files Note that this functionality will be moved from core to an extension. 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. Partially implements nova-v3-api Change-Id: I02b32b40b14a5593bf254ad9e6a78c14cb15ced5
* | | | | | | | | | | | | | | | Merge "Add AggregateRamFilter"Jenkins2013-06-283-5/+119
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Add AggregateRamFilterQiu Yu2013-06-213-5/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements blueprint per-aggregate-resource-ratio * AggregateRamFilter to support per-aggregate ram_allocation_ratio * Falls back to global setting if per-aggregate value not found DocImpact Change-Id: I93e069f0ac3f595d9a2a17119274c7bfbe8fca31