cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Sorensen <shadow...@gmail.com>
Subject Re: event bus details
Date Tue, 25 Jun 2013 04:23:35 GMT
Here's another, when deleting a VPC. I see the details of all of the
things it's doing (removing the router, networks, etc), but I can't
tell which VPC was being deleted. I feel like that '*' under
ActionEvent should be telling me the uuid, like that position does in
the other events:

[x] 'management-server.ActionEvent.VPC-DELETE.Vpc.*':'{"status":"Scheduled","event":"VPC.DELETE","account":"f668198a-bbdf-11e2-8bb5-52540014c04d","user":"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
 [x] 'management-server.ResourceStateEvent.StopRequested.Network.b18e3e07-aed0-473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb236","old-state":"Running","new-state":"Stopping","resource":"Network"}'
 [x] 'management-server.ResourceStateEvent.OperationSucceeded.Network.b18e3e07-aed0-473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb236","old-state":"Stopping","new-state":"Stopped","resource":"Network"}'
 [x] 'management-server.ResourceStateEvent.ExpungeOperation.Network.b18e3e07-aed0-473a-aeb2-bfad00bfb236':'{"id":"b18e3e07-aed0-473a-aeb2-bfad00bfb236","old-state":"Stopped","new-state":"Expunging","resource":"Network"}'
 [x] 'management-server.ResourceStateEvent.DestroyRequested.Volume.5dca4da7-d428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a","old-state":"Ready","new-state":"Destroy","resource":"Volume"}'
 [x] 'management-server.ResourceStateEvent.DestroyRequested.Volume.5dca4da7-d428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a","old-state":"Ready","new-state":"Destroy","resource":"Volume"}'
 [x] 'management-server.ResourceStateEvent.OperationSucceeded.Volume.5dca4da7-d428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a","old-state":"Destroy","new-state":"Destroy","resource":"Volume"}'
 [x] 'management-server.ResourceStateEvent.OperationSucceeded.Volume.5dca4da7-d428-4f6f-a474-11eee55fdf3a':'{"id":"5dca4da7-d428-4f6f-a474-11eee55fdf3a","old-state":"Destroy","new-state":"Destroy","resource":"Volume"}'
...

On Mon, Jun 24, 2013 at 10:11 PM, Marcus Sorensen <shadowsor@gmail.com> wrote:
> Hi all,
>    I've been playing around with the new event bus, trying to see if
> it could be useful, and I'm a bit confused about the output. If I
> subscribe to all topics, and try to reboot a virtual machine, this is
> all I see:
>
> 'management-server.ActionEvent.VM-REBOOT.VirtualMachine.*':'{"status":"Scheduled","event":"VM.REBOOT","account":"f66d4d60-bbdf-11e2-8bb5-52540014c04d","user":"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
>
> I see the account info, but nothing about which VM is being rebooted.
>
> If I try to stop/start a VM, I likewise see no details in the
> ActionEvent, about the subject being acted upon:
>
> 'management-server.ActionEvent.VM-STOP.VirtualMachine.*':'{"status":"Scheduled","event":"VM.STOP","account":"f66d4d60-bbdf-11e2-8bb5-52540014c04d","user":"f66f14d8-bbdf-11e2-8bb5-52540014c04d"}'
>
> I do however see some details regarding a 'Network' resource, though
> if I were to write something to parse this output I wouldn't
> immediately know that it was related to a VM (note the 'id' here
> actually matches the VM I'm stopping, but there's nothing in the event
> to tell me it's a VM):
>
> 'management-server.ResourceStateEvent.StopRequested.Network.d287a0fa-6b3b-4e8b-8fb2-2677778ec32c':'{"id":"d287a0fa-6b3b-4e8b-8fb2-2677778ec32c","old-state":"Running","new-state":"Stopping","resource":"Network"}'
>
> I'm just subscribing to "#", so I assume I'm getting everything, but
> I'm just having trouble making sense of the output.

Mime
View raw message