| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
project_id in _get_cloudpipe_for_project is useless, remove it.
Change-Id: Ie8cb7a6d8ce0678f04200c9fa9de58b4c92bd40d
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| |/ / / /
| | / / /
| |/ / /
|/| | | |
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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 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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
"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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \ |
|