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

Nitin Mehta commented on CLOUDSTACK-4287:
-----------------------------------------

I see that template sync updated their state. The MS was restarted before they 
were completely downloaded. Template Sync doesnt update the state but only the 
download state.




api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:53:51,198 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614205: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:54:11,250 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614207: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:54:31,262 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614208: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:54:51,309 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614209: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:55:11,356 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614211: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 02:55:31,365 DEBUG [agent.transport.Request] (Timer-7:null) Seq 
2-868614212: Sending  { Cmd , MgmtId: 7200344900649, via: 2, Ver: v1, Flags: 
100011, 
[{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"0f6600bb-8a5d-412c-8f4f-56b16e789e37","request":"GET_STATUS","hvm":false,"description":"CentOS
 5.6(64-bit) no GUI 
(XenServer)","checksum":"905cec879afd9c9d22ecc8036131a180","maxDownloadSizeInBytes":53687091200,"id":5,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/5","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","_role":"Image"}},"url":"http://download.cloud.com/templates/builtin/centos56-x86_64.vhd.bz2","format":"VHD","accountId":1,"name":"centos56-x86_64-xen","secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","wait":0}}]
 }
2013-08-14 03:05:46,417 DEBUG [agent.transport.Request] 
(AgentManager-Handler-4:null) Seq 2-28377094: Processing:  { Ans: , MgmtId: 
7200344900649, via: 2, Ver: v1, Flags: 110, 
[{"com.cloud.agent.api.storage.ListTemplateAnswer":{"secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","templateInfos":{"routing-1":{"templateName":"routing-1","installPath":"template/tmpl/1/1/44978996-8df7-4cfa-9a56-fb922e075617.vhd","size":2101252608,"physicalSize":2101252608,"id":1,"isPublic":true,"isCorrupted":false},"centos56-x86_64-xen":{"templateName":"centos56-x86_64-xen","installPath":"template/tmpl/1/5/c831a80f-d5d8-3054-9ff3-da85376e49c5.vhd","size":21474836480,"physicalSize":1758786048,"id":5,"isPublic":true,"isCorrupted":false}},"result":true,"details":"success","wait":0}}]
 }
2013-08-14 03:05:46,574 INFO  [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-2:null) Template Sync found centos56-x86_64-xen already 
in the image store
2013-08-14 03:59:03,232 DEBUG [agent.transport.Request] 
(AgentManager-Handler-8:null) Seq 2-357367813: Processing:  { Ans: , MgmtId: 
7200344900649, via: 2, Ver: v1, Flags: 110, 
[{"com.cloud.agent.api.storage.ListTemplateAnswer":{"secUrl":"nfs://10.223.110.232/export/home/sangeetha/xen/secondary","templateInfos":{"202-2-4c3197c7-4c2a-3091-8c8f-663095f483e9":{"templateName":"202-2-4c3197c7-4c2a-3091-8c8f-663095f483e9","installPath":"template/tmpl/2/202/86832748-cea8-356b-8415-50813bc98062.vhd","size":21474836480,"physicalSize":1758786048,"id":202,"isPublic":true,"isCorrupted":false},"routing-1":{"templateName":"routing-1","installPath":"template/tmpl/1/1/44978996-8df7-4cfa-9a56-fb922e075617.vhd","size":2101252608,"physicalSize":2101252608,"id":1,"isPublic":true,"isCorrupted":false},"centos56-x86_64-xen":{"templateName":"centos56-x86_64-xen","installPath":"template/tmpl/1/5/c831a80f-d5d8-3054-9ff3-da85376e49c5.vhd","size":21474836480,"physicalSize":1758786048,"id":5,"isPublic":true,"isCorrupted":false}},"result":true,"details":"success","wait":0}}]
 }
2013-08-14 03:59:04,059 INFO  [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-1:null) Template Sync found centos56-x86_64-xen already 
in the image store
                
