OpenStack Cinder Service

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.
LVL 3
pehalwaanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Zephyr ICTCloud ArchitectCommented:
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

0
pehalwaanAuthor Commented:
They are placed correctly.
0
Zephyr ICTCloud ArchitectCommented:
Nothing missing like "/" (slash) somewhere ... That was an issue some time ago and it caused similar things... Just making sure.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

pehalwaanAuthor Commented:
Yes. All correct

filter = [ "a/sdb/","r/.*/" ]
0
pehalwaanAuthor 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.
0
Zephyr ICTCloud ArchitectCommented:
Can you post your sanitized cinder.conf file? (remove passwords)...
0
pehalwaanAuthor 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
0
Zephyr ICTCloud ArchitectCommented:
Does the name "controller"  resolve correctly? like nslookup controller or ping controller?
0
pehalwaanAuthor Commented:
YES. THEY WORK CORRECTLY.
0
pehalwaanAuthor Commented:
Thanks. I changed the Base OS from Ubuntu 14.04 to Centos 7 and it worked.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pehalwaanAuthor Commented:
I changed the Base OS and everything worked fine.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Cloud Computing

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.