[ https://issues.apache.org/jira/browse/CLOUDSTACK-1010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13557116#comment-13557116 ]
Kishan Kavala commented on CLOUDSTACK-1010: ------------------------------------------- commit 51c1ca7cbe0ed5206ea5844acb71a3f6f53d1959 Author: Kishan Kavala <kis...@cloud.com> Date: Fri Jan 18 16:13:25 2013 +0530 CLOUDSTACK-1010: Fix count issue for listHosts command > Host count and Secondary storage count always shows 1 in UI > ----------------------------------------------------------- > > Key: CLOUDSTACK-1010 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1010 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: API, UI > Affects Versions: 4.1.0 > Environment: KVM > Reporter: Rayees Namathponnan > Assignee: Kishan Kavala > Fix For: 4.1.0 > > > Steps to reproduce the problem: > Step1 - Create Advanced zone with 2 zone, 2 POD, 2 cluster and 2 host in > first zone and 1 host in second zone > Step2 - Add Secondary storage for both zone > Expected result > In Infrastructure UI number host should be 3 and Secondary storage count > should 2 > Actual Result > In Infrastructure UI number host and Secondary storage count shows 1 > Addition information : > List host count always shows one > 2013-01-17 11:38:18,819 INFO [cloud.api.ApiServer] (catalina-exec-18:null) > (userId=2 accountId=2 sessionId=C34EAC8B33A6CDA76525F44E518EB94D) > 10.216.133.42 -- GET > command=listHosts&response=json&sessionkey=3IFMlr8PP0whLZrAnDjSxwBEIDA%3D&type=SecondaryStorage&page=1&pagesize=1&_=1358451527529 > 200 { "listhostsresponse" : { "count":1 ,"host" : [ > {"id":"6a1deb76-7c6c-47be-b200-b36f84398f4b","name":"nfs://10.223.110.232:/export/home/rayees/SC_QA_AUTO4/secondary","state":"Alert","type":"SecondaryStorage","ipaddress":"nfs","zoneid":"49686851-5225-4b28-9096-19a4730b07cc","zonename":"Adv-KVM-Zone1","version":"4.1.0.20130116180639","hypervisor":"None","disksizetotal":11810778316800,"disksizeallocated":6434799058944,"lastpinged":"1970-01-16T00:30:03-0800","islocalstorageactive":false,"created":"2013-01-17T08:59:01-0800","events":"ShutdownRequested; > Remove; Ping; AgentDisconnected; ManagementServerDown; > AgentConnected","suitableformigration":false,"resourcestate":"Enabled"} ] } } > 2013-01-17 11:38:18,893 INFO [cloud.api.ApiServer] (catalina-exec-1:null) > (userId=2 accountId=2 sessionId=C34EAC8B33A6CDA76525F44E518EB94D) > 10.216.133.42 -- GET > command=listSystemVms&response=json&sessionkey=3IFMlr8PP0whLZrAnDjSxwBEIDA%3D&page=1&pagesize=1&_=1358451527561 > 200 { "listsystemvmsresponse" : { "count":4 ,"systemvm" : [ > {"id":"840eba2d-a51b-4662-8728-48c9f2a562fd","systemvmtype":"secondarystoragevm","zoneid":"49686851-5225-4b28-9096-19a4730b07cc","zonename":"Adv-KVM-Zone1","dns1":"72.52.126.11","gateway":"10.223.122.65","name":"s-1-QA","podid":"8ea2bb62-075e-43f1-87c1-d1873ff04daf","hostid":"0ac3c490-78db-4087-8ff9-6e8cee3a2907","hostname":"Rack2Host11.lab.vmops.com","privateip":"10.223.50.95","privatemacaddress":"06:d2:08:00:00:1e","privatenetmask":"255.255.255.192","linklocalip":"169.254.3.100","linklocalmacaddress":"0e:00:a9:fe:03:64","linklocalnetmask":"255.255.0.0","publicip":"10.223.122.66","publicmacaddress":"06:a7:4e:00:00:3e","publicnetmask":"255.255.255.192","templateid":"91ebb054-f501-4a21-ae97-0386b80d0b38","created":"2013-01-17T11:26:53-0800","state":"Running","objectId":1} > ] } } > 2013-01-17 11:38:18,904 INFO [cloud.api.ApiServer] (catalina-exec-8:null) > (userId=2 accountId=2 sessionId=C34EAC8B33A6CDA76525F44E518EB94D) > 10.216.133.42 -- GET > command=listRouters&response=json&sessionkey=3IFMlr8PP0whLZrAnDjSxwBEIDA%3D&projectid=-1&page=1&pagesize=1&_=1358451527634 > 200 { "listroutersresponse" : { } } > 2013-01-17 11:38:18,915 INFO [cloud.api.ApiServer] (catalina-exec-17:null) > (userId=2 accountId=2 sessionId=C34EAC8B33A6CDA76525F44E518EB94D) > 10.216.133.42 -- GET > command=listRouters&response=json&sessionkey=3IFMlr8PP0whLZrAnDjSxwBEIDA%3D&listAll=true&page=1&pagesize=1&_=1358451527645 > 200 { "listroutersresponse" : { } } > 2013-01-17 11:38:20,332 INFO [cloud.api.ApiServer] (catalina-exec-6:null) > (userId=2 accountId=2 sessionId=C34EAC8B33A6CDA76525F44E518EB94D) > 10.216.133.42 -- GET > command=listStoragePools&response=json&sessionkey=3IFMlr8PP0whLZrAnDjSxwBEIDA%3D&page=1&pageSize=20&listAll=true&_=1358451529042 > 200 { "liststoragepoolsresponse" : { "count":3 ,"storagepool" : [ > {"id":"fff90cb5-06dd-33b3-8815-d78c08ca01d9","zoneid":"49686851-5225-4b28-9096-19a4730b07cc","zonename":"Adv-KVM-Zone1","podid":"8ea2bb62-075e-43f1-87c1-d1873ff04daf","podname":"POD01","name":"PS0","ipaddress":"10.223.110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary","created":"2013-01-17T11:26:31-0800","type":"NetworkFilesystem","clusterid":"20867e66-93e5-4d5c-9380-bdcd6a45c851","clustername":"KVM_Cluster1","disksizetotal":11810778316800,"disksizeallocated":147456,"disksizeused":6434799058944,"tags":"","state":"Up"}, > > {"id":"41b632b5-40b3-3024-a38b-ea259c72579f","zoneid":"49686851-5225-4b28-9096-19a4730b07cc","zonename":"Adv-KVM-Zone1","podid":"8ea2bb62-075e-43f1-87c1-d1873ff04daf","podname":"POD01","name":"PS1","ipaddress":"10.223.110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary2","created":"2013-01-17T11:28:35-0800","type":"NetworkFilesystem","clusterid":"20867e66-93e5-4d5c-9380-bdcd6a45c851","clustername":"KVM_Cluster1","disksizetotal":11810778316800,"disksizeallocated":0,"disksizeused":6434799091712,"tags":"","state":"Up"}, > > {"id":"b32d1f13-9122-3960-a554-fbc001c90932","zoneid":"1577f7d9-a49d-48cd-9727-4ae7052f514b","zonename":"Adv-KVM-Zone2","podid":"2378a6f3-6b10-4f84-ac69-73e706097162","podname":"POD02","name":"PS3","ipaddress":"10.223.110.232","path":"/export/home/rayees/SC_QA_AUTO4/primary3","created":"2013-01-17T11:28:59-0800","type":"NetworkFilesystem","clusterid":"e50dfc45-bc4b-4e9d-a92e-f159618dfc6c","clustername":"KVM_Cluster2","disksizetotal":11810778316800,"disksizeallocated":147456,"disksizeused":6434799157248,"tags":"","state":"Up"} > ] } } > -- 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