cannot attach volume to instance

asked 2015-08-03 22:59:50 -0500

slosh_liuxin gravatar image

updated 2015-08-04 00:19:37 -0500

smaffulli gravatar image

My detail:openstack kilo,cetnos 7.1 64bit My question:When i attach a volume to my instance,i have got error like this:

cinder.volume.targets.tgt  Failed to create iscsi target for Volume ID: XXXX-XXXX-XXX. Please ensure your tgtd config file contains 'include /var/lib/cinder/volumes/*
'VolumeBackendAPIException: Bad or unexpected response from the storage volume backend API: Unable to create export for volume

what is my mistake,and what shoud i do for troubleshooting? i am a newer with openstack,i need help,who can help me ?

edit retag flag offensive close merge delete


can you post the output of cat /etc/tgt/targets.conf and cat /etc/tgt/conf.d/cinder_tgt.conf

omar-munoz gravatar imageomar-munoz ( 2015-08-10 16:26:35 -0500 )edit

Thank you! I have resolved the problem,it's my fault.I make a mistake of the conf file. However,thank you for answering my question

slosh_liuxin gravatar imageslosh_liuxin ( 2015-08-10 20:02:40 -0500 )edit