cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Luc Dion (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9512) listTemplates ids returns all templates instead of the requested ones
Date Tue, 04 Apr 2017 20:24:42 GMT

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

Pierre-Luc Dion commented on CLOUDSTACK-9512:
---------------------------------------------

Hi [~rajanik], 

I've just look at this issue and is not visible in 4.10 at the moment. should we close this
issue ?

{code}
(beta1t2-ninja) > list templates templatefilter=all ids=e85972ad-9267-4798-a9c2-175141653bb9,74fa60e2-93a7-46bf-b410-c64471a21e78
filter=id,name
count = 2
template:
+--------------------------------------+---------------------------------+
|                  id                  |               name              |
+--------------------------------------+---------------------------------+
| e85972ad-9267-4798-a9c2-175141653bb9 | Windows Server 2008 R2 ent BYOL |
| 74fa60e2-93a7-46bf-b410-c64471a21e78 |  Windows Server 2016 CORE SPLA  |
+--------------------------------------+---------------------------------+
{code}


> listTemplates ids returns all templates instead of the requested ones
> ---------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9512
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9512
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API, Template
>    Affects Versions: 4.8.1
>         Environment: CentOS 7.2 + VMWare 5.5u3 + NFS primary/secondary storage
>            Reporter: Boris Stoyanov
>            Priority: Critical
>              Labels: 4.8.2.0-smoke-test-failure
>             Fix For: 4.10.0.0, 4.9.1.0, 4.8.2.0
>
>
> Actual call form the logs:
> {code}{'account': u'test-a-TestListIdsParams-KYBF19', 
> 'domainid': u'41c6fda1-84cf-11e6-bbd2-066638010710', 
> 'ids': u'a4bcd20f-0c4c-4999-bb5e-02aab8f763a1,10a429da-829b-4492-9674-26b1c172462e,d3a9a86d-17a1-4199-8116-ceefc6ef31d5',

> 'apiKey': u'LIN6rqXuaJwMPfGYFh13qDwYz5VNNz1J2J6qIOWcd3oLQOq0WtD4CwRundBL6rzXToa3lQOC_vKjI3nkHtiD8Q',

> 'command': 'listTemplates', 
> 'listall': True, 
> 'signature': 'Yo7dRnPdSch+mEzcF8TTo1xhxpo=', 
> 'templatefilter': 'all', 
> 'response': 'json', 
> 'listAll': True}{code}
> When asking to list 3 or more 
> {code}(local) SBCM5> list templates templatefilter=all ids=a4bcd20f-0c4c-4999-bb5e-02aab8f763a1,10a429da-829b-4492-9674-26b1c172462e,d3a9a86d-17a1-4199-8116-ceefc6ef31d5{code}
> You receive all templates (count: 14)
> Response
> {code}
> {
>   "count": 14,
>   "template": [
>     {
>       "account": "system",
>       "checksum": "4b415224fe00b258f66cad9fce9f73fc",
>       "created": "2016-09-27T17:38:31+0100",
>       "crossZones": true,
>       "displaytext": "SystemVM Template (vSphere)",
>       "domain": "ROOT",
>       "domainid": "41c6fda1-84cf-11e6-bbd2-066638010710",
>       "format": "OVA",
>       "hypervisor": "VMware",
>       "id": "6114746a-aefa-4be7-8234-f0d76ff175d0",
>       "isdynamicallyscalable": true,
>       "isextractable": false,
>       "isfeatured": false,
>       "ispublic": false,
>       "isready": true,
>       "name": "SystemVM Template (vSphere)",
>       "ostypeid": "41db0847-84cf-11e6-bbd2-066638010710",
>       "ostypename": "Debian GNU/Linux 5.0 (64-bit)",
>       "passwordenabled": false,
>       "size": 3145728000,
>       "sshkeyenabled": false,
>       "status": "Download Complete",
>       "tags": [],
>       "templatetype": "SYSTEM",
>       "zoneid": "b8d4cea4-6b4b-4cfb-9f17-0a6b31fec09f",
> .
> .
> .
> .
> .
>     
> }{code}
> Marvin failure:
> {code}2016-09-29 11:43:39,819 - CRITICAL - FAILED: test_02_list_templates: ['Traceback
(most recent call last):\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 369, in
run\n    testMethod()\n', '  File "/marvin/tests/smoke/test_list_ids_parameter.py", line 253,
in test_02_list_templates\n    "ListTemplates response expected 3 Templates, received %s"
% len(list_template_response)\n', '  File "/usr/lib64/python2.7/unittest/case.py", line 553,
in assertEqual\n    assertion_func(first, second, msg=msg)\n', '  File "/usr/lib64/python2.7/unittest/case.py",
line 546, in _baseAssertEqual\n    raise self.failureException(msg)\n', 'AssertionError: ListTemplates
response expected 3 Templates, received 14\n']{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message