Add host info to instance action events

Registered by Yikun Jiang

Currently, the admins can use instance action API to look up the instance
actions info, it is very useful for admins and operaters. But the host
info of events are not recorded and not exposed to user.

This host info helps admins to find the host of events occuring, especially,
when some failed events happened, the admins can find the failed host and log
as soon as possible.

Blueprint information

Status:
Complete
Approver:
Matt Riedemann
Priority:
Low
Drafter:
Yikun Jiang
Direction:
Approved
Assignee:
Yikun Jiang
Definition:
Approved
Series goal:
Accepted for rocky
Implementation:
Implemented
Milestone target:
milestone icon rocky-2
Started by
Yikun Jiang
Completed by
Matt Riedemann

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/proposes,n,z

Addressed by: https://review.openstack.org/543277
    Add host info to instance action events

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-host-to-instance-action-events,n,z

Approved for Rocky. -- mriedem 20180319

Addressed by: https://review.openstack.org/554251
    Address review comments from afdc828db3c9d0205b6ded268db24f5cdf857fa6

Addressed by: https://review.openstack.org/555146
    Add host info to instance action events

Addressed by: https://review.openstack.org/556513
    Add host to API and Conductor

Addressed by: https://review.openstack.org/556746
    Record the host info in EventReporter

Addressed by: https://review.openstack.org/557145
    Add host/hostId to instance action events API

Addressed by: https://review.openstack.org/555282
    Extract generate_hostid method into utils.py

Addressed by: https://review.openstack.org/561205
    Address nits in Idf57fb5fbc611abb83943bd7e36d3cebf03b3977

Addressed by: https://review.openstack.org/561493
    Address nits in I00d29e9fd80e6b8f7ba3bbd8e82dde9d4cb1522f

Addressed by: https://review.openstack.org/561819
    ServerActionsSampleJsonTest refactor

Addressed by: https://review.openstack.org/562547
    Support inherit api samples in ApiSampleTestBase

Addressed by: https://review.openstack.org/563802
    Address nits in Iac23a574a05e62a99aab20ffce4265f4fb5a44d9

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.