Ask Your Question
2

Cinder - RDO - No valid host was found - multiple storage back end

asked 2015-07-17 17:19:09 -0500

rzhelion gravatar image

RDO allinone cent-os-7 kilo

Unable to create volume using --volume_type, works fine without --volume_type.

cinder type-list
+--------------------------------------+-------+
|                  ID                  |  Name |
+--------------------------------------+-------+
| 1bf0394e-1e78-4bdb-aa86-6134da65c831 | iscsi |
| c5801a88-a6b5-4ee1-847f-796e01697244 |  san  |
| c9d04c35-d57f-451f-b162-340072a2a167 |  boot |
+--------------------------------------+-------+
cinder extra-specs-list
+--------------------------------------+-------+--------------------------------------+
|                  ID                  |  Name |             extra_specs              |
+--------------------------------------+-------+--------------------------------------+
| 1bf0394e-1e78-4bdb-aa86-6134da65c831 | iscsi |                  {}                  |
| c5801a88-a6b5-4ee1-847f-796e01697244 |  san  | {u'volume_backend_name': u'lvm_san'} |
| c9d04c35-d57f-451f-b162-340072a2a167 |  boot |   {u'volume_backend_name': u'lvm'}   |
+--------------------------------------+-------+--------------------------------------+
cinder create --volume_type san --display_name test_san 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2015-07-17T21:10:35.685625      |
| display_description |                 None                 |
|     display_name    |               test_san               |
|      encrypted      |                False                 |
|          id         | 7be12749-7949-4f91-9786-9b81000cf576 |
|       metadata      |                  {}                  |
|     multiattach     |                false                 |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 san                  |
+---------------------+--------------------------------------+
cinder show test_san
+---------------------------------------+--------------------------------------+
|                Property               |                Value                 |
+---------------------------------------+--------------------------------------+
|              attachments              |                  []                  |
|           availability_zone           |                 nova                 |
|                bootable               |                false                 |
|               created_at              |      2015-07-17T21:10:35.000000      |
|          display_description          |                 None                 |
|              display_name             |               test_san               |
|               encrypted               |                False                 |
|                   id                  | 7be12749-7949-4f91-9786-9b81000cf576 |
|                metadata               |                  {}                  |
|              multiattach              |                false                 |
|         os-vol-host-attr:host         |                 None                 |
|     os-vol-mig-status-attr:migstat    |                 None                 |
|     os-vol-mig-status-attr:name_id    |                 None                 |
|      os-vol-tenant-attr:tenant_id     |   457b2d6687e846fe88e8f093858a0c0b   |
|   os-volume-replication:driver_data   |                 None                 |
| os-volume-replication:extended_status |                 None                 |
|                  size                 |                  1                   |
|              snapshot_id              |                 None                 |
|              source_volid             |                 None                 |
|                 status                |                error                 |
|              volume_type              |                 san                  |
+---------------------------------------+--------------------------------------+

bottom of /etc/cinder/cinder.conf

# A list of backend names to use. These backend names should
# be backed by a unique [CONFIG] group with its options (list
# value)
iscsi_helper=lioadm
iscsi_ip_address=206.122.21.59
iscsi_protocol=iscsi
volumes_dir=/var/lib/cinder/volumes

enabled_backends=lvm,lvm-san

[lvm]
volume_group=cinder-volumes
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name=lvm

[lvm-san]
volume_group=san_vg1
volume_driver=cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name=lvm_san

/var/logs/cinder/scheduler.log

2015-07-17 17:10:35.943 6616 WARNING cinder.scheduler.filter_scheduler [req-77b64e33-d63c-4413-a0c5-0b00ed4c12d5 e14ea7d4676a455f8a4d0f500e1fd837 457b2d6687e846fe88e8f093858a0c0b - - -] No weighed hosts found for volume with properties: {u'name': u'san', u'qos_specs_id': None, u'deleted': False, u'created_at': u'2015-07-14T23:24:25.000000', u'updated_at': None, u'extra_specs': {u'volume_backend_name': u'lvm_san'}, u'is_public': True, u'deleted_at': None, u'id': u'c5801a88-a6b5-4ee1-847f-796e01697244', u'description': None}
2015-07-17 17:10:35.953 6616 ERROR cinder.scheduler.flows.create_volume [req-77b64e33-d63c-4413-a0c5-0b00ed4c12d5 e14ea7d4676a455f8a4d0f500e1fd837 457b2d6687e846fe88e8f093858a0c0b - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available
[helion@uspnvelvm116 ~(keystone_admin)]$
edit retag flag offensive close merge delete

Comments

Tried the same config as dbaxps used for Juno --- same error. Even tried the deprecated LVMISCSIDriver --- same error. Anyone out there have a working example of multi back end on kilo? Would be nice if the error message was more descriptive. Also, can anyone advise on how to produce enhanced debug?

rzhelion gravatar imagerzhelion ( 2015-07-19 11:04:21 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-18 02:13:30 -0500

dbaxps gravatar image

Using field as comment. On RDO Juno syntax bellow worked for me :-

#######################
enabled_backends=lvm51,lvm52
#######################

At the bottom of file

[lvm51]
iscsi_helper=lioadm
volume_group=cinder-volumes51
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
iscsi_ip_address=192.168.1.127
volume_backend_name=LVM_iSCSI51


[lvm52]
iscsi_helper=lioadm
volume_group=cinder-volumes52
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
iscsi_ip_address=192.168.1.127
volume_backend_name=LVM_iSCSI52
edit flag offensive delete link more

Comments

Are you saying that adding comments around enabled_backends= makes a difference? Also, I noticed you duplicated the iscsi_helper and iscsi_ip_address in each block -- is that required? Do you include the iscsi_protocol in the default section?

rzhelion gravatar imagerzhelion ( 2015-07-18 11:05:50 -0500 )edit

Comments don't matter. I also don't know is that required or not. It just works on Juno
I didn't specify iscsi_protocol at all.

dbaxps gravatar imagedbaxps ( 2015-07-18 11:49:54 -0500 )edit

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: 2015-07-17 17:19:09 -0500

Seen: 4,872 times

Last updated: Jul 18 '15