Clearly nobody really uses the "application/vnd.openstack.image"
links in the returned results from GET /v2/{tenant}/images
REST API call, since the link URI returned in it is wrong.
Glance URIs do *not* contain a project or tenant in the URI
structure like Nova's REST API URIs do, but _get_alternate_link()
method of the image ViewBuilder tacks it on improperly:
Change-Id: I4ccb5628569c60026a1772df0794ac0271c48db3
Closes-Bug: #1343080
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
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
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 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
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 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
This patch port extended_ips/extended_ips_mac extension to V2.1
There are difference between V2 and V3 server show/index &
server address index API response listed below-
'address' field of V2->V3 API response-
"OS-EXT-IPS:type" -> "type"
"OS-EXT-IPS-MAC:mac_addr" -> "mac_addr"
Reverting those attribute same as V2 to work with V2.1
Closes-Bug: #1368495
Partially implements blueprint v2-on-v3-api
Change-Id: I44902b0402115d1b6e833975e6c2f020ac5ab7c3
"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
Server groups can be used to control the affinity and anti-affinity
scheduling policy for a group of servers (instances). Whilst this is
a useful mechanism for users such scheduling decisions need to be
balanced by a deployers requirements to make effective use of the
available capacity.
This change adds quota values to constrain the number and size of
server groups a user can create.
Two new quota values are be introduced to limit the number of server
groups and the number of servers in a server group. These will follow
the existing pattern for quotas in that:
* They are defined by config values, which also include the default
value
* They can be defined per project or per user within a project
* A value of -1 for either quota will be treated as unlimited
* Defaults can be set via the quota groups API
* Values may be changed at any time but will only take effect at the next
server group or server create. Reducing the quota will not affect any
existing groups, but new servers will not be allowed into group
that have become over quota.
This is part one of a linked sequences of changes that implement the
new quotas - split to make the reviews easier.
This part adds the definition of the new quota values, but leaves the
V2 API unchanged. The V2.1 API is updated as it shows all quota values.
The second part adds the new V2 API extension to make the new quota
values visible and changeable. At this point a Tempest change is
required to get a clean run as it checks for a specific set of
values.
The third part implements the quota checks themselves.
Thanks to Cyril Roelandt for supplying some of the unit tests.
Co-authored-by: Cyril Roelandt <cyril.roelandt@enovance.com>
Implements: blueprint server-group-quotas
DocImpact
Change-Id: Ib281e43eabfbd176454bde7f0622d46fb04fcb79
'os-start/os-stop' server actions were missed for V2.1 API.
This patch converts 'os-start/os-stop' server action for V2.1 API
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.
Closes-Bug: #1367575
Change-Id: I8b0f27fb639034d368bcc1fc51d20daf9c2cdeb5
'createImage' server actions was missed for V2.1 API.
This patch converts 'createImage' 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: I5490365c72082b1652ddda2fed97c754fceeed22
Closes-Bug: #1367633
This patch changes v3 quota-sets API to v2.1 and makes v2 unit tests
share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .
Partially implements blueprint v2-on-v3-api
Change-Id: I96377c2c5c02e00cb70eadde225f3e17d0e0025c
This patch changes v3 flavor_manage API to v2.1 and makes v2 unit tests
share between v2 and v2.1.
This patch removes test_create_flavor_name_with_leading_trailing_whitespace
because v2.1 API contains consistent name rule for whole of API request and
the name which contain spaces at the start/end of name is against the rule.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .
Partially implements blueprint v2-on-v3-api
Change-Id: I57ca2562cb02ce5a35c4596e4c5a753d1268493f
The used_limits & used_limits_for_admin is removed from v3 API.
For now, we need porting it back. And also try to share unittests
between v2 and v2.1.
Partially implements blueprint v2-on-v3-api
Change-Id: I57199273dcaf20b0b6618dfb436a92f04b139f52
This patch changes v3 admin_actions API to v2.1 and make v2
unit tests share between v2 and v2.1, move v3 testcase to v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3 .
Partially implements blueprint v2-on-v3-api
Change-Id: I6fa4a8bd45d0f32f2a61bc6d8ff7e0fbb5fa7f26
This patch changes v3 ExtendedAvailabilityZone API to v2.1
and makes v2 unit tests share between v2 and v2.1.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.
Partially implements blueprint v2-on-v3-api
Change-Id: I49baff38b7a9dabd40550267c2119fe84137594f
This patch convert v3 hypervisor plugin to v2.1 and makes v2
unit tests share between v2 and v2.1.
Unit tests has been modified in optimized way.
The differences between v2 and v3 are described on the wiki page
https://wiki.openstack.org/wiki/NovaAPIv2tov3.
Partially implements blueprint v2-on-v3-api
Change-Id: I23ffc10d4c0170cb43ef8aeebf69ae2794a08827
Changes required to have v3 plugin natively support the V2.1
API.
The parameters is changed from os-server-usage to OS-SRV-USG
Partially implements blueprint v2-on-v3-api
Co-Authored-By: Chris Yeoh <cyeoh@au1.ibm.com>
Change-Id: I4a4ebe533f8910a29b54d6ec9554cc151af492d1
Changes return reservation id format on server create to
the v2.1 format.
Adds api sample tests for the os-multiple-create plugin
Partially implements blueprint v2-on-v3-api
Change-Id: I148cce80fb4b19a4240e00ca206fcb7bac20f357
Ports v2 volumes extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also
- unittest code modified to share testing with both v2/v2.1
where appropriate
- Adds expected error decorators for API methods
Note that there will be further code cleanup in the future
but the code currently is mostly as-is from the v2 codebase.
Partially implements blueprint v2-on-v3-api
Change-Id: If2a9dd1f5233812a1177b54ded6f0ae115c54e97
Ports v2 image-size extension and adapts it to the v2.1/v3 API
framework. API behaviour is identical with the exception
that there is no support for XML. Also
- 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: I44f3d35b3d888e2f4429ca0788d74b9b0cce9494