10 Commits

Author SHA1 Message Date
ghanshyam
064f215172 Fix ServerMigrationSampleJsonTests to use sample files from version dir
The ServerMigrationSampleJsonTests functional tests set up
``self.api.microversion`` to 2.22 in its' setUp(), which use
sample files from non version dir.

For consistency, this commit makes these tests to use sample
files from versioned dir.

Change-Id: I9af2348cf7dba53e0fef4054bcedcd5b0c626f50
2018-07-19 05:13:24 +00:00
Kevin_Zheng
4cae503767 API: add support to abort queued live migration in microversion 2.65
This patch bumped API microversion to 2.65 to add support for
abort live migrations in ``queued`` and ``preparing`` status.

Part of blueprint abort-live-migration-in-queued-status

Change-Id: I4636a8d270ce01c1831bc951c4497ad472bc9aa8
2018-07-16 13:57:11 -04:00
Kevin_Zheng
92a0fc0b9f Add pagination and Changes-since filter support for os-migrations.
This patch adds pagination support and changes-since filter
for os-migrations API.

Users can now use 'limit' and 'marker' to perform paginate
query of running migrations list. Users can also filter the
results according to the migrations' updated time.

The ``GET /os-migrations`` and server migrations APIs will now
return a uuid value in addition to the migrations id in the response,
and the query parameter schema of the ``GET /os-migrations`` API no
longer allows additional properties.

Co-Authored-By: Yikun Jiang <yikunkero@gmail.com>

Implement: blueprint add-pagination-and-change-since-for-migration-list
Change-Id: I7e01f95d7173d9217f76e838b3ea71555151ef56
2018-01-10 14:02:53 -05:00
Matt Riedemann
e975603b88 api-ref: body verification for abort live migration
This completes the DELETE method body verification
for server migrations.

This was only supported in microversion >= 2.24 and only
on the libvirt driver so there are notes about it being
conditional.

Closes-Bug: #1641713

Part of blueprint api-ref-in-rst-ocata

Change-Id: I3bc2cb70f8ad12124098376ef01eb7df2f6b2f88
2016-11-16 09:48:10 -05:00
Matt Riedemann
3e210b443d api-ref: body verification for force_complete server migration
This completes the body verification for the force_complete
action for server migrations.

This is only supported with microversion >= 2.22 and only for
in-progress live migrations, on unlocked servers that are in
active/migrating status.

There is also a note as not all compute drivers support this
action. See bug 1641753 for details.

Part of blueprint api-ref-in-rst-ocata

Change-Id: I9cd6cf35b4b5828f0f4acde168cda2beedd902f4
2016-11-14 18:09:54 -05:00
Matt Riedemann
c0774e6776 api-ref: body verification for show server migration
Completes the body verification for showing details of a
specific in-progress live migration for a given server.

Part of blueprint api-ref-in-rst-ocata

Change-Id: I5175fc8814cc5c62739273e02e52b81aa6b39b0b
2016-11-14 17:41:33 -05:00
Matt Riedemann
ca09cbd0a6 api-ref: body verification for list server migrations
This completes the body verification for listing server
migrations.

Note that the code currently filters such that only in-progress
live migration records are returned. This was also only available
with microversion >= 2.23.

Part of blueprint api-ref-in-rst-ocata

Change-Id: I3a785dad690eee80ec1fd50ebc9fd3f7484dc344
2016-11-14 17:41:28 -05:00
Matt Riedemann
6c6df6aa13 api-ref: example verification for server-migrations
Completes the example verification for the server-migrations API.

Partial-Bug: #1641713

Part of blueprint api-ref-in-rst-ocata

Change-Id: I2234ac402d778553cbebb915943ce1fd0b8d6210
2016-11-14 17:27:04 -05:00
Matt Riedemann
7d33dc85f5 api-ref: parameter verification for server-migrations
This completes the parameter verification for the server-migrations
API.

Partial-Bug: #1641713

Part of blueprint api-ref-in-rst-ocata

Change-Id: I94ac520b35f4e6a042456c67bc713202fd8c3c91
2016-11-14 17:26:54 -05:00
Matt Riedemann
925dc7aa12 api-ref: method verification for server-migrations
We don't have any api-ref for server-migrations. os-migrations
is frozen and server-migrations replaces it, but we don't
have any docs for it, so this is a start.

Partial-Bug: #1641713

Part of blueprint api-ref-in-rst-ocata

Change-Id: I3da6ff6a4a0abf2f9c8bae3fb28fe23fdc3b0959
2016-11-14 16:25:37 -05:00