--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
I'm trying to add fcp/iscsi storage with rest api like below,=20
#iscsi(iscsi hba card)
743 # type_: storage type
744 storage_params =3D param.Storage(address=3D"10.66.90.=
100",=B7
745 port=3D"3260",=B7
id=3D"36090a038d0f731=
6a6807a568b2491f1d",
target=3D"iqn.2001-05=
=2Ecom.equallogic:0-8a0906-6a31f7d03-1d1f49b268a50768"
746 type_=3D"iscsi")
747 # type_: storagedomain type
748 storagedomain_params =3D param.StorageDomain(name=3D"=
iscsidomain",
749 data_cente=
r=3Ddc, host=3Dhost,
750 type_=3D"d=
ata", storage_format=3D"v3",
751 storage=3D=
storage_params)
752 try:
753 logging.info("Creating iscsi data storage %s" % na=
me)
754 storagedomain =3D self.api.storagedomains.add(stor=
agedomain_params)
storage params for fcp storage:
744 storage_params =3D param.Storage(id=3D"3600a0b80005ad=
b0b00004d834f0b7954",
746 type_=3D"fcp")
my question are:
* if this is enough to connect iscsi/fcp(lun id, target) storage?
* did wrong type the logical_unit element,=20
thanks for your help again.
Regards,
--9jxsPFA5p3P2qPhR
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iQEcBAEBAgAGBQJQ0r+oAAoJEKa5n96c5rR6YYwH/2m+Ub+3AOvvIFl3HvE9F5uE
u3uay1cFHHI5NxYjiA6RZ0+UqmvQnqXNRP5ILoau5670PLOI63rJiInBseR1pZTN
VlM3gy2zy0yFa8EkSQIoCtoAuQJqO3Oa5wcqOsl6q92o23OgooScDQ9vaCCv6o1p
ZLJl3YQ0eBc/yJJ0Sim+qz2adFwnutW+6DhuOBkZ+FWLlle5kIwvNltWbL3cNCOa
II261zTEh5sXSjbLEO+9r6lZbZxN0CVTd63c38rC4nwC5242hn2QkFCzJdRR0zd/
l976DfK445SgcJ4lmE8WQaiI3VjeqbO+X0NlxV5kyAAu5om4XVO3GTh+0E/u36o=
=LVDZ
-----END PGP SIGNATURE-----
--9jxsPFA5p3P2qPhR--