[ https://issues.apache.org/jira/browse/CLOUDSTACK-2129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637952#comment-13637952 ]
ASF subversion and git services commented on CLOUDSTACK-2129: ------------------------------------------------------------- Commit 5118e9e29faeddd2408e925d43c2b8afdf170b6b in branch refs/heads/master from [~mice] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=5118e9e ] 1) fix CLOUDSTACK-2129 and CLOUDSTACK-2128 2) include nicId in network.offerings.assign/remove event 3) use publishUsageEvent instead of saveUsageEvent to track usageEvent > usage event NETWORK.OFFERING.REMOVE should be generated when > removeNicFromVirtualMachine api is called > ------------------------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-2129 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2129 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Network Controller, Usage > Affects Versions: 4.2.0 > Environment: build:CloudStack-non-OSS-MASTER-232-rhel6.3.tar.gz > Reporter: shweta agarwal > Assignee: Mice Xia > Priority: Critical > Fix For: 4.2.0 > > > When we remove a nic/network from a VM via removeNicFromVirtualMachine api > we need to register it in usage events table via NETWORK.OFFERING.REMOVE > event for proper calculation of usage. Presently we only register it in > events table via nic.remove event -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira