Ask Your Question
0

No Valid Host Was Found Cinder Volume Create

asked 2016-09-07 17:51:01 -0500

StevieSwift gravatar image

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 ...
(更多)
edit retag flag offensive close merge delete

Comments

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 @:

| cinder-volume    | cinder@lvm | nova | enabled | up    | 2017-02-...
Bernd Bausch gravatar imageBernd Bausch ( 2017-02-23 22:02:58 -0500 )edit

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.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-23 22:10:11 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-02-23 17:01:02 -0500

First check the vgs. If you installed the openstack (same as me) via packstack. The default volume size is 20GB or so.You can view the packstack answer file to confirm or view the volume group size

CONFIG_CINDER_VOLUMES_SIZE=20G

If you want to extend the size of this volume group use this link :-

https://udaraliyanage.wordpress.com/2014/05/23/openstack-increase-volume-capacity/comment-page-1/ (https://udaraliyanage.wordpress.com/2...)

I Hope this will resolve your issue.

edit flag offensive delete link more

Comments

I just noticed that this question is from September last year. I hope the problem has been resolved in the mean time.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-23 23:03:11 -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

Stats

Asked: 2016-09-07 17:51:01 -0500

Seen: 4,907 times

Last updated: Feb 23 '17