You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Kirk Kosinski (JIRA)" <ji...@apache.org> on 2013/10/02 05:47:27 UTC

[jira] [Commented] (CLOUDSTACK-3482) primary:iscsi:detachvolume is failed when we attach voulme on stopped vm and try to detach volume when VM is running state

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

Kirk Kosinski commented on CLOUDSTACK-3482:
-------------------------------------------

I don't this is a CloudStack issue. After following the steps above, attempting to detach the volume via XenCenter also fails. If the volume is attached at VM boot it is considered in use and the following is seen in xensource.log:

[20131001T23:39:59.873Z|error|xenserver-vs01|51421 inet-RPC|VBD.unplug R:98e8244db6a5|xapi] Xapi_vbd.destroy_vbd got an error (frontend (domid=3 | kind=vbd | devid=51728); backend (domid=0 | kind=vbd | devid=51728)) 16 Device in use; refusing to close

And in /var/log/messages in the VM:

Oct  1 23:39:59 vm2 kernel: vbd vbd-51728: 16 Device in use; refusing to close

> primary:iscsi:detachvolume  is failed when we attach voulme on stopped vm and try to detach volume when VM is running state
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3482
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3482
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Volumes, Xen, XenServer
>    Affects Versions: 4.2.0
>            Reporter: sadhu suresh
>            Priority: Critical
>             Fix For: 4.2.0
>
>         Attachments: management-server.rar
>
>
> detachvolume  is failed when we attach voulme on stopped vm and try to detach volume when VM is running state
> steps:
> 1. deploy a vm1
> 2. perform  snapshot on root volume
> 3.create a volume from snapshot i,e vol1
> 4.deploy another vm2
> 5.attach/detach a volume created in step3
> 6 volume was successfully attached and detach and then .stop the vm2
> 7.attach the volume "vol1" to vm2
> 8.start the VM2
> 9 try to detach "vol1" from vm2
> Actual result:
> fail to detach the volume from vm and throws below error when we first try to detach the volume.
> and later if we try to detach volume again and its failing with "failed dettach volume: 960eba57-279b-48a6-b94d-44ef75fe134b, due to org.apache.xmlrpc.XmlRpcException: Failed to create input stream: Read timed out"
> ************************** 49. row ***************************
>                 id: 67
>            user_id: 2
>         account_id: 2
>        session_key: NULL
>      instance_type: NULL
>        instance_id: NULL
>            job_cmd: org.apache.cloudstack.api.command.user.volume.DetachVolumeCmd
> job_cmd_originator: NULL
>       job_cmd_info: {"response":"json","id":"dbf2306a-91e9-4980-b773-eac0523ef290","sessionkey":"MHeSvVY9VxbxczPiN/S443FWzw0\u003d","cmdEventType":"VOLUME.DETACH","ctxUserId":"2","httpmethod":"GET","_":"1373548167660","ctxAccountId":"2","ctxStartEventId":"261"}
>        job_cmd_ver: 0
>      callback_type: 0
>   callback_address: NULL
>         job_status: 2
> job_process_status: 0
>    job_result_code: 530
>         job_result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed to detach volume: xx from VM: vm3; Failed dettach volume: 6a5d2542-2333-4855-bd87-675c7ead26b5, due to The VM rejected the attempt to detach the device."}
>      job_init_msid: 7321476399279
>  job_complete_msid: 7321476399279
>            created: 2013-07-11 18:37:52
>       last_updated: 2013-07-11 18:37:53
>        last_polled: NULL
>            removed: NULL
>               uuid: e36c7928-3b6b-4cb5-90fb-44dc9378e740
>            id: 68
>            user_id: 2
>         account_id: 2
>        session_key: NULL
>      instance_type: NULL
>        instance_id: NULL
>            job_cmd: org.apache.cloudstack.api.command.user.volume.DetachVolumeCmd
> job_cmd_originator: NULL
>       job_cmd_info: {"response":"json","id":"dbf2306a-91e9-4980-b773-eac0523ef290","sessionkey":"MHeSvVY9VxbxczPiN/S443FWzw0\u003d","cmdEventType":"VOLUME.DETACH","ctxUserId":"2","httpmethod":"GET","_":"1373548256841","ctxAccountId":"2","ctxStartEventId":"264"}
>        job_cmd_ver: 0
>      callback_type: 0
>   callback_address: NULL
>         job_status: 2
> job_process_status: 0
>    job_result_code: 530
>         job_result: org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed to detach volume: xx from VM: vm3; Failed dettach volume: 6a5d2542-2333-4855-bd87-675c7ead26b5, due to org.apache.xmlrpc.XmlRpcException: Failed to create input stream: Read timed out"}
>      job_init_msid: 7321476399279
>  job_complete_msid: 7321476399279
>            created: 2013-07-11 18:39:22
>       last_updated: 2013-07-11 18:49:22
>        last_polled: 2013-07-11 18:49:19
>            removed: NULL



--
This message was sent by Atlassian JIRA
(v6.1#6144)