Ask Your Question
0

Why can't I create iscsi volume? [closed]

asked 2014-12-12 07:19:18 -0500

mickt gravatar image

updated 2014-12-15 06:43:12 -0500

First time configuring this so I'm sure that this is a misconfiguration but I can't find where. I installed juno using packstack on CentOS 7.

I have 1x controller/neutron server and 3x compute nodes. Compute node 1 has 800GB storage attached. I have configured cinder on controller and compute1. Firstly, I presume that I configure iscsi?

Volume created locally is fine.

cinder service-list
+------------------+---------------------+-------+----------+--------+-------------------------+--------------------------+
|      Binary      |        Host             | Zone |  Status | State |         Updated_at      |    Disabled Reason    |
+------------------+---------------------+-------+----------+--------+----------------------------+-----------------------+
| cinder-scheduler |    compute1    | nova | enabled |   up  | 2014-12-12T13:07:09.000000 |       None      |
| cinder-scheduler |    controller     | nova | enabled |   up  | 2014-12-12T13:07:05.000000 |       None      |
|  cinder-volume   | controller@lvm | nova | enabled |   up  | 2014-12-12T13:07:07.000000 |       None      |
+------------------+---------------------+------+---------+-------+----------------------------+---------------------------+

cinder type-list
+--------------------------------------+-------+
|                  ID                  |  Name |
+--------------------------------------+-------+
| 34030702-27e5-4880-a3a2-8c97777ee462 | iscsi |
+--------------------------------------+-------+

Controller, cat /etc/cinder/cinder.conf | grep -v ^$ | grep -v ^#
[DEFAULT]
iscsi_target_prefix=iqn.2014-12.com.test:
iscsi_ip_address=10.10.12.16
iscsi_port=3260
amqp_durable_queues=False
rabbit_host=10.10.12.9
rabbit_port=5672
rabbit_hosts=10.10.12.9:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
rpc_backend=rabbit
control_exchange=openstack
osapi_volume_listen=0.0.0.0
osapi_volume_workers=16
api_paste_config=/etc/cinder/api-paste.ini
glance_host=10.10.12.9
storage_availability_zone=nova
default_availability_zone=nova
auth_strategy=keystone
enabled_backends=lvm-os01
debug=False
verbose=True
log_dir=/var/log/cinder
use_syslog=False
scheduler_driver=cinder.scheduler.filter_scheduler.FilterScheduler
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
[BRCD_FABRIC_EXAMPLE]
[CISCO_FABRIC_EXAMPLE]
[database]
connection=mysql://cinder:Passw0rd@10.10.12.9/cinder
idle_timeout=3600
min_pool_size=1
max_retries=10
retry_interval=10
[fc-zone-manager]
[keymgr]
[keystone_authtoken]
[matchmaker_redis]
[matchmaker_ring]
[oslo_messaging_amqp]
[profiler]
[ssl]
[lvm-os01]
iscsi_helper=lioadm
iscsi_ip_address=10.10.12.16
volume_group=cindervg
volume_backend_name=LVM_iSCSI

tail -f /var/log/cinder/scheduler.log

 2014-12-12 12:49:07.507 12695 WARNING cinder.scheduler.filter_scheduler [req-b3973091-5c68-4246-a9b3-48f4c831c76d 987ea97f073d49ebb33f03ece2a23b7f eeb5ff6dcc3c4763a3b92173d79d872b - - -] No weighed hosts found for volume with properties: {u'name': u'iscsi', u'qos_specs_id': None, u'deleted': False, u'created_at': u'2014-12-11T15:42:29.000000', u'updated_at': None, u'extra_specs': {u'volume_backend_name': u'LVM_iSCSI'}, u'deleted_at': None, u'id': u'34030702-27e5-4880-a3a2-8c97777ee462'}
