[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805178#comment-13805178
 ] 

Murali Reddy commented on CLOUDSTACK-4951:
------------------------------------------

there is a mechanism in place for publishing the UUID of the resource for all 
the action events that are published on to event bus.

For e.g. createUerAccount in the AccountManager leverages 
CallContext.putContextParameter to set the UUID details in the CallContext. In 
the ActionEventUtils.publishOnEventBus uses CallContext.getContextParameter to 
retrieve the deatils and publish UUID on event bus.

I could not figure a way by which automagically all the ActionEvent generating 
sources to push UUID on to CallContext. To me it looks we need to use similar 
logic (push the UUID details on the CallContext) in the all the sources that 
generate action event.

> [event framework] Action events do not have UUID 
> -------------------------------------------------
>
>                 Key: CLOUDSTACK-4951
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4951
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>    Affects Versions: 4.3.0
>            Reporter: Nitin Mehta
>
> I would expect the completed event having the resource id at the very least.
>  [x] 
> 'management-server.ActionEvent.VOLUME-ATTACH.Volume.*':'{"eventDateTime":"2013-10-23
>  15:45:52 -0700","status":"Scheduled","description":"attaching volume: 9 to 
> vm: 
> 7","event":"VOLUME.ATTACH","account":"50d9e8d6-3ab5-11e3-aa50-f0f60225b211","user":"50dc17b4-3ab5-11e3-aa50-f0f60225b211"}'
>  [x] 
> 'management-server.ActionEvent.VOLUME-ATTACH.Volume.*':'{"eventDateTime":"2013-10-23
>  15:45:52 -0700","status":"Started","description":"attaching volume. Volume 
> Id: 9 VmId: 
> 7","event":"VOLUME.ATTACH","account":"50d9e8d6-3ab5-11e3-aa50-f0f60225b211","user":"50dc17b4-3ab5-11e3-aa50-f0f60225b211"}'
>  [x] 
> 'management-server.ActionEvent.VOLUME-ATTACH.Volume.*':'{"eventDateTime":"2013-10-23
>  15:45:55 -0700","status":"Completed","description":"Successfully completed 
> attaching volume. Volume Id: 9 VmId: 
> 7","event":"VOLUME.ATTACH","account":"50d9e8d6-3ab5-11e3-aa50-f0f60225b211","user":"50dc17b4-3ab5-11e3-aa50-f0f60225b211"}'



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to