[
https://issues.apache.org/jira/browse/CLOUDSTACK-8614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616581#comment-14616581
]
Kishan Kavala commented on CLOUDSTACK-8614:
-------------------------------------------
This is fixed in CLOUDSTACK-7792 for 4.6
https://issues.apache.org/jira/browse/CLOUDSTACK-7792
May not be easy to backport it to 4.5
> Usage records have no valid records for migrated volumes
> --------------------------------------------------------
>
> Key: CLOUDSTACK-8614
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8614
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Usage
> Affects Versions: 4.5.1
> Reporter: Norbert Klein
> Priority: Minor
> Labels: usage
>
> If a volume is migrated to another storage pool the usage records do not
> reflect this move.
> If a volume is migrated to another storage pool the cloud.volumes table gets
> a new record for the volume. The uuid of the old record is set to null. The
> uuid of the new record is the same as in the old record. So far this seems to
> be the normal procedure within the cloud database.
> Now, the usage records for this volume are still created but they don't point
> to the new record in the cloud.volumes table: if you make an api call with
> listUsageRecords you find usage records but without the usageid field and the
> description field contains the old Id of the cloud.volumes record. So it is
> hard to associate the usage data to the migrated volumes.
> What should happen imho is that the usage records for migrated volumes
> contain the uuid in the usageid field and the description field should be
> updated so that it contains the new Id.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)