iscsiadm: No portal found. in the newest code after 2012.8.6

Bug #1033493 reported by Wall Lee
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
iscsitarget (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I update the newest code after 2012-8-6,When I attacht a volume
TRACE nova.openstack.common.rpc.amqp Stderr: 'iscsiadm: No portal found.\n'

My os is Ubuntu12.04,and my nova.conf is
#volume
iscsi_ip_address=172.168.1.2
iscsi_ip_prefix=172.168.1.
volume_group=nova-volumes
#volume_driver=nova.volume.driver.VolumeDriver
iscsi_helper=tgtadm
#iscsi_ip_address=172.168.1.2
#iscsi_helper=tgtadm
my_ip=192.168.1.3

Tom Fifield (fifieldt)
affects: openstack-manuals → nova
Revision history for this message
Wall Lee (eelilei) wrote :

I installed openstack from source code and run sudo apt-get install lvm2 iscsitarget open-iscsi iscsitarget-source iscsitarget-dkms tgt.
I found two errors:
1) The iscsitarget or open-iscsi or iscsitarget-source or iscsitarget-dkms can not run normally in kernel 3.2-23 and 3.2-27.Sorry I am not sure which process is error in kernel 3.2-23 and 3.2-27,but I am sure it is one of them,because I change the kernel to 3.2-26 ,all of them is ok.
2)When I start OS from kernel 3.2-26,the tgtd does not run normally.So I must run sudo killall ietd and sudo /etc/init.d/tgt restart, then the tgt can listen 3260 port.

Chuck Short (zulcss)
affects: nova → iscsitarget (Ubuntu)
Revision history for this message
Jay Pipes (jaypipes) wrote :

I also am seeing this issue -- kernel 3.2.0-30

Revision history for this message
li,chen (chen-li) wrote :

I also am seeing this issue -- kernel 3.5.0-19

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iscsitarget (Ubuntu):
status: New → Confirmed
Revision history for this message
Jon Senger (jsenger) wrote :

I'm seeing the same behavior on kernel 3.2.0-35

2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp ProcessExecutionError: Unexpected error while running command.
2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp Command: sudo nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.openstack:volume-e323590b-bf02-4412-901c-b403ee675343 -p 192.168.0.9:3260 --rescan
2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp Exit code: 255
2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp Stdout: ''
2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp Stderr: 'iscsiadm: No portal found.\n'
2012-12-27 12:28:02 TRACE nova.openstack.common.rpc.amqp

Revision history for this message
Thomas Leonard (tal-it-innovation) wrote :

I was getting this error ("Stderr: 'iscsiadm: No portal found.\n'"). It turned out that I had both tgt and iscsitarget installed, and both were trying to run a service on the same port. Cinder was setting up a tgt target, but iscsiadm was connecting to the iscsitarget service and not finding it.

The fix was:

apt-get purge iscsitarget

After that, I was able to attach a volume to a VM using Horizon.

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.