You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "manasaveloori (JIRA)" <ji...@apache.org> on 2013/07/24 09:03:49 UTC

[jira] [Created] (CLOUDSTACK-3766) [VMware]System VMs not coming up after upgrading from 3.0.6 patchE to 4.2 due permission issue.

manasaveloori created CLOUDSTACK-3766:
-----------------------------------------

             Summary: [VMware]System VMs not coming up after upgrading from 3.0.6 patchE to 4.2 due permission issue.
                 Key: CLOUDSTACK-3766
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3766
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Upgrade
    Affects Versions: 4.2.0
         Environment: upgrade from 3.0.6 patch E to 4.2
            Reporter: manasaveloori
            Priority: Blocker
             Fix For: 4.2.0


Steps.
1.	Have CS with 3.0.6 patch E build.
2.	Register the 4.2 VMware systemVM template before upgrade.
3.	Upgrade to 4.2
Observation:
Observed that system VMs are not coming up due to permission issue.
Below is the snippet form MS log.

2013-07-23 22:07:54,023 DEBUG [storage.resource.VmwareStorageProcessor] (DirectAgent-133:10.147.40.29) Executing: tar --no-same-owner -xf /var/lib/cloud/mnt/VM/7246280917042.3501ae35/template/tmpl/2/203/e8271aa2-5bee-3b6c-917c-bb625e5d27d6.ova
2013-07-23 22:07:54,195 WARN  [storage.resource.VmwareStorageProcessor] (DirectAgent-133:10.147.40.29) Exception: tar --no-same-owner -xf /var/lib/cloud/mnt/VM/7246280917042.3501ae35/template/tmpl/2/203/e8271aa2-5bee-3b6c-917c-bb625e5d27d6.ova
java.io.IOException: Cannot run program "tar" (in directory "/var/lib/cloud/mnt/VM/7246280917042.3501ae35/template/tmpl/2/203"): java.io.IOException: error=13, Permission denied
        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.storage.resource.VmwareStorageProcessor.copyTemplateFromSecondaryToPrimary(VmwareStorageProcessor.java:153)
        at com.cloud.storage.resource.VmwareStorageProcessor.copyTemplateToPrimaryStorage(VmwareStorageProcessor.java:249)
        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:70)
        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
        at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:565)
        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=13, Permission denied
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
        at java.lang.ProcessImpl.start(ProcessImpl.java:81)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
        ... 16 more
2013-07-23 22:07:54,203 DEBUG [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-07-23 22:07:54,208 ERROR [storage.resource.VmwareStorageProcessor] (DirectAgent-133:10.147.40.29) Unable to unpack snapshot OVA file at: /var/lib/cloud/mnt/VM/7246280917042.3501ae35/template/tmpl/2/203/e8271aa2-5bee-3b6c-917c-bb625e5d27d6.ova
2013-07-23 22:07:54,212 ERROR [storage.resource.VmwareStorageProcessor] (DirectAgent-133:10.147.40.29) Unable to execute PrimaryStorageDownloadCommand due to exception
java.lang.Exception: Unable to unpack snapshot OVA file at: /var/lib/cloud/mnt/VM/7246280917042.3501ae35/template/tmpl/2/203/e8271aa2-5bee-3b6c-917c-bb625e5d27d6.ova
        at com.cloud.storage.resource.VmwareStorageProcessor.copyTemplateFromSecondaryToPrimary(VmwareStorageProcessor.java:157)
        at com.cloud.storage.resource.VmwareStorageProcessor.copyTemplateToPrimaryStorage(VmwareStorageProcessor.java:249)
        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.execute(StorageSubsystemCommandHandlerBase.java:70)
        at com.cloud.storage.resource.StorageSubsystemCommandHandlerBase.handleStorageCommands(StorageSubsystemCommandHandlerBase.java:49)
        at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:565)
        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)
2013-07-23 22:07:54,217 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-133:null) Seq 5-1286537329: Response Received:
2013-07-23 22:07:54,229 DEBUG [agent.transport.Request] (DirectAgent-133:null) Seq 5-1286537329: Processing:  { Ans: , MgmtId: 7246280917042, via: 5, Ver: v1, Flags: 10, [{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"result":false,"details":"Unable to execute PrimaryStorageDownloadCommand due to exception","wait":0}}] }
2013-07-23 22:07:54,231 DEBUG [agent.transport.Request] (Job-Executor-4:job-30 = [ addc0a8d-d920-4b44-a3f1-ca59a463805f ]) Seq 5-1286537329: Received:  { Ans: , MgmtId: 7246280917042, via: 5, Ver: v1, Flags: 10, { CopyCmdAnswer } }
After proving the permissions to the template folder  ---working fine.

Attached is the MS log.


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