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

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

System vm Alert events will not have uuids. Fixed uuids in the other events 
that occur during systemvm reboot.

*Events After the fix*
*ConsoleProxy*

| routing_key| exchange | message_count | payload | payload_bytes | 
payload_encoding | redelivered |
| 
management-server.ActionEvent.PROXY-REBOOT.VirtualMachine.955e785a-9b25-4ade-aa1b-65fd9617a4e6
 | cloudstack-events | 4             | {"eventDateTime":"2015-09-09 14:02:53 
+0530","status":"Scheduled","description":"rebooting system vm: 
2","event":"PROXY.REBOOT","entityuuid":"955e785a-9b25-4ade-aa1b-65fd9617a4e6","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
| 314           | string           | True        |
| 
management-server.AsyncJobEvent.submit.SystemVm.955e785a-9b25-4ade-aa1b-65fd9617a4e6
           | cloudstack-events | 3             |{noformat} 
{"cmdInfo":"{\"id\":\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\",\"response\":\"json\",\"ctxDetails\":\"{\\\"interface
 
com.cloud.vm.VirtualMachine\\\":\\\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\\\"}\",\"cmdEventType\":\"PROXY.REBOOT\",\"ctxUserId\":\"2\",\"httpmethod\":\"GET\",\"_\":\"1441787903337\",\"uuid\":\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\",\"ctxAccountId\":\"2\",\"ctxStartEventId\":\"744\"}","instanceType":"SystemVm","instanceUuid":"955e785a-9b25-4ade-aa1b-65fd9617a4e6","jobId":"baa9dfa0-2500-4ada-9a19-a47f3de6b076","status":"IN_PROGRESS","processStatus":"0","commandEventType":"PROXY.REBOOT","resultCode":"0","command":"org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
  {noformat}                                                                    
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
          | 794           | string           | True        |
| 
management-server.ActionEvent.PROXY-REBOOT.VirtualMachine.955e785a-9b25-4ade-aa1b-65fd9617a4e6
 | cloudstack-events | 2             | {"eventDateTime":"2015-09-09 14:02:55 
+0530","status":"Started","description":"rebooting console proxy 
Vm","event":"PROXY.REBOOT","entityuuid":"955e785a-9b25-4ade-aa1b-65fd9617a4e6","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                              | 
316           | string           | True        |
| management-server.AlertEvent.ALERT-SERVICE-CONSOLEPROXY.*.*                   
                 | cloudstack-events | 1             | {"body":"Console proxy 
rebooted (zone xen-zone0)","eventDateTime":"2015-09-09 14:03:07 
+0530","subject":"Console proxy rebooted in zone: xen-zone0, proxy: v-2-VM, 
public IP: 10.147.30.171, private IP: 
10.147.28.177","event":"ALERT.SERVICE.CONSOLEPROXY","dataCenterId":"84621fe3-b155-4d25-83aa-0a34dc71d5fd","podId":"ddb50261-0812-412f-a3f6-8774edc2dd1a"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                        | 354           | string           | 
True        |
| 
management-server.AsyncJobEvent.complete.SystemVm.955e785a-9b25-4ade-aa1b-65fd9617a4e6
         | cloudstack-events | 0             | 
{noformat}{"cmdInfo":"{\"id\":\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\",\"response\":\"json\",\"ctxDetails\":\"{\\\"interface
 
com.cloud.vm.VirtualMachine\\\":\\\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\\\"}\",\"cmdEventType\":\"PROXY.REBOOT\",\"ctxUserId\":\"2\",\"httpmethod\":\"GET\",\"_\":\"1441787903337\",\"uuid\":\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\",\"ctxAccountId\":\"2\",\"ctxStartEventId\":\"744\"}","instanceType":"SystemVm","instanceUuid":"955e785a-9b25-4ade-aa1b-65fd9617a4e6","jobId":"baa9dfa0-2500-4ada-9a19-a47f3de6b076","status":"SUCCEEDED","processStatus":"0","commandEventType":"PROXY.REBOOT","resultCode":"0","command":"org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd","jobResult":"org.apache.cloudstack.api.response.SystemVmResponse/systemvm/{\"id\":\"955e785a-9b25-4ade-aa1b-65fd9617a4e6\",\"systemvmtype\":\"consoleproxy\",\"zoneid\":\"84621fe3-b155-4d25-83aa-0a34dc71d5fd\",\"zonename\":\"xen-zone0\",\"dns1\":\"10.140.50.5\",\"gateway\":\"10.147.30.1\",\"name\":\"v-2-VM\",\"podid\":\"ddb50261-0812-412f-a3f6-8774edc2dd1a\",\"hostid\":\"358015cc-b04f-4759-9bb2-a8f393b2cc97\",\"hostname\":\"rjn-xen65-host\",\"hypervisor\":\"XenServer\",\"privateip\":\"10.147.28.177\",\"privatemacaddress\":\"06:23:48:00:00:03\",\"privatenetmask\":\"255.255.255.0\",\"linklocalip\":\"169.254.2.114\",\"linklocalmacaddress\":\"0e:00:a9:fe:02:72\",\"linklocalnetmask\":\"255.255.0.0\",\"publicip\":\"10.147.30.171\",\"publicmacaddress\":\"06:91:ba:00:00:07\",\"publicnetmask\":\"255.255.255.0\",\"templateid\":\"d8c74dce-7a0b-46e9-9a8b-12a9f5b5ae4c\",\"created\":\"2015-07-29T14:37:05+0530\",\"state\":\"Running\",\"activeviewersessions\":0}","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
 {noformat}| 1753          | string           | True        |

*SSVM*

| routing_key| exchange | message_count | payload | payload_bytes | 
payload_encoding | redelivered |
| 
management-server.ActionEvent.SSVM-REBOOT.VirtualMachine.a7054744-0361-48c9-9efd-cde81add4aec
 | cloudstack-events | 4             | {"eventDateTime":"2015-09-09 14:07:44 
+0530","status":"Scheduled","description":"rebooting system vm: 
1","event":"SSVM.REBOOT","entityuuid":"a7054744-0361-48c9-9efd-cde81add4aec","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                          | 313           | 
string           | True        |
| 
management-server.AsyncJobEvent.submit.SystemVm.a7054744-0361-48c9-9efd-cde81add4aec
          | cloudstack-events | 3             | 
{noformat}{"cmdInfo":"{\"id\":\"a7054744-0361-48c9-9efd-cde81add4aec\",\"response\":\"json\",\"ctxDetails\":\"{\\\"interface
 
com.cloud.vm.VirtualMachine\\\":\\\"a7054744-0361-48c9-9efd-cde81add4aec\\\"}\",\"cmdEventType\":\"SSVM.REBOOT\",\"ctxUserId\":\"2\",\"httpmethod\":\"GET\",\"_\":\"1441788193217\",\"uuid\":\"a7054744-0361-48c9-9efd-cde81add4aec\",\"ctxAccountId\":\"2\",\"ctxStartEventId\":\"746\"}","instanceType":"SystemVm","instanceUuid":"a7054744-0361-48c9-9efd-cde81add4aec","jobId":"7706aa4a-c30f-4285-9d13-b86e17f688ce","status":"IN_PROGRESS","processStatus":"0","commandEventType":"SSVM.REBOOT","resultCode":"0","command":"org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}{noformat}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                           | 792           | 
string           | True        |
| 
management-server.ActionEvent.SSVM-REBOOT.VirtualMachine.a7054744-0361-48c9-9efd-cde81add4aec
 | cloudstack-events | 2             | {"eventDateTime":"2015-09-09 14:07:46 
+0530","status":"Started","description":"rebooting secondary storage 
Vm","event":"SSVM.REBOOT","entityuuid":"a7054744-0361-48c9-9efd-cde81add4aec","entity":"com.cloud.vm.VirtualMachine","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                    | 319           | string    
       | True        |
| management-server.AlertEvent.ALERT-SERVICE-SSVM.*.*                           
                | cloudstack-events | 1             | {"body":"Secondary 
Storage Vm rebooted (zone xen-zone0)","eventDateTime":"2015-09-09 14:08:49 
+0530","subject":"Secondary Storage Vm rebooted in zone: xen-zone0, 
secStorageVm: s-1-VM, public IP: 10.147.30.170, private IP: 
10.147.28.176","event":"ALERT.SERVICE.SSVM","dataCenterId":"84621fe3-b155-4d25-83aa-0a34dc71d5fd","podId":"ddb50261-0812-412f-a3f6-8774edc2dd1a"}
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
    | 367           | string           | False       |
| 
management-server.AsyncJobEvent.complete.SystemVm.a7054744-0361-48c9-9efd-cde81add4aec
        | cloudstack-events | 0             | 
{noformat}{"cmdInfo":"{\"id\":\"a7054744-0361-48c9-9efd-cde81add4aec\",\"response\":\"json\",\"ctxDetails\":\"{\\\"interface
 
com.cloud.vm.VirtualMachine\\\":\\\"a7054744-0361-48c9-9efd-cde81add4aec\\\"}\",\"cmdEventType\":\"SSVM.REBOOT\",\"ctxUserId\":\"2\",\"httpmethod\":\"GET\",\"_\":\"1441788193217\",\"uuid\":\"a7054744-0361-48c9-9efd-cde81add4aec\",\"ctxAccountId\":\"2\",\"ctxStartEventId\":\"746\"}","instanceType":"SystemVm","instanceUuid":"a7054744-0361-48c9-9efd-cde81add4aec","jobId":"7706aa4a-c30f-4285-9d13-b86e17f688ce","status":"SUCCEEDED","processStatus":"0","commandEventType":"SSVM.REBOOT","resultCode":"0","command":"org.apache.cloudstack.api.command.admin.systemvm.RebootSystemVmCmd","jobResult":"org.apache.cloudstack.api.response.SystemVmResponse/systemvm/{\"id\":\"a7054744-0361-48c9-9efd-cde81add4aec\",\"systemvmtype\":\"secondarystoragevm\",\"zoneid\":\"84621fe3-b155-4d25-83aa-0a34dc71d5fd\",\"zonename\":\"xen-zone0\",\"dns1\":\"10.140.50.5\",\"gateway\":\"10.147.30.1\",\"name\":\"s-1-VM\",\"podid\":\"ddb50261-0812-412f-a3f6-8774edc2dd1a\",\"hostid\":\"358015cc-b04f-4759-9bb2-a8f393b2cc97\",\"hostname\":\"rjn-xen65-host\",\"hypervisor\":\"XenServer\",\"privateip\":\"10.147.28.176\",\"privatemacaddress\":\"06:6d:ce:00:00:02\",\"privatenetmask\":\"255.255.255.0\",\"linklocalip\":\"169.254.0.156\",\"linklocalmacaddress\":\"0e:00:a9:fe:00:9c\",\"linklocalnetmask\":\"255.255.0.0\",\"publicip\":\"10.147.30.170\",\"publicmacaddress\":\"06:16:c0:00:00:06\",\"publicnetmask\":\"255.255.255.0\",\"templateid\":\"d8c74dce-7a0b-46e9-9a8b-12a9f5b5ae4c\",\"created\":\"2015-07-29T14:37:05+0530\",\"state\":\"Running\"}","account":"bd73dc2e-35c0-11e5-b094-d4ae52cb9af0","user":"bd7ea748-35c0-11e5-b094-d4ae52cb9af0"}{noformat}
 | 1730          | 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: sadhu suresh
>            Assignee: Rajani Karuturi
>            Priority: Critical
>
> 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)

Reply via email to