AttributeError in project snapshot detail page

Bug #1695719 reported by wei.ying
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
wei.ying

Bug Description

Env: devstack master branch

Steps to reproduce:
1. Go to project/volumes/snapshots panel.
2. Click a snapshot name and redirect to its detail page.
3. View the console.

Error while checking action permissions.
Traceback (most recent call last):
  File "/opt/stack/horizon/horizon/tables/base.py", line 1359, in _filter_action
    return action._allowed(request, datum) and row_matched
  File "/opt/stack/horizon/horizon/tables/actions.py", line 136, in _allowed
    self.allowed(request, datum))
  File "/opt/stack/horizon/openstack_dashboard/dashboards/project/snapshots/tables.py", line 45, in allowed
    if (snapshot._volume and
  File "/opt/stack/horizon/openstack_dashboard/api/base.py", line 121, in __getattribute__
    return object.__getattribute__(self, attr)
AttributeError: 'VolumeSnapshot' object has no attribute '_volume'

wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
description: updated
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/470749

Changed in horizon:
status: New → In Progress
Revision history for this message
Ying Zuo (yingzuo) wrote :

I don't see any errors on project or admin volume snapshot details panel. Maybe it happens for a specific type of volume or volume snapshot?

Revision history for this message
wei.ying (wei.yy) wrote :

Hi Ying. Thanks for your comments.

Every snapshot has such a problem. Also, This error is not displayed on the page and need to see it through the development mode in the console. You can see the error in https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/snapshots/tables.py#L44

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/470749
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a27753153b73c3be46c1eb83975aa6990ea3bc1a
Submitter: Jenkins
Branch: master

commit a27753153b73c3be46c1eb83975aa6990ea3bc1a
Author: wei.ying <email address hidden>
Date: Sun Jun 4 21:16:33 2017 +0800

    Fix AttributeError in project/admin snapshot detail page

    If click the name link and go into the details page for the snapshot,
    the snapshot object lose the property of volume. It will be thrown an
    exception in the console.

    AttributeError: 'VolumeSnapshot' object has no attribute '_volume'

    Change-Id: I365992a9f784af293f40d74e0f80828d9a7e699b
    Closes-Bug: #1695719

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

This issue was fixed in the openstack/horizon 12.0.0.0b2 development milestone.

Changed in horizon:
milestone: none → pike-2
importance: Undecided → High
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.