You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Ernie Janse van Rensburg (JIRA)" <ji...@apache.org> on 2017/12/22 12:17:00 UTC
[jira] [Commented] (CLOUDSTACK-9599) UpdateTemplate Response is
Missing "isdynamicallyscalable" Field
[ https://issues.apache.org/jira/browse/CLOUDSTACK-9599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16301315#comment-16301315 ]
Ernie Janse van Rensburg commented on CLOUDSTACK-9599:
------------------------------------------------------
After investigating the code, for update template, it was intentional to return a simpler response of the TemplateJoinVO fields, according to a TODO comment left in the class:
apache/cloudstack/server/src/com/cloud/api/query/dao/TemplateJoinDaoImpl.java
//TODO: This is to keep compatibility with 4.1 API, where updateTemplateCmd and updateIsoCmd will return a simpler TemplateResponse
// compared to listTemplates and listIsos.
@Override
public TemplateResponse newUpdateResponse(TemplateJoinVO result) {
The method newTemplateResponse(ResponseView view, TemplateJoinVO template) returns the isDynamicallyScalable field in response to the listTemplates API call.
Will need add the isDynamicallyScalable fiels to the TemplateResponse of the newUpdateResponse method.
> UpdateTemplate Response is Missing "isdynamicallyscalable" Field
> ----------------------------------------------------------------
>
> Key: CLOUDSTACK-9599
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9599
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: API
> Affects Versions: 4.6.1
> Reporter: John Burwell
> Priority: Minor
> Fix For: 4.9.2.0, 4.10.1.0, 4.11.0.0
>
>
> The response for the UpdateTemplate command does not include the "isdynamicallyscalable" field. The following is a sample of the output from a call to a 4.6 management server:
> {code}
> cloudmonkey> update template id=7a6c263c-1e16-49dc-866e-7189f3f49052 passwordenabled=false
> {
> "template": {
> "account": "admin",
> "bootable": true,
> "created": "2016-11-01T15:21:07+0000",
> "crossZones": false,
> "details": {
> "dataDiskController": "osdefault",
> "nicAdapter": "Vmxnet3",
> "rootDiskController": "osdefault"
> },
> "displaytext": "Windows2012R2",
> "domain": "ROOT",
> "domainid": "80ed2086-a02e-11e6-8900-005056aa4c21",
> "format": "OVA",
> "hypervisor": "VMware",
> "id": "7a6c263c-1e16-49dc-866e-7189f3f49052",
> "isfeatured": false,
> "ispublic": true,
> "isready": false,
> "name": "Windows2012R2",
> "ostypeid": "0c1e7989-a034-11e6-8900-005056aa4c21",
> "ostypename": "Windows Server 2012 R2 (64-bit)",
> "tags": [],
> "templatetype": "USER"
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)