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

Kiran Koneti commented on CLOUDSTACK-4287:
------------------------------------------

After few minutes my management server got hanged and when i tried to restart 
the MS i see the below error messages

"2013-08-13 20:54:08,104 DEBUG [agent.manager.AgentManagerImpl] 
(AgentTaskPool-1:null) Sending Connect to listener: UploadListener
2013-08-13 20:54:08,105 DEBUG [agent.manager.AgentManagerImpl] 
(AgentTaskPool-1:null) Sending Connect to listener: DownloadListener
2013-08-13 20:54:08,205 DEBUG [storage.image.TemplateDataFactoryImpl] 
(AgentTaskPool-1:null) template 7 is already in store:1, type:Image
2013-08-13 20:54:08,260 DEBUG [storage.image.TemplateDataFactoryImpl] 
(AgentTaskPool-1:null) template 7 is already in store:1, type:Image
2013-08-13 20:54:08,291 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(AgentTaskPool-1:null) Downloading template to data store 1
2013-08-13 20:54:08,298 INFO  [storage.download.DownloadMonitorImpl] 
(AgentTaskPool-1:null) Template download is already in progress or already 
downloaded
2013-08-13 20:54:08,299 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(AgentTaskPool-1:null) Performing image store createTemplate async callback
2013-08-13 20:54:08,370 ERROR [agent.manager.AgentManagerImpl] 
(AgentTaskPool-1:null) Monitor DownloadListener says there is an error in the 
connect process for 1 due to InvocationTargetException when invoking RPC 
callback for command: createTemplateAsyncCallback
java.lang.RuntimeException: InvocationTargetException when invoking RPC 
callback for command: createTemplateAsyncCallback
        at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:148)
        at 
org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26)
        at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120)
        at 
com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:214)
        at 
org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(BaseImageStoreDriverImpl.java:120)
        at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateAsync(TemplateServiceImpl.java:173)
        at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.handleSysTemplateDownload(TemplateServiceImpl.java:242)
        at 
com.cloud.storage.download.DownloadListener.processConnect(DownloadListener.java:291)
        at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
        at 
com.cloud.agent.manager.AgentManagerImpl.handleDirectConnectAgent(AgentManagerImpl.java:1479)
        at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1739)
        at 
com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1901)
        at 
com.cloud.agent.manager.AgentManagerImpl$SimulateStartTask.run(AgentManagerImpl.java:1130)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:142)
        ... 15 more
Caused by: java.lang.RuntimeException: InvocationTargetException when invoking 
RPC callback for command: createTemplateCallback
        at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:148)
        at 
org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26)
        at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120)
        at 
org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createTemplateAsyncCallback(BaseImageStoreDriverImpl.java:172)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)"



                
> 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
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: Builin_readyno.jpg
>
>
> 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