After deleting all flavors, error when creating new flavor

Bug #959232 reported by Martin Seidl
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Critical
Ionuț Arțăriși

Bug Description

Repro:
Under the admin panel Click on "flavors"
Delete all flavors
Click on create flavor

What happens:
The webpage shows an error:

IndexError at /syspanel/flavors/create/

list index out of range

Request Method: GET
Request URL: http://{url}/syspanel/flavors/create/
Django Version: 1.3.1
Exception Type: IndexError
Exception Value:

list index out of range

Exception Location:
/usr/lib64/python2.6/site-packages/horizon/dashboards/syspanel/flavors/views.py
in get_initial, line 68
Python Executable: /usr/bin/python
Python Version: 2.6.7

Expected result:
I should be able to add a flavor without errors. When I had a flavor still in the list I did
not get this error.

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

Changed in horizon:
assignee: nobody → Ionuț Arțăriși (iartarisi)
status: New → In Progress
Devin Carlen (devcamcar)
tags: added: essex-rc-potential
Devin Carlen (devcamcar)
Changed in horizon:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/5515
Committed: http://github.com/openstack/horizon/commit/2acd53679bda26130ac2d1c077a5e0beeec4f400
Submitter: Jenkins
Branch: master

commit 2acd53679bda26130ac2d1c077a5e0beeec4f400
Author: Ionuț Arțăriși <email address hidden>
Date: Thu Mar 22 11:00:58 2012 +0100

    fix IndexError when trying to create the first flavor (bug 959232)

    this happens when all the default flavors have been deleted and a user tries to add a new one through the WebUI

    Change-Id: Ic7779ac2ead409626c1b6ec0540865629e78277e

Changed in horizon:
status: In Progress → Fix Committed
Devin Carlen (devcamcar)
Changed in horizon:
milestone: none → essex-rc2
Devin Carlen (devcamcar)
tags: removed: essex-rc-potential
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-rc2 → 2012.1
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.