<div dir="ltr">In /etc/cinder.conf on the host that is serving your cinder volumes, try adding:<div>iscsi_ip_address=<span style="font-family:arial,sans-serif;font-size:13px">192.168.100.32</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">under the [DEFAULT] section I think.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">/user/lib/python2.7/dist-packages/cinder/volume/driver.py lists these configuration options:</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><div style><font face="arial, sans-serif">volume_opts = [</font></div>
<div style><font face="arial, sans-serif">    cfg.IntOpt('num_shell_tries',</font></div><div style><font face="arial, sans-serif">               default=3,</font></div><div style><font face="arial, sans-serif">               help='number of times to attempt to run flakey shell commands'),</font></div>
<div style><font face="arial, sans-serif">    cfg.IntOpt('reserved_percentage',</font></div><div style><font face="arial, sans-serif">               default=0,</font></div><div style><font face="arial, sans-serif">               help='The percentage of backend capacity is reserved'),</font></div>
<div style><font face="arial, sans-serif">    cfg.IntOpt('iscsi_num_targets',</font></div><div style><font face="arial, sans-serif">               default=100,</font></div><div style><font face="arial, sans-serif">               help='The maximum number of iscsi target ids per host'),</font></div>
<div style><font face="arial, sans-serif">    cfg.StrOpt('iscsi_target_prefix',</font></div><div style><font face="arial, sans-serif">               default='iqn.2010-10.org.openstack:',</font></div><div style>
<font face="arial, sans-serif">               help='prefix for iscsi volumes'),</font></div><div style><font face="arial, sans-serif">    cfg.StrOpt('iscsi_ip_address',</font></div><div style><font face="arial, sans-serif">               default='$my_ip',</font></div>
<div style><font face="arial, sans-serif">               help='The IP address that the iSCSI daemon is listening on'),</font></div><div style><font face="arial, sans-serif">    cfg.IntOpt('iscsi_port',</font></div>
<div style><font face="arial, sans-serif">               default=3260,</font></div><div style><font face="arial, sans-serif">               help='The port that the iSCSI daemon is listening on'),</font></div><div style>
<font face="arial, sans-serif">    cfg.IntOpt('num_volume_device_scan_tries',</font></div><div style><font face="arial, sans-serif">               deprecated_name='num_iscsi_scan_tries',</font></div><div style>
<font face="arial, sans-serif">               default=3,</font></div><div style><font face="arial, sans-serif">               help='The maximum number of times to rescan targets'</font></div><div style><font face="arial, sans-serif">                    ' to find volume'),</font></div>
<div style><font face="arial, sans-serif">    cfg.StrOpt('volume_backend_name',</font></div><div style><font face="arial, sans-serif">               default=None,</font></div><div style><font face="arial, sans-serif">               help='The backend name for a given driver implementation'),</font></div>
<div style><font face="arial, sans-serif">    cfg.BoolOpt('use_multipath_for_image_xfer',</font></div><div style><font face="arial, sans-serif">                default=False,</font></div><div style><font face="arial, sans-serif">                help='Do we attach/detach volumes in cinder using multipath '</font></div>
<div style><font face="arial, sans-serif">                     'for volume to image and image to volume transfers?'),</font></div><div style><font face="arial, sans-serif">    cfg.StrOpt('volume_clear',</font></div>
<div style><font face="arial, sans-serif">               default='zero',</font></div><div style><font face="arial, sans-serif">               help='Method used to wipe old voumes (valid options are: '</font></div>
<div style><font face="arial, sans-serif">                    'none, zero, shred)'),</font></div><div style><font face="arial, sans-serif">    cfg.IntOpt('volume_clear_size',</font></div><div style><font face="arial, sans-serif">               default=0,</font></div>
<div style><font face="arial, sans-serif">               help='Size in MiB to wipe at start of old volumes. 0 => all'),</font></div><div style><font face="arial, sans-serif">    cfg.StrOpt('volume_clear_ionice',</font></div>
<div style><font face="arial, sans-serif">               default=None,</font></div><div style><font face="arial, sans-serif">               help='The flag to pass to ionice to alter the i/o priority '</font></div>
<div style><font face="arial, sans-serif">                    'of the process used to zero a volume after deletion, '</font></div><div style><font face="arial, sans-serif">                    'for example "-c3" for idle only priority.'),</font></div>
<div style><font face="arial, sans-serif">    cfg.StrOpt('iscsi_helper',</font></div><div style><font face="arial, sans-serif">               default='tgtadm',</font></div><div style><font face="arial, sans-serif">               help='iscsi target user-land tool to use'),</font></div>
</div><div style><font face="arial, sans-serif"><div>    cfg.StrOpt('volumes_dir',</div><div>               default='$state_path/volumes',</div><div>               help='Volume configuration file storage '</div>
<div>               'directory'),</div><div>    cfg.StrOpt('iet_conf',</div><div>               default='/etc/iet/ietd.conf',</div><div>               help='IET configuration file'),</div><div>
    cfg.StrOpt('lio_initiator_iqns',</div><div>               default='',</div><div>               help=('Comma-separated list of initiator IQNs '</div><div>                     'allowed to connect to the '</div>
<div>                     'iSCSI target. (From Nova compute nodes.)')),</div><div>    cfg.StrOpt('iscsi_iotype',</div><div>               default='fileio',</div><div>               help=('Sets the behavior of the iSCSI target '</div>
<div>                     'to either perform blockio or fileio '</div><div>                     'optionally, auto can be set and Cinder '</div><div>                     'will autodetect type of backing device')),</div>
<div>    cfg.StrOpt('volume_dd_blocksize',</div><div>               default='1M',</div><div>               help='The default block size used when copying/clearing '</div><div>                    'volumes'),</div>
<div>]</div><div><br></div></font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 10:26 AM, Olivier Cant <span dir="ltr"><<a href="mailto:olivier.cant@exxoss.com" target="_blank">olivier.cant@exxoss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm having a bit of trouble with my opnestack setup (icehouse) in our lab when I try to launch a new instance.<br>
<br>
In nova I get the following error :<br>
<br>
2014-07-30 14:19:15.780 13528 TRACE nova.compute.manager [instance: 6df99b40-0171-4a52-b362-<u></u>832d1556c589] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:<u></u>volume-00bc4992-dd1e-405f-<u></u>884a-d38224838a86 -p <a href="http://10.0.2.15:3260" target="_blank">10.0.2.15:3260</a> --rescan<br>

