You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Diogo Monteiro (JIRA)" <ji...@apache.org> on 2014/02/25 00:24:22 UTC
[jira] [Created] (CLOUDSTACK-6167) Volume being created under wrong
domain
Diogo Monteiro created CLOUDSTACK-6167:
------------------------------------------
Summary: Volume being created under wrong domain
Key: CLOUDSTACK-6167
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6167
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Affects Versions: 4.2.0
Reporter: Diogo Monteiro
The volume's domain is always being set to ROOT even though a different domain is explicitly being passed in.
In the example below the domainId of 3dac0350-0692-4ae6-a32c-c390f1515271 is set in the createVolume command.
However, the volume is created under the domainId 1ba7a57e-35d1-11e3-a6fd-3a96760eadba instead.
This problem is not reproducible when the authentication is done via username/password credentials.
The problem only happens when authenticating using the api/secret key
Steps to reproduce:
#1 Create rest request for createVolume command:
"http://cloudstack:8096?
account=17204559&
apiKey=3-dhUSacibT-63dj3kMHyGmslQ1Hw4pcrQ2eRtXbCoa7ZAfAOQrzLf_pZjwRjJnFy1eCG0Wdb7Zj9ym5jG_Jrg&
command=createVolume&
diskofferingid=b6da933b-f9f4-4f1d-9350-2c215cc996e7&domainid=3dac0350-0692-4ae6-a32c-c390f1515271&
name=DevVol1041&response=json&zoneid=db37713e-db93-470c-8586-d6b9381c8771&
signature=P2HqYcs7DCGhcju1Sr1UXRcrKZ4%3D",
#2 List newly created volume
http://cs42.dev.cloud:8096?
apiKey=3-dhUSacibT-63dj3kMHyGmslQ1Hw4pcrQ2eRtXbCoa7ZAfAOQrzLf_pZjwRjJnFy1eCG0Wdb7Zj9ym5jG_Jrg&
command=listVolumes&
id=75ee7594-da7b-47f4-9c20-8b0bfa9f193b&
response=json&
signature=%2BLtMCYS2ayV%2F8shUC5sZeH83ydc%3D"
{
"id": "75ee7594-da7b-47f4-9c20-8b0bfa9f193b",
"name": "DevVol1041",
"zoneid": "db37713e-db93-470c-8586-d6b9381c8771",
"zonename": "advz1",
"type": "DATADISK",
"size": 21474836480,
"created": "2014-02-24T18:10:08-0500",
"state": "Allocated",
"account": "17204559",
"domainid": "1ba7a57e-35d1-11e3-a6fd-3a96760eadba",
"domain": "ROOT",
"storagetype": "shared",
"diskofferingid": "b6da933b-f9f4-4f1d-9350-2c215cc996e7",
"diskofferingname": "Small",
"diskofferingdisplaytext": "Small Disk, 20 GB",
"destroyed": false,
"isextractable": true,
"tags": [],
"displayvolume": true
}
Desire Results:
Volume should be created under domainId 3dac0350-0692-4ae6-a32c-c390f1515271
Actual Results:
Volume is created under domainId 1ba7a57e-35d1-11e3-a6fd-3a96760eadba
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)