After deleting all flavors, error when creating new flavor

Bug #959232 reported by Martin Seidl on 2012-03-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Ionuț Arțăriși

Bug Description

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:
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.

Fix proposed to branch: master

Changed in horizon:
assignee: nobody → Ionuț Arțăriși (iartarisi)
status: New → In Progress
Devin Carlen (devcamcar) on 2012-03-19
tags: added: essex-rc-potential
Devin Carlen (devcamcar) on 2012-03-20
Changed in horizon:
importance: Undecided → Critical

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) on 2012-03-22
Changed in horizon:
milestone: none → essex-rc2
Devin Carlen (devcamcar) on 2012-03-22
tags: removed: essex-rc-potential
Thierry Carrez (ttx) on 2012-04-03
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in horizon:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers