You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/10/01 12:24:34 UTC

[jira] [Commented] (CLOUDSTACK-7662) [VMware] Resize of detached volumes fails

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

ASF subversion and git services commented on CLOUDSTACK-7662:
-------------------------------------------------------------

Commit 65ed25b7a63586e25a568d845527d547f0045889 in cloudstack's branch refs/heads/master from [~likithas]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=65ed25b ]

BUG-ID: CLOUDSTACK-7662. Resize of detached volume fails.
Support offline volume resize on ESX by creating a worker VM to attach the unattached volume to and then resize it.


> [VMware] Resize of detached volumes fails
> -----------------------------------------
>
>                 Key: CLOUDSTACK-7662
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7662
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VMware, Volumes
>    Affects Versions: 4.5.0
>            Reporter: Likitha Shetty
>            Assignee: Likitha Shetty
>            Priority: Critical
>             Fix For: 4.5.0
>
>
> +Problem+
> Resize of detached volumes fails with the following error
> {noformat}
> INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-9:ctx-39d10699 job-4056) Add job-4056 into job monitoring 
> ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-103:ctx-145f612d gheodc01app51.gs2beta-ad.local.com) VM none does not exist in VMware datacenter 
> ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-103:ctx-145f612d gheodc01app51.gs2beta-ad.local.com) Unable to resize volume 
> java.lang.Exception: VM none does not exist in VMware datacenter 
> at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:657) 
> at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:594) 
> at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:215) 
> at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:50) 
> 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:47) 
> 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) 
> WARN [o.a.c.s.d.ObjectInDataStoreManagerImpl] (API-Job-Executor-9:ctx-39d10699 job-4056 ctx-b2cc315e) Unsupported data object (VOLUME, org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@39f054d9), no need to delete from object in store ref table 
> WARN [c.c.s.VolumeApiServiceImpl] (API-Job-Executor-9:ctx-39d10699 job-4056 ctx-b2cc315e) Failed to resize the volume Vol[225|vm=null|DATADISK] 
> INFO [o.a.c.f.j.i.AsyncJobMonitor] (API-Job-Executor-9:ctx-39d10699 job-4056) Remove job-4056 from job monitoring 
> INFO [c.c.h.v.m.HostMO] (DirectAgent-17:ctx-38b22e90 gheodc01app51.gs2beta-ad.local.com) VM i-2-168-VM not found in host cache 
> INFO [c.c.h.v.r.VmwareResource] (DirectAgent-331:ctx-894aa11d) Scan hung worker VM to recycle 
> INFO [c.c.h.v.r.VmwareResource] (DirectAgent-17:ctx-f20cffed) Scan hung worker VM to recycle 
> {noformat}
> +Root Cause Analysis+
> In case of VMware, for disk re-size we use the VM associated with the disk to perform the re-size operation. For a detached volume since there is no associated VM the re-size failed with 'VM does not exist' error.
> +Steps to reproduce+
> # Setup a VMware DC
> # Create a VM with a Datadisk - choose Disk offering 'Small' for the Datadisk
> # Detach the Datadisk
> # Attempt to resize the Datadisk - choose New Offering 'Medium Disk, 20 GB'
> The above will fail with a UI message 'Failed to resize volume'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)