<div dir="ltr"><div>Hi,</div><div>I am trying to configure cinder to connect to an iscsi target. I am using targetcli as my target server.</div><div><br></div><div>I have tested the connection from the node using iscsiadm and it works from the OS.</div><div><br></div><div>Now I am trying to use the iscsid container to do the job.</div><div><br></div><div>I added this to my globals.yml</div><div><span style="font-family:monospace"><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">enable_</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,84)">iscsi</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">d</span><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><span style="color:rgb(178,24,24);background-color:rgb(255,255,255)">"yes"</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">enable_cinder_backend_</span><span style="color:rgb(24,178,178);background-color:rgb(255,255,84)">iscsi</span><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><span style="color:rgb(178,24,24);background-color:rgb(255,255,255)">"yes"</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br><span style="color:rgb(24,178,178);background-color:rgb(255,255,255)">enable_cinder_backend_lvm</span><span style="color:rgb(178,24,178);background-color:rgb(255,255,255)">:</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"> </span><span style="color:rgb(178,24,24);background-color:rgb(255,255,255)">"no"</span></span></div><div><span style="font-family:monospace"><span style="color:rgb(178,24,24);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:monospace"><font color="#000000"><span style="background-color:rgb(255,255,255)">And I created the cinder.conf file like this</span></font></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">[DEFAULT]
</span><br>enabled_backends = rbd1,nfs-1,<b>lvmtnas
</b><br>
<br><span style="color:rgb(24,24,178);background-color:rgb(255,255,255)"># add follows to the end</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>[lvmtnas]
<br>target_helper = lioadm
<br>target_protocol = <span style="color:rgb(0,0,0);background-color:rgb(255,255,84)">iscsi</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>target_ip_address = 20.1.0.32
(my target server)<br>volume_backend_name = lvmtnas
<br><span style="color:rgb(24,24,178);background-color:rgb(255,255,255)"># volume group name created</span><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
</span><br>volume_group = <b>vg_volume01
</b><br>volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
<br>use_chap_auth = false
<br></span></div><div><span style="font-family:monospace"><font color="#000000"><span style="background-color:rgb(255,255,255)"><br></span></font></span></div><div>I did create the vg_volume01 on the LUN prior to the test.</div><div><br></div><div>I did a deploy, the container has been created, but nothing happened, it's like I am missing something.</div><div><br></div><div>docker logs iscsid fome one the compute nodes<br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">+ sudo -E kolla_set_configs
</span><br>INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
<br>INFO:__main__:Validating config file
<br>INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
<br>INFO:__main__:Copying service configuration files
<br>INFO:__main__:Writing out command to execute
<br>++ cat /run_command
<br>+ CMD='iscsid -d 8 -f'
<br>+ ARGS=
<br>+ sudo kolla_copy_cacerts
<br>+ [[ ! -n '' ]]
<br>+ . kolla_extend_start
<br>++ [[ ! -f /etc/iscsi/initiatorname.iscsi ]]
<br>+ echo 'Running command: '\''iscsid -d 8 -f'\'''
<br>+ exec iscsid -d 8 -f
<br>Running command: 'iscsid -d 8 -f'
<br>iscsid: sysfs_init: sysfs_path='/sys'
<br>iscsid: in ctldev_open
<br>iscsid: created NETLINK_ISCSI socket...
<br>iscsid: InitiatorName=iqn.1994-05.com.redhat:2a318909ad8
<br>iscsid: InitiatorName=iqn.1994-05.com.redhat:2a318909ad8
<br>iscsid: InitiatorAlias=computehci01
<br>iscsid: Max file limits 1048576 1048576
<br>iscsid: current time 258465
<br>iscsid: nothing on pend_list, deactivating alarm<br>
<br></span></div><div><br></div><div>Any idea?<br></div><div><br></div><div>Regards.<br></div></div>