Make os-instance-actions read deleted instances

Registered by Matt Riedemann

The os-instance-actions API currently does not read deleted instances:

https://github.com/openstack/nova/blob/12.0.0/nova/api/openstack/compute/instance_actions.py#L58

Also, instance_actions are not soft deleted when an instance is deleted, so we can still read them out of the DB w/o needing the read_deleted='yes' flag.

The point of instance actions is auditing, and in the case of a post-mortem when an instance is deleted, instance_actions would be used for this, but b/c of the API limitation, you can't get those out of the API on the deleted instance.

The use case being multiple users are in the same project/tenant and user A deletes a shared instance and user B wants to know what happened to it (or who deleted it).

This would require a microversion bump to the os-instance-actions API.

Blueprint information

Status:
Complete
Approver:
Andrew Laski
Priority:
Low
Drafter:
Matt Riedemann
Direction:
Approved
Assignee:
Mark Doffman
Definition:
Approved
Series goal:
Accepted for mitaka
Implementation:
Implemented
Milestone target:
milestone icon mitaka-3
Started by
John Garbutt
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/os-instance-actions-read-deleted-instances,n,z

Addressed by: https://review.openstack.org/248288
    Make os-instance-actions read deleted instances

Addressed by: https://review.openstack.org/253087
    Make os-instance-action read deleted instances.

Addressed by: https://review.openstack.org/276959
    parametrize max_api_version in tests

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.