> Builtin template Ready Status is No even after the Status is downlaod complete
> ------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-4287
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4287
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Template
>    Affects Versions: 4.2.0
>            Reporter: Kiran Koneti
>            Assignee: Nitin Mehta
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: Builin_readyno.jpg, management-server.zip, 
> managemntLog_Latest.zip
>
>
> 1)Created a VMware setup and once the System Vm's are up waited for the 
> Built-in template to download.
> 2)The logs show the template is downloaded and even the UI shows the same 
> ,i.e the download status is download complete but the Ready status is NO.
> 3)tried to add another template manually then the the template status is 
> shown as ready Yes after the status is download complete.
> The DB details:
> mysql> select * from vm_template where id=7\G;
> *************************** 1. row ***************************
>                   id: 7
>          unique_name: centos53-x64
>                 name: CentOS 5.3(64-bit) no GUI (vSphere)
>                 uuid: 76ec5290-0421-11e3-bff1-06ecde000018
>               public: 1
>             featured: 1
>                 type: BUILTIN
>                  hvm: 0
>                 bits: 64
>                  url: http://10.147.28.7/releases/2.2.0/CentOS5.3-x86_64.ova
>               format: OVA
>              created: 2013-08-13 19:35:52
>              removed: NULL
>           account_id: 1
>             checksum: f6f881b7f2292948d8494db837fe0f47
>         display_text: CentOS 5.3(64-bit) no GUI (vSphere)
>      enable_password: 0
>        enable_sshkey: 0
>          guest_os_id: 12
>             bootable: 1
>          prepopulate: 0
>          cross_zones: 1
>          extractable: 1
>      hypervisor_type: VMware
>   source_template_id: NULL
>         template_tag: NULL
>             sort_key: 0
>                 size: 2147483648
>                state: Allocated
>         update_count: 0
>              updated: NULL
> --------------------------------------------------------------------------------------------------------------------------------------------
> mysql> select * from template_spool_ref\G;
> *************************** 1. row ***************************
>             id: 1
>        pool_id: 1
>    template_id: 8
>        created: 2013-08-13 14:13:09
>   last_updated: NULL
>         job_id: NULL
>   download_pct: 100
> download_state: DOWNLOADED
>      error_str: NULL
>     local_path: 403b81265a9635c791f583145591c126
>   install_path: 403b81265a9635c791f583145591c126
>  template_size: 0
>  marked_for_gc: 0
>          state: Ready
>   update_count: 2
>        updated: 2013-08-13 14:14:30
> 1 row in set (0.00 sec)
> -------------------------------------------------------------------------------------------------------------------------------------------
> mysql> select * from template_store_ref\G;
> *************************** 1. row ***************************
>                   id: 3
>             store_id: 1
>          template_id: 8
>              created: 2013-08-13 14:12:40
>         last_updated: 2013-08-13 14:21:37
>               job_id: NULL
>         download_pct: 100
>                 size: 2097152000
>           store_role: Image
>        physical_size: 283761664
>       download_state: DOWNLOADED
>            error_str: NULL
>           local_path: NULL
>         install_path: 
> template/tmpl/1/8/8b563cb6-dab7-402a-8c13-3bc16d95328d.ova
>                  url: 
> http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova
>         download_url: NULL
> download_url_created: NULL
>                state: Ready
>            destroyed: 0
>              is_copy: 0
>         update_count: 0
>              ref_cnt: 0
>              updated: NULL
> *************************** 2. row ***************************
>                   id: 7
>             store_id: 1
>          template_id: 7
>              created: 2013-08-13 14:21:37
>         last_updated: 2013-08-13 14:23:33
>               job_id: 8ea28f5a-8009-4f87-82d1-d914f3a14a63
>         download_pct: 100
>                 size: 2147483648
>           store_role: Image
>        physical_size: 459320832
>       download_state: DOWNLOADED
>            error_str: Install completed successfully at 8/13/13 8:58 AM
>           local_path: 
> /mnt/SecStorage/ec67adf1-b86c-3674-ad7f-46ddd34d104f/template/tmpl/1/7/dnld5471335544861721884tmp_
>         install_path: 
> template/tmpl/1/7/ab2e2080-408e-3453-acb9-4265a6126be7.ova
>                  url: NULL
>         download_url: NULL
> download_url_created: NULL
>                state: Allocated
>            destroyed: 0
>              is_copy: 0
>         update_count: 2
>              ref_cnt: 0
>              updated: 2013-08-13 14:22:26
> 2 rows in set (0.00 sec)

--
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

Reply via email to