Present a better error message when the flavor creation fails

Bug #1179607 reported by Otavio Gaspareto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Lucas Palm

Bug Description

When an error happens during the flavor creation thru the Horizon, the message "Unable to create flavor" is always presented to the user, without giving better directions on what caused the failure.

Would be more useful if the message had a more meaningful text. It could be reached presenting the error message sent from the backend exception that caused the failure.

Changed in horizon:
importance: Undecided → Wishlist
status: New → Confirmed
Changed in horizon:
assignee: nobody → Otavio Gaspareto (otavio-barcelos-gaspareto)
Changed in horizon:
assignee: Otavio Gaspareto (otavio-barcelos-gaspareto) → nobody
Revision history for this message
Henrique Truta (henriquetruta) wrote :

Hello!

How can I reproduce this bug? I tried but was unable to do it...

Changed in horizon:
assignee: nobody → Nikunj Aggarwal (nikunj2512)
Revision history for this message
Nikunj Aggarwal (nikunj2512) wrote :

Please can you explain how to reproduce this bug?

Revision history for this message
Yamini Sardana (yamini-sardana) wrote :

Steps to reproduce :
1. On the Flavors page, Click on Create Image
2. In the Name field, Specify the name of an existing image but in different case e.g m1.NANO
3. Enter other parameters and click on Create Flavor.
4. Error windows pop-up saying " Unable to create flavor <name>"

The error window does not specify the error due to which the image creation failed.

Changed in horizon:
assignee: Nikunj Aggarwal (nikunj2512) → nobody
Lucas Palm (lapalm)
Changed in horizon:
assignee: nobody → Lucas Palm (lapalm)
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/266460

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/266460
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=b5d27265542a143da9847cf87d9e9a24229b21f5
Submitter: Jenkins
Branch: master

commit b5d27265542a143da9847cf87d9e9a24229b21f5
Author: Lucas Palm <email address hidden>
Date: Tue Jan 12 10:12:58 2016 -0600

    Improve field validation/error handling for flavor creation

    Currently, if a user tries to create a new flavor or rename a flavor
    to a name that already exists, a field validation error will be shown
    that tells the user that the name is already being used by another
    flavor.

    It seems, however, that the validation does not catch the case where the
    user enters a flavor name that is the same string but just with
    uppercase/lowercase differences. Since this is not caught during the
    form validation, nova runs into an error later and thus throws an
    exception that leaves the user with a generic error message like
    "Unable to create flavor".

    To improve the form field validation and prevent the error from ever
    occurring in Nova, I switched the name comparisons to use the .lower()
    method. This was done for both Creating and Editing Flavor names.

    Change-Id: I44dcd98978e57282b44fdab8f134500eb9b03881
    Closes-Bug: #1179607

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0b2

This issue was fixed in the openstack/horizon 9.0.0.0b2 development milestone.

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.