Ask Your Question
0

unable to attach cinder volume - iscsi require authentication

asked 2016-05-21 11:07:24 -0600

hossam gravatar image

hello all when trying to attach volume to running instance using iscsi

creating volume log

-05-21 11:50:16.867 3929 INFO cinder.volume.manager [req-dbfbf90c-9b7e-4ba8-8a02-f8ad755c8c24 b7bd56070ce944d88a2213ce040b405e 1600b0d57d514704a5e4d23770f3265c - - -] Created volume successfully. 2016-05-21 11:51:01.544 3929 INFO cinder.volume.targets.lio [req-63d78ec6-ce44-4e70-95c2-f7937a155d09 046946022fef4d55accf1731a3fdd5f7 1600b0d57d514704a5e4d23770f3265c - - -] Creating iscsi_target for volume: volume-7eec84a4-b961-4ca2-b9a6-d033684102af 2016-05-21 11:51:02.676 3929 INFO cinder.volume.manager [req-63d78ec6-ce44-4e70-95c2-f7937a155d09 046946022fef4d55accf1731a3fdd5f7 1600b0d57d514704a5e4d23770f3265c - - -] Initialize volume connection completed successfully. 2016-05-21 11:51:04.336 3929 INFO cinder.volume.manager [req-698a800f-b421-4a42-bc64-b2b703e47c75 046946022fef4d55accf1731a3fdd5f7 1600b0d57d514704a5e4d23770f3265c - - -] Terminate volume connection completed successfully.

from instance i got error

root@host-10-13-43-83 ~]# iscsiadm -m node --login
Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-7eec84a4-b961-4ca2-b9a6-d033684102af, portal: 10.13.43.50,3260] (multiple) iscsiadm: Could not login to [iface: default, target: iqn.2010-10.org.openstack:volume-7eec84a4-b961-4ca2-b9a6-d033684102af, portal: 10.13.43.50,3260]. iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure) iscsiadm: Could not log into all portals

my cinder cinder.conf

iscsi_helper=lioadm volume_group=cinder-volumes1 iscsi_ip_address=10.13.43.50 volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver volumes_dir=/var/lib/cinder/volumes volume_backend_name=lvm

OS-CENTOS7

can i remove this authentication and how to attach direct to instance without instance configuration side

Thanks,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-22 06:47:36 -0600

hossam gravatar image

hello all Fixed now

just login to cinder node

targetcli

cd iscsi/iqn.2010-10.org.openstack:volume-7eec84a4-b961-4ca2-b9a6-d033684102af/tpg1/

set attribute authentication=0 demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1

exit

systemctl restart openstack-cinder-volume.service target.service

cinder log

2016-05-22 07:08:41.476 18098 INFO cinder.rpc [req-21fa2c64-3b68-42db-99e9-7380e58f38c7 - - - - -] Automatically selected cinder-scheduler objects version 1.3 as minimum service version. 2016-05-22 07:08:41.482 18098 INFO cinder.rpc [req-21fa2c64-3b68-42db-99e9-7380e58f38c7 - - - - -] Automatically selected cinder-scheduler RPC version 2.0 as minimum service version. 2016-05-22 07:08:41.544 18098 INFO cinder.volume.manager [req-21fa2c64-3b68-42db-99e9-7380e58f38c7 - - - - -] Determined volume DB was not empty at startup. 2016-05-22 07:08:41.638 18098 INFO cinder.volume.manager [req-21fa2c64-3b68-42db-99e9-7380e58f38c7 - - - - -] Image-volume cache disabled for host computnode01@lvm. 2016-05-22 07:08:41.640 18098 INFO oslo_service.service [req-21fa2c64-3b68-42db-99e9-7380e58f38c7 - - - - -] Starting 1 workers 2016-05-22 07:08:41.646 18112 INFO cinder.service [-] Starting cinder-volume node (version 8.0.0) 2016-05-22 07:08:41.648 18112 INFO cinder.volume.manager [req-afe8d74a-3383-43de-b320-e850d209d0ed - - - - -] Starting volume driver LVMVolumeDriver (3.0.0) 2016-05-22 07:08:42.737 18112 INFO cinder.volume.manager [req-afe8d74a-3383-43de-b320-e850d209d0ed - - - - -] Driver initialization completed successfully. 2016-05-22 07:08:42.779 18112 INFO cinder.volume.manager [req-afe8d74a-3383-43de-b320-e850d209d0ed - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0) 2016-05-22 07:08:43.032 18112 INFO cinder.volume.manager [req-afe8d74a-3383-43de-b320-e850d209d0ed - - - - -] Driver post RPC initialization completed successfully.

client login

root@host-10-13-43-83 ~]# iscsiadm -m node --login Logging in to [iface: default, target: iqn.2010-10.org.openstack:volume-7eec84a4-b961-4ca2-b9a6-d033684102af, portal: 10.13.43.50,3260] (multiple) Login to [iface: default, target: iqn.2010-10.org.openstack:volume-7eec84a4-b961-4ca2-b9a6-d033684102af, portal: 10.13.43.50,3260] successful.

[root@host-10-13-43-83 ~]# cat /proc/partitions major minor #blocks name

8 0 41943040 sda 8
1 512000 sda1 8 2
20458496 sda2 253 0 18358272 dm-0 253 1 2097152 dm-1
8 16 1048576 sdb

Thanks all

edit flag offensive delete link more

Your Answer

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

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-05-21 11:07:24 -0600

Seen: 2,423 times

Last updated: May 22 '16