# Unable to Create Volume From Image

## Problem

Unable to create volume from image on the Cinder host. The below error is observed on the cinder host in */var/log/pf9/cindervolume-base.log.*

{% tabs %}
{% tab title="None" %}

```none
ERROR oslo_messaging.rpc.server ImageTooBig: Image [image-id] size exceeded available disk space: There is no space to convert image. Requested: [size in bytes], available: [size in bytes]
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Cinder
* Glance

## Cause

Unable to create the volume from image due to low free disk space on the Cinder host.

## Diagnostics

* Get the information of the Cinder host on which the volume was created by running below command.

{% tabs %}
{% tab title="None" %}

```none
$ openstack volume show [volume-id]
```

{% endtab %}
{% endtabs %}

* On the Cinder host check the log file */var/log/pf9/cindervolume-base.log* for ***volume-id*** for below error message.

{% tabs %}
{% tab title="None" %}

```none
ERROR oslo_messaging.rpc.server ImageTooBig: Image [image-id] size exceeded available disk space: There is no space to convert image. Requested: [size in bytes], available: [size in bytes]
```

{% endtab %}
{% endtabs %}

* Check if the ***image\_conversion\_dir*** is defined in the cinder configuration. You can check it in the below two files.
  * */opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder.conf*
  * */opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder\_override.conf*
* If not, the system will be using the default path for the temporary image conversions which is *$state\_path/conversion* and can be confirmed from the above two configuration files.
* Next, check if the mount point on which ***image\_conversion\_dir*** is present has enough free disk space to store the image at the time of conversion.

## Resolution

We can resolve the issue using below two workarounds.

1. Add more storage to the mount point on which ***image\_conversion\_dir*** is located.

OR

1. Add the Image conversion directory path with enough storage in default section of the file */opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder\_override.conf* on cinder hosts.

Example:

{% tabs %}
{% tab title="None" %}

```none
# vi /opt/pf9/etc/pf9-cindervolume-base/conf.d/cinder_override.conf
[DEFAULT]
..
image_conversion_dir=/preferred/path/for/disk/conversion
..
```

{% endtab %}
{% endtabs %}

2. Restart service ***pf9-cindervolume-base*** on the Cinder host to make the change in configuration file effective.

## Additional Information

For more details on the Cinder configuration, please refer to the OpenStack documentation for [Cinder](https://docs.openstack.org/cinder/queens/configuration/block-storage/samples/cinder.conf.html).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/solution/unable-to-create-volume-from-image.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
