<div dir="ltr">After reading a bit about cinder driver configuration i found out that some conf variables are per driver. So i just added "iscsi_ip_address=172.19.137.245" in my backends defintinions: <div><br></div>
<div>[lvmdriver-1]<div>volume_group=cinder-volumes-1</div><div>volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver</div><div>volume_backend_name=LVM_iSCSI_a</div><div>iscsi_ip_address=172.19.137.245</div><div><br></div>
<div>[lvmdriver-2]</div><div>volume_group=cinder-volumes-2</div><div>volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver</div><div>volume_backend_name=LVM_iSCSI_b</div><div>iscsi_ip_address=172.19.137.245</div></div><div>
<br></div><div>Works great!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/9 Juan José Pavlik Salles <span dir="ltr"><<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried changing in "cinder/volume/driver.py"<div><br><div><div>    cfg.StrOpt('iscsi_ip_address',</div>
<div>               default='$my_ip',</div><div>               help='The port that the iSCSI daemon is listening on'),</div>
</div></div><div><br></div><div>to </div><div><br></div><div><div>    cfg.StrOpt('iscsi_ip_address',</div><div>               default='172.19.137.245',</div><div>               help='The port that the iSCSI daemon is listening on'),</div>

<div><br></div><div>and it works. So for some strange reason the code is ignoring iscsi_ip_address in cinder.conf. Might be a bug? </div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/8/9 Juan José Pavlik Salles <span dir="ltr"><<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys, we are using cinder with LVM+iscsi as block storage and it works great so far. Now we want to change one little thing, this is what we have now:<div>

<br></div><div>compute-node1: eth0=<a href="http://172.19.136.13/24" target="_blank">172.19.136.13/24</a> <br>
</div><div>storage-node1: eth0=<a href="http://172.19.136.245/24" target="_blank">172.19.136.245/24</a> </div><div><br></div><div>This way everything works fine, but we want to separate the cloud admin network (<a href="http://172.19.136.0/24" target="_blank">172.19.136.0/24</a>) from the block storage access network (<a href="http://172.19.137.0/24" target="_blank">172.19.137.0/24</a>). </div>


<div><br></div><div>We want this new config:</div><div><br></div><div>compute-node1: eth0=<a href="http://172.19.136.13/24" target="_blank">172.19.136.13/24</a> eth1=<a href="http://172.19.137.13/24" target="_blank">172.19.137.13/24</a></div>

<div><div>storage-node1: eth0=<a href="http://172.19.136.245/24" target="_blank">172.19.136.245/24</a> eth1=<a href="http://172.19.137.245/24" target="_blank">172.19.137.245/24</a><br>
</div><div><br></div><div>No problems so far, but when i attach a cinder volume to an instance the iscsi connection goes through <font color="#212121" face="arial, sans-serif"><span style="line-height:15px">172.19.136.13<->172.19.136.245 when i'd like it to go through 172.19.137.13<->172.19.137.245. </span></font></div>


<div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px"><br></span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px">Looking in nova-compute.log i found:</span></font></div>


<div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px"><br></span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px"><div>2013-08-09 20:46:40.737 DEBUG nova.utils [req-3d8bcf5c-9406-4681-b8e4-3a0e784098ed 20390b639d4449c18926dca5e038ec5e d1e3aae242f14c488d2225dcbf1e96d6] Running cmd (subprocess): sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-a090f312-f419-40c3-ba86-1017a82e0968 -p <a href="http://172.19.136.245:3260" target="_blank">172.19.136.245:3260</a> --op update -n node.startup -v automatic execute /usr/lib/python2.7/dist-packages/nova/utils.py:208</div>


<div><br></div><div>That explains why the connection goes that way, and maybe there's a place where i can tell cinder what interface i want it to expose. It seems that it's using the same IP as the API.</div><div>


<br></div><div>I tried using </div><div><br></div><div>iscsi_ip_address=172.19.137.245</div><div><br></div><div>in cinder.conf but didn't work.</div></span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px"><br>


</span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px">Is it possible? </span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px"><br>


</span></font></div><div><font color="#212121" face="arial, sans-serif"><span style="line-height:15px">Thanks!</span></font></div><span><font color="#888888"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>


</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</div>