iscsi problems

Bug #1174645 reported by magicboiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Unassigned

Bug Description

Devstack fails to create a working iscsi configuration on both controller and compute nodes, and as a consecuence, compute nodes fail to connect to iscsi server on controller node and use the lvm instance volumes stored into the controller hdd.

On the controller node, iscsi daemon seems to listen only on loopback address, while the compute node, only tries to connect to iscsi server in ip 127.0.0.1 (instead of the controller's ip address)

in the compute node, in the syslog file:
.........
"target_portal": "127.0.0.1:3260"
........
compute1 iscsid: connect to 127.0.0.1:3260 failed (Connection refused)
........

and also, in the /etc/iscsi/.... files:
stack@compute1:~/devstack$ sudo cat /etc/iscsi/nodes/iqn.2010-10.org.openstack:volume-332bf459-0224-4c1e-bd75-3e23523dc16d/127.0.0.1,3260
# BEGIN RECORD 2.0-871
node.name = iqn.2010-10.org.openstack:volume-332bf459-0224-4c1e-bd75-3e23523dc16d
node.tpgt = -1
node.startup = automatic
iface.iscsi_ifacename = default
iface.transport_name = tcp
node.discovery_port = 0
node.discovery_type = static
node.session.initial_cmdsn = 0
node.session.initial_login_retry_max = 8
node.session.xmit_thread_priority = -20
node.session.cmds_max = 128
node.session.queue_depth = 32
node.session.auth.authmethod = CHAP
node.session.auth.username = ZtHHS2vwnEN4xKunUM8V
node.session.auth.password = JZTKRQcaXZWjBjf255U2
node.session.timeo.replacement_timeout = 120
node.session.err_timeo.abort_timeout = 15
node.session.err_timeo.lu_reset_timeout = 20
node.session.err_timeo.host_reset_timeout = 60
node.session.iscsi.FastAbort = Yes
node.session.iscsi.InitialR2T = No
node.session.iscsi.ImmediateData = Yes
node.session.iscsi.FirstBurstLength = 262144
node.session.iscsi.MaxBurstLength = 16776192
node.session.iscsi.DefaultTime2Retain = 0
node.session.iscsi.DefaultTime2Wait = 2
node.session.iscsi.MaxConnections = 1
node.session.iscsi.MaxOutstandingR2T = 1
node.session.iscsi.ERL = 0
node.conn[0].address = 127.0.0.1
node.conn[0].port = 3260
node.conn[0].startup = manual
node.conn[0].tcp.window_size = 524288
node.conn[0].tcp.type_of_service = 0
node.conn[0].timeo.logout_timeout = 15
node.conn[0].timeo.login_timeout = 15
node.conn[0].timeo.auth_timeout = 45
node.conn[0].timeo.noop_out_interval = 5
node.conn[0].timeo.noop_out_timeout = 5
node.conn[0].iscsi.MaxRecvDataSegmentLength = 262144
node.conn[0].iscsi.HeaderDigest = None
node.conn[0].iscsi.DataDigest = None
node.conn[0].iscsi.IFMarker = No
node.conn[0].iscsi.OFMarker = No
# END RECORD

I'm trying devstack on:
 - Ubuntu 12.04
 - Grizzly

[CONTROLLER LOCALRC]
SERVICE_HOST=192.168.0.10
disable_service n-net
enable_service quantum q-svc q-agt q-l3 q-dhcp q-meta q-lbaas
FLOATING_RANGE=192.168.100.0/24

Q_PLUGIN=openvswitch
ENABLE_TENANT_TUNNELS=True
TENANT_TUNNEL_RANGES=100:200

Q_USE_NAMESPACE=False
Q_HOST=$SERVICE_HOST
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST
RYU_API_HOST=$SERVICE_HOST
RYU_OFP_HOST=$SERVICE_HOST

MYSQL_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
SERVICE_TOKEN=service
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin

DEST=/opt/stack
SCREEN_LOGDIR=$DEST/logs/screen
LOGFILE=stack.sh.log
SYSLOG=True
SYSLOG_HOST=$SERVICE_HOST
SYSLOG_PORT=5140
RECLONE=yes
MULTI_HOST=True

[COMPUTE LOCALRC]
SERVICE_HOST=192.168.0.10
HOST_IP=192.168.0.11
disable_all_services
enable_service n-cpu quantum q-agt

Q_PLUGIN=openvswitch
ENABLE_TENANT_TUNNELS=True

Q_USE_NAMESPACE=False
Q_HOST=$SERVICE_HOST
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST

MYSQL_PASSWORD=mysql
RABBIT_PASSWORD=rabbit
SERVICE_TOKEN=service
SERVICE_PASSWORD=admin
ADMIN_PASSWORD=admin

DEST=/opt/stack
SCREEN_LOGDIR=$DEST/logs/screen
LOGFILE=stack.sh.log
SYSLOG=True
SYSLOG_HOST=$SERVICE_HOST
SYSLOG_PORT=5140
RECLONE=yes

Tags: grizzly iscsi lvm
Dean Troyer (dtroyer)
Changed in devstack:
status: New → Invalid
Revision history for this message
Jakkidi Chandrakanth Reddy (jckreddy) wrote :

in the compute node, in the syslog file:
.........
"target_portal": "127.0.0.1:3260"
........
compute1 iscsid: connect to 127.0.0.1:3260 failed (Connection refused)
........

From your comment it is understood that iscsi running on local address rather than controller ip address
while running daemon also from compute you can run below cmd to discover targets

iscsiadm -m discovery -t sendtargets -p <iscsi-target-ip>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.