[
https://issues.apache.org/jira/browse/CLOUDSTACK-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jessica Wang reassigned CLOUDSTACK-2988:
----------------------------------------
Assignee: Harikrishna Patnala (was: Jessica Wang)
Harikrishna,
I've checked in UI change to master branch and 4.2 branch.
However, registerTemplate API and updateTemplate API are NOT working.
UI does pass "isdynamicallyscalable" parameter to the 2 API, but the 2 API do
NOT persist the value in database (while they should).
I fixed a little at server-side (i.e. add "dynamically_scalable" column in
template_view), but there are too much to fix at server-side, so I'm passing
the bug back to you to fix server-side.
Here are API calls from my machine:
==============================================
(1) As you can see that "isdynamicallyscalable=true" is being passed to
registerTemplate API. However, API response shows "isdynamicallyscalable"
property is false.
http://10.216.133.43:8080/client/api?command=registerTemplate&response=json&sessionkey=l6hdXiCWU19YiA%2Fquqj7bAnLsLI%3D&name=eee&displayText=eee&url=http%3A%2F%2F10.223.110.231%2Ftemplates%2Fpasswordssh%2Fsshenabled-centos53.vhd&zoneid=84a9f1fd-77bb-494c-8de4-2134bedd70b9&format=VHD&isextractable=false&passwordEnabled=false&isdynamicallyscalable=true&osTypeId=137fb89e-e371-11e2-9472-3c970e739c3e&hypervisor=XenServer&ispublic=false&isfeatured=false&_=1373497083490
{
"registertemplateresponse": {
"count": 1,
"template": [
{
"id": "bb04abd5-cc0a-4589-8043-f95728768e93",
"name": "eee",
"displaytext": "eee",
"ispublic": false,
"created": "2013-07-10T15:58:15-0700",
"isready": false,
"passwordenabled": false,
"format": "VHD",
"isfeatured": false,
"crossZones": false,
"ostypeid": "137fb89e-e371-11e2-9472-3c970e739c3e",
"ostypename": "Apple Mac OS X 10.6 (32-bit)",
"account": "admin",
"zoneid": "84a9f1fd-77bb-494c-8de4-2134bedd70b9",
"zonename": "jw-adv",
"status": "",
"templatetype": "USER",
"hypervisor": "XenServer",
"domain": "ROOT",
"domainid": "11b272d6-e371-11e2-9472-3c970e739c3e",
"isextractable": false,
"tags": [],
"sshkeyenabled": false,
"isdynamicallyscalable": false
}
]
}
}
==============================================
(2) As you can see that "isdynamicallyscalable=true" is being passed to
updateTemplate API. However, when calling listTemplates API later, the API
response shows "isdynamicallyscalable" property is false.
http://10.216.133.43:8080/client/api?command=updateTemplate&response=json&sessionkey=l6hdXiCWU19YiA%2Fquqj7bAnLsLI%3D&id=7eacc268-2b86-485d-afb3-1a1d5c61fa57&zoneid=84a9f1fd-77bb-494c-8de4-2134bedd70b9&name=ddd&displaytext=ddd&ostypeid=137fb89e-e371-11e2-9472-3c970e739c3e&passwordenabled=false&isdynamicallyscalable=true&_=1373497239490
http://10.216.133.43:8080/client/api?command=listTemplates&response=json&sessionkey=l6hdXiCWU19YiA%2Fquqj7bAnLsLI%3D&id=7eacc268-2b86-485d-afb3-1a1d5c61fa57&zoneid=84a9f1fd-77bb-494c-8de4-2134bedd70b9&templatefilter=self&_=1373497239665
{
"listtemplatesresponse": {
"count": 1,
"template": [
{
"id": "7eacc268-2b86-485d-afb3-1a1d5c61fa57",
"name": "ddd",
"displaytext": "ddd",
"ispublic": false,
"created": "2013-07-10T14:46:34-0700",
"isready": true,
"passwordenabled": false,
"format": "VHD",
"isfeatured": false,
"crossZones": false,
"ostypeid": "137fb89e-e371-11e2-9472-3c970e739c3e",
"ostypename": "Apple Mac OS X 10.6 (32-bit)",
"account": "admin",
"zoneid": "84a9f1fd-77bb-494c-8de4-2134bedd70b9",
"zonename": "jw-adv",
"status": "Download Complete",
"size": 8589934592,
"templatetype": "USER",
"hypervisor": "XenServer",
"domain": "ROOT",
"domainid": "11b272d6-e371-11e2-9472-3c970e739c3e",
"isextractable": false,
"checksum": "308f93361a2957193597cc7b7bc3ea21",
"tags": [],
"sshkeyenabled": false,
"isdynamicallyscalable": false
}
]
}
}
==============================================
Jessica
> UI: checkbox to know whether tools installed on the template during register
> template
> -------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-2988
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2988
> Project: CloudStack
> Issue Type: Sub-task
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Reporter: Harikrishna Patnala
> Assignee: Harikrishna Patnala
> Fix For: 4.2.0
>
>
> During template registration/updation there should be a check box to know
> whether tools are installed on the template or not.
> Same check box should be there for updateVirtualMachine API.
>
--
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