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

Jessica Wang resolved CLOUDSTACK-5475.
--------------------------------------
    Resolution: Fixed

(attached a screenshot)

parameters are getting listed only once:

http://10.215.3.26:8080/client/api?command=listConfigurations&clusterid=f275f6c2-cfc9-450e-83bb-1fde50937e7c&response=json&sessionkey=gYMe%2FK14xXy3Mop%2FJOyRvnramio%3D&listAll=true&page=1&pagesize=20&_=1412811690669
{
    "listconfigurationsresponse": {
        "count": 8,
        "configuration": [
            {
                "category": "Alert",
                "name": "cluster.cpu.allocated.capacity.disablethreshold",
                "value": "0.85",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of cpu 
utilization above which allocators will disable using the cluster for low cpu 
available. Keep the corresponding notification threshold lower than this to be 
notified beforehand."
            },
            {
                "category": "Alert",
                "name": "cluster.cpu.allocated.capacity.notificationthreshold",
                "value": "0.75",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of cpu 
utilization above which alerts will be sent about low cpu available."
            },
            {
                "category": "Alert",
                "name": "cluster.memory.allocated.capacity.disablethreshold",
                "value": "0.85",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of 
memory utilization above which allocators will disable using the cluster for 
low memory available. Keep the corresponding notification threshold lower than 
this to be notified beforehand."
            },
            {
                "category": "Alert",
                "name": 
"cluster.memory.allocated.capacity.notificationthreshold",
                "value": "0.75",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of 
memory utilization above which alerts will be sent about low memory available."
            },
            {
                "category": "Alert",
                "name": 
"cluster.storage.allocated.capacity.notificationthreshold",
                "value": "0.75",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of 
allocated storage utilization above which alerts will be sent about low storage 
available."
            },
            {
                "category": "Alert",
                "name": "cluster.storage.capacity.notificationthreshold",
                "value": "0.75",
                "scope": "cluster",
                "description": "Percentage (as a value between 0 and 1) of 
storage utilization above which alerts will be sent about low storage 
available."
            },
            {
                "category": "Advanced",
                "name": "cpu.overprovisioning.factor",
                "value": "1.0",
                "scope": "cluster",
                "description": "Used for CPU overprovisioning calculation; 
available CPU will be (actualCpuCapacity * cpu.overprovisioning.factor)"
            },
            {
                "category": "Advanced",
                "name": "mem.overprovisioning.factor",
                "value": "1.0",
                "scope": "cluster",
                "description": "Used for memory overprovisioning calculation"
            }
        ]
    }
}

> cluster.cpu/(memory).allocated.capacity.disablethreshold is getting displayed 
> multiple time  under cluster setting tab
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5475
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5475
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>    Affects Versions: 4.3.0
>            Reporter: prashant kumar mishra
>            Assignee: Jessica Wang
>             Fix For: 4.4.0
>
>         Attachments: 2014-10-08-jessica.PNG, screenshot-1.jpg
>
>
> Check cluster setting tab ,
> Expected
> ------------
> it should list each parameter exactly once
> Actual
> --------
> parameters are getting listed multiple time
> API request and response
> --------------------------------------
> http://10.147.38.177:8080/client/api?command=listConfigurations&clusterid=2afd110b-d56c-46c1-b1fc-b75e444b8b10&response=json&sessionkey=WOFihQLyP9a4XnpkkgDjDea29rQ%3D&page=1&pageSize=20&listAll=true&_=1386843291786
> response:
> ------------
> { "listconfigurationsresponse" : { "count":14 ,"configuration" : [  
> {"category":"Advanced","name":"cpu.overprovisioning.factor","value":"1.0","scope":"cluster","description":"Used
>  for CPU overprovisioning calculation; available CPU will be 
> (actualCpuCapacity * cpu.overprovisioning.factor)"}, 
> {"category":"Advanced","name":"mem.overprovisioning.factor","value":"1.0","scope":"cluster","description":"Used
>  for memory overprovisioning calculation"}, 
> {"category":"Alert","name":"cluster.cpu.allocated.capacity.notificationthreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of cpu utilization above which alerts will be 
> sent about low cpu available."}, 
> {"category":"Alert","name":"cluster.memory.allocated.capacity.notificationthreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of memory utilization above which alerts will 
> be sent about low memory available."}, 
> {"category":"Alert","name":"cluster.storage.allocated.capacity.notificationthreshold","value":"1.0","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of allocated storage utilization above which 
> alerts will be sent about low storage available."}, 
> {"category":"Alert","name":"cluster.storage.capacity.notificationthreshold","value":"1.0","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of storage utilization above which alerts will 
> be sent about low storage available."}, 
> {"category":"Alert","name":"cluster.cpu.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of cpu utilization above which allocators will 
> disable using the cluster for low cpu available. Keep the corresponding 
> notification threshold lower than this to be notified beforehand."}, 
> {"category":"Alert","name":"cluster.memory.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of memory utilization above which allocators 
> will disable using the cluster for low memory available. Keep the 
> corresponding notification threshold lower than this to be notified 
> beforehand."}, 
> {"category":"Alert","name":"cluster.cpu.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of cpu utilization above which allocators will 
> disable using the cluster for low cpu available. Keep the corresponding 
> notification threshold lower than this to be notified beforehand."}, 
> {"category":"Alert","name":"cluster.memory.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of memory utilization above which allocators 
> will disable using the cluster for low memory available. Keep the 
> corresponding notification threshold lower than this to be notified 
> beforehand."}, 
> {"category":"Alert","name":"cluster.cpu.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of cpu utilization above which allocators will 
> disable using the cluster for low cpu available. Keep the corresponding 
> notification threshold lower than this to be notified beforehand."}, 
> {"category":"Alert","name":"cluster.memory.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of memory utilization above which allocators 
> will disable using the cluster for low memory available. Keep the 
> corresponding notification threshold lower than this to be notified 
> beforehand."}, 
> {"category":"Alert","name":"cluster.cpu.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of cpu utilization above which allocators will 
> disable using the cluster for low cpu available. Keep the corresponding 
> notification threshold lower than this to be notified beforehand."}, 
> {"category":"Alert","name":"cluster.memory.allocated.capacity.disablethreshold","value":"0.1","scope":"cluster","description":"Percentage
>  (as a value between 0 and 1) of memory utilization above which allocators 
> will disable using the cluster for low memory available. Keep the 
> corresponding notification threshold lower than this to be notified 
> beforehand."} ] } }



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

Reply via email to