Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EB68E0B7 for ; Mon, 18 Feb 2013 23:27:41 +0000 (UTC) Received: (qmail 9991 invoked by uid 500); 18 Feb 2013 23:27:40 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 9942 invoked by uid 500); 18 Feb 2013 23:27:40 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 9933 invoked by uid 99); 18 Feb 2013 23:27:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 23:27:40 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of mike.tutkowski@solidfire.com does not designate 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Feb 2013 23:27:35 +0000 Received: by mail-oa0-f43.google.com with SMTP id l10so6365971oag.16 for ; Mon, 18 Feb 2013 15:27:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=FKpHLLfTdYdf3KBMQ6VuKKN6DKIN5yioVgKqpEaV5pA=; b=PPDmVEqiNLQJ+rhTzKsl+2o3ryqGFx00q0a6e1NUsjhsdDTsPAl2WjCaoa4xScqMh1 M+e+dFMPXVF6pcaKJ8gdM8WFnYjxkffXm/kucFn8eICzo3hVo5veDneh65GH+xHGYANu Fx6h+j0eXAK3qRdLimfH+iUPkt9a+acr8A5zfOo8W/QIP+vmN0i3BbwkI175NSnWDWey 5Z+w1D7BvbDNblm8BFNs2/XrjeczyI5MY+N+25iU8nhEruARebb4//r0QA3dCTbMtxkq 1zX5DeQOmM5cTcHG4nlN81tq0j3WkIige2Ar2e0Y/NPS+E7a34J4ypSmLPxfle1zGNbg BBOw== MIME-Version: 1.0 X-Received: by 10.60.22.34 with SMTP id a2mr2791195oef.97.1361230034987; Mon, 18 Feb 2013 15:27:14 -0800 (PST) Received: by 10.182.184.8 with HTTP; Mon, 18 Feb 2013 15:27:14 -0800 (PST) In-Reply-To: References: <97F4356AEA71904482CD192135C038F9011CC1391052@BANPMAILBOX01.citrite.net> Date: Mon, 18 Feb 2013 16:27:14 -0700 Message-ID: Subject: Re: createStoragePool API Question From: Mike Tutkowski To: "cloudstack-dev@incubator.apache.org" Content-Type: multipart/alternative; boundary=e89a8fb205e4b168c904d6081017 X-Gm-Message-State: ALoCoQncBeLksV0HUQISQb5Q/VWxIECjhWD64hq6fJ2WfwrQpEaPMx11d8JZ627g+ZjcRgUX/Umn X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb205e4b168c904d6081017 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I wonder if the problem perhaps is the iscsi:// part of the query string. Do I maybe have to do something special with that (URL encode)? On Mon, Feb 18, 2013 at 2:44 PM, Mike Tutkowski < mike.tutkowski@solidfire.com> wrote: > For example, deployVirtualMachine (works): > > > http://127.0.0.1:8080/client/api?command=3DdeployVirtualMachine&serviceOf= feringId=3Dad8921ce-79e9-11e2-9ad2-3fe5c11831af&templateId=3D3bb9efd1-42f1-= 4413-be98-57c49c6dc12b&zoneId=3Da39e2c4c-7172-4045-b692-b6053b0ba01a&userda= ta=3Dxyz&response=3Djson&apiKey=3DJZ13Mfqe6VJDs7iJxQL1JlsUbxdoSM7xrDMe65-PS= ggfcTTM61yZCrM7ol8Lr4vZf2kTUU0oSnjuwJZ2Y-Jc7A&signature=3D0c%2FD2NoiKRrcD5C= V6o4r2U5SXGg%3D > > > createStoragePool (fails with 401): > > > http://127.0.0.1:8080/client/api?command=3DcreateStoragePool&name=3DSolid= FirePS33416652&url=3Discsi://192.168.56.7/iqn.2013-01.com.solidfire:volume-= 1/0&zoneId=3Da39e2c4c-7172-4045-b692-b6053b0ba01a&podId=3D4d95c83b-da35-463= d-8557-5f1912c8f978&clusterId=3D6dcc24e2-bb32-4413-b654-ea956b565b3e&respon= se=3Djson&apiKey=3DJZ13Mfqe6VJDs7iJxQL1JlsUbxdoSM7xrDMe65-PSggfcTTM61yZCrM7= ol8Lr4vZf2kTUU0oSnjuwJZ2Y-Jc7A&signature=3DcwJpUdj0Zc7QX2cvOp16WXkuw7E%3D > > > > On Mon, Feb 18, 2013 at 2:35 PM, Mike Tutkowski < > mike.tutkowski@solidfire.com> wrote: > >> So, when I call createStoragePool, I get back the following error: >> >> { "createstoragepoolresponse" : {"uuidList":[],"errorcode":401,"errortex= t":"unable to verify user credentials and/or request signature"} } >> >> Do I have to send an authentication header field for such an API call? >> >> Thanks! >> >> >> >> On Mon, Feb 18, 2013 at 12:24 AM, Mike Tutkowski < >> mike.tutkowski@solidfire.com> wrote: >> >>> Great, thanks a lot! >>> >>> >>> On Mon, Feb 18, 2013 at 12:07 AM, Sowmya Krishnan < >>> sowmya.krishnan@citrix.com> wrote: >>> >>>> Mike, you're right - the URL parameter should include IP address, >>>> Target IQN and LUN in the following format: url=3D iscsi://IP address/= target >>>> IQN/LUN >>>> >>>> This worked for me: >>>> http://localhost:8096/client/api?command=3DcreateStoragePool&name=3DPS= 2iscsi&url=3Discsi://10.X.X.X/iqn.2004XXXX/0&zoneid=3Df7f9bd51-1860-438b-8c= 32-b669fa8e9677&clusterid=3Dfdc03b94-2ff1-4a41-ae43-b2e296c4bf2c&podid=3Df4= 3c0b43-cc85-41e6-91af-00fd09924fac >>>> >>>> >>>> -----Original Message----- >>>> From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] >>>> Sent: Monday, February 18, 2013 11:39 AM >>>> To: cloudstack-dev@incubator.apache.org >>>> Subject: createStoragePool API Question >>>> >>>> Hi everyone, >>>> >>>> I'm trying to reconcile the API doc here with what I see in the GUI: >>>> >>>> >>>> http://incubator.apache.org/cloudstack/docs/api/apidocs-4.0.0/root_adm= in/createStoragePool.html >>>> >>>> *Parameter Name*DescriptionRequired*name**the name for the storage >>>> pool** true**url**the URL of the storage pool**true**zoneid**the Zone = ID >>>> for the storage pool**true**clusterid**the cluster ID for the storage >>>> pool**false** details**the details for the storage pool**false**podid*= *the >>>> Pod ID for the storage pool**false**tags**the tags for the storage >>>> pool**false* >>>> >>>> In the GUI, the requested text fields are the following (when Protocol= =3D >>>> iSCSI): Zone, Pod, Cluster, Name, Protocol, Server, Target IQN, LUN, >>>> and Storage Tags. >>>> >>>> So, what I'm wondering is where do I pass in the IP address of the >>>> Server, the Target IQN, and the LUN? It seems like the URL parameter = might >>>> be for this, but - if so - what format do I need to pass this info in = as? >>>> >>>> Thanks! >>>> >>>> -- >>>> *Mike Tutkowski* >>>> *Senior CloudStack Developer, SolidFire Inc.* >>>> e: mike.tutkowski@solidfire.com >>>> o: 303.746.7302 >>>> Advancing the way the world uses the >>>> cloud >>>> *(tm)* >>>> >>> >>> >>> >>> -- >>> *Mike Tutkowski* >>> *Senior CloudStack Developer, SolidFire Inc.* >>> e: mike.tutkowski@solidfire.com >>> o: 303.746.7302 >>> Advancing the way the world uses the cloud >>> *=99* >>> >> >> >> >> -- >> *Mike Tutkowski* >> *Senior CloudStack Developer, SolidFire Inc.* >> e: mike.tutkowski@solidfire.com >> o: 303.746.7302 >> Advancing the way the world uses the cloud >> *=99* >> > > > > -- > *Mike Tutkowski* > *Senior CloudStack Developer, SolidFire Inc.* > e: mike.tutkowski@solidfire.com > o: 303.746.7302 > Advancing the way the world uses the cloud > *=99* > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --e89a8fb205e4b168c904d6081017--