cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daan Hoogland (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-7848) API: updateResourceCount doesn't return all statistics
Date Thu, 09 Jul 2015 09:16:04 GMT

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

Daan Hoogland updated CLOUDSTACK-7848:
--------------------------------------
    Fix Version/s:     (was: 4.5.2)
                   Future

> API: updateResourceCount doesn't return all statistics
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-7848
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7848
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.4.0
>         Environment: CloudStack 4.4.0 w/ KVM Hypervisor on Ubuntu 14.04 LTS
>            Reporter: Logan B
>             Fix For: Future
>
>
> Currently the "updateResourceCount" API call is not returning correct values for all
of the statistics.  Specifically the "Memory Used" and "Secondary Storage Used" are being
returned as "0" even if those resources are being used.
> As a workaround right now I'm having to go through other calls to pull this data down.
> I'm unsure if there are other values not being returned correctly, but I can confirm
that at least the "IPs Used", "Templates Used", and "Primary Storage Used" values are being
returned.
> I have tested this with the "domainid" field specified.  I haven't tested without "domainid"
since that is my use case.
> Here is a var_dump of the call with unique information removed:
> object(stdClass)#2 (1) {
>   ["updateresourcecountresponse"]=>
>   object(stdClass)#3 (2) {
>     ["count"]=>
>     int(12)
>     ["resourcecount"]=>
>     array(12) {
>       [0]=>
>       object(stdClass)#4 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "0"
>         ["resourcecount"]=>
>         int(2)
>       }
>       [1]=>
>       object(stdClass)#5 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "1"
>         ["resourcecount"]=>
>         int(2)
>       }
>       [2]=>
>       object(stdClass)#6 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "2"
>         ["resourcecount"]=>
>         int(2)
>       }
>       [3]=>
>       object(stdClass)#7 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "3"
>         ["resourcecount"]=>
>         int(2)
>       }
>       [4]=>
>       object(stdClass)#8 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "4"
>         ["resourcecount"]=>
>         int(0)
>       }
>       [5]=>
>       object(stdClass)#9 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "5"
>         ["resourcecount"]=>
>         int(0)
>       }
>       [6]=>
>       object(stdClass)#10 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "6"
>         ["resourcecount"]=>
>         int(1)
>       }
>       [7]=>
>       object(stdClass)#11 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "7"
>         ["resourcecount"]=>
>         int(0)
>       }
>       [8]=>
>       object(stdClass)#12 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "8"
>         ["resourcecount"]=>
>         int(0)
>       }
>       [9]=>
>       object(stdClass)#13 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(1) "9"
>         ["resourcecount"]=>
>         int(0)
>       }
>       [10]=>
>       object(stdClass)#14 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(2) "10"
>         ["resourcecount"]=>
>         float(11811160064)
>       }
>       [11]=>
>       object(stdClass)#15 (4) {
>         ["domainid"]=>
>         string(36) "12345678-91234-56789-1234-567891234"
>         ["domain"]=>
>         string(7) "Example"
>         ["resourcetype"]=>
>         string(2) "11"
>         ["resourcecount"]=>
>         int(0)
>       }
>     }
>   }
> }



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

Mime
View raw message