cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "edison su (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-7123) [Automation] Guest VM templates failed to download with NPE in KVM basic zone
Date Thu, 17 Jul 2014 22:30:06 GMT

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

edison su commented on CLOUDSTACK-7123:
---------------------------------------

This line of code in TemplateUtils.java will cause timeout in one second: 
        String output = Script.runSimpleBashScript(command + path + " | cut -d: -f2", 1000);


2014-07-17 04:11:13,605 INFO  [storage.template.HttpTemplateDownloader] (pool-1-thread-1:null)
Starting download from http://nfs1.lab.vmops.com/templates/regression_test/centos55-httpd-64bit.qcow2
to /mnt/SecStorage/0e70a699-6420-35fc-9c0a-5ac0857423f1/template/tmpl/1/4/dnld218166405615108355tmp_
remoteSize=1535311872 , max size=53687091200
2014-07-17 04:11:14,054 DEBUG [utils.script.Script] (pool-1-thread-1:null) Executing: /bin/bash
-c file /mnt/SecStorage/0e70a699-6420-35fc-9c0a-5ac0857423f1/template/tmpl/1/4/dnld218166405615108355tmp_
| cut -d: -f2
2014-07-17 04:11:15,109 WARN  [utils.script.Script] (Script-5:null) Interrupting script.
2014-07-17 04:11:15,110 WARN  [utils.script.Script] (pool-1-thread-1:null) Timed out: /bin/bash
-c file /mnt/SecStorage/0e70a699-6420-35fc-9c0a-5ac0857423f1/template/tmpl/1/4/dnld218166405615108355tmp_
| cut -d: -f2 .  Output is:

the timeout in runSimpleBashScript is measured in ms, not second.


> [Automation] Guest VM templates failed to download with NPE in KVM basic zone
> -----------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-7123
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7123
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: KVM
>    Affects Versions: 4.5.0
>         Environment: KVM basic zone
> branch 4:5
>            Reporter: Rayees Namathponnan
>            Assignee: edison su
>            Priority: Critical
>             Fix For: 4.5.0
>
>         Attachments: CLOUDSTACK-7123.rar, management.rar
>
>
> This issue is observed in automation environment; KVM basic zone
> system vms created but guest vm templates failed to download with below error, observed
NPE in SSVM logs, attaching with this mail 
> 2014-07-17 04:11:29,127 INFO  [storage.template.DownloadManagerImpl] (pool-1-thread-1:null)
Download Completion for jobId: b45fbdf7-3a55-4e0e-8e59-16adc234bcee, status=IN_PROGRESS
> 2014-07-17 04:11:29,127 INFO  [storage.template.DownloadManagerImpl] (pool-1-thread-1:null)
local: /mnt/SecStorage/0e70a699-6420-35fc-9c0a-5ac0857423f1/template/tmpl/1/4/dnld218166405615108355tmp_,
bytes=1117572, error= , pct=0
> 2014-07-17 04:11:29,127 INFO  [storage.template.DownloadManagerImpl] (pool-1-thread-1:null)
Resuming jobId: b45fbdf7-3a55-4e0e-8e59-16adc234bcee, status=IN_PROGRESS
> 2014-07-17 04:11:29,128 WARN  [storage.template.HttpTemplateDownloader] (pool-1-thread-1:null)
Caught exception during download null
> java.lang.NullPointerException
>         at org.apache.cloudstack.utils.template.TemplateUtils.checkTemplateFormat(TemplateUtils.java:40)
>         at com.cloud.storage.template.HttpTemplateDownloader.download(HttpTemplateDownloader.java:254)
>         at com.cloud.storage.template.HttpTemplateDownloader.runInContext(HttpTemplateDownloader.java:369)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>         at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>         at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> 2014-07-17 04:11:47,033 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Request:Seq
4-9028872827947712522:  { Cmd , MgmtId: 73187150500751, via: 4, Ver: v1, Flags: 100011, [{"org.apache.cloudstack.storage.command.DownloadProgressCommand":{"jobId":"b45fbdf7-3a55-4e0e-8e59-16adc234bcee","request":"GET_STATUS","hvm":false,"description":"CentOS
5.5(64-bit) no GUI (KVM)","checksum":"ed0e788280ff2912ea40f7f91ca7a249","maxDownloadSizeInBytes":53687091200,"id":4,"resourceType":"TEMPLATE","installPath":"template/tmpl/1/4","_store":{"com.cloud.agent.api.to.NfsTO":{"_url":"nfs://nfs1-ccp.citrix.com:/home/common/automation/SC_QA_AUTO5/secondary1","_role":"Image"}},"url":"http://nfs1.lab.vmops.com/templates/regression_test/centos55-httpd-64bit.qcow2","format":"QCOW2","accountId":1,"name":"centos55-x86_64","secUrl":"nfs://nfs1-ccp.citrix.com:/home/common/automation/SC_QA_AUTO5/secondary1","wait":0}}]
}
> 2014-07-17 04:11:47,313 DEBUG [cloud.agent.Agent] (agentRequest-Handler-5:null) Processing
command: org.apache.cloudstack.storage.command.DownloadProgressCommand



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message