[
https://issues.apache.org/jira/browse/CLOUDSTACK-1810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srikanteswararao Talluri closed CLOUDSTACK-1810.
------------------------------------------------
> listTemplate API with templatefilter=featured|community is not returning any
> list
> ---------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-1810
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1810
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Template
> Affects Versions: 4.1.0
> Reporter: Srikanteswararao Talluri
> Assignee: Min Chen
> Priority: Blocker
> Fix For: 4.1.0
>
>
> listTemplates API is not returning any output when templatefilter is set to
> 'featured'
> http://10.147.38.207:8080/client/api?command=listTemplates&response=json&sessionkey=vC9DIqP6xiOkmmk2oMvt4slxu%2Fs%3D&listAll=true&page=1&pagesize=20&templatefilter=featured&_=1364314333779
> Resonse:
> { "listtemplatesresponse" : { } }
> Where as if templatefilter=all returns all the templates
> http://10.147.38.207:8080/client/api?command=listTemplates&response=json&sessionkey=vC9DIqP6xiOkmmk2oMvt4slxu%2Fs%3D&listAll=true&page=1&pagesize=20&templatefilter=all&_=1364314283591
> Response :
> { "listtemplatesresponse" : { "count":5 ,"template" : [
> {"id":"80bff0be-9604-11e2-90e0-06b270000059","name":"SystemVM Template
> (XenServer)","displaytext":"SystemVM Template
> (XenServer)","ispublic":false,"created":"2013-03-26T17:01:40+0530","isready":true,"passwordenabled":false,"format":"VHD","isfeatured":false,"crossZones":true,"ostypeid":"8116119c-9604-11e2-90e0-06b270000059","ostypename":"Debian
> GNU/Linux
> 6(64-bit)","account":"system","zoneid":"faf4777c-2a8d-45ee-959c-bc1b0f07f3cf","zonename":"Sandbox-XenServer","status":"Download
>
> Complete","size":565240320,"templatetype":"SYSTEM","hypervisor":"XenServer","domain":"ROOT","domainid":"80b38fa4-9604-11e2-90e0-06b270000059","isextractable":false,"checksum":"f613f38c96bf039f2e5cbf92fa8ad4f8","tags":[],"sshkeyenabled":false},
> {"id":"80bff0be-9604-11e2-90e0-06b270000059","name":"SystemVM Template
> (XenServer)","displaytext":"SystemVM Template
> (XenServer)","ispublic":false,"created":"2013-03-26T17:02:31+0530","isready":true,"passwordenabled":false,"format":"VHD","isfeatured":false,"crossZones":true,"ostypeid":"8116119c-9604-11e2-90e0-06b270000059","ostypename":"Debian
> GNU/Linux
> 6(64-bit)","account":"system","zoneid":"48b9906b-5cf7-4ed7-b623-12cbdcdc71b0","zonename":"Sandbox-XenServer1","status":"Download
>
> Complete","size":565240320,"templatetype":"SYSTEM","hypervisor":"XenServer","domain":"ROOT","domainid":"80b38fa4-9604-11e2-90e0-06b270000059","isextractable":false,"checksum":"f613f38c96bf039f2e5cbf92fa8ad4f8","tags":[],"sshkeyenabled":false},
> {"id":"80c297ec-9604-11e2-90e0-06b270000059","name":"CentOS 5.6(64-bit) no
> GUI (XenServer)","displaytext":"CentOS 5.6(64-bit) no GUI
> (XenServer)","ispublic":true,"created":"2013-03-26T17:07:15+0530","isready":false,"passwordenabled":false,"format":"VHD","isfeatured":true,"crossZones":true,"ostypeid":"80d1d4b4-9604-11e2-90e0-06b270000059","ostypename":"CentOS
> 5.3
> (64-bit)","account":"system","zoneid":"faf4777c-2a8d-45ee-959c-bc1b0f07f3cf","zonename":"Sandbox-XenServer","status":"Connection
>
> refused","templatetype":"BUILTIN","hypervisor":"XenServer","domain":"ROOT","domainid":"80b38fa4-9604-11e2-90e0-06b270000059","isextractable":true,"checksum":"905cec879afd9c9d22ecc8036131a180","tags":[],"sshkeyenabled":false},
> {"id":"80c297ec-9604-11e2-90e0-06b270000059","name":"CentOS 5.6(64-bit) no
> GUI (XenServer)","displaytext":"CentOS 5.6(64-bit) no GUI
> (XenServer)","ispublic":true,"created":"2013-03-26T17:08:53+0530","isready":false,"passwordenabled":false,"format":"VHD","isfeatured":true,"crossZones":true,"ostypeid":"80d1d4b4-9604-11e2-90e0-06b270000059","ostypename":"CentOS
> 5.3
> (64-bit)","account":"system","zoneid":"48b9906b-5cf7-4ed7-b623-12cbdcdc71b0","zonename":"Sandbox-XenServer1","status":"Connection
>
> refused","templatetype":"BUILTIN","hypervisor":"XenServer","domain":"ROOT","domainid":"80b38fa4-9604-11e2-90e0-06b270000059","isextractable":true,"checksum":"905cec879afd9c9d22ecc8036131a180","tags":[],"sshkeyenabled":false},
> {"id":"38184ddf-bea4-4bf0-afb1-ad6fc85bd363","name":"Cent OS
> Template-FG1P2G","displaytext":"Cent OS
> Template","ispublic":true,"created":"2013-03-27T02:51:35+0530","isready":false,"passwordenabled":true,"format":"VHD","isfeatured":false,"crossZones":false,"ostypeid":"80d1d4b4-9604-11e2-90e0-06b270000059","ostypename":"CentOS
> 5.3
> (64-bit)","account":"test-YAEZQZ","zoneid":"faf4777c-2a8d-45ee-959c-bc1b0f07f3cf","zonename":"Sandbox-XenServer","status":"Connection
>
> refused","templatetype":"USER","hypervisor":"XenServer","domain":"ROOT","domainid":"80b38fa4-9604-11e2-90e0-06b270000059","isextractable":true,"tags":[],"sshkeyenabled":false}
> ] } }
--
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