Ask Your Question

Volume creation with size more than 20GB is failing in OCATA

asked 2017-07-03 07:22:54 -0500

gaurav.mittal gravatar image

updated 2017-07-03 07:43:26 -0500


I am creating a volume of soze 25GB from Openstack dashboard and its failing with below error.

![Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available]

in logs I see - scheduler.log

 2017-07-03 08:11:47.148 1555 WARNING cinder.scheduler.filters.capacity_filter [req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d 70b8b2776358484590fbc158b3992a82 08244e41f50248f78da47db721d994f4 - default default] Insufficient free space for volume creation on host openstack@lvm#lvm (requested / avail): 25/20.6
2017-07-03 08:11:47.151 1555 INFO cinder.scheduler.base_filter [req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d 70b8b2776358484590fbc158b3992a82 08244e41f50248f78da47db721d994f4 - default default] Filtering removed all hosts for the request with volume ID 'fb4ba889-4675-4227-a3ea-d2096997f264'. Filter results: AvailabilityZoneFilter: (start: 1, end: 1), CapacityFilter: (start: 1, end: 0), CapabilitiesFilter: (start: 0, end: 0)
2017-07-03 08:11:47.153 1555 WARNING cinder.scheduler.filter_scheduler [req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d 70b8b2776358484590fbc158b3992a82 08244e41f50248f78da47db721d994f4 - default default] No weighed backend found for volume with properties: {'name': u'iscsi', 'qos_specs_id': None, 'deleted': False, 'created_at': '2017-05-24T07:15:12.000000', 'updated_at': None, 'extra_specs': {u'volume_backend_name': u'lvm'}, 'is_public': True, 'deleted_at': None, 'id': '5ec929c6-e98e-4e4d-9c95-a3740ac73d70', 'projects': [], 'description': None}
2017-07-03 08:11:47.155 1555 INFO cinder.message.api [req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d 70b8b2776358484590fbc158b3992a82 08244e41f50248f78da47db721d994f4 - default default] Creating message record for request_id = req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d
2017-07-03 08:11:47.170 1555 ERROR cinder.scheduler.flows.create_volume [req-19938c72-7a1a-4aaa-a08d-42c3b9a5d23d 70b8b2776358484590fbc158b3992a82 08244e41f50248f78da47db721d994f4 - default default] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available

I see that I have 2 VG. But cinder is picking up the first one only.

[root@openstack cinder]# vgdisplay
  --- Volume group ---
  VG Name               cinder-volumes
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  11
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               20.60 GiB
  PE Size               4.00 MiB
  Total PE              5273
  Alloc PE / Size       0 / 0
  Free  PE / Size       5273 / 20.60 GiB
  VG UUID               wvICCL-hCBB-WGsh-Huvv-5317-XoJW-y2u5HG

  --- Volume group ---
  VG Name               cl
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               597.80 GiB
  PE Size               4.00 MiB
  Total PE              153036
  Alloc PE / Size       152879 / 597.18 GiB
  Free  PE / Size       157 / 628.00 MiB
  VG UUID               BQ8hW8-OaP1-RpU2-4Q7z-Oud7-Hry6-MwfBeg

[root@openstack cinder]#
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2018-10-15 11:43:23 -0500

dnelaturi gravatar image

I have used the above solution to fix similar issue that I was facing with mitaka release and it should work

edit flag offensive delete link more

answered 2017-07-03 08:02:04 -0500

Rajesh Ramachandran gravatar image

In /etc/cinder/cinder.conf, you can check under [lvm] section to see which volume_group is used as lvm backend.

edit flag offensive delete link more


I dont see that variable in below section in /etc/cinder/cinder.conf

gaurav.mittal gravatar imagegaurav.mittal ( 2017-07-03 08:25:30 -0500 )edit

But there is another variable as below.

# Name for the VG that will contain exported volumes (string value)
#volume_group = cinder-volumes
gaurav.mittal gravatar imagegaurav.mittal ( 2017-07-03 08:27:10 -0500 )edit

I was able to figure out the problem. The backend storage that cinder has taken is cinder-volumes which is of 20.6GB. So when I try to create the volume higher than that size it fails saying "Insufficient free space for volume creation".

gaurav.mittal gravatar imagegaurav.mittal ( 2017-07-04 00:37:13 -0500 )edit

Now the problem is i am not able to add the other lvm to increase the space. Can some one point to the documentation how to increase the volume size.

gaurav.mittal gravatar imagegaurav.mittal ( 2017-07-04 04:37:13 -0500 )edit

try to add this comment on /etc/cinder/cinder.conf [lvm] .. volume_backend_name= cinder-volumes

then service cinder-volume restart

golfreeze gravatar imagegolfreeze ( 2018-02-03 09:08:47 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-07-03 07:22:54 -0500

Seen: 2,689 times

Last updated: Oct 15 '18