← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1867077] Re: stein: when use "openstack server resize" command, there is an error: Unexpected API Error.

 

Reviewed:  https://review.opendev.org/712766
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=efdcaf00e01b12ac15b938392b2f4b9e7db5eff1
Submitter: Zuul
Branch:    master

commit efdcaf00e01b12ac15b938392b2f4b9e7db5eff1
Author: Stephen Finucane <stephenfin@xxxxxxxxxx>
Date:   Thu Mar 12 18:06:14 2020 +0000

    Handle flavor disk mismatches when resizing
    
    When resizing a non-volume-backed instance, we call the
    '_validate_flavor_image_nostatus' function to do a myriad of checks with
    the aim of ensuring the flavor and image don't conflict. One of these
    checks tests whether the flavor is requesting a smaller local disk than
    the size of the image of the minimum size the image says it requires. If
    this check fails, it will raise the 'FlavorDiskSmallerThanImage' or
    'FlavorDiskSmallerThanMinDisk' exceptions, respectively. We currently
    handle this exception in the 'create' and 'rebuild' flows but do not in
    the 'resize' path. Correct this by way of adding this exception to
    'INVALID_FLAVOR_IMAGE_EXCEPTIONS', a list of exceptions that can be
    raised when an flavor and image conflict.
    
    The fix for this issue also highlights another exception that can be
    raised in the three code paths but is not handled by them all,
    'FlavorMemoryTooSmall'. This is added to
    'INVALID_FLAVOR_IMAGE_EXCEPTIONS' also.
    
    Change-Id: Idc82ed3bcfc37220a50d9e2d552be5ab8844374a
    Signed-off-by: Stephen Finucane <stephenfin@xxxxxxxxxx>
    Closes-Bug: #1867077


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

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

Title:
   stein: when use "openstack server resize" command, there is an error:
  Unexpected API Error.

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  kolla-ansible: 8.0.1
  openstack_release: "stein"
  kolla_install_type: "source"
  kolla_base_distro: "centos"

  when I use "openstack server resize" command, there is an API error:

  # openstack server resize --flavor m1.large haproxyserver
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'nova.exception.FlavorDiskSmallerThanMinDisk'> (HTTP 500) (Request-ID: req-576f1e82-6d47-4c6a-87f1-1e552914f9d6)

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


References