Unable to upload image to glance in Cinder-GlusterFS

Bug #1394578 reported by Bharat Kumar Kobagana
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Bharat Kumar Kobagana
Juno
Fix Released
Undecided
Haïkel Guémar

Bug Description

Configured Cinder with GlusterFS, Then created a volume and tried to upload it to Glance. Then I am getting following exception.

Steps to reproduce:

1. Create a volume
        cinder create 1
2. Upload it to Glance
       cinder upload-to-image <volume-id> <image-name>

Then you find the error log in cinder-volume.log file.

Reason for the issue:

In Cinder-GlusterFS below is the "image-upload" path:
     glusterfs volume -> temp_file -> glance

While creating temporary file it is failing because, configured "image_conversion_dir" does not exist.

I my case it is configured as "/opt/stack/data/cinder/conversion/" but that doesn't exist.
But I can find "/opt/stack/cinder/conversion" directory.

Changed in cinder:
assignee: nobody → Bharat Kumar Kobagana (bkobagan)
Mike Perez (thingee)
tags: added: drivers
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/136705

Changed in cinder:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/136705
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c6d58672ed9666cbd9ad0d6454b064d8d05b43cc
Submitter: Jenkins
Branch: master

commit c6d58672ed9666cbd9ad0d6454b064d8d05b43cc
Author: Bharat Kumar Kobagana <email address hidden>
Date: Mon Nov 24 14:08:26 2014 +0530

    Create "image_conversion_dir" before creating temporary file

    In file "image_utils.py", "create_temporary_file" method is
    failing because, CONF.image_conversion_dir folder doesn't exist.

    This patch solves the issue by creating image_conversion_dir
    directory before calling "create_temporary_file" method.

    Change-Id: I546180e0521616fccdaf261d25fd4356d05f0274
    Closes-Bug: #1394578

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/148921

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/juno)

Reviewed: https://review.openstack.org/148921
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=ab9a1ad7e1d52ab52f69f7705a5ff1a3a49da37c
Submitter: Jenkins
Branch: stable/juno

commit ab9a1ad7e1d52ab52f69f7705a5ff1a3a49da37c
Author: Bharat Kumar Kobagana <email address hidden>
Date: Mon Nov 24 14:08:26 2014 +0530

    Create "image_conversion_dir" before creating temporary file

    In file "image_utils.py", "create_temporary_file" method is
    failing because, CONF.image_conversion_dir folder doesn't exist.

    This patch solves the issue by creating image_conversion_dir
    directory before calling "create_temporary_file" method.

    Change-Id: I546180e0521616fccdaf261d25fd4356d05f0274
    Closes-Bug: #1394578
    (cherry picked from commit c6d58672ed9666cbd9ad0d6454b064d8d05b43cc)

Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.