Add the user id and project id of the user initiated the instance action to the notification

Registered by Balazs Gibizer

The instance action notifications contain the user id and the project id of the owner of the instance. However an instance action might be initiated by another user. It could be another user from the same project or can be an admin from the admin project. To be able to distinguish between the user who initiated the instance action from the user owning the instance we need to add two new fields to the instance action notifications, action_initiator_user and action_initiator_project (please bikeshed on the name). These new information can be filled from the context the instance action is running in.

The original request come over IRC: http://eavesdrop.openstack.org/irclogs/%23openstack-nova/%23openstack-nova.2018-01-11.log.html#t2018-01-11T10:12:16

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Balazs Gibizer
Direction:
Approved
Assignee:
shuangyang.qian
Definition:
Approved
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
milestone icon rocky-3
Started by
Matt Riedemann
Completed by
Matt Riedemann

Whiteboard

This seems reasonable, just bring it up in the 'open discussion' part of the weekly nova meeting to get review on it as a specless blueprint. -- mriedem 20180206

We agreed to approve this in the Feb 8 nova meeting:

http://eavesdrop.openstack.org/meetings/nova/2018/nova.2018-02-08-14.00.log.html#l-152

We'll discuss the names of the 'action initiator' fields in the code review. -- mriedem 20180212

https://review.openstack.org/#/c/536243/

Gerrit topic: https://review.openstack.org/#q,topic:bug/1744658,n,z

Addressed by: https://review.openstack.org/536243
    Add action initiator attribute to the payload

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.