Commit Graph

244 Commits

Author SHA1 Message Date
Eli Qiao 2773fedfc2 Port floating_ip_pools extention to v2.1
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
2014-10-13 15:33:03 +08:00
Jenkins e1d0c79937 Merge "Port fping extension to work in v2.1/v3 framework" 2014-10-08 13:05:39 +00:00
Jenkins 073c3c8635 Merge "Port extended_ips/extended_ips_mac extension to V2.1" 2014-10-07 04:26:15 +00:00
Chris Yeoh ccc4efe36f Port fping extension to work in v2.1/v3 framework
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
2014-10-07 13:48:08 +10:30
Jenkins c8b615bb2e Merge "Fix "revertResize/confirmResize" for V2.1 API" 2014-09-29 16:59:16 +00:00
Ghanshyam a5147669f4 Port extended_ips/extended_ips_mac extension to V2.1
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
2014-09-26 10:02:34 +09:00
Jenkins 9a2e37ca7d Merge "Fix 'createImage' server actions for V2.1 API" 2014-09-24 20:01:15 +00:00
Jenkins 0aeb3da029 Merge "Fix sample files miss for os-aggregates" 2014-09-18 07:25:42 +00:00
Jenkins f28c5ff905 Merge "Fix 'os-start/os-stop' server actions for V2.1 API" 2014-09-16 12:18:45 +00:00
Ghanshyam 61b2824a1f Fix "revertResize/confirmResize" for V2.1 API
"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
2014-09-11 10:22:13 +09:00
Phil Day 597c46fde1 Add quotas for Server Groups (V2 API compatibility & V2.1 support)
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
2014-09-10 16:29:22 +00:00
Ghanshyam a5c9340130 Fix 'os-start/os-stop' server actions for V2.1 API
'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
2014-09-10 19:39:46 +09:00
Ghanshyam 42cec80e6c Fix 'createImage' server actions for V2.1 API
'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
2014-09-10 17:21:18 +09:00
Jenkins f0fca5e4dc Merge "Change v3 quota-sets API to v2.1" 2014-09-08 20:03:46 +00:00
Jenkins 8021b46c66 Merge "Change v3 flavor_manage API to v2.1" 2014-09-08 13:02:33 +00:00
Jenkins a1fa42f2ad Merge "Change v3 security_groups API to v2.1" 2014-09-08 04:46:12 +00:00
Jenkins a99f04dc2a Merge "Convert v3 ExtendedAvailabilityZone api to v2.1" 2014-09-07 13:24:26 +00:00
Jenkins e4a3042bd9 Merge "Port image-size extension to work in v2.1/v3 framework" 2014-09-07 02:50:07 +00:00
Jenkins badb75ea6d Merge "Port v2 image_metadata extension to work in v2.1(v3) framework" 2014-09-07 02:47:27 +00:00
Jenkins 57d5419975 Merge "Convert rescue v3 plugin to v2.1 API" 2014-09-06 09:16:14 +00:00
Jenkins 3afda59256 Merge "Port used_limits & used_limits_for_admin into v2.1" 2014-09-04 06:24:06 +00:00
Jenkins 6b711d3cc5 Merge "Convert console_output v3 plugin to v2.1" 2014-09-04 05:52:07 +00:00
Jenkins d124fd09b7 Merge "Change v3 admin_actions to v2.1" 2014-09-04 03:06:27 +00:00
Jenkins 4ad1ded729 Merge "Changes V3 evacuate extension into v2.1" 2014-09-03 17:59:25 +00:00
Ken'ichi Ohmichi c0f8c9649f Change v3 quota-sets API to v2.1
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
2014-09-03 13:00:45 +00:00
Ghanshyam 2a81337a8d Change v3 flavor_manage API to v2.1
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
2014-09-03 05:27:16 +00:00
Ghanshyam 05925e4c20 Port used_limits & used_limits_for_admin into v2.1
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
2014-09-03 14:18:21 +09:00
Jenkins 65ad485982 Merge "Convert server_usage v3 plugin to v2.1 API" 2014-09-03 03:41:06 +00:00
Jenkins 347472be66 Merge "Port volumes extension to work in v2.1/v3 framework" 2014-09-03 03:35:29 +00:00
Jenkins 9c7b6cbf95 Merge "Convert v3 servers return_reservation_id behaviour to v2.1" 2014-09-03 01:58:58 +00:00
Jenkins d15607045b Merge "Convert v3 hypervisor plugin to v2.1" 2014-09-03 01:56:11 +00:00
Jenkins cde62416f8 Merge "Convert migrate_server v3 plugin to v2.1" 2014-09-03 01:55:52 +00:00
Jenkins 3e2537d4da Merge "Change v3 availability-zone API to v2.1" 2014-09-02 22:24:04 +00:00
Eli Qiao 1a6d0071a9 Change v3 admin_actions to v2.1
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
2014-09-02 15:08:12 +08:00
Jenkins caddd9dbad Merge "Change v3 flavor_access to v2.1" 2014-09-02 03:16:26 +00:00
Haiwei Xu be605e9996 Convert v3 ExtendedAvailabilityZone api to v2.1
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
2014-09-02 11:54:09 +09:00
Ghanshyam 2529fbe1aa Convert v3 hypervisor plugin to v2.1
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
2014-09-02 11:25:00 +09:00
jichenjc 0af17f3514 Convert server_usage v3 plugin to v2.1 API
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
2014-09-02 10:35:43 +09:30
Chris Yeoh f9b3854228 Convert v3 servers return_reservation_id behaviour to v2.1
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
2014-09-02 10:08:44 +09:30
Chris Yeoh 115a78d452 Port volumes extension to work in v2.1/v3 framework
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
2014-09-02 09:28:06 +09:30
Chris Yeoh aab2bac48c Port image-size extension to work in v2.1/v3 framework
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
2014-09-01 22:27:31 +08:00
Chris Yeoh fb37f5453c Port v2 image_metadata extension to work in v2.1(v3) framework
Port v2 image_metadata 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 existing testing with both
  v2/v2.1
