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-3814) Duplicate entry for CPU, Public ip address in dashboard
Date Sat, 27 Jul 2013 23:13:48 GMT

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

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

Commit bfd32ca8ff1dfbb5c574dd07991c4988bba942e6 in branch refs/heads/4.2 from [~prachidamle]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=bfd32ca ]

CLOUDSTACK-3814 Duplicate entry for CPU, Public ip address in dashboard

Changes:
- ListCapacity API was searching the capacities per zone, pod and cluster causing duplicates
to end up in th result.
- Instead we should group by zone if zone and pod both are null. Group by pod if zone is provided
but no pod. Or group by cluster when zone and pod both are provided.

                
> Duplicate entry for CPU, Public ip address in dashboard 
> --------------------------------------------------------
>
>                 Key: CLOUDSTACK-3814
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3814
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.2.0
>         Environment: 4.2
>            Reporter: Rayees Namathponnan
>            Assignee: Prachi Damle
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: CLOUDSTACK-3814.png
>
>
> Please see the attached dashboard image; there are duplicate entries for CPU and public
ip address 
> Also see the JSON output "type : 4, zone 1" there are two entries also capacity information
is different for both  
> {
>     "listcapacityresponse": {
>         "count": 8,
>         "capacity": [
>             {
>                 "type": 1,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "capacityused": 12300,
>                 "capacitytotal": 18084,
>                 "percentused": "68.02"
>             },
>             {
>                 "type": 1,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "podid": "78d5b524-1191-4683-8ad7-d7d3a6514cd3",
>                 "podname": "POD01",
>                 "capacityused": 12300,
>                 "capacitytotal": 18084,
>                 "percentused": "68.02"
>             },
>             {
>                 "type": 1,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "podid": "78d5b524-1191-4683-8ad7-d7d3a6514cd3",
>                 "podname": "POD01",
>                 "clusterid": "4b0f81d0-31a4-44f7-9c5d-c64acd0d6ea8",
>                 "clustername": "KVM_Cluster1",
>                 "capacityused": 12300,
>                 "capacitytotal": 18084,
>                 "percentused": "68.02"
>             },
>             {
>                 "type": 6,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "capacityused": 7668664303616,
>                 "capacitytotal": 11810778316800,
>                 "percentused": "64.93"
>             },
>             {
>                 "type": 6,
>                 "zoneid": "7b74a8e5-8ba2-4ce2-955c-12045779a315",
>                 "zonename": "Adv-KVM-Zone2",
>                 "capacityused": 7668664303616,
>                 "capacitytotal": 11810778316800,
>                 "percentused": "64.93"
>             },
>             {
>                 "type": 4,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "capacityused": 30,
>                 "capacitytotal": 55,
>                 "percentused": "54.55"
>             },
>             {
>                 "type": 4,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "capacityused": 32,
>                 "capacitytotal": 114,
>                 "percentused": "28.07"
>             },
>             {
>                 "type": 4,
>                 "zoneid": "5ff1c121-0591-48f7-b19e-360cdd70be65",
>                 "zonename": "Adv-KVM-Zone1",
>                 "capacityused": 32,
>                 "capacitytotal": 114,
>                 "percentused": "28.07"
>             }
>         ]
>     }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message