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

Jessica Wang commented on CLOUDSTACK-3477:
------------------------------------------

Pavan,

This is an API bug, NOT UI bug.

When shrinking data volume on KVM fails, resizeVolume API doesn't return error, 
so UI doesn't show error.

You didn't provide API call info in this bug, but I believe resizeVolume API 
returns success instead of error when you saw the bug.

If resizeVolume API does return error (with errortext), UI will pop up dialog 
box showing errortext like my attachment "jessica_example1.jpg".

The API call info (in my attachment "jessica_example1.jpg") is:


http://10.215.3.26:8080/client/api?command=resizeVolume&id=ef558c60-c0ca-415b-ba21-19f14959061d&shrinkok=true&diskofferingid=e1505081-c2d8-4102-8f2b-eecd1c889c05&response=json&sessionkey=KqhA75bOkIWJDfJnewxcCnTCLTE%3D&_=1381271571943
{
    "resizevolumeresponse": {
        "jobid": "12170d6e-f571-420a-b2f6-340b900809e0"
    }
}


http://10.215.3.26:8080/client/api?command=queryAsyncJobResult&jobId=12170d6e-f571-420a-b2f6-340b900809e0&response=json&sessionkey=KqhA75bOkIWJDfJnewxcCnTCLTE%3D&_=1381271575071
{
    "queryasyncjobresultresponse": {
        "accountid": "b99d045c-2d40-11e3-86aa-3c970e739c3e",
        "userid": "b99d29e6-2d40-11e3-86aa-3c970e739c3e",
        "cmd": "org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd",
        "jobstatus": 2,
        "jobprocstatus": 0,
        "jobresultcode": 530,
        "jobresulttype": "object",
        "jobresult": {
            "errorcode": 530,
            "errortext": "VM must be stopped or disk detached in order to 
resize with the Xen HV"
        },
        "created": "2013-10-08T15:32:49-0700",
        "jobid": "12170d6e-f571-420a-b2f6-340b900809e0"
    }
}

So, I think resizeVolume API returned success (which is incorrect) when you 
tested it.
It will be helpful if you can provide API call info.

I'll remove "UI" and add "API" to components field.

Jessica

> resizeDataVolume doesn't return proper error message when trying to shrink 
> volume on KVM
> ----------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3477
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3477
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: API
>    Affects Versions: 4.2.0
>         Environment: Management Server: RHEL 6.3
> KVM : Rhel 6.3
>            Reporter: Pavan Kumar Bandarupally
>            Priority: Minor
>             Fix For: 4.2.1
>
>         Attachments: jessica_example1.jpg
>
>
> Shrink of QCOW2 data volumes is not supported. When user tries to shrink data 
> volume of a VM on KVM, there is no error returned by the CloudStack UI. In 
> the UI task (shrink data volume) will be completed successfully.
> The task should not be shown as successful as the operation is not supported 
> by code.



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

Reply via email to