cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "prashant kumar mishra (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-8639) fixing calculation mistakes in component/test_ss_domain_limits.py
Date Wed, 15 Jul 2015 12:59:04 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-8639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

prashant kumar mishra updated CLOUDSTACK-8639:
----------------------------------------------
    Description: 
expectedCount=int(int(templates[0].size) / (1024**3))
expectedCount *= 2

if template[0].size is less that one GB , expectedCount will be 0

so expectedCount*=2  will not have any effect . 

fixing expectedCount calculation:

self.templateSize = int((int(templates[0].size)*2) / (1024**3))
expectedCount =self.templateSize

  was:
expectedCount=int(int(templates[0].size) / (1024**3))
expectedCount *= 2

if template[0].size is less that one GB  expectedCount will be 0

so expectedCount*=2  will not have any effect . 

fixing expectedCount calculation:

self.templateSize = int((int(templates[0].size)*2) / (1024**3))


> fixing calculation mistakes in component/test_ss_domain_limits.py
> -----------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8639
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8639
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: marvin
>    Affects Versions: 4.5.1
>            Reporter: prashant kumar mishra
>            Assignee: prashant kumar mishra
>             Fix For: 4.5.1
>
>
> expectedCount=int(int(templates[0].size) / (1024**3))
> expectedCount *= 2
> if template[0].size is less that one GB , expectedCount will be 0
> so expectedCount*=2  will not have any effect . 
> fixing expectedCount calculation:
> self.templateSize = int((int(templates[0].size)*2) / (1024**3))
> expectedCount =self.templateSize



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

Mime
View raw message