You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Likitha Shetty (JIRA)" <ji...@apache.org> on 2014/12/24 09:45:13 UTC
[jira] [Resolved] (CLOUDSTACK-8123) VM re-install fails if
'vm.instancename.flag' is set to true
[ https://issues.apache.org/jira/browse/CLOUDSTACK-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Likitha Shetty resolved CLOUDSTACK-8123.
----------------------------------------
Resolution: Fixed
Issue - VM fails to start after the root disk has been restored because the disk hasn't been restored to the location vCenter is expecting it to be restored to, which is inside the VM folder.
> VM re-install fails if 'vm.instancename.flag' is set to true
> ------------------------------------------------------------
>
> Key: CLOUDSTACK-8123
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8123
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Affects Versions: 4.5.0
> Reporter: Likitha Shetty
> Assignee: Likitha Shetty
> Priority: Critical
> Fix For: Future
>
>
> +Steps to reproduce+
> 1. Set 'vm.instancename.flag' is set to true.
> 2. Deploy a VM.
> 3. Try to Re-install the VM.
> Re install will fail while trying to start the VM -
> {noformat}
> 2014-12-02 14:49:05,500 DEBUG [c.c.h.v.r.VmwareResource] (DirectAgent-83:ctx-161f3bfd 10.147.40.14, job-282/job-284, cmd: StartCommand) (logid:16aa687e) Prepare NIC at new device {"operation":"ADD","device":{"addressType":"Manual","macAddress":"02:00:6b:1a:00:04","key":-3,"backing":{"network":
> {"value":"network-47299","type":"Network"}
> ,"deviceName":"cloud.guest.970.200.1-vSwitch0"},"connectable":
> {"startConnected":true,"allowGuestControl":true,"connected":true}
> ,"unitNumber":7}}
> 2014-12-02 14:49:05,500 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-83:ctx-161f3bfd 10.147.40.14, job-282/job-284, cmd: StartCommand) (logid:16aa687e) find VM i-2-31-VM on host
> 2014-12-02 14:49:05,500 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-83:ctx-161f3bfd 10.147.40.14, job-282/job-284, cmd: StartCommand) (logid:16aa687e) VM i-2-31-VM found in host cache
> 2014-12-02 14:49:05,525 INFO [c.c.h.v.r.VmwareResource] (DirectAgent-83:ctx-161f3bfd 10.147.40.14, job-282/job-284, cmd: StartCommand) (logid:16aa687e) Configure VNC port for VM i-2-31-VM, port: 5929, host: 10.147.40.14
> 2014-12-02 14:49:05,899 WARN [c.c.h.v.r.VmwareResource] (DirectAgent-83:ctx-161f3bfd 10.147.40.14, job-282/job-284, cmd: StartCommand) (logid:16aa687e) StartCommand failed due to Exception: java.lang.RuntimeException
> Message: File []/vmfs/volumes/e6e85063-a671de34/AUvm/ROOT-31.vmdk was not found
> java.lang.RuntimeException: File []/vmfs/volumes/e6e85063-a671de34/AUvm/ROOT-31.vmdk was not found
> at com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:335)
> at com.cloud.hypervisor.vmware.mo.VirtualMachineMO.configureVm(VirtualMachineMO.java:908)
> at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:1853)
> at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:448)
> at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:317)
> 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.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)
> 2014-12-02 14:49:05,901 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-83:ctx-161f3bfd) (logid:16aa687e) Seq 3-7553943949983880226: Response Received:
> 2014-12-02 14:49:05,901 DEBUG [c.c.a.t.Request] (DirectAgent-83:ctx-161f3bfd) (logid:16aa687e) Seq 3-7553943949983880226: Processing: { Ans: , MgmtId: 6662467354709, via: 3, Ver: v1, Flags: 10, [{"com.cloud.agent.api.StartAnswer":{"vm":{"id":31,"name":"i-2-31-VM","bootloader":"HVM","type":"User","cpus":1,"minSpeed":500,"maxSpeed":500,"minRam":536870912,"maxRam":536870912,"hostName":"AUvm","arch":"x86_64","os":"CentOS 5.3 (64-bit)","platformEmulator":"centos64Guest","bootArgs":"","enableHA":false,"limitCpuUse":false,"enableDynamicallyScaleVm":false,"vncPassword":"XyyYwyCRqhwU7eFiAy1HvQ==","params":
> {"Message.ReservedCapacityFreed.Flag":"false","dataDiskController":"osdefault","nicAdapter":"E1000","vmware.reserve.cpu":"false","nestedVirtualizationFlag":"false","rootDiskController":"ide","vmware.reserve.mem":"false"}
> ,"uuid":"3ebf33d7-f16a-4a1e-be37-44cc835e4c71","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"e1fcb251-f096-4272-a918-9b1d02e010bd","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"f3f0b72f-91ee-35c6-8485-f998a790d724","id":202,"poolType":"NetworkFilesystem","host":"10.147.28.7","path":"/export/home/manasa/primaryVMw3","port":2049,"url":"NetworkFilesystem://10.147.28.7/export/home/manasa/primaryVMw3/?ROLE=Primary&STOREUUID=f3f0b72f-91ee-35c6-8485-f998a790d724"}},"name":"ROOT-31","size":2147483648,"path":"ROOT-31","volumeId":50,"vmName":"i-2-31-VM","accountId":2,"format":"OVA","provisioningType":"THIN","id":50,"deviceId":0,"cacheMode":"NONE","hypervisorType":"VMware"}},"diskSeq":0,"path":"ROOT-31","type":"ROOT","_details":{"managed":"false","storagePort":"2049","storageHost":"10.147.28.7","volumeSize":"2147483648"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":0,"format":"ISO","accountId":0,"hvm":false}},"diskSeq":3,"type":"ISO"}],"nics":[
> {"deviceId":0,"networkRateMbps":200,"defaultNic":true,"pxeDisable":false,"nicUuid":"24ad05e4-4403-46d7-b5b3-047d7b80f6d5","uuid":"ea0a02aa-e044-4fe8-b232-11a92a215699","ip":"10.1.1.227","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:6b:1a:00:04","dns1":"10.140.50.6","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://970","isolationUri":"vlan://970","isSecurityGroupEnabled":false}
> ]},"result":false,"details":"StartCommand failed due to Exception: java.lang.RuntimeException\nMessage: File []/vmfs/volumes/e6e85063-a671de34/AUvm/ROOT-31.vmdk was not found\n","wait":0}}] }
> 2014-12-02 14:49:05,902 DEBUG [c.c.a.t.Request] (Work-Job-Executor-121:ctx-b00a4286 job-282/job-284 ctx-9f1b7ba0) (logid:16aa687e) Seq 3-7553943949983880226: Received: { Ans: , MgmtId: 6662467354709, via: 3, Ver: v1, Flags: 10,
> { StartAnswer }
> }
> 2014-12-02 14:49:05,907 INFO [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-121:ctx-b00a4286 job-282/job-284 ctx-9f1b7ba0) (logid:16aa687e) Unable to start VM on Host[-3-Routing] due to StartCommand failed due to Exception: java.lang.RuntimeException
> Message: File []/vmfs/volumes/e6e85063-a671de34/AUvm/ROOT-31.vmdk was not found
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)