- Adds expected error decorators for API methods
- Adds API samples

Partially implements blueprint v2-on-v3-api

Change-Id: Ibc8dc897f3449a1c70bc7ac1510445f48fddb291
2014-09-01 22:26:37 +08:00
Jenkins bb8d8c7185 Merge "Changes V3 server_actions extension into v2.1" 2014-09-01 13:48:37 +00:00
Chris Yeoh 941a8db372 Convert migrate_server v3 plugin to v2.1
Changes required to have v3 plugin natively support
the v2 API.

The migrate_live action is reverted back to os-migrateLive

Partially implements blueprint v2-on-v3-api

Change-Id: Ib3332ecfbf47ed6cad6108399083f0c26b7eebfe
2014-09-01 21:31:30 +08:00
Eli Qiao 6e66148807 Changes V3 evacuate extension into v2.1
This patch changes v3 evacuate API to v2.1, and also share v2.1 and v2
test case.
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: Ib105e367be5a921f1b9cade51204b224d99343ec
2014-09-01 21:15:10 +08:00
Jenkins b9c10c828e Merge "Convert v3 server metadata plugin to v2.1" 2014-09-01 10:14:54 +00:00
jichenjc d9b729f5ad Change v3 flavor_access to v2.1
This patch changes v3 flavor_access 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: I75891e76753fba937b4a01f592afb4bd03aacd9c
2014-09-01 16:01:31 +09:30
Jenkins 4f0ce8ac8c Merge "Changes V3 remote_console extension into v2.1" 2014-09-01 05:50:07 +00:00
jichenjc b8251f4ec9 Convert rescue v3 plugin to v2.1 API
Changes required to have v3 plugin natively support the V2.1
API.

The parameters admin_password and image_ref were reverted to
adminPass and rescue_image_ref

Partially implements blueprint v2-on-v3-api
Co-Authored-By: Chris Yeoh <cyeoh@au1.ibm.com>
Change-Id: Ibca991b5d6ec065ea9fbb0318c4ab51a3c5a3eba
2014-09-01 14:15:53 +09:30
Jenkins 27cd6c785b Merge "Change v3 hosts to v2.1" 2014-09-01 04:16:05 +00:00