
Hi, Using sysService.hostsService().hostService(host.id()).iscsiDiscover().iscsi(iscsiDetailsBuilder).send().discoveredTargets(); Where iscsiDetailsBuilder is IscsiDetailsBuilder iscsiDetailsBuilder = new IscsiDetailsBuilder().address(address).port(port); I can fetch an iSCSI details container list, which contains the list of iSCSI targets. However, all values, except the address, port, portal and target string are null. I need the iSCSI LUN ID for automation of iSCSI creation. How can this be done via the SDK? Thanks in advance.

Il giorno gio 31 ott 2019 alle ore 11:46 <scott.fitzgerald@oracle.com> ha scritto:
Hi,
Using sysService.hostsService().hostService(host.id ()).iscsiDiscover().iscsi(iscsiDetailsBuilder).send().discoveredTargets();
Where iscsiDetailsBuilder is IscsiDetailsBuilder iscsiDetailsBuilder = new IscsiDetailsBuilder().address(address).port(port);
I can fetch an iSCSI details container list, which contains the list of iSCSI targets. However, all values, except the address, port, portal and target string are null. I need the iSCSI LUN ID for automation of iSCSI creation. How can this be done via the SDK?
Thanks in advance.
I haven't seen a reply to this one, did you solve? CC +Ondra Machacek <omachace@redhat.com>
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/FSSVUPUQISGM22...
-- Sandro Bonazzola MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV Red Hat EMEA <https://www.redhat.com/> sbonazzo@redhat.com <https://www.redhat.com/>*Red Hat respects your work life balance. Therefore there is no need to answer this email out of your office hours. <https://mojo.redhat.com/docs/DOC-1199578>*

Hi, Yes, I solved. The LUNs need to be fetched from the HostStorage objects on the Host which has an iqn pointing at the LUN.
participants (2)
-
Sandro Bonazzola
-
scott.fitzgerald@oracle.com