No Valid Host Was Found Cinder Volume Create
Hi All,
I am attempting to install and configure OpenStack Mitaka on a 4 node stack. 1 Controller, 1 Compute, 1 Block Storage, and 1 Object Storage. When attempting to create the Block storage node I am unable to create a volume via the dashboard. The base OS os Ubuntu 14.04, and like I said earlier the Mitaka release of OpenStack.
Here is the cinder.conf on the Controller Node
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.0.0.11
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
iscsi_protocol = iscsi
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = *********
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = **********
[database]
connection = mysql+pymysql://cinder:********@controller/cinder
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
Here is the cinder.conf on the Cinder (Block Storage) Node
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.0.0.41
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = **********
enabled_backends = lvm
glance_api_servers = http://controller:9292
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = ********
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
[database]
#connection = mysql+pymysql://cinder:*******@controller/cinder
connection = mysql+pymysql://cinder:*******@controller/cinder
#connection = mysql://cinder:******@controller/cinder
[api_database]
connection = mysql+pymysql://cinder:*******@controller/cinder_api
[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
The status after I create the volume is "error". Here is the error line I get inside the cinder-scheduler.log file on there Controller Node
2016-09-07 17:14:22.291 10607 ERROR cinder.scheduler.flows.create_volume [req-272c5387-a2e3-4371-8a14-8330831910d0 a43909277cbb418fa12fab4d22e0586c 64d180e39e2345ac9bbcd0c389b0a7c4 - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available
It's interesting, because before that error line there is a warning line above it saying:
2016-09-07 17:14:22.288 10607 WARNING cinder.scheduler.filter_scheduler [req-272c5387-a2e3-4371-8a14-8330831910d0 a43909277cbb418fa12fab4d22e0586c 64d180e39e2345ac9bbcd0c389b0a7c4 - - -] No weighed hosts found for volume with properties: {}
When I run the command "cinder service-list" from the Controller Node I get the following output:
+------------------+------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled | up | 2016-09-07T22:13:11.000000 | - |
| cinder-volume | cinder | nova | enabled | up | 2016-09-07T22:13:30.000000 | - |
+------------------+------------+------+---------+-------+----------------------------+-----------------+
This leads me to believe that the Cinder Node and The Controller node are able to "see" or communicate with each other. I believe I have configured lvm properly inside the Cinder node. Just in case here is the filter section from the lvm.conf file:
filter = [ "a/sda/", "a ...
I think your Cinder doesn't know it has a backend. The
enabled_backends = lvm
clause appears under the authentication section; it should be in DEFAULT.You should see the backend in the service list output after an @:
The
glance_api_servers = http://controller:9292
clause doesn't belong to the authentication section either. The way it's currently configured you are probably unable to create volumes from images.