Can't create big image if store is a cinder with specific backend

Bug #1644177 reported by Andrey Pavlov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Fix Released
Undecided
Andrey Pavlov

Bug Description

Configuration:
1) glance is configured to store images in cinder.
2) cinder's backend is a ScaleIO.

Description:
ScaleIO creates volumes with size divided by 8Gb. And if client wants to create 1Gb cinder will create volume of 8Gb anyway.
glance store creates 1Gb volume for uploading image. If image is bigger it extends volume by 1Gb.

In this case cinder throws an error "New size for extend must be greater than current size. (current: 8, extended 2)."

glance store should check real voluume size after creation and extends volume only if it's needed.

cinder behavior was changed in Newton release.

Changed in glance-store:
assignee: nobody → Andrey Pavlov (apavlov-e)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance_store (master)

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

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

Reviewed: https://review.openstack.org/401277
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=f1afda393d8bfafd92b26a445452ab4c74912f0e
Submitter: Jenkins
Branch: master

commit f1afda393d8bfafd92b26a445452ab4c74912f0e
Author: Andrey Pavlov <email address hidden>
Date: Wed Nov 23 17:02:14 2016 +0300

    take into consideration created volume size in cinder backend

    cinder can create bigger volumes than requested.
    also cinder can extend volume to bigger size than requested.
    cinder driver should take in into consideration.

    Closes-Bug: #1644177
    Change-Id: Ic0c0bc31193eaa28fb32fb5e13c4bceeeb11ae2b

Changed in glance-store:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance_store (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/410547

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance_store 0.19.0

This issue was fixed in the openstack/glance_store 0.19.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on glance_store (stable/newton)

Change abandoned by Andrey Pavlov (<email address hidden>) on branch: stable/newton
Review: https://review.openstack.org/410547
Reason: Good job...

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.