diff options
author | Matt Riedemann <mriedem.os@gmail.com> | 2019-08-07 09:11:14 -0400 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2019-08-08 18:13:33 -0400 |
commit | 0e7c99c8ead42326d8660103b0c78df70b775fe4 (patch) | |
tree | ac3a7d3392f63a889dbc850eb3124e0c23133654 /releasenotes | |
parent | e281368c9679b385ecfb05737e614a05a9bab291 (diff) | |
download | python-novaclient-0e7c99c8ead42326d8660103b0c78df70b775fe4.tar.gz |
Add --migration-type and --source-compute to migration-list
The GET /os-migrations API take a migration_type and source_compute
filter parameter on the request since the v2.0 API. This adds support
for specifying those parameters in the "nova migration-list" CLI
and related MigrationManager.list() python API binding methods.
A functional test is added which will cover the new options on all
three of the decorated do_migration_list shell methods with lower
bounds on 2.1, 2.59 and 2.66. Since the only type of migration we
can safely generate in a single-node CI job is a resize the test
does a resize. As such, _pick_alternate_flavor is moved into the
base test class for re-use.
Implements blueprint more-migration-list-filters
Change-Id: I4be9a06df3e0d40d3990d067ce112247a81b45b4
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/bp-more-migration-list-filters-6c801896c7ee5cdc.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/releasenotes/notes/bp-more-migration-list-filters-6c801896c7ee5cdc.yaml b/releasenotes/notes/bp-more-migration-list-filters-6c801896c7ee5cdc.yaml new file mode 100644 index 00000000..14e028d3 --- /dev/null +++ b/releasenotes/notes/bp-more-migration-list-filters-6c801896c7ee5cdc.yaml @@ -0,0 +1,9 @@ +--- +features: + - | + The ``--migration-type`` and ``--source-compute`` options are added to the + ``nova migration-list`` CLI and related kwargs are added to the + ``novaclient.v2.migrations.MigrationManager.list`` method. These can be + used to filter the list of migrations by type (evacuation, live-migration, + migration, resize) and the name of the source compute service host involved + in the migration. |