[ https://issues.apache.org/jira/browse/CLOUDSTACK-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588355#comment-13588355 ]
Kiran Koneti commented on CLOUDSTACK-1228: ------------------------------------------ I tried using a new secondary Storage and deleted the Cloud user and installed the new setup. Then I observed the following error message. "2013-02-27 05:09:43,843 INFO [vmware.manager.VmwareStorageManagerImpl] (DirectAgent-4:10.147.40.8) Executing copyTemplateFromSecondaryToPrimary. secondaryStorage: nfs:daryStorage: template/tmpl/1/8/, templateName: routing-8 2013-02-27 05:09:43,848 INFO [vmware.manager.VmwareStorageManagerImpl] (DirectAgent-4:10.147.40.8) Secondary storage mount point: /var/cloudstack/mnt/VM/6903220404277. 2013-02-27 05:09:43,848 INFO [vmware.manager.VmwareStorageManagerImpl] (DirectAgent-4:10.147.40.8) Executing command: tar --no-same-owner -xf /var/cloudstack/mnt/VM/69 2013-02-27 05:09:43,848 DEBUG [vmware.manager.VmwareStorageManagerImpl] (DirectAgent-4:10.147.40.8) Executing: tar --no-same-owner -xf /var/cloudstack/mnt/VM/6903220404 2013-02-27 05:09:43,899 WARN [vmware.manager.VmwareStorageManagerImpl] (DirectAgent-4:10.147.40.8) Exception: tar --no-same-owner -xf /var/cloudstack/mnt/VM/6903220404 java.io.IOException: Cannot run program "tar" (in directory "/var/cloudstack/mnt/VM/6903220404277.73e986c3/template/tmpl/1/8"): java.io.IOException: error=13, Permissio at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) at com.cloud.utils.script.Script.execute(Script.java:183) at com.cloud.utils.script.Script.execute(Script.java:161)" Now I logged in the machine as cloud user and navigate to the path then I was able to navigate till the "/var/cloudstack/mnt/VM/7614406590488.1f2f172a" path but was not able to navigate to the template folder as the folder owner was root. Then I change the owner permissions to cloud and I haven't observed the issue with the permissions. Then I observed another error message related systemvm.iso this looks like the issue CS-1262. 2013-02-27 05:20:14,580 DEBUG [utils.script.Script] (DirectAgent-4:10.147.40.8) environment.properties says scripts should be in /usr/share/cloudstack-common 2013-02-27 05:20:14,580 DEBUG [utils.script.Script] (DirectAgent-4:10.147.40.8) Looking for vms/systemvm.iso in /usr/share/cloudstack-common/vms/systemvm.iso 2013-02-27 05:20:14,580 DEBUG [cloud.server.ConfigurationServerImpl] (DirectAgent-4:10.147.40.8) Executing: /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh /var/cloudstack/management/.ssh/id_rsa.pub /var/cloudstack/management/.ssh/id_rsa /usr/share/cloudstack-common/vms/systemvm.iso 2013-02-27 05:20:14,703 DEBUG [cloud.server.ConfigurationServerImpl] (DirectAgent-4:10.147.40.8) Execution is successful. 2013-02-27 05:20:14,709 ERROR [vmware.manager.VmwareManagerImpl] (DirectAgent-4:10.147.40.8) Unexpected exception java.io.FileNotFoundException: /usr/lib/cloud/common/vms/systemvm.iso (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:137) at com.cloud.utils.FileUtil.copyfile(FileUtil.java:68) at com.cloud.hypervisor.vmware.manager.VmwareManagerImpl.prepareSecondaryStorageStore(VmwareManagerImpl.java:555) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80) Here the systemvm.iso is copied to "/usr/share/cloudstack-common/vms/" but while fetching the iso it is looking for it in "/usr/lib/cloud/common/vms/" Then I manually copied the systemvm.iso to "/usr/lib/cloud/common/vms/" from the "/usr/share/cloudstack-common/vms/".Then the system VM's came up. But still I see the issue with the builtin template CLOUDSTACK-1252 . > Unable to Create System Vm's in the VMware Hypervisor setup. > ------------------------------------------------------------ > > Key: CLOUDSTACK-1228 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1228 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Install and Setup > Affects Versions: 4.1.0 > Reporter: Kiran Koneti > Assignee: Venkata Siva Vijayendra Bhamidipati > Priority: Blocker > Fix For: 4.1.0 > > Attachments: catalina.2013-02-11.zip, catalina.zip, > management-server-18-2-2013.zip, management-server.zip > > > Created a Advanced Zone setup using the Latest 4.1 build > (http://repo-ccp.citrix.com/releases/ASF/rhel/6.3/4.1/CloudStack-non-OSS-11-rhel6.3.tar.gz) > While trying to create the system VM's error messages are obserevd. > Attaching the Management server logs. > Error message Observed: > Executing copyTemplateFromSecondaryToPrimary. secondaryStorage: > nfs://10.147.28.7/export/home/kiran/s, templatePathAtSecondaryStorage: > template/tmpl/1/8/, templateName: routing-8 > 2013-02-11 23:03:41,530 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.47bfef59 > 2013-02-11 23:03:41,531 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.648a617f > 2013-02-11 23:03:41,531 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.2257f5b0 > 2013-02-11 23:03:41,532 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.3e22e9af > 2013-02-11 23:03:41,533 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.1e46e9bc > 2013-02-11 23:03:41,534 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.49fee4a0 > 2013-02-11 23:03:41,535 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.c1b6a94 > 2013-02-11 23:03:41,535 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.5604ba42 > 2013-02-11 23:03:41,536 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.3632e0de > 2013-02-11 23:03:41,537 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount: > /var/lib/cloud/mnt/VM/7313725325399.22475368 > 2013-02-11 23:03:41,537 WARN [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create a mount point > 2013-02-11 23:03:41,538 ERROR [vmware.manager.VmwareManagerImpl] > (DirectAgent-2:10.147.40.18) Unable to create mount point for > nfs://10.147.28.7/export/home/kiran/s > 2013-02-11 23:03:41,538 INFO [vmware.manager.VmwareStorageManagerImpl] > (DirectAgent-2:10.147.40.18) Secondary storage mount point: /mnt/sec > 2013-02-11 23:03:41,538 INFO [vmware.manager.VmwareStorageManagerImpl] > (DirectAgent-2:10.147.40.18) Executing command: tar --no-same-owner -xf > /mnt/sec/template/tmpl/1/8/routing-8.ova > 2013-02-11 23:03:41,539 DEBUG [vmware.manager.VmwareStorageManagerImpl] > (DirectAgent-2:10.147.40.18) Executing: tar --no-same-owner -xf > /mnt/sec/template/tmpl/1/8/routing-8.ova > 2013-02-11 23:03:41,603 WARN [vmware.manager.VmwareStorageManagerImpl] > (DirectAgent-2:10.147.40.18) Exception: tar --no-same-owner -xf > /mnt/sec/template/tmpl/1/8/routing-8.ova > java.io.IOException: Cannot run program "tar" (in directory > "/mnt/sec/template/tmpl/1/8"): java.io.IOException: error=2, No such file or > directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:475) > at com.cloud.utils.script.Script.execute(Script.java:183) > at com.cloud.utils.script.Script.execute(Script.java:161) > at > com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.copyTemplateFromSecondaryToPrimary(VmwareStorageManagerImpl.java:443) > at > com.cloud.hypervisor.vmware.manager.VmwareStorageManagerImpl.execute(VmwareStorageManagerImpl.java:138) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:3587) > at > com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:401) > 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$101(ScheduledThreadPoolExecutor.java:165) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266) > 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.io.IOException: java.io.IOException: error=2, No such file or > directory > at java.lang.UNIXProcess.<init>(UNIXProcess.java:164) > at java.lang.ProcessImpl.start(ProcessImpl.java:81) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:468) > ... 15 more -- 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