2014-07-30 14:19:15.780 13528 TRACE nova.compute.manager [instance: 6df99b40-0171-4a52-b362-<u></u>832d1556c589] Exit code: 21<br>
2014-07-30 14:19:15.780 13528 TRACE nova.compute.manager [instance: 6df99b40-0171-4a52-b362-<u></u>832d1556c589] Stdout: ''<br>
2014-07-30 14:19:15.780 13528 TRACE nova.compute.manager [instance: 6df99b40-0171-4a52-b362-<u></u>832d1556c589] Stderr: 'iscsiadm: No session found.\n'<br>
<br>
I tried to run iSCSI discovery to the cinder node and I can't connect to it.<br>
<br>
The cinder node has two interfaces (10.0.2.15 and 192.168.100.32) on two separate networks.  <a href="http://10.0.2.0/24" target="_blank">10.0.2.0/24</a> is our management network and hosts aren't allowed to talk to each other on that network (only to a management host) thus there can't be any iscsi session established over that link.<br>

<br>
The volume is correctly created on the target node and tgtadm shows the correct configuration<br>
If I try to establish an iSCSI session with the target at 192.168.100.31 it succeeds.<br>
<br>
My question is, how can I specify the ip address of the target that should be used (my guess would be in the nova.conf but I'm quite new to openstack so I might be wrong and I haven't found any option in the nova.conf file). Can someone describe how openstack "discovers" the ip address of the iSCSI provider and how it behave if the provider has several interfaces ?<br>

<br>
Thank you already for your help.<br>
<br>
Olivier<br>
<br>
<br>
______________________________<u></u>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Andrew Mann<div>DivvyCloud Inc.</div><div><a href="http://www.divvycloud.com" target="_blank">www.divvycloud.com</a></div></div>
</div>