More migration-list filters

Registered by Matt Riedemann on 2019-08-06

The GET /os-migrations API allows filtering on migration_type and source_compute (useful for evacuations):

https://docs.openstack.org/api-ref/compute/#list-migrations

But the "nova migration-list" command doesn't have filter options for those parameters:

https://docs.openstack.org/python-novaclient/latest/cli/nova.html#nova-migration-list

https://github.com/openstack/python-novaclient/blob/14.2.0/novaclient/v2/shell.py#L5456

Being able to filter migrations by type and source compute is useful for recovering from bugs like:

https://bugs.launchpad.net/nova/+bug/1829479

Blueprint information

Status:
Complete
Approver:
Eric Fried
Priority:
Undefined
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
Matt Riedemann
Definition:
Approved
Series goal:
Accepted for train
Implementation:
Implemented
Milestone target:
None
Started by
Eric Fried on 2019-08-08
Completed by
Matt Riedemann on 2019-08-26

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/more-migration-list-filters

Addressed by: https://review.opendev.org/674950
    docs: clarify nova migration-list --host option

Addressed by: https://review.opendev.org/675117
    WIP: Add --migration-type and --source-compute to migration-list

[efried 20190808] Approving specless blueprint per discussion in nova meeting. Noted that this widens the gap with OSC, but OSC doesn't have migration resource anything yet.
http://eavesdrop.openstack.org/meetings/nova/2019/nova.2019-08-08-14.01.log.html#l-144

Addressed by: https://review.opendev.org/678593
    Clarify --migration-type migration value as cold migration

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.