Windows SMBFS: image resize fails during volume creation

Bug #1437306 reported by Lucian Petrut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Lucian Petrut

Bug Description

When creating volumes from images or snapshots, the according virtual disk image is resized up to the volume size.

At the moment, the resize is performed even if the image already has the requested size. This can raise an excepion in some environments.

Trace: http://paste.openstack.org/show/197112/

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/174291

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

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

commit 3fe6adbe7d3e2009c09dd0b8516c501d50fdf25d
Author: Lucian Petrut <email address hidden>
Date: Fri Mar 27 15:00:28 2015 +0200

    Windows SMBFS: Fix image resize errors during volume creation

    When creating volumes from images or snapshots, the corresponding
    virtual disk image is resized up to the volume size.

    At the moment, the resize is performed even if the image already
    has the requested size. This can raise an excepion in some
    environments.

    This patch checks the image size and performs the resize only if
    it's required.

    Change-Id: Ib65f0e8d69f93ae21975eb46ba24e085c06e4e34
    Closes-Bug: #1437306

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-1 → 7.0.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.