I'm trying to setup the hosted engine on top of iSCSI storage. It successfully 
logs in and gets the target, however the process errors out claiming there are 
no LUNs. But if you look on the host, the disks were added to the system.

[ INFO  ] TASK [ovirt.hosted_engine_setup : iSCSI discover with REST API]
[ INFO  ] ok: [localhost]
          The following targets have been found:
                [1]     iqn.2001-04.com.billdurr.durrnet.vm-int:vmdata
                        TPGT: 1, portals:
                                192.168.47.10:3260

          Please select a target (1) [1]: 1
[ INFO  ] Getting iSCSI LUNs list
...
[ INFO  ] TASK [ovirt.hosted_engine_setup : Get iSCSI LUNs]
[ INFO  ] ok: [localhost]
[ ERROR ] Cannot find any LUN on the selected target
[ ERROR ] Unable to get target list

Here's what the config in targetcli looks like
[root@vm1 ~]# targetcli ls
o- / ..................................................................... [...]
  o- backstores .......................................................... [...]
  | o- block .............................................. [Storage Objects: 2]
  | | o- p_iscsi_lun1 .............. [/dev/drbd0 (62.0GiB) write-thru activated]
  | | | o- alua ............................................... [ALUA Groups: 1]
  | | |   o- default_tg_pt_gp ................... [ALUA state: Active/optimized]
  | | o- p_iscsi_lun2 ............. [/dev/drbd1 (310.6GiB) write-thru activated]
  | |   o- alua ............................................... [ALUA Groups: 1]
  | |     o- default_tg_pt_gp ................... [ALUA state: Active/optimized]
  | o- fileio ............................................. [Storage Objects: 0]
  | o- pscsi .............................................. [Storage Objects: 0]
  | o- ramdisk ............................................ [Storage Objects: 0]
  o- iscsi ........................................................ [Targets: 1]
  | o- iqn.2001-04.com.billdurr.durrnet.vm-int:vmdata ................ [TPGs: 1]
  |   o- tpg1 .............................................. [gen-acls, no-auth]
  |     o- acls ...................................................... [ACLs: 0]
  |     o- luns ...................................................... [LUNs: 2]
  |     | o- lun0 ......... [block/p_iscsi_lun1 (/dev/drbd0) (default_tg_pt_gp)]
  |     | o- lun1 ......... [block/p_iscsi_lun2 (/dev/drbd1) (default_tg_pt_gp)]
  |     o- portals ................................................ [Portals: 1]
  |       o- 192.168.47.10:3260 ........................................... [OK]
  o- loopback ..................................................... [Targets: 0]
  o- srpt ......................................................... [Targets: 0]

The two LUNs show up on the host after the hosted engine setup tries to 
enumerate the LUNs for the target
[root@vm1 ~]# lsscsi
[0:0:0:0]    storage HP       P420i            8.32  -
[0:1:0:0]    disk    HP       LOGICAL VOLUME   8.32  /dev/sda
[0:1:0:1]    disk    HP       LOGICAL VOLUME   8.32  /dev/sdb
[0:1:0:2]    disk    HP       LOGICAL VOLUME   8.32  /dev/sdc
[11:0:0:0]   disk    LIO-ORG  p_iscsi_lun1     4.0   /dev/sdd
[11:0:0:1]   disk    LIO-ORG  p_iscsi_lun2     4.0   /dev/sde
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@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/users@ovirt.org/message/MGPCIAT7QTH7A7EHIC2RBDTZTH6HB4IH/

Reply via email to