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 0F0DFE7FF for ; Tue, 26 Feb 2013 23:26:23 +0000 (UTC) Received: (qmail 25022 invoked by uid 500); 26 Feb 2013 23:26:22 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 24977 invoked by uid 500); 26 Feb 2013 23:26:22 -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 24969 invoked by uid 99); 26 Feb 2013 23:26:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 23:26:22 +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 X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of mike.tutkowski@solidfire.com does not designate 209.85.219.49 as permitted sender) Received: from [209.85.219.49] (HELO mail-oa0-f49.google.com) (209.85.219.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 23:26:15 +0000 Received: by mail-oa0-f49.google.com with SMTP id j6so6418595oag.8 for ; Tue, 26 Feb 2013 15:25:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=SqdrCW0M5MzjevCetgiQL2WkjMmW4RRQWfwJTA1dG5I=; b=TwU6S82cF9bkvePLH/VjAnZXUOf4pDtN8+Yp+dQakdOY+6UlEyTkYK53naAZ6G6wVX qNpo3UGqIZeKCINovdSdXK4Tqbtv6Ra09Ws7RP/SCGkxx57P79r4MjpD/YmXl7WjTW6q WVhbkc1DbYZBJOHDviDdihEwOwwo6mUT5ZkKBMnFc6HBjRryiennymegcA7bhiyupeth oWTNMEzUI0on1Lf2jWGU26tnUNb4rMYNAQWru91aLKVgPbv1AH+ffXwjYfk/KKuUACa0 yrF6tPv26AKnGcHl39EHok2G+dbTR/jaC95Hr2QWe+ajU4QeVBRgTuksEHf8nSP3kOOn /WNw== MIME-Version: 1.0 X-Received: by 10.60.22.34 with SMTP id a2mr64299oef.97.1361921154095; Tue, 26 Feb 2013 15:25:54 -0800 (PST) Received: by 10.182.146.5 with HTTP; Tue, 26 Feb 2013 15:25:54 -0800 (PST) Date: Tue, 26 Feb 2013 16:25:54 -0700 Message-ID: Subject: XAPI Create iSCSI SR Question From: Mike Tutkowski To: "cloudstack-dev@incubator.apache.org" Content-Type: multipart/alternative; boundary=e89a8fb205e49a3bc404d6a8fac7 X-Gm-Message-State: ALoCoQno05MofEuaLeqwFRP/oy5b1dcEK6PqG014zcRwc33BjnTumbiMPeL1fNuFf+GoT5CF4mVt X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb205e49a3bc404d6a8fac7 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, I'm totally new to using the Xen Management API. I'm working on a little project where I create an iSCSI volume, then a Storage Repository based on the volume, then a Primary Storage based on the SR. When running the code below (hard coding the info that's asked for), I receive the following exception (*bolded*): *"The request is missing or has an incorrect target IQN parameter" (id=3D65= ) * ** ** ** *0* *10.0.3.15* *iqn.2013-01.com.solidfire:volume-1* ** ** *1* *192.168.56.7* *iqn.2013-01.com.solidfire:volume-1* ** ** *2* *192.168.56.7* *** ** ** Connection connection =3D new Connection(new URL("http://192.168.56= .9" )); Session.loginWithPassword(connection, "root", "password", APIVersion.latest().toString()); Host host =3D (Host)Host.getAll(connection).toArray()[0]; Map deviceConfig =3D new HashMap()= ; deviceConfig.put("target", "192.168.56.7"); // the IP address of the box hosting the iSCSI target deviceConfig.put("targetiqn", "iqn.2013-01.com.solidfire:volume-1")= ; // the IQN deviceConfig.put("SCSIid", "14945540000000000174363735d33eaa0b2066de99378683d"); // the SCSI ID final long size =3D 0; // Not sure if I need a "real" value here? final String name =3D "Test iSCSI SR"; final String desc =3D "Created =3D " + new Date().toString(); final String type =3D "lvmoiscsi"; final String contentType =3D "unused"; // Not sure if I need a "rea= l" value here? final boolean shared =3D true; SR.create(connection, host, deviceConfig, size, name, desc, type, contentType, shared, new HashMap()); Thanks for any assistance here! :) --=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* --e89a8fb205e49a3bc404d6a8fac7--