Ask Your Question
0

unable to create a cinder-volume: Total capacity gb equals to Zero 0

asked 2019-06-18 13:23:37 -0500

abhi90 gravatar image

Hi There!

Can somebody help me with the issue I am seeing with cinder-volumes on newton version of openstack running on debian9.

My setup:

I have 3 controller nodes and 3 compute nodes. Compute nodes have 3 ssd drives of each 3.5tb that I am trying to use for cinder. I have created the vg called cinder-volumes on all the three compute nodes and the cinder.conf file is updated with the volume-group name. When I do openstack volume service list the output seems to be good all my scheduler and cinder nodes are enabled and up.

But when I try to create a volume, I see errors in cinder-scheduler saying no host found as below..

2019-06-17 20:22:28.997 26592 DEBUG cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Starting with 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/cinder/scheduler/base_filter.py:102 2019-06-17 20:22:28.999 26592 DEBUG cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Filter AvailabilityZoneFilter returned 1 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/cinder/scheduler/base_filter.py:132 2019-06-17 20:22:29.000 26592 WARNING cinder.scheduler.filters.capacity_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Insufficient free space for volume creation. Total capacity is 0.00 on host se1-zit-osn-005@lvm#LVM. 2019-06-17 20:22:29.001 26592 DEBUG cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Filter CapacityFilter returned 0 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/cinder/scheduler/base_filter.py:132 2019-06-17 20:22:29.002 26592 DEBUG cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Filter CapabilitiesFilter returned 0 host(s) get_filtered_objects /usr/lib/python2.7/dist-packages/cinder/scheduler/base_filter.py:132 2019-06-17 20:22:29.003 26592 DEBUG cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Filtering removed all hosts for the request with volume ID '2c270a9b-298f-4b12-99f1-c51aa9a26801'. Filter results: [('AvailabilityZoneFilter', [u'se1-zit-osn-005@lvm#LVM']), ('CapacityFilter', []), ('CapabilitiesFilter', [])] _log_filtration /usr/lib/python2.7/dist-packages/cinder/scheduler/base_filter.py:86 2019-06-17 20:22:29.003 26592 INFO cinder.scheduler.base_filter [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Filtering removed all hosts for the request with volume ID '2c270a9b-298f-4b12-99f1-c51aa9a26801'. Filter results: AvailabilityZoneFilter: (start: 1, end: 1), CapacityFilter: (start: 1, end: 0), CapabilitiesFilter: (start: 0, end: 0) 2019-06-17 20:22:29.003 26592 WARNING cinder.scheduler.filter_scheduler [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] No weighed hosts found for volume with properties: None 2019-06-17 20:22:29.004 26592 INFO cinder.message.api [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Creating message record for request_id = req-fb93004d-c750-40c7-9090-7a0aeabd1f8a 2019-06-17 20:22:29.011 26592 ERROR cinder.scheduler.flows.create_volume [req-fb93004d-c750-40c7-9090-7a0aeabd1f8a c50419b77c86419285c0a4ef9135ac95 542a327fc2684cc287c703d3440df9b9 - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

Any help is highly appreciated. Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-18 13:47:07 -0500

abhi90 gravatar image

I was able to fix it by changing lvm_type = auto to lvm_type = thin on the cinder.conf file and restart the services.

edit flag offensive delete link more

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: 2019-06-18 13:23:37 -0500

Seen: 18 times

Last updated: Jun 18