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

[jira] [Resolved] (CLOUDSTACK-2686) Upload volume to project is not shown in project storage view

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-2686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mice Xia resolved CLOUDSTACK-2686.
----------------------------------

    Resolution: Fixed

add a new parameter 'projectid' to API uploadVolume
                
> Upload volume to project is not shown in project storage view
> -------------------------------------------------------------
>
>                 Key: CLOUDSTACK-2686
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2686
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Volumes
>    Affects Versions: 4.2.0
>         Environment: build:
> CloudStack-non-OSS-MASTER-389-rhel6.3
>            Reporter: shweta agarwal
>            Assignee: Mice Xia
>            Priority: Critical
>             Fix For: 4.2.0
>
>
> Repro steps:
> 1. Create a Project
> 2. Upload a Volume to the project
> Bug:
> Volume uploaded does not belong to project . Uploaded volume is not shown in Project Storage view
> Expected result:
> Uploaded volume should belong to the project and should be shown in  Project storage View.
> API call :
> http://10.147.59.212:8080/client/api?command=uploadVolume&response=json&sessionkey=yV6GY8KRbZ27uN8vauSKUwtCBcM%3D&projectid=e2a9e94d-0285-4c07-943c-9e666f9d9d61&name=ov&zoneId=e9d7d1e4-9020-427e-ac13-25cefbc72b28&format=OVA&url=http%3A%2F%2F10.147.28.7%2Ftemplates%2Fvmware%2FCentos6_2.ova&_=1369632336913
> http://10.147.59.212:8080/client/api?command=queryAsyncJobResult&jobId=009686d9-a383-4d57-a2e8-9838f91ef0ab&response=json&sessionkey=yV6GY8KRbZ27uN8vauSKUwtCBcM%3D&projectid=e2a9e94d-0285-4c07-943c-9e666f9d9d61&_=1369632340133
> Response:
> { "queryasyncjobresultresponse" : {"accountid":"7b3e166c-c399-11e2-8675-0648d80000bc","userid":"7b3eb860-c399-11e2-8675-0648d80000bc","cmd":"org.apache.cloudstack.api.command.user.volume.UploadVolumeCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"volume":{"id":"beabdf48-31ff-4118-8899-77b66d3aa40e","name":"ov","zoneid":"e9d7d1e4-9020-427e-ac13-25cefbc72b28","zonename":"vmware","zonetype":"Advanced","type":"DATADISK","size":0,"created":"2013-05-27T06:54:33-0400","state":"Uploaded","account":"admin","domainid":"51a5a572-c399-11e2-8675-0648d80000bc","domain":"ROOT","storagetype":"shared","diskofferingid":"831db814-883b-489a-9c6a-ae7084ba8bdb","diskofferingname":"Custom","diskofferingdisplaytext":"Custom Disk","destroyed":false,"isextractable":true,"tags":[],"displayvolume":false}},"created":"2013-05-27T06:54:33-0400","jobid":"009686d9-a383-4d57-a2e8-9838f91ef0ab"} }
> The issue is in response instead of getting project id  and project as parameter  its getting account as parameter . So the uploaded volume gets assign to account owner instead of project .

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