Deleting Flavor gives Error [delete() takes exactly 2 arguments (3 given)]

Bug #924110 reported by Paul Pettigrew on 2012-01-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Tihomir Trifonov

Bug Description

Having create a flavor per:
# nova-manage instance_type create m1.xxlarge 32768 16 320 0 0 0

Was displaying correctly in Dashboard, then clicking on red [Delete] button gave rise to error screen output in browser:

TypeError at /syspanel/flavors/
delete() takes exactly 2 arguments (3 given)
Request Method: POST
Request URL: https://stack.server.lan/syspanel/flavors/
Django Version: 1.3.1
Exception Type: TypeError
Exception Value:
delete() takes exactly 2 arguments (3 given)
Exception Location: /usr/src/openstack/horizon/horizon/horizon/api/ in flavor_delete, line 205
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:
Server time: Tue, 31 Jan 2012 15:44:27 +1000

Devin Carlen (devcamcar) on 2012-02-02
Changed in horizon:
milestone: none → essex-4
importance: Undecided → High
status: New → Confirmed
tags: added: low-hanging-fruit
Changed in horizon:
assignee: nobody → Tihomir Trifonov (ttrifonov)

Fix proposed to branch: master

Changed in horizon:
status: Confirmed → In Progress

Submitter: Jenkins
Branch: master

commit 32b8ab625e1c273da8bb36bffadc55d37eabb376
Author: Tihomir Trifonov <email address hidden>
Date: Thu Feb 2 23:37:41 2012 +0200

    Fixes delete of a flavor in syspanel. Fixes bug 924110. novaclient API is changed - purge param is removed.
    Patch 2: removed duplicate line
    Patch 3: removed repeated test call of the same method

    Change-Id: I47a0f9c872a7e6236d9c8824c15ef776b352446d

Changed in horizon:
status: In Progress → Fix Committed
Paul Pettigrew (paul-pettigrew) wrote :

Well done, the fix works, thank you.

In doing some additional testing, I noticed that the delete is (correctly) not doing a --purge of the flavor. However, if in the Dashboard I attempt to create a flavour with the same name (after having previously created & deleted) then I get an error at the top of the browser saying "Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)".

Ideally, this would be more informative and say "m1.xxlarge was previously used, please use another name" or similar.



Thierry Carrez (ttx) on 2012-02-29
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in horizon:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers