[ https://issues.apache.org/jira/browse/CLOUDSTACK-5349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13839203#comment-13839203 ]
ASF subversion and git services commented on CLOUDSTACK-5349: ------------------------------------------------------------- Commit ee82870aa25b4202d2fbed21a41956cc1870d776 in branch refs/heads/4.3 from [~nitinme] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ee82870 ] CLOUDSTACK-5349: Volume create usage event and resource count werent getting registered. Check its type rather than it is UserVm since the code is coming from VirtualMachineManager. > [Automation] VOLUME.CREATE missing in events table > -------------------------------------------------- > > Key: CLOUDSTACK-5349 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5349 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server > Affects Versions: 4.3.0 > Environment: ALL > branch 4.3 > Reporter: Rayees Namathponnan > Assignee: Nitin Mehta > Priority: Blocker > Fix For: 4.3.0 > > > # Validate the following > # 1. Create a VM. Verify usage_events table contains VM .create, VM.start , > Network.offering.assign , Volume.create events > # 2. Stop the VM. Verify usage_events table contains network.offerings.remove > ,VM .stop Events for the created account. > # 3. Destroy the VM after some time. Verify usage_events table > containsVM.Destroy and volume .delete Event for the created account > # 4. Delete the account > VOLUME.CREATE missing in events table, below test case failing due to this > integration.component.test_usage.TestVmUsage.test_01_vm_usage > mysql> select type from usage_event where account_id = '103'; > +-------------------------+ > | type | > +-------------------------+ > | VM.CREATE | > | NETWORK.OFFERING.ASSIGN | > | VM.START | > | SG.ASSIGN | > | VM.STOP | > | NETWORK.OFFERING.REMOVE | > | SG.REMOVE | > | VM.DESTROY | > | VOLUME.DELETE | > +-------------------------+ > 9 rows in set (0.00 sec) -- This message was sent by Atlassian JIRA (v6.1#6144)