rbd driver returns wrong size when create size is zero

Bug #1256044 reported by Edward Hope-Morley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Edward Hope-Morley

Bug Description

If the Glance RBD driver does a add() with no/zero image_size it calculates the image size from the provided data but still returns zero.

Tags: ceph rbd
Changed in glance:
status: New → In Progress
assignee: nobody → Edward Hope-Morley (hopem)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

tags: added: ceph rbd
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/59079
Committed: http://github.com/openstack/glance/commit/bb2d5709ecb69b6d375637018021bc7a70b32894
Submitter: Jenkins
Branch: master

commit bb2d5709ecb69b6d375637018021bc7a70b32894
Author: Edward Hope-Morley <email address hidden>
Date: Thu Nov 28 17:11:41 2013 +0000

    RBD add() now returns correct size if given zero

    If the RBD store add() is provided with image_size of zero, it
    will calculate based on data provided and return the new size.

    Change-Id: I06375bcfef7808905b466432e5ca100c942297eb
    Closes-bug: 1256044

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → icehouse-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-2 → 2014.1
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.