summaryrefslogtreecommitdiff
path: root/nova/api/openstack/compute/plugins
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Port fixed_ip extention to v2.1"Jenkins2014-10-231-0/+106
|\
| * Port fixed_ip extention to v2.1Eli Qiao2014-10-211-0/+106
| | | | | | | | | | | | | | | | This patch ports fixed_ip extention from v2 to v2.1, and have v2 unit test cases shared between v2.1 and v2. Partially implements blueprint v2-on-v3-api Change-Id: Ifa7e0dd5a91cfe881077b92aeb7019d0435d780a
* | Merge "Remove use of unicode on exceptions"Jenkins2014-10-233-3/+4
|\ \
| * | Remove use of unicode on exceptionsJames Carey2014-10-223-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Casting exceptions to unicode using unicode() can interfere with the proper translation of the exception message. This is especially true when lazy translation is enabled, since it causes the exception message to be translated immediately using the default locale. This is the same problem caused by using str on exceptions, which was fixed by https://review.openstack.org/#/c/116054/ In addition to fixing these cases, this patch updates hacking check N325, which checks for the use of str() on exceptions, to also check for the use of unicode(). In order to make it clear which cases that cannot be caught by the hacking check have been inspected, they have been converted to using six.text_type() instead of unicode(). Closes-bug: #1380806 Change-Id: I87bb94fa76458e028beba28d092320057b53f70a
* | | Merge "Porting baremetal_nodes extension to v2.1/v3"Jenkins2014-10-231-0/+173
|\ \ \ | |/ / |/| |
| * | Porting baremetal_nodes extension to v2.1/v3Eli Qiao2014-10-211-0/+173
| |/ | | | | | | | | | | | | | | | | | | This patch ports baremetal-nodes(include baremetal-stat-ext) to v2.1 and make v2 and v2.1 share unit test cases. In v2.1/v3,baremetal-nodes will not depend on baremetal-stat-ext. Partially implements blueprint v2-on-v3-api Change-Id: I0f6a968897975ee91e76538d2ce7d2538044613e
* | Merge "Porting SecurityGroup related controller into v2.1"Jenkins2014-10-221-4/+275
|\ \
| * | Porting SecurityGroup related controller into v2.1He Jie Xu2014-10-151-4/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch port SecurityGroup, ServerSecurityGroup and SecurityGroupAction controller into v2.1 security_groups extension. This patch just move the v2 code into v2.1 and share the unittest. The other v2.1 related fix and improvement will be addressed by subsequent patchset. Partially implements blueprint v2-on-v3-api Change-Id: I93951ce677b74ebed7db1b2fff1f788344806dba
* | | Merge "Port update method of cloudpipe_update to v2.1(v3)"Jenkins2014-10-221-0/+27
|\ \ \
| * | | Port update method of cloudpipe_update to v2.1(v3)Eli Qiao2014-10-211-0/+27
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | This patch adds couldpipe_update's `update` method to cloudpipe controller add validation schema to cloudpipe, have v2 unit test cases shared between v2.1 and v2. Partially implements blueprint v2-on-v3-api Change-Id: Ibf39d7fa7301bcba6e259ae88a73c20f64b7fc36
* | | Merge "Remove unuseful parameter in cloudpipe api(v2/v2.1)"Jenkins2014-10-221-3/+3
|\ \ \
| * | | Remove unuseful parameter in cloudpipe api(v2/v2.1)Eli Qiao2014-10-211-3/+3
| |/ / | | | | | | | | | | | | | | | project_id in _get_cloudpipe_for_project is useless, remove it. Change-Id: Ie8cb7a6d8ce0678f04200c9fa9de58b4c92bd40d
* | | Merge "Add more input validation of bdm param in server creation"Jenkins2014-10-212-0/+8
|\ \ \ | |/ / |/| |
| * | Add more input validation of bdm param in server creationChris Yeoh2014-10-142-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Adds a check to ensure that block_device_mapping is a list and return 400 Bad Request rather than 500 as currently happens. Change-Id: I30551bcbb7d658734da158dbb8dd7d825c526896 Closes-Bug: 1379973
* | | Merge "Cleanup of exception handling in network REST API plugin"Jenkins2014-10-201-18/+16
|\ \ \
| * | | Cleanup of exception handling in network REST API pluginChris Yeoh2014-10-161-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleans up exception handling in the os-network API plugin so that rather than very generic catching of exceptions, we only catch those that we expect can occur. Adds new test cases where appropriate, though some of the exceptions already had testcases. Change-Id: Ie25f0cc60d157e259463a9e00c5639a09a869fce
* | | | Merge "Handle Forbidden error from network_api.show_port in os-interface:show"Jenkins2014-10-161-3/+5
|\ \ \ \
| * | | | Handle Forbidden error from network_api.show_port in os-interface:showMatt Riedemann2014-10-151-3/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can get a 403 back from the neutronv2 API when calling network_api.show_port so handle that in the compute API extension. This also updates the v3 API code to match the v2 API code to put the original error message for the 404 into the HTTPNotFound error. Closes-Bug: #1378389 Change-Id: I7afc832f26481dc44f1c500b6121e2060f36c63a
* | | | Merge "Port os-networks-associate plugin to v2.1(v3) infrastructure"Jenkins2014-10-161-0/+102
|\ \ \ \
| * | | | Port os-networks-associate plugin to v2.1(v3) infrastructureChris Yeoh2014-10-161-0/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports os-networks-associate extension and adapts it to the v2.1/v3 API framework. API behaviour is identical. - unittest code modified to share testing with both v2/v2.1 - Adds expected error decorators for API methods Partially implements blueprint v2-on-v3-api Change-Id: I6ccf9613abf999784c548fb058522ac60db7f052
* | | | | Merge "Port os-tenant-networks plugin to v2.1(v3) infrastructure"Jenkins2014-10-161-0/+217
|\ \ \ \ \ | |/ / / / | | / / / | |/ / / |/| | |
| * | | Port os-tenant-networks plugin to v2.1(v3) infrastructureChris Yeoh2014-10-161-0/+217
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports os-tenant-networks extension and adapts it to the v2.1/v3 API framework. API behaviour is identical. - unittest code modified to share testing with both v2/v2.1 - Adds expected error decorators for API methods Partially implements blueprint v2-on-v3-api Change-Id: I340c9b1312a3477c63d28f19df9611c95e67cde6
* | | Remove unused modules copied from oslo-incubatorDavanum Srinivas2014-10-152-2/+2
|/ / | | | | | | | | | | | | | | | | No longer needed since we moved to oslo.utils and oslo.serialization and updated to latest oslo-incubator. As part of the cleanup removed the hack for gettextutils since the oslo-incubator code no longer uses it Change-Id: Ib020cd4c3464f1c994a6d77f4b894f41b99e6d02
* | Switch to nova's jsonutils in oslo.serializationDavanum Srinivas2014-10-142-2/+3
| | | | | | | | | | | | | | | | | | Very simple import change in each file, just touches a whole lot of files. jsonutils has graduated into a stand alone library and has been removed from the oslo-incubator repository. We should be using the library for all projects. Change-Id: I09d780a47d377871f357654603ee4b0fa0169d66
* | Merge "Remove init for object list in api layer"Jenkins2014-10-141-2/+1
|\ \
| * | Remove init for object list in api layerjichenjc2014-10-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | There is a list initialization in api layer server code, because objectListBase already handles that init process, so remove it from api layer. Change-Id: I84b0641ec2088d2920d3757ac1a99c301fc0bcb0
* | | Merge "Port disk_config extension for V2.1"Jenkins2014-10-142-2/+167
|\ \ \ | |_|/ |/| |
| * | Port disk_config extension for V2.1ghanshyam2014-10-082-2/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch ports v2 disk_config extension to v2.1. Unittest code modified to share testing with both v2/v2.1. API sample file and their tests have been added. Also added extension point of server resize V3. Partially implements blueprint v2-on-v3-api Change-Id: Id2aace8121a310f8c86c6a9cc532bd1074d653c4
* | | Merge "Port os-networks plugin to v2.1(v3) infrastructure"Jenkins2014-10-141-0/+216
|\ \ \
| * | | Port os-networks plugin to v2.1(v3) infrastructureChris Yeoh2014-10-101-0/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports os-networks extension and adapts it to the v2.1/v3 API framework. API behaviour is identical. - unittest code modified to share testing with both v2/v2.1 - Adds expected error decorators for API methods Partially implements blueprint v2-on-v3-api Change-Id: I94b7b476cbb02725a396725a379417b64afd58a7
* | | | Merge "Port floating_ip_pools extention to v2.1"Jenkins2014-10-131-0/+68
|\ \ \ \
| * | | | Port floating_ip_pools extention to v2.1Eli Qiao2014-10-131-0/+68
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | This patch ports floating_ip_pools extention from v2 to v2.1, and have v2 unit test cases shared between v2.1 and v2. Partially implements blueprint v2-on-v3-api Change-Id: I0b34358db08a29e76a59b22a0992abc88296058d
* | | | Merge "Finish objects conversion in the os-interface API"Jenkins2014-10-111-2/+6
|\ \ \ \
| * | | | Finish objects conversion in the os-interface APIMatt Riedemann2014-10-091-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the API code was using instance objects already except for the listing, so this updates that. Updates the test to use a fake instance object rather than a dict to enforce the change. Also adds a note on the slightly weird call to common.get_instance in the show method when the instance isn't used for anything, it's really a check to make sure the instance exists. Part of blueprint kilo-objects Change-Id: Ief17c57afbd81e2b6aef9586b448e8797aaa6544
* | | | Port cloudpipe extension to v2.1Eli Qiao2014-10-091-0/+171
|/ / / | | | | | | | | | | | | | | | | | | | | | This patch ports couldpipe extension from v2 to v2.1, and have v2 unit test cases shared between v2.1 and v2. Partially implements blueprint v2-on-v3-api Change-Id: Id40c637c0fc207e97b1d094805eb0cee6e9cd9c9
* | | Merge "Port fping extension to work in v2.1/v3 framework"Jenkins2014-10-081-0/+155
|\ \ \
| * | | Port fping extension to work in v2.1/v3 frameworkChris Yeoh2014-10-071-0/+155
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ports v2 fping extension and adapts it to the v2.1/v3 API framework. API behaviour is identical. - unittest code modified to share testing with both v2/v2.1 - Adds expected error decorators for API methods Partially implements blueprint v2-on-v3-api Change-Id: I8dc4ede46826bf6062097a3b4ba6be9a09a1bd12
* | | Merge "Use oslo.utils"Jenkins2014-10-089-10/+10
|\ \ \ | |_|/ |/| |
| * | Use oslo.utilsDavanum Srinivas2014-10-069-10/+10
| |/ | | | | | | | | | | | | | | | | | | oslo.utils library now provides the functionality previously in oslo-incubator's excutils, importutils, network_utils, strutils timeutils, units etc. Some modules already moved to oslo.utils will still be around since other code in nova/openstack/common/ are using it and will be removed in a subsequent commit. Change-Id: Idc716342535fdfa680963e0e073ddb46f5f1eb34
* | Merge "Correctly catch InstanceExists in servers create API"Jenkins2014-10-071-0/+1
|\ \
| * | Correctly catch InstanceExists in servers create APIChris Yeoh2014-10-071-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | When osapi_compute_unique_server_name_scope is set to project or global an attempt to create a server with a name which already exists results in an InstanceExists exception being raised. This was not being handled in the API layer causing a 500 status error code. This patch fixes it so the exception is caught correctly and a 409 Conflict is returned instead Change-Id: Ifee3476622b227991a4c2a2780ae7ff23787ccb9 Closes-Bug:1376936
* | Log id in raise_http_conflict_for_instance_invalid_state()Matthew Treinish2014-10-0714-30/+34
|/ | | | | | | | | | | | | This commit adds the instance id to the log message generated by raise_http_conflict_for_instance_invalid_state(). Previously, the messages just included the action and state failure information, but when investigating a failure knowing the instance id is useful. While there are other clues in the logs, like the req-id or other unique info about the failed request in the logs already, it increase the effort required to figure out what failed. Directly logging the instance id that failed increases the utility of these log messages. Change-Id: I7328ad16f3cb313266011f778c0c8161eded1801
* Merge "Making nova.compute.api to return Aggregate Objects"Jenkins2014-10-041-1/+9
|\
| * Making nova.compute.api to return Aggregate ObjectsPawel Koniszewski2014-09-221-1/+9
| | | | | | | | | | | | | | | | nova.compute.api should return Objects and they should be converted into the REST API expected result in the API extensions Change-Id: I4bfd83ab92c719b1776da6445e6a4ea78d2ddfd6 Closes-Bug: #1292644
* | Adds missing exception handling in resize and rebuild servers APIChris Yeoh2014-10-031-1/+5
| | | | | | | | | | | | | | | | Adds handling of NoValidHost and AutoDiskConfigDisabledByImage in resize and rebuild of the V3 servers API. This has already been fixed in the V2 API. Change-Id: I5a5519f87bb220d6821e959f36dc5b36ffe9cc2d
* | Merge "Fix "revertResize/confirmResize" for V2.1 API"Jenkins2014-09-291-5/+8
|\ \
| * | Fix "revertResize/confirmResize" for V2.1 APIGhanshyam2014-09-111-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "revertResize/confirmResize" server actions were missed for V2.1 API. This patch converts "revertResize/confirmResize" server action for V2.1 API The differences between v2 and v3 are described on the wiki page https://wiki.openstack.org/wiki/NovaAPIv2tov3. Change-Id: I24bdb5b28fafeb60ea7b4ff044b12a519498e592 Closes-Bug: #1367642
* | | Merge "Fix 'os-interface' resource name for Nova V2.1"Jenkins2014-09-271-1/+1
|\ \ \
| * | | Fix 'os-interface' resource name for Nova V2.1Ghanshyam2014-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | V2 and V3 diff for this resource name is below- V2 - '/servers/os-interface' V3 - '/servers/os-attach-interfaces' V3 resource name needs to be changed to work that for V2.1 Change-Id: I37bd7cee7e8879b01a8aee739d74c2dd6e033dc4 Closes-Bug: #1368035
* | | | Merge "Add decorator expected_errors for ips v3 extension"Jenkins2014-09-251-0/+2
|\ \ \ \