Erroneous log error when accessing security group rules

Bug #1009797 reported by Gabriel Hurley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Gabriel Hurley

Bug Description

Due to the way the APIResource class is implemented, doing a hasattr check for an attribute that's not set yet causes a log message that's actually not correct, for example the message:

Attempted to access unknown attribute "_rules" on APIResource object of type "<class 'horizon.api.nova.SecurityGroup'>" wrapping resource of type "<class 'novaclient.v1_1.security_groups.SecurityGroup'>"

can be seen in the log when accessing the instance detail page.

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/8265

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

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

commit e1eaaa3290cceb0c261ab57372657193aef9cb52
Author: Gabriel Hurley <email address hidden>
Date: Wed Jun 6 18:52:27 2012 -0700

    Prevent erroneous log message when accessing security rules.

    Fixes bug 1009797.

    Change-Id: Ic8f627610b235c5d71a210800b3318619715106e

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: folsom-2 → 2012.2
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.