summaryrefslogtreecommitdiffstats
path: root/nova/tests/api
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fixes for quota_sets v3 extension"Jenkins2013-07-021-68/+30
|\
| * Fixes for quota_sets v3 extensionChris Yeoh2013-06-271-68/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Port images functionality to v3 API Part 2"Jenkins2013-06-301-71/+71
|\ \
| * | Port images functionality to v3 API Part 2Chris Yeoh2013-06-291-71/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-301-7/+4
|\ \ \
| * | | Port server_diagnostics extension to v3 API Part2Chris Yeoh2013-06-291-7/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | 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-291-8/+3
|\ \ \
| * | | Port cells extension to v3 API Part 2Chris Yeoh2013-06-291-8/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Merged flavor_swap extension into core API"Jenkins2013-06-291-122/+26
|\ \ \ | |/ / |/| |
| * | Merged flavor_swap extension into core APIAlexei Kornienko2013-06-271-122/+26
| |/ | | | | | | | | | | Partially implements blueprint nova-v3-api Change-Id: Ib58afac2159b25a38165882375e6d6ac57dc6da5
* | Merge "Report the az based on the value in the instance table."Jenkins2013-06-283-5/+52
|\ \
| * | Report the az based on the value in the instance table.Joshua Harlow2013-06-263-5/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Port flavor_disabled extension to v3 API Part 2"Jenkins2013-06-281-15/+10
|\ \ \
| * | | Port flavor_disabled extension to v3 API Part 2Alexei Kornienko2013-06-271-15/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-281-0/+106
|\| | |
| * | | Port flavor_disabled extension to v3 API Part 1Alexei Kornienko2013-06-271-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Port cells extension to v3 API Part 1"Jenkins2013-06-281-0/+474
|\ \ \ \
| * | | | Port cells extension to v3 API Part 1Chris Yeoh2013-06-141-0/+474
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-281-0/+84
|\ \ \ \ \
| * | | | | Port server_diagnostics extension to v3 API Part1Chris Yeoh2013-06-171-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Port images functionality to v3 API Part 1Chris Yeoh2013-06-281-0/+1336
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 "Remove broken config_drive image_href support."Jenkins2013-06-271-29/+2
|\ \ \ \ \ \
| * | | | | | Remove broken config_drive image_href support.Chris Behrens2013-06-261-29/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | image_href support has not been working since at least shortly before Folsom release. This is a good indication that this functionality is not used. As far as I can tell, the docs also do not match what was supported. An image ID was required, but docs show examples with full hrefs. DocImpact http://docs.openstack.org/developer/nova/api_ext/ext_config_drive.html References to supporting image_hrefs should be removed. This patch also removes the hack that passed a config_drive_id via the Instance dictionary when config_drive_id is not a valid Column for Instance. Fixes bug 1186401 Change-Id: Iced7bc8e278cb9f208183f1dbb7a293675a47eae
* | | | | | | Merge "Organize limits units and per-units constants"Jenkins2013-06-271-10/+14
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | |
| * | | | | | Organize limits units and per-units constantsMauro S. M. Rodrigues2013-06-141-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During v3 api review there was an agreement that would be nice to move limits constants to utils file and refactor its usage inside limits api to avoid unnecessary code duplication. Also changed TestLimiter class to MockLimiter since that name can be confuse to some unit test frameworks. Change-Id: I1b8626e8d1e3257333d4dfee61591fd4cde82bd1
* | | | | | | Port flavor_access extension to v3 API Part 2Alexei Kornienko2013-06-271-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports the flavor_access extension and the corresponding unittests to the v3 framework. Partially implements blueprint nova-v3-api Change-Id: I671f490bad2daaaae06d48328f4fff10076ab0ed
* | | | | | | Port flavor_access extension to v3 API Part 1Alexei Kornienko2013-06-271-0/+308
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I6a2648ac9f59ff122f06a63991b57e595b2c5696
* | | | | | Merge "Accept is_public=None when listing all flavors"Jenkins2013-06-261-0/+1
|\ \ \ \ \ \
| * | | | | | Accept is_public=None when listing all flavorsXavier Queralt2013-06-171-0/+1
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nova-client uses a None (with capital N) when listing all the flavors. Right now this is interpreted as a wrong query by n-api preventing us from listing the private flavors using the nova-client. Fixes bug #1190239 Change-Id: I2a9b1c24cd744c8819c1d41e0ad103d05398401c
* | | | | | Merge "Port quota classes extension to v3 API Part 1"Jenkins2013-06-261-0/+188
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | Port quota classes extension to v3 API Part 1Chris Yeoh2013-06-241-0/+188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: I328b32aee29021bae42cba5d97e0735e7b691ac9
* | | | | | Merge "Cells: Add support for global cinder"Jenkins2013-06-261-0/+1
|\ \ \ \ \ \
| * | | | | | Cells: Add support for global cinderChris Behrens2013-06-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements cinder support for compute cells when cinder is a global installation. Adds syncing of the block device mapping table between child cells and API cells. Implements blueprint cells-cinder-support Change-Id: Ife5be9922db0742c8ee4f970517396be86597cce
* | | | | | | Merge "Prepare fake instance stubs for objects"Jenkins2013-06-261-1/+6
|\ \ \ \ \ \ \
| * | | | | | | Prepare fake instance stubs for objectsDan Smith2013-06-261-1/+6
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a couple of calling convention tolerances on fake instance_get methods, as well as makes stub_instance() return a more accurate instance dict. Related to blueprint unified-object-model Change-Id: I9772be52c3f8bbd8cab0ec2dd93821f3e4287b6a
* | | | | | | Merge "Port flavors core API to v3 tree"Jenkins2013-06-261-0/+792
|\ \ \ \ \ \ \ | | |_|_|_|/ / | |/| | | | |
| * | | | | | Port flavors core API to v3 treeMauro S. M. Rodrigues2013-06-131-0/+792
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port flavors core API (which does *not* include all extensions, like flavor create) to the V3 API, adapting the way it's loaded to fit with the new extension framework and, of course, its tests. This also change the flavors requests and responses links on unit tests since project_id is no longer present on v3 url Partially implements blueprint v3-api-core-as-extensions Change-Id: Ide2eb22a89be3bd9adcf5e09cbef23e824a83fc1
* | | | | | | Merge "Change resource links when url has no project id"Jenkins2013-06-262-325/+325
|\| | | | | |
| * | | | | | Change resource links when url has no project idMauro S. M. Rodrigues2013-06-132-325/+325
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch allow response body to be look like the request url. So if a project_id is passed the resource links on the response will also have a project_id, and in the case of api-v3 where project_id are no longer present in the url the response will not have it either. Complements bp v3-api-remove-project-id. Also fix two minor issues on the unit tests, which were breaking with this change: - When doing ServersViewBuilderTest there was no api version specified. - ServersControllerTest was duplicating api version on the application url. Change-Id: I872332ef56b4b6e99fedb43833ad45e8e654f44f
* | | | | | Merge "Refactor db.security_group_get() instance join behavior"Jenkins2013-06-261-1/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Refactor db.security_group_get() instance join behaviorDan Smith2013-06-221-1/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, security_group['instances'] is always joined when we do a db.security_group_get(). This patch adds the growingly- conventional columns_to_join argument to the call, allowing us to selectively choose when we want to make this expensive join operation. Related to unified-object-model Change-Id: I1945365c8cf03c027fd143f677cbd6d63a7f8122
* | | | | Port quota API into v3 part2He Jie Xu2013-06-261-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch contains the changes required to adapt the service extension and the corresponding unittest to the v3 framework Partially implements bp v3-api-extension-versioning Change-Id: If5438d5bef5da1832e81c0b80523f9f419d5e3d5
* | | | | Merge "port agent API into v3 part1"Jenkins2013-06-261-0/+181
|\ \ \ \ \
| * | | | | port agent API into v3 part1ivan-zhu2013-06-131-0/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset only copies the v2 files 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 tried 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: bp v3-api-extension-versioning Change-Id: Ib7c489769d9b07797366be5920cc23ab2074a768
* | | | | | Merge "Adds v3 API extension discovery filtering"Jenkins2013-06-261-0/+108
|\ \ \ \ \ \
| * | | | | | Adds v3 API extension discovery filteringChris Yeoh2013-06-101-0/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds ability for a v3 loaded extension to be visible in /v3/extensions to be dependent on the discoverable action policy for that extension. Note that this does not actually effect whether or not the functionality provided by the extension is accessible Implements blueprint nova-v3-api-filter Change-Id: I3f6ba7ea59e7abfa9d57b79ab18aa5b675e64118
* | | | | | | Merge "Add Instance.security_groups"Jenkins2013-06-261-1/+4
|\ \ \ \ \ \ \
| * | | | | | | Add Instance.security_groupsDan Smith2013-06-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes Instance load the security_groups list when it is present in the database object. It also refactors the way info_cache is saved, so that it can more easily apply to security_groups as well. Related to blueprint unified-object-model Fixes bug 1192003 Change-Id: Ifb028e17ffef7c14557e6389a650d66ce8e9b25c
* | | | | | | | Merge "Refresh volume connections when starting instances"Jenkins2013-06-261-1/+2
|\ \ \ \ \ \ \ \
| * | | | | | | | Refresh volume connections when starting instancesBrent Eagles2013-06-251-1/+2
| |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patches adds network and block device information to the signature of the power_on method on the virtualization driver. The relevant call sites are also modified to provide the required information. The libvirt implementation of power_on has been altered to re-establish network and volume related connections. Fixes bug: 1188326 Change-Id: If617b570e082e3aa321414a2680a3aa0754f6153