We help IT Professionals succeed at work.

OpenStack Cinder Service

pehalwaan
pehalwaan asked
on
I am getting below error while configuring cinder service.

2015-04-23 09:57:28.517 7464 WARNING cinder.scheduler.filter_scheduler [req-428f74e7-aa8f-425f-abf2-284ade15dcd1 1cc2d0a682bb4d1fa54f74edf6fd4969 c52094473b654053bab0ce335d0f60fc - - -] No weighed hosts found for volume with properties: {}
2015-04-23 09:57:28.519 7464 ERROR cinder.scheduler.flows.create_volume [req-428f74e7-aa8f-425f-abf2-284ade15dcd1 1cc2d0a682bb4d1fa54f74edf6fd4969 c52094473b654053bab0ce335d0f60fc - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

MY HOSTS ARE UP AND RUNING FINE

root@controller:/etc/cinder# cinder service-list
+------------------+--------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |     Host     | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+--------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler |  controller  | nova | enabled |   up  | 2015-04-23T15:05:19.000000 |       None      |
|  cinder-volume   |    block1    | nova | enabled |   up  | 2015-04-23T15:05:27.000000 |       None      |

MY NOVA SERVICES ARE UP

+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host              | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-cert        | controller        | internal | enabled | up    | 2015-04-23T15:12:21.000000 | -               |
| 2  | nova-scheduler   | controller        | internal | enabled | up    | 2015-04-23T15:12:30.000000 | -               |
| 3  | nova-consoleauth | controller        | internal | enabled | up    | 2015-04-23T15:12:30.000000 | -               |
| 4  | nova-conductor   | controller        | internal | enabled | up    | 2015-04-23T15:12:29.000000 | -               |
| 5  | nova-compute     | controller        | nova     | enabled | up    | 2015-04-23T15:12:29.000000 | -               |
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+

PLEASE SUGGEST WHAT I AM DOING WRONG.
Comment
Watch Question

Zephyr ICTCloud Architect

Commented:
In your /etc/lvm/lvm.conf file there should be a filter section, can you check if it is correctly configured?
Should contain entries like:

filter = [ "a/sda/", "a/sdb/", "r/.*/"]

Open in new window

filter = [ "a/sda/", "r/.*/"]

Open in new window

Author

Commented:
They are placed correctly.
Zephyr ICTCloud Architect

Commented:
Nothing missing like "/" (slash) somewhere ... That was an issue some time ago and it caused similar things... Just making sure.

Author

Commented:
Yes. All correct

filter = [ "a/sdb/","r/.*/" ]

Author

Commented:
My controller node is not able to find storage node when creating volumes. I can storage node up in cinder-manage service list.

Please help.
Zephyr ICTCloud Architect

Commented:
Can you post your sanitized cinder.conf file? (remove passwords)...

Author

Commented:
CONTROLLER CINDER.CONF

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
iscsi_ip_address=x.x.x.x
iscsi_port=3260
enable_v2_api=true
volume_name_template = volume-%s
verbose = True
auth_strategy = keystone
#state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
rpc_backend=rabbit
rabbit_userid=guest
rabbit_host=controller
rabbit_password=xxxxxxx
my_ip = x.x.x.x

[database]
sql_connection = mysql://cinder:xxxxxx@controller/cinder

[keystone_authtoken]
auth_uri = http://controller:5000
identity_uri = http://controller:35357
admin_tenant_name = admin
admin_user = admin
admin_password = xxxxxxx


STORAGE NODE CINDER.CONF

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
iscsi_ip_address=x.x.x.x
iscsi_port=3260
volume_name_template = volume-%s
verbose = True
auth_strategy = keystone
#state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
rpc_backend=rabbit
rabbit_host=controller
rabbit_password=xxxxxx
rabbit_userid=block
rabbit_virtual_host=block1
my_ip = x.x.x.x
glance_host = controller


volume_group = cinder-volumes
volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
[database]
sql_connection = mysql://blockuser:xxxxxxx@controller/cinder


[keystone_authtoken]
auth_uri = http://controller:5000
identity_uri = http://controller:35357
admin_tenant_name = admin
admin_user = admin
admin_password = xxxxxxx
Zephyr ICTCloud Architect

Commented:
Does the name "controller"  resolve correctly? like nslookup controller or ping controller?

Author

Commented:
YES. THEY WORK CORRECTLY.
Thanks. I changed the Base OS from Ubuntu 14.04 to Centos 7 and it worked.

Author

Commented:
I changed the Base OS and everything worked fine.