Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to let tgtd listen on a specifig interface

After an install of OpenStack all kind of services first listen on 0.0.0.0 rather than on the network they belong to. I managed to configure all services to listen on the right interfaces, except tgtd/cinder-volume.

lsof | grep tgtd.*LISTEN
tgtd      2547       root    7u     IPv4    16948      0t0        TCP *:iscsi-target (LISTEN)
tgtd      2547       root    8u     IPv6    16949      0t0        TCP *:iscsi-target (LISTEN)

So how to get this service restricted to e.g. 10.0.0.10? cinder.conf offers a "iscsi_ip_address" option, but using this option does not change anything in the listening behaviour of tgtd. tgt would have the portal option for that purpose but no idea on how to make it the default. Any ideas? Hints?

How to let tgtd listen on a specifig specific interface

After an install of OpenStack all kind of services first listen on 0.0.0.0 rather than on the network they belong to. I managed to configure all services to listen on the right interfaces, except tgtd/cinder-volume.

lsof | grep tgtd.*LISTEN
tgtd      2547       root    7u     IPv4    16948      0t0        TCP *:iscsi-target (LISTEN)
tgtd      2547       root    8u     IPv6    16949      0t0        TCP *:iscsi-target (LISTEN)

So how to get this service restricted to e.g. 10.0.0.10? cinder.conf offers a "iscsi_ip_address" option, but using this option does not change anything in the listening behaviour of tgtd. tgt would have the portal option for that purpose but no idea on how to make it the default. Any ideas? Hints?

How to let tgtd listen on a specific interface

After an install of OpenStack (Icehouse on Ubuntu 14.04 LTS) all kind of services first listen on 0.0.0.0 rather than on the network they belong to. I managed to configure all services to listen on the right interfaces, except tgtd/cinder-volume.

lsof | grep tgtd.*LISTEN
tgtd      2547       root    7u     IPv4    16948      0t0        TCP *:iscsi-target (LISTEN)
tgtd      2547       root    8u     IPv6    16949      0t0        TCP *:iscsi-target (LISTEN)

So how to get this service restricted to e.g. 10.0.0.10? cinder.conf offers a "iscsi_ip_address" option, but using this option does not change anything in the listening behaviour of tgtd. tgt would have the portal option for that purpose but no idea on how to make it the default. Any ideas? Hints?