Unable to detach volume from instance.

Bug #929224 reported by Jake Dahn on 2012-02-09
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Undecided
Jake Dahn

Bug Description

Currently I am unable to detach a volume from an instance.

Environment:

Request Method: POST
Request URL: http://essex-kvm.rcb.me/nova/instances_and_volumes/volumes/1/attach/

Django Version: 1.3
Python Version: 2.7.2
Installed Applications:
['dashboard',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_nose',
 'horizon',
 'horizon.dashboards.nova',
 'horizon.dashboards.syspanel',
 'horizon.dashboards.settings']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'dashboard.middleware.DashboardLogUnhandledExceptionsMiddleware',
 'horizon.middleware.HorizonMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware')

Traceback:
File "/usr/lib/pymodules/python2.7/django/core/handlers/base.py" in get_response
  111. response = callback(request, *callback_args, **callback_kwargs)
File "/opt/stack/horizon/horizon/horizon/decorators.py" in dec
  39. return view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/contrib/auth/decorators.py" in _wrapped_view
  23. return view_func(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/horizon/decorators.py" in dec
  39. return view_func(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/views/generic/base.py" in view
  47. return self.dispatch(request, *args, **kwargs)
File "/usr/lib/pymodules/python2.7/django/views/generic/base.py" in dispatch
  68. return handler(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/horizon/dashboards/nova/instances_and_volumes/volumes/views.py" in post
  112. return super(EditAttachmentsView, self).post(request, *args, **kwargs)
File "/opt/stack/horizon/horizon/horizon/tables/views.py" in post
  79. tables = self.get_tables().values()
File "/opt/stack/horizon/horizon/horizon/tables/views.py" in get_tables
  109. table = self.get_table()
File "/opt/stack/horizon/horizon/horizon/tables/views.py" in get_table
  119. self.get_data(),
File "/opt/stack/horizon/horizon/horizon/dashboards/nova/instances_and_volumes/volumes/views.py" in get_data
  87. _('Unable to retrieve volume information.'))
File "/opt/stack/horizon/horizon/horizon/dashboards/nova/instances_and_volumes/volumes/views.py" in get_data
  83. attachments = [att for att in self.object.attachments if att]

Exception Type: AttributeError at /nova/instances_and_volumes/volumes/1/attach/
Exception Value: 'EditAttachmentsView' object has no attribute 'object'

Jake Dahn (jakedahn) on 2012-02-09
Changed in horizon:
assignee: nobody → Jake Dahn (jakedahn)

Fix proposed to branch: master
Review: https://review.openstack.org/3951

Changed in horizon:
status: New → In Progress

Reviewed: https://review.openstack.org/3951
Committed: http://github.com/openstack/horizon/commit/c1066169705291cdac89f10c7d637c1c339cc757
Submitter: Jenkins
Branch: master

commit c1066169705291cdac89f10c7d637c1c339cc757
Author: jakedahn <email address hidden>
Date: Wed Feb 8 19:53:43 2012 -0800

    Making attach volume detach action work again.

    Fixes syntax error and uses get_object() consistently. Also removes
    extraneous print statement.

      * Fixes bug 929224

    Change-Id: I34c2574b53241890a142471d4c47689348730646

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in horizon:
milestone: none → essex-4
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.

Duplicates of this bug

Other bug subscribers