Ask Your Question
0

failed to create volume

asked 2014-01-27 04:54:40 -0500

parash_hallur gravatar image

I have created the devstack Havana on Ubuntu, everything use to work fine. I did make some changes for cinder driver Im using and restarted the cinder-volume service. After that I tried creating volumes and I'm hitting the following error from the cinder-scheduler log. Any clues, why am I seeing this error?

2014-01-27 02:45:09.653 ^[[01;33mWARNING cinder.scheduler.filters.capacity_filter [^[[01;36mreq-c3ebc10d-5a2d-4196-8a28-75b6300504ab ^[[00;3 6md45b626fb4094f839dba9510f449469f de129f00cb9a480f82b51ffa8ba64a3a^[[01;33m] ^[[01;35m^[[01;33mInsufficient free space for volume creation (requested / avail): 1/0.0^[[00m 2014-01-27 02:45:09.661 ^[[01;31mERROR cinder.volume.flows.create_volume [^[[01;36mreq-c3ebc10d-5a2d-4196-8a28-75b6300504ab ^[[00;36md45b626 fb4094f839dba9510f449469f de129f00cb9a480f82b51ffa8ba64a3a^[[01;31m] ^[[01;35m^[[01;31mFailed to schedule_create_volume: No valid host was f ound. ^[[00m

I even tried to unstack and stack, the issue still persists? Any help is appreciated

Thanks, Parash

edit retag flag offensive close merge delete

Comments

From the logs, it looks like there is no space available (available 0, requested 1).

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-01-27 09:43:35 -0500 )edit

Thanks Unmesh for the response. As I mentioned, I did unstack and stack, all previous volumes cleaned up, right now there are not any volumes in the system. What could be the problem here?

parash_hallur gravatar imageparash_hallur ( 2014-01-27 12:19:30 -0500 )edit

Check the output of `sudo vgdisplay` (devstack creates a volume group called 'stack-volumes' whose VG size should be 10.01 GiB). Also check the size of the default volume backing file using `ls -lh /opt/stack/data/stack-volumes-backing-file`.

unmesh-gurjar gravatar imageunmesh-gurjar ( 2014-01-27 23:55:00 -0500 )edit

Unmesh, Thanks again for the response. Following is the output of the commands [code] ~# sudo vgdisplay --- Volume group --- VG Name stack-volumes System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 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 10.01 GiB PE Size 4.00 MiB Total PE 2562 Alloc PE / Size 0 / 0 Free PE / Size 2562 / 10.01 GiB VG UUID RmBcDN-02au-fY2Y-M3uE-fPWd-LT71-lL3mqR ~# ls -lh /opt/stack/data/stack-volumes-backing-file -rw-r--r-- 1 stack stack 11G Jan 27 04:51 /opt/stack/data/stack-volumes-backing-file [/code] Backing file seem to be showing 11G as the current size, how do I clean it up?

parash_hallur gravatar imageparash_hallur ( 2014-01-28 00:52:14 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-28 00:55:19 -0500

parash_hallur gravatar image

Unmesh, Thanks again for the response. Following is the output of the commands

~# sudo vgdisplay
  --- Volume group ---
  VG Name               stack-volumes
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  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               10.01 GiB
  PE Size               4.00 MiB
  Total PE              2562
  Alloc PE / Size       0 / 0
  Free  PE / Size       2562 / 10.01 GiB
  VG UUID               RmBcDN-02au-fY2Y-M3uE-fPWd-LT71-lL3mqR


~# ls -lh /opt/stack/data/stack-volumes-backing-file
-rw-r--r-- 1 stack stack 11G Jan 27 04:51 /opt/stack/data/stack-volumes-backing-file

Backing file seem to be showing 11G as the current size, how do I clean it up?

edit flag offensive delete link more

Comments

The issue is resolved now. The storage driver I was using was returning the available/free_capacity as zero, hence scheduler was throwing the error insufficient free space.

parash_hallur gravatar imageparash_hallur ( 2014-01-28 09:52:12 -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

1 follower

Stats

Asked: 2014-01-27 04:54:40 -0500

Seen: 3,113 times

Last updated: Jan 28 '14