Why can't I create iscsi volume? [closed]
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 ...
From controller:
Move volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver to section
Next
Tuning iscsid daemon on Compute : http://www.server-world.info/en/note?...
volume_driver already moved to the relevant section.