2014-12-12 12:49:07.509 12695 ERROR cinder.scheduler.flows.create_volume [req-b3973091-5c68-4246-a9b3-48f4c831c76d 987ea97f073d49ebb33f03ece2a23b7f eeb5ff6dcc3c4763a3b92173d79d872b - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

Compute1, cat /etc/cinder/cinder.conf | grep -v ^$ | grep -v ^#
[DEFAULT]
rabbit_host=10.10.12.9
rabbit_password=guest
rpc_backend=rabbit
my_ip=10.10.12.16
glance_host=10.10.12.9
auth_strategy=keystone
verbose=true
iscsi_helper=lioadm
[BRCD_FABRIC_EXAMPLE]
[CISCO_FABRIC_EXAMPLE]
[database]
connection=mysql://cinder:Passw0rd@10.10.12.9/cinder
[fc-zone-manager]
[keymgr]
[keystone_authtoken]
auth_uri=http://10.10.12.9:5000/v2.0
identity_uri=identity_uri=http://10.10.12.9:35357
admin_user=cinder
admin_password=Passw0rd
admin_tenant_name=service
[matchmaker_redis]
[matchmaker_ring]
[profiler]
[ssl]

targetcli ls
o- / ......................................................................................................................... [...]
.....
.....
o- iscsi ............................................................................................................ [Targets: 1]
| o- iqn.2014-12.com.test:cinder.tgt00 ....................................................................... [TPGs: 1]
|   o- tpg1 .................................................................................................. [gen-acls, no-auth]
|     o- acls .......................................................................................................... [ACLs: 0]
|     o- luns .......................................................................................................... [LUNs: 1]
|     | o- lun0 ............................................................................. [fileio/cinder (/cinder/cinder.img)]
|     o- portals .................................................................................................... [Portals: 1]
|       o- 0.0.0.0:3260 ..................................................................................................... [OK]

netstat -nap |grep 3260
tcp        0      0 0.0.0.0:3260            0.0.0.0:*               LISTEN      -
tcp        0      0 10.10.12.16:3260        10.10.12.16:40026       ESTABLISHED -
tcp        0 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by mickt
close date 2014-12-15 10:05:06.253202

Comments

From controller:

iscsiadm -m discovery -t sendtargets -p 10.10.12.16 --discover
iscsiadm: cannot make connection to 10.10.12.16: No route to host

I suspect iptables?
mickt gravatar imagemickt ( 2014-12-12 09:36:00 -0500 )edit

Move volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver to section

[lvm-os01]
dbaxps gravatar imagedbaxps ( 2014-12-15 04:44:17 -0500 )edit

Next

[root@juno1 ~(keystone_admin)]# cinder type-create lvms
[root@juno1 ~(keystone_admin)]# cinder type-key lvms set volume_backend_name=LVM_iSCSI
dbaxps gravatar imagedbaxps ( 2014-12-15 04:45:56 -0500 )edit

Tuning iscsid daemon on Compute : http://www.server-world.info/en/note?...

dbaxps gravatar imagedbaxps ( 2014-12-15 04:50:12 -0500 )edit

volume_driver already moved to the relevant section.

mickt gravatar imagemickt ( 2014-12-15 06:05:54 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-12-12 09:38:23 -0500

dbaxps gravatar image

Please, view for details http://lxer.com/module/newswire/view/...
Your targetcli ls and cinder.conf don't look good. Samples inside link above.

edit flag offensive delete link more

Comments

Cheers. Will do on Monday, when back in the office.

mickt gravatar imagemickt ( 2014-12-12 09:56:49 -0500 )edit

I removed all conf in targetcli & it is now empty. Do I perform no conf here but only in dashboard? target is enabled and running as shown above. One enabled_backend, lvm01 configured in controller cinder.conf. Anything required on compute node where disks are attached?

mickt gravatar imagemickt ( 2014-12-15 04:42:54 -0500 )edit

Configure Cinder services on Controller per http://docs.openstack.org/juno/instal... On Storage Node : http://docs.openstack.org/juno/instal...

dbaxps gravatar imagedbaxps ( 2014-12-15 04:54:06 -0500 )edit

iSCSI target Server has to run on Storage Node. Sounds like your Compute Node is Storage Node.

dbaxps gravatar imagedbaxps ( 2014-12-15 05:09:00 -0500 )edit

Yes storage is attached to compute node. I see from the link in your original response that block is used whereas later fileio is used. Does it matter which is used?

mickt gravatar imagemickt ( 2014-12-15 06:04:39 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-12-12 07:19:18 -0500

Seen: 2,324 times

Last updated: Dec 15 '14