cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajani Karuturi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8816) rabbitMQ: generated events have wrong or missing uuids
Date Fri, 18 Sep 2015 08:57:04 GMT

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

Rajani Karuturi commented on CLOUDSTACK-8816:
---------------------------------------------

events for VM-CREATE doesnt contain resource uuids.

*before*
|                                         routing_key                                    
    |     exchange      | message_count |                                                
                                                                                         
              payload                                                                    
                                                                                    | payload_bytes
| payload_encoding | redelivered |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.*                               
    | cloudstack-events | 3             | {"eventDateTime":"2015-09-18 13:06:05 +0530","status":"Created","description":"Successfully
created entity for deploying Vm. Vm Id: 45","event":"VM.CREATE","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                            | 251           | string     
     | True        |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.27387d81-232f-47d9-a9da-38e23ef0f804
| cloudstack-events | 2             | {"eventDateTime":"2015-09-18 13:06:50 +0530","status":"Scheduled","description":"starting
Vm. Vm Id: 45","event":"VM.CREATE","entityuuid":"27387d81-232f-47d9-a9da-38e23ef0f804","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
| 311           | string           | True        |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.*                               
    | cloudstack-events | 1             | {"eventDateTime":"2015-09-18 13:11:30 +0530","status":"Started","description":"starting
Vm. Vm Id: 45","event":"VM.CREATE","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                         
   | 218           | string           | False       |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.*                               
    | cloudstack-events | 0             | {"eventDateTime":"2015-09-18 13:12:03 +0530","status":"Completed","description":"Successfully
completed starting Vm. Vm Id: 45","event":"VM.CREATE","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                    | 243           | string
          | False       |


*after*
|                                               routing_key                              
                |     exchange      | message_count |                                    
                                                                                         
                                     payload                                             
                                                                                         
                             | payload_bytes | payload_encoding | redelivered |
| management-server.UsageEvent.VM-CREATE.com-cloud-vm-VirtualMachine.7555ca9b-8d26-43b8-9626-2bcca9a054c6
| cloudstack-events | 4             | {"id":"7555ca9b-8d26-43b8-9626-2bcca9a054c6","eventDateTime":"2015-09-18
14:12:29 +0530","event":"VM.CREATE","resource":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","zone":"84621fe3-b155-4d25-83aa-0a34dc71d5fd"}
                                                                                         |
245           | string           | False       |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.*                               
                | cloudstack-events | 3             | {"eventDateTime":"2015-09-18 14:12:29
+0530","status":"Created","description":"Successfully created entity for deploying Vm. Vm
Id: 46","event":"VM.CREATE","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                   | 251 
         | string           | False       |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.7555ca9b-8d26-43b8-9626-2bcca9a054c6
            | cloudstack-events | 2             | {"eventDateTime":"2015-09-18 14:12:29 +0530","status":"Scheduled","description":"starting
Vm. Vm Id: 46","event":"VM.CREATE","entityuuid":"7555ca9b-8d26-43b8-9626-2bcca9a054c6","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                       | 311           | string           | False       |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.7555ca9b-8d26-43b8-9626-2bcca9a054c6
            | cloudstack-events | 1             | {"eventDateTime":"2015-09-18 14:12:29 +0530","status":"Started","description":"starting
Vm. Vm Id: 46","event":"VM.CREATE","entityuuid":"7555ca9b-8d26-43b8-9626-2bcca9a054c6","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                         | 309           | string           | False       |
| management-server.ActionEvent.VM-CREATE.VirtualMachine.7555ca9b-8d26-43b8-9626-2bcca9a054c6
            | cloudstack-events | 0             | {"eventDateTime":"2015-09-18 14:12:39 +0530","status":"Completed","description":"Successfully
completed starting Vm. Vm Id: 46","event":"VM.CREATE","entityuuid":"7555ca9b-8d26-43b8-9626-2bcca9a054c6","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
| 334           | string           | False       |

> rabbitMQ: generated events have wrong or missing uuids
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-8816
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8816
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.3.2, 4.4.4, 4.5.2
>            Reporter: Rajani Karuturi
>            Assignee: Rajani Karuturi
>            Priority: Critical
>
> For many events, entity uuids are missing. One such example is below. (updated in the
comments with events before and after the changes)
> 1. create an account ppp
> 2,create few users under ppp account
> 3.delete the "ppp" account
> 4.check the rabbit mq  for generated events
> actual result:
> Therecieved event has admin user uuid instead of deleted account uuid
> The server reported 0 messages remaining.
> Exchange 	cloudstack-events
> Routing Key 	management-server.AsyncJobEvent.complete.Account.*
> Redelivered 	‚óŹ
> Properties 	
> priority:	0
> delivery_mode:	2
> content_type:	text/plain
> Payload 885 bytes Encoding: string 	
> {"cmdInfo":"{\"id\":\"d08d73a5-b577-4082-a959-114b433979f1\",\"response\":\"json\",\"sessionkey\":\"bYp8fdaTPgTYLtuVlSPxnHj9Iuk\\u003d\",\"ctxDetails\":\"{\\\"com.cloud.user.Account\\\":\\\"d08d73a5-b577-4082-a959-114b433979f1\\\"}\",\"cmdEventType\":\"ACCOUNT.DELETE\",\"ctxUserId\":\"2\",\"httpmethod\":\"GET\",\"_\":\"1416046428981\",\"uuid\":\"d08d73a5-b577-4082-a959-114b433979f1\",\"ctxAccountId\":\"2\",\"ctxStartEventId\":\"271\"}","instanceType":"Account","instanceUuid":"","jobId":"0749f13f-517b-4cba-81f2-c9a9d23445cd","status":"SUCCEEDED","processStatus":"0","commandEventType":"ACCOUNT.DELETE","resultCode":"0","command":"org.apache.cloudstack.api.command.admin.account.DeleteAccountCmd","jobResult":"org.apache.cloudstack.api.response.SuccessResponse/null/{\"success\":true}","account":"fcf6dd7e-6983-11e4-bb12-0662940000db","user":"fcf71ae6-6983-11e4-bb12-0662940000db"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message