On Fri, Feb 8, 2019 at 2:07 AM <cbop.m...@gmail.com> wrote:

> Hello!
>
> I was just trying to setup my first oVirt Server via Cockpit but it failed
> when I wanted to connect it to my iSCSI.
>
> These are the last lines of my vdsm.log:
> 2019-02-08 01:34:07,080+0100 INFO  (jsonrpc/3) [jsonrpc.JsonRpcServer] RPC
> call Host.getAllVmStats succeeded in 0.00 seconds (__init__:312)
>
>
> 2019-02-08 01:34:07,096+0100 INFO  (jsonrpc/5) [api.host] START
> getAllVmIoTunePolicies() from=::1,36420 (api:48)
>
>
> 2019-02-08 01:34:07,096+0100 INFO  (jsonrpc/5) [api.host] FINISH
> getAllVmIoTunePolicies return={'status': {'message': 'Done', 'code': 0},
> 'io_tune_policies_dict': {'be244416-dc4b-4bee-b451-37c0517f19f7':
> {'policy': [], 'current_values': []}}} from=:
> :1,36420 (api:54)
>
>
>
> 2019-02-08 01:34:07,097+0100 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer] RPC
> call Host.getAllVmIoTunePolicies succeeded in 0.00 seconds (__init__:312)
>
>
> 2019-02-08 01:34:08,149+0100 INFO  (jsonrpc/7) [vdsm.api] START
> discoverSendTargets(con={'ipv6_enabled': u'false', 'connection':
> u'20.20.20.20', 'password': '', 'port': u'3260', 'user': ''}, options=None)
> from=::ffff:192.168.122.144,35682, flow_id=6
> a17a7b3-1dfa-424c-8978-652d73314daf,
> task_id=f8be43e7-9085-42bd-b526-c2adb9962cb4 (api:48)
>
>
> 2019-02-08 01:34:08,330+0100 INFO  (jsonrpc/7) [vdsm.api] FINISH
> discoverSendTargets return={'fullTargets': ['20.20.20.20:3260,1
> iqn.2019-02.eu.teamxenon:data', '20.20.20.20:3260,1
> iqn.2019-02.eu.teamxenon:ovirt'], 'targets': ['iqn.2019-02.eu.teamxe
> non:data', 'iqn.2019-02.eu.teamxenon:ovirt']}
> from=::ffff:192.168.122.144,35682,
> flow_id=6a17a7b3-1dfa-424c-8978-652d73314daf,
> task_id=f8be43e7-9085-42bd-b526-c2adb9962cb4 (api:54)
>
> 2019-02-08 01:34:08,331+0100 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer] RPC
> call ISCSIConnection.discoverSendTargets succeeded in 0.18 seconds
> (__init__:312)
>
> 2019-02-08 01:34:10,739+0100 INFO  (vmrecovery) [vdsm.api] START
> getConnectedStoragePoolsList(options=None) from=internal,
> task_id=0507616a-5b31-4d88-897f-0d2411674ce3 (api:48)
>
> 2019-02-08 01:34:10,739+0100 INFO  (vmrecovery) [vdsm.api] FINISH
> getConnectedStoragePoolsList return={'poollist': []} from=internal,
> task_id=0507616a-5b31-4d88-897f-0d2411674ce3 (api:54)
>
> 2019-02-08 01:34:10,740+0100 INFO  (vmrecovery) [vds] recovery: waiting
> for storage pool to go up (clientIF:709)
>
> As you can see it finds the targets but for some reason it fails. The
> initiator name should be configured correctly.
> My iSCSI is configured as the following:
> o- /
> .........................................................................................................................
> [...]
>
>   o- backstores
> ..............................................................................................................
> [...]
>
>   | o- block
> ..................................................................................................
> [Storage Objects: 0]
>
>   | o- fileio
> .................................................................................................
> [Storage Objects: 4]
>
>   | | o- code .........................................................
> [/mnt/pool0/vdisks/code.img (200.0GiB) write-back activated]
>
>
>   | | | o- alua
> ...................................................................................................
> [ALUA Groups: 1]
>
>   | | |   o- default_tg_pt_gp
> .......................................................................
> [ALUA state: Active/optimized]
>
>   | | o- games .......................................................
> [/mnt/pool1/vdisks/games.img (800.0GiB) write-back activated]
>
>
>   | | | o- alua
> ...................................................................................................
> [ALUA Groups: 1]
>
>   | | |   o- default_tg_pt_gp
> .......................................................................
> [ALUA state: Active/optimized]
>
>   | | o- music .......................................................
> [/mnt/pool0/vdisks/music.img (400.0GiB) write-back activated]
>
>
>   | | | o- alua
> ...................................................................................................
> [ALUA Groups: 1]
>
>   | | |   o- default_tg_pt_gp
> .......................................................................
> [ALUA state: Active/optimized]
>
>   | | o- virtualization .................................................
> [/mnt/pool0/vdisks/vm.img (100.0GiB) write-back activated]
>
>
>   | |   o- alua
> ...................................................................................................
> [ALUA Groups: 1]
>
>   | |     o- default_tg_pt_gp
> .......................................................................
> [ALUA state: Active/optimized]
>
>   | o- pscsi
> ..................................................................................................
> [Storage Objects: 0]
>
>   | o- ramdisk
> ................................................................................................
> [Storage Objects: 0]
>
>   o- iscsi
> ............................................................................................................
> [Targets: 2]
>
>   | o- iqn.2019-02.eu.teamxenon:data
> .....................................................................................
> [TPGs: 1]
>
>   | | o- tpg1
> ...............................................................................................
> [no-gen-acls, no-auth]
>
>   | |   o- acls
> ..........................................................................................................
> [ACLs: 2]
>
>   | |   | o- iqn.2019-02.eu.teamxenon:laptop
> ......................................................................
> [Mapped LUNs: 3]
>
>   | |   | | o- mapped_lun0
> .................................................................................
> [lun0 fileio/code (rw)]
>
>   | |   | | o- mapped_lun1
> ................................................................................
> [lun1 fileio/music (rw)]
>
>   | |   | | o- mapped_lun2
> ................................................................................
> [lun2 fileio/games (rw)]
>
>   | |   | o- iqn.2019-02.eu.teamxenon:win10pro
> ....................................................................
> [Mapped LUNs: 3]
>
>   | |   |   o- mapped_lun0
> .................................................................................
> [lun0 fileio/code (rw)]
>
>   | |   |   o- mapped_lun1
> ................................................................................
> [lun1 fileio/music (rw)]
>
>   | |   |   o- mapped_lun2
> ................................................................................
> [lun2 fileio/games (rw)]
>
>   | |   o- luns
> ..........................................................................................................
> [LUNs: 3]
>
>   | |   | o- lun0 ....................................................
> [fileio/code (/mnt/pool0/vdisks/code.img) (default_tg_pt_gp)]
>
>
>   | |   | o- lun1 ..................................................
> [fileio/music (/mnt/pool0/vdisks/music.img) (default_tg_pt_gp)]
>
>
>   | |   | o- lun2 ..................................................
> [fileio/games (/mnt/pool1/vdisks/games.img) (default_tg_pt_gp)]
>
>
>   | |   o- portals
> ....................................................................................................
> [Portals: 1]
>
>   | |     o- 0.0.0.0:3260
> .....................................................................................................
> [OK]
>
>   | o- iqn.2019-02.eu.teamxenon:ovirt
> ....................................................................................
> [TPGs: 1]
>
>   |   o- tpg1
> ...............................................................................................
> [no-gen-acls, no-auth]
>
>   |     o- acls
> ..........................................................................................................
> [ACLs: 1]
>
>   |     | o- iqn.2019-02.eu.teamxenon:ovirt
> .......................................................................
> [Mapped LUNs: 1]
>
>   |     |   o- mapped_lun0
> .......................................................................
> [lun0 fileio/virtualization (rw)]
>
>   |     o- luns
> ..........................................................................................................
> [LUNs: 1]
>
>   |     | o- lun0 ............................................
> [fileio/virtualization (/mnt/pool0/vdisks/vm.img) (default_tg_pt_gp)]
>
>
>   |     o- portals
> ....................................................................................................
> [Portals: 1]
>
>   |       o- 0.0.0.0:3260
> .....................................................................................................
> [OK]
>
>   o- loopback
> .........................................................................................................
> [Targets: 0]
>
>   o- srpt
> .............................................................................................................
> [Targets: 0]
>
> I really don't know what the problem is and I haven't found an answer
> anywhere on the internet.
> I hope you can help me out.
>

Yes, sorry, this is a bug and it's tracked here:
https://bugzilla.redhat.com/show_bug.cgi?id=1672542

It will be fixed by
https://github.com/oVirt/ovirt-ansible-hosted-engine-setup/pull/109/commits/ceca0a852d94bd5af7226b15d15c9e3ff917cd5c

Since the fix is really simply I'd suggest to manually apply it editing
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/iscsi_discover.yml
and
/usr/share/ansible/roles/ovirt.hosted_engine_setup/tasks/iscsi_getdevices.yml
and removing 'no_log: true' lines before trying again from cockpit.

If you instead already know the IQN of your target and the WWID of the LUN
you want to use another option is to directly enter them in cockpit.


>
> Roman
> _______________________________________________
> 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/W7ZWMXR2N75YUCYI7JN7M2BJZAK44FCS/
>
_______________________________________________
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/273HDURZR47OB3VUUO2HQT2S6777UEDM/

Reply via email to