← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1809121] Re: Can't upload image to glance without setting minimu ram and disk sizes

 

Reviewed:  https://review.openstack.org/626176
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=65b21e7f9de7f5a465dd4c5d921ac476d8e1500a
Submitter: Zuul
Branch:    master

commit 65b21e7f9de7f5a465dd4c5d921ac476d8e1500a
Author: Yves-Gwenael Bourhis <yves-gwenael.bourhis@xxxxxxxxxx>
Date:   Wed Dec 19 15:11:20 2018 +0100

    Fix images minimum ram and disk default values
    
    When uploading an image, if we do not set a minimum ram and disk size we
    try to send "None" to glance.
    We should instead send "0" and glance will calculate the size from the
    provided image.
    
    Change-Id: Ia1aeabcdcf021943ebb7a4e35939c383ac820b19
    Closes-Bug: #1809121


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1809121

Title:
  Can't upload image to glance without setting minimu ram and disk sizes

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  Since this patch:
  https://review.openstack.org/#/c/554572/
  (and https://review.openstack.org/#/c/566267/ in queens)

  We can't upload an image file without manually setting the image
  minimum ram and disk sizes, otherwise we raise this error:

      Recoverable error: 400 Bad Request: Invalid value 'None' for
  parameter 'min_disk': Cannot convert image min_disk 'None' to an
  integer. (HTTP 400)

  These form fields are supposed to be optional, but due to this issue
  they are not optional at all and we manually need to fill in a zero in
  these form fields.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1809121/+subscriptions


References