Rayees Namathponnan created CLOUDSTACK-2372:
-----------------------------------------------

             Summary: [Automation] Failed to create SSVM in VMware with latest 
system template 
                 Key: CLOUDSTACK-2372
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2372
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Install and Setup
    Affects Versions: 4.2.0
         Environment: VMware 

system template : from 
http://jenkins.cloudstack.org/job/build-systemvm64-master/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvmtemplate64-2013-03-15-master-vmware.ova

Branch : Master
            Reporter: Rayees Namathponnan
             Fix For: 4.2.0


Step 1 : Create build from master branch and create advanced zone in Vmware 
Step 2 : Use latest template from 
http://jenkins.cloudstack.org/job/build-systemvm64-master/lastSuccessfulBuild/artifact/tools/appliance/dist/systemvmtemplate64-2013-03-15-master-vmware.ova

Actual Result 

SSVM failed to create with below error 

2013-05-07 22:00:26,106 DEBUG [vmware.manager.VmwareManagerImpl] 
(DirectAgent-41:10.223.250.66) Execution is successful.
2013-05-07 22:00:26,107 DEBUG [vmware.manager.VmwareManagerImpl] 
(DirectAgent-41:10.223.250.66) Executing: sudo chmod 777 
/var/cloudstack/mnt/VM/90928106758026.7a943ccd 
2013-05-07 22:00:26,145 DEBUG [vmware.manager.VmwareManagerImpl] 
(DirectAgent-41:10.223.250.66) Execution is successful.
2013-05-07 22:00:26,146 INFO  [vmware.manager.VmwareStorageManagerImpl] 
(DirectAgent-41:10.223.250.66) Secondary storage mount point: 
/var/cloudstack/mnt/VM/90928106758026.7a943ccd
2013-05-07 22:00:26,238 ERROR [vmware.manager.VmwareStorageManagerImpl] 
(DirectAgent-41:10.223.250.66) Unable to execute PrimaryStorageDownloadCommand 
due to exception
java.io.FileNotFoundException: 
/var/cloudstack/mnt/VM/90928106758026.7a943ccd/template/tmpl/1/8/systemvmtemplate64-2013-03-15-master-vmware.ovf
 (Permission denied)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:97)
        at 
com.cloud.hypervisor.vmware.mo.HttpNfcLeaseMO.readOvfContent(HttpNfcLeaseMO.java:125)
        at 
com.cloud.hypervisor.vmware.mo.HypervisorHostHelper.importVmFromOVF(HypervisorHostHelper.java:992)
        at 
com.cloud.hypervisor.vmware.mo.HostMO.importVmFromOVF(HostMO.java:681)
        at 
com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.copyTemplateFromSecondaryToPrimary(VmwareStorageManagerImpl.java:587)
        at 
com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:262)
        at 
com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3705)
        at 
com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:424)
        at 
com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        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:722)
2013-05-07 22:00:26,239 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-41:null) Seq 7-377618439: Response Received: 
2013-05-07 22:00:26,240 DEBUG [agent.transport.Request] (DirectAgent-41:null) 
Seq 7-377618439: Processing:  { Ans: , MgmtId: 90928106758026, via: 7, Ver: v1, 
Flags: 110, 
[{"storage.PrimaryStorageDownloadAnswer":{"templateSize":0,"result":false,"details":"Unable
 to execute PrimaryStorageDownloadCommand due to exception","wait":0}}] }
2013-05-07 22:00:26,240 DEBUG [agent.transport.Request] (secstorage-1:null) Seq 
7-377618439: Received:  { Ans: , MgmtId: 90928106758026, via: 7, Ver: v1, 
Flags: 110, { PrimaryStorageDownloadAnswer } }



File permission 

[root@auto_ms2 8]# pwd
/var/cloudstack/mnt/VM/90928106758026.7a943ccd/template/tmpl/1/8
[root@auto_ms2 8]# ll
total 494364
-rw-r--r--. 1 root root 252849664 May  7 21:24 
47fb51dc-19cb-4424-8b9e-69b167e8a703.ova
-rw-------. 1 root root 252836352 Mar 15 04:08 
systemvmtemplate64-2013-03-15-master-vmware-disk1.vmdk
-rw-------. 1 root root     12194 Mar 15 04:08 
systemvmtemplate64-2013-03-15-master-vmware.ovf
-rw-r--r--. 1 root root       283 May  7 21:42 template.properties
[root@auto_ms2 8]# pwd




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