Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13559106DA for ; Fri, 18 Apr 2014 08:52:21 +0000 (UTC) Received: (qmail 37861 invoked by uid 500); 18 Apr 2014 08:52:19 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 37773 invoked by uid 500); 18 Apr 2014 08:52:17 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 37745 invoked by uid 500); 18 Apr 2014 08:52:16 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 37737 invoked by uid 99); 18 Apr 2014 08:52:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 08:52:16 +0000 Date: Fri, 18 Apr 2014 08:52:16 +0000 (UTC) From: "Gaurav Aradhye (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-6446) [Enhancement] Primary and secondary storage counts should be returned in Bytes in listing APIs rather than GBs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-6446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973900#comment-13973900 ] Gaurav Aradhye commented on CLOUDSTACK-6446: -------------------------------------------- I am suggesting a change only in the APIs which fetch data from DB and do no insert operation. Only the List APIs can be modified. Does current implementation store the size in GB itself in the database? I believe it is storing in bytes and converting to GB while listing. Also, right now, the size of template is returned in bytes. I expect list APIs to return the values in same format. > [Enhancement] Primary and secondary storage counts should be returned in Bytes in listing APIs rather than GBs > -------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-6446 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6446 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Components: API > Affects Versions: 4.3.0 > Environment: All hypervisors > Reporter: Gaurav Aradhye > Labels: automation > Fix For: 4.4.0 > > > The APIs listing the primary and secondary storage counts show the count in GB. In case when the resource usage is much smaller, in KBs or MBs, it is being shown as 0 GB. > Rather than listing this in GBs, it should be shown in Bytes just like "size" of any resource is listed in KBs. > We can later convert this into any other unit we want, e.g. if UI wants to show that in GB, it can convert it into GB and then display. > For test cases purpose, it's very important that exact count is shown in Bytes. -- This message was sent by Atlassian JIRA (v6.2#6252)