incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <>
Subject XAPI Create iSCSI SR Question
Date Tue, 26 Feb 2013 23:25:54 GMT

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

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=65)

*<?xml version="1.0" ?>*


















        Connection connection = new Connection(new URL(""

         Session.loginWithPassword(connection, "root", "password",

         Host host = (Host)Host.getAll(connection).toArray()[0];

         Map<String, String> deviceConfig = new HashMap<String, String>();

        deviceConfig.put("target", ""); // the IP address of
the box hosting the iSCSI target

        deviceConfig.put("targetiqn", "");
// the IQN

"14945540000000000174363735d33eaa0b2066de99378683d"); // the SCSI ID

        final long size = 0; // Not sure if I need a "real" value here?

        final String name = "Test iSCSI SR";

        final String desc = "Created = " + new Date().toString();

        final String type = "lvmoiscsi";

        final String contentType = "unused"; // Not sure if I need a "real"
value here?

        final boolean shared = true;

        SR.create(connection, host, deviceConfig, size, name, desc, type,
contentType, shared, new HashMap<String, String>());
Thanks for any assistance here! :)

*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
o: 303.746.7302
Advancing the way the world uses the

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message