Ask Your Question
1

iscsiadm fails to login to iSER target because of misspelled parameter in the TGT target configuration

asked 2014-01-10 09:44:37 -0500

ale gravatar image

updated 2014-01-30 08:11:04 -0500

Hello, I have configured Mellanox-Cinder plugin to enable iSER on RDO Havana. The plugin successfully creates the TGT target configuration on the Cinder host

[root@n02 ~]# cat /etc/cinder/volumes/volume-af1ab461-0337-4e0d-9632-dcef73f31066
            <target iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066>
                driver iser
                backing-store /dev/cinder-volumes/volume-af1ab461-0337-4e0d-9632-dcef73f31066
                IncomingUser tkq4C8BagUk3go84e4ki rTRe8hKcJpY5vqxduLnD
            </target>

but the name of the parameter 'IncomingUser' should be all lower case, 'incominguser', otherwise authentication will not be enabled by 'tgt-admin --update'

[root@n02 ~]# tgtadm --lld iser --mode account --op show
[root@n02 ~]# tgt-admin --show
Target 1: iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066
    System information:
        Driver: iser
        State: ready
[...]
    Account information:
    ACL information:
        ALL

this configuration leads to a login failure of the iscsiadm utility on the Nova compute node

Jan  9 16:27:39 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --op update -n node.session.auth.authmethod -v CHAP
Jan  9 16:27:39 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --op update -n node.session.auth.username -v tkq4C8BagUk3go84e4ki
Jan  9 16:27:39 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --op update -n node.session.auth.password -v rTRe8hKcJpY5vqxduLnD
Jan  9 16:27:39 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --op update -n iface.transport_name -v iser
Jan  9 16:27:39 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m session
Jan  9 16:27:40 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --login
Jan  9 16:27:40 n06 kernel: <mlx4_ib> check_flow_steering_support: Device managed flow steering is unavailable for IB port in multifunction env.
Jan  9 16:27:40 n06 kernel: scsi7 : iSCSI Initiator over iSER
Jan  9 16:27:40 n06 kernel: <mlx4_ib> check_flow_steering_support: Device managed flow steering is unavailable for IB port in multifunction env.
Jan  9 16:27:40 n06 sudo:     nova : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/nova-rootwrap /etc/nova/rootwrap.conf iscsiadm -m node -T iqn.2010-10.org.iser.openstack:volume-af1ab461-0337-4e0d-9632-dcef73f31066 -p 10.20.1.2:3260 --op update -n node.startup -v automatic
Jan  9 16:27:41 n06 iscsid: Could not set session1 priority. READ/WRITE throughout and latency could be affected.
Jan  9 16:27:41 n06 iscsid: Login negotiation failed, couldn't recognize text AuthMethod=None
Jan  9 16:27 ...
(more)
edit retag flag offensive close delete

Comments

which version of TGTD do you use? ("tgtd -V") there is a patch/fix in TGT related to CHAP with iSER in version > 1.0.37. please update and try again.

shlomis ( 2014-01-16 03:55:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-01-17 07:31:16 -0500

Without knowing much about the new ISER transport, this could be a bug. While waiting for responses here, I'd also suggest lodging a bug at https://bugs.launchpad.net/cinder to see if they can do some analysis too.

edit flag offensive delete publish link more

Comments

thank you very much!

ale ( 2014-01-26 09:22:57 -0500 )edit

Are you using OpenStack community packages or are you using Mellanox's fork found here: https://github.com/mellanox-openstack/cinder-iser? If you're using the Mellanox fork you'd be best to contact them for support.

jgriffith ( 2014-02-09 01:01:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2014-01-10 09:44:37 -0500

Seen: 136 times

Last updated: Jan 30