python-novaclient/releasenotes/notes/bp-more-migration-list-filters-6c801896c7ee5cdc.yaml
Matt Riedemann 0e7c99c8ea 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
2019-08-08 18:13:33 -04:00

10 lines
424 B
YAML

---
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.