Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-10060

ListUsage API always displays the Virtual size as '0' for Usage type=9 (snapshot)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      Bug Description:
      In the listUsage API, the Virtual Size of Snapshot is always displayed as '0'.

      Root Cause:
      In case of snapshots, the usage is accounted for depending on the value of the global parameter, 'usage.snapshot.virtualsize.select'. If set to 'true', the usage is done based on the Virtual Size, and if set to false, it is done based on the Physical size. In the Usage API, this value, (i.e. virtual or physical) is displayed as 'Size' field in the Usage API and the field 'VirtualSize' is always displayed as 0.

      Expected Output:
      Since this is a Usage API, ideally only that size should be displayed which is used for billing, depending on the value of 'usage.snapshot.virtualsize.select'.

      There is another API - the ListSnapshot API that displays both, the physical as well as Virtual size and can be used to know both the sizes.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pranalim Pranali Mande
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: