cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-8312) The storage usage of "Primary Storage Allocated" is incorrect.
Date Fri, 20 Mar 2015 11:57:39 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14371187#comment-14371187
] 

ASF subversion and git services commented on CLOUDSTACK-8312:
-------------------------------------------------------------

Commit 53ca0b1861c743caf61ec04f776c87eac334f185 in cloudstack's branch refs/heads/4.5 from
[~rohit.yadav@shapeblue.com]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=53ca0b1 ]

CLOUDSTACK-8312: Fix NPE regression, copy template can have NULL volume size

The copy command reply can have null size returned, so check and set values

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>


> The storage usage of "Primary Storage Allocated" is incorrect.
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8312
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8312
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.5.0
>         Environment: Master branch code
> XS 6.5
>            Reporter: Sanjay Tripathi
>            Assignee: Sanjay Tripathi
>             Fix For: 4.6.0
>
>
> CS only count volume size into "Resources:Primary Storage Allocated", but missed count
in template copied to primary storage.
> Infrastructure -> Zones -> Advanced-Zone -> Resources:Primary Storage Allocated
> SELECT SUM(volumes.size),COUNT(*) FROM volumes WHERE volumes.pool_id = ?  AND volumes.removed
IS NULL  AND volumes.state != 'Destroy'  
>  
> REPRO STEPS
> ==================
> 1. Get CS prepared.
> 2. query volume size in database, which is exactly size show in UI:
> Infrastructure -> Zones -> Advanced-Zone -> Resources:Primary Storage Allocated

> 3.it does not count in template size in template_spool_ref
>  
> EXPECTED BEHAVIOR
> ==================
> "Primary Storage Allocated" should count both volume and template in primary storage.
> ACTUAL BEHAVIOR
> ==================
> "Primary Storage Allocated" only count volume size.
>  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message