Access the snapshot page under the admin panel. If the snapshot is in the middle state, an error log will appear.

Bug #1831435 reported by pengyuesheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
pengyuesheng

Bug Description

Access the snapshot page under the admin panel. If the snapshot is in the middle state, an error log will appear.
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 113, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 223, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 209, in construct_tables
    preempted = table.maybe_preempt()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1698, in maybe_preempt
    error = exceptions.handle(request, ignore=True)
  File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 348, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1694, in maybe_preempt
    new_row.load_cells(datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 619, in load_cells
    cell = table._meta.cell_class(datum, column, self)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 741, in __init__
    self.data = self.get_data(datum, column, row)
  File "/usr/lib/python2.7/site-packages/mistraldashboard/default/smart_cell.py", line 70, in get_data
    data = column.get_data(datum)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 424, in get_data
    data = self.get_raw_data(datum)
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/project/snapshots/tables.py", line 191, in get_raw_data
    group_snapshot = snapshot.group_snapshot
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 120, in __getattribute__
    return object.__getattribute__(self, attr)
AttributeError: 'VolumeSnapshot' object has no attribute 'group_snapshot'

Changed in horizon:
assignee: nobody → pengyuesheng (pengyuesheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.opendev.org/662721

Changed in horizon:
status: New → In Progress
Ivan Kolodyazhny (e0ne)
Changed in horizon:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.opendev.org/662721
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=f0149ee0dbeb20779fc2af2e2f1be11ad2216493
Submitter: Zuul
Branch: master

commit f0149ee0dbeb20779fc2af2e2f1be11ad2216493
Author: pengyuesheng <email address hidden>
Date: Mon Jun 3 16:57:06 2019 +0800

    Add the group_snapshot attribute to the snapshot in UpdateRow

    On snpashot panel in admin dashboards,
    The group_snapshot attribute is required in the snapshot table,
    but it does not exist in UpdateRow.

    This patch Add the group_snapshot attribute to the snapshot

    Change-Id: I00fc431fa3c5b8da40e5b24507165a2f3dfead47
    Closes-Bug: #1831435

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 16.0.0.0b2

This issue was fixed in the openstack/horizon 16.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.