Fill the gap for instance action records

Registered by Zhenyu Zheng

Instance action records are really useful for auditing, but yet some
of the important actions does not trigger instance action recording.

As disgussed in Queens PTG, we are agreed to fill the gap for
instance action records [1].

Workflows that currently missing action recording:

* attach/detach interfaces
* attach/detach volumes
* swap volumes
* createBackup
* createImage
* lock/unlock
* shelveOffload

[1] http://lists.openstack.org/pipermail/openstack-dev/2017-September/122258.html

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Zhenyu Zheng
Direction:
Approved
Assignee:
Zhenyu Zheng
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-3
Started by
Zhenyu Zheng
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

These generally look OK to me. The attach interface/volume ones aren't technically server "actions" per the actions API:

https://developer.openstack.org/api-ref/compute/#servers-run-an-action-servers-action

But they are useful to track for things happening to a server when they are asynchronous, and we've already kind of set a precedent with the extend_volume action added in the Pike release.

I'll bring this up in the next Nova meeting on October 12th but I think this is OK as a specless blueprint.

-- mriedem 20171010

Agreed in the Oct 12 nova meeting that this is OK without a spec. Approving for Queens. -- mriedem 20171012

Gerrit topic: https://review.openstack.org/#q,topic:bp/fill-the-gap-for-instance-action-records,n,z

Addressed by: https://review.openstack.org/512190
    Add instance action record for attach/detach interface

Addressed by: https://review.openstack.org/517205
    Add instance action record for attach/detach/swap volumes

Addressed by: https://review.openstack.org/523353
    Add instance action record for lock/unlock instances

Addressed by: https://review.openstack.org/523653
    Add instance action record for shelve_offload instances

Addressed by: https://review.openstack.org/523676
    Add instance action record for backup instances

Addressed by: https://review.openstack.org/524047
    Modify _poll_shelved_instances periodic task call _shelve_offload_instance()

Addressed by: https://review.openstack.org/525921
    Add instance action record for snapshot instances

Addressed by: https://review.openstack.org/530284
    Revert "Modify _poll_shelved_instances periodic task call _shelve_offload_instance()"

The last functional patch for this blueprint merged on Dec 27, 2017. -- mriedem 20180102

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.