Creation of Volume from Image should also validate the volume size is not smaller that min_disk Size of Image

Bug #1241253 reported by Lin Hua Cheng
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Lin Hua Cheng

Bug Description

Steps to reproduce:

1. Create an image and specify min size to 10GB
2. Create a volume from image, using the image from step#1 and set the size to 1gb
3. Create the volume

Actual Output: Error message - Unable to create a volume

In the log: Cinder returns an error " Invalid input received: Image minDisk size 10 is larger than the volume size 1. " we should be displaying this message rather than a generic error message.

We should be adding validation for the minDisk and take this into consideration when setting the default volume size

summary: - Display error message when creating Volume that has size smaller than
- minSize from Image
+ Creation of Volume from Image should also validate the volume size is
+ not smaller that min_disk Size of Image
description: updated
Changed in horizon:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Changed in horizon:
milestone: none → icehouse-1
David Lyle (david-lyle)
Changed in horizon:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/52560
Committed: http://github.com/openstack/horizon/commit/a5cd32985dad5cab7bf5bf5b0ddf0b12acfbb97d
Submitter: Jenkins
Branch: master

commit a5cd32985dad5cab7bf5bf5b0ddf0b12acfbb97d
Author: Lin Hua Cheng <email address hidden>
Date: Thu Oct 17 18:50:38 2013 -0700

    Validate volume size is larger than image minDisk

    Creating volume from image currently validates that the volume size
    must be larger or equal to the image size. If the Image has a minDisk
    size configured, the volumen size must also be larger or equal to the
    minDisk.

    Took the opportunity to clean up the parenthesis in some localized
    messages as well.

    Change-Id: I0ae99504c1ae7a9c0b7dda5b3307602c48b0a6a8
    Closes-bug: 1241253

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: icehouse-1 → 2014.1
Revision history for this message
Julie Pichon (jpichon) wrote :

It would be nice to have this in Icehouse as well, although the i18n team would need to be notified as this includes string changes.

tags: added: icehouse-backport-potential
Revision history for this message
Julie Pichon (jpichon) wrote :

Looking at my last comment, I guess I was thinking of Havana...? Considering the current Havana timeline, I'll simply remove the tag.

tags: removed: icehouse-backport-potential
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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