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.

Copy

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.
Copy
  • On the Cinder host check the log file /var/log/pf9/cindervolume-base.log for volume-id for below error message.
Copy
  • 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:

Copy
  1. 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.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard