image table throws errrors into log files trying to display size attr

Bug #1461158 reported by Eric Peterson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Itxaka Serrano

Bug Description

I am seeing the images table fill up our log file with messages that are completely useless / silly. There should be a getattr() with a default to None so this type of situation is more gracefully handled.

2015-06-01 20:50:11,741 32061 WARNING horizon.tables.base ^[[31;1mThe attribute size doesn't exist on <Image {u'status': u'queued', u'name': u'testImageName_27765-201502260914540762', u'deleted': False, u'container_format': u'bare', u'created_at': u'2015-02-26T16:14:56', u'disk_format': u'qcow2', u'updated_at': u'2015-02-26T16:49:14', u'id': u'58d63ece-d06c-4245-8b8b-e9236bb10470', u'owner': u'fae517f867cb4ddd867e108630f7b6fe', u'protected': False, u'min_ram': 0, u'min_disk': 0, u'is_public': False, 'properties': {}}>.^[[0m
2015-06-01 20:50:42,434 32062 WARNING horizon.tables.base ^[[31;1mThe attribute size doesn't exist on <Image {u'status': u'queued', u'name': u'testImageName_47390-201503121921360259', u'deleted': False, u'container_format': u'bare', u'created_at': u'2015-03-13T01:21:37', u'disk_format': u'qcow2', u'updated_at': u'2015-03-13T01:28:28', u'id': u'cf24fcb2-7c9f-4f49-93dc-ef1d16730a7b', u'owner': u'64a102112a124298aacd23e3afa8894e', u'protected': False, u'min_ram': 0, u'min_disk': 0, u'is_public': False, 'properties': {}}>.^[[0m
2015-06-01 20:50:42,434 32063 WARNING horizon.tables.base ^[[31;1mThe attribute size doesn't exist on <Image {u'status': u'queued', u'name': u'testImageName_27765-201502260914540762', u'deleted': False, u'container_format': u'bare', u'created_at': u'2015-02-26T16:14:56', u'disk_format': u'qcow2', u'updated_at': u'2015-02-26T16:49:14', u'id': u'58d63ece-d06c-4245-8b8b-e9236bb10470', u'owner': u'fae517f867cb4ddd867e108630f7b6fe', u'protected': False, u'min_ram': 0, u'min_disk': 0, u'is_public': False, 'properties': {}}>.^[[0m
2015-06-01 20:51:13,339 32062 WARNING horizon.tables.base ^[[31;1mThe attribute size doesn't exist on <Image {u'status': u'queued', u'name': u'testImageName_27765-201502260914540762', u'deleted': False, u'container_format': u'bare', u'created_at': u'2015-02-26T16:14:56', u'disk_format': u'qcow2', u'updated_at': u'2015-02-26T16:49:14', u'id': u'58d63ece-d06c-4245-8b8b-e9236bb10470', u'owner': u'fae517f867cb4ddd867e108630f7b6fe', u'protected': False, u'min_ram': 0, u'min_disk': 0, u'is_public': False, 'properties': {}}>.^[[0m

tags: added: low-hanging-fruit
utsav dusad (utsavdusad)
Changed in horizon:
assignee: nobody → utsav dusad (utsavdusad)
tags: added: ops
Revision history for this message
Dan Siwiec (dan-siwiec) wrote :

Is any one working on this? If not I'd be happy to pick it up.

Revision history for this message
utsav dusad (utsavdusad) wrote :

Go ahead Dan.

Changed in horizon:
assignee: utsav dusad (utsavdusad) → nobody
Revision history for this message
Itxaka Serrano (itxaka) wrote :

As Dan has not come back to pick this bug and its a very simple one I have assigned it to myself as my first openstack contribution :D

Changed in horizon:
assignee: nobody → Itxaka (itxakaserrano)
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/220835

Changed in horizon:
status: New → In Progress
Revision history for this message
Itxaka Serrano (itxaka) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Itxaka Serrano Garcia (<email address hidden>) on branch: master
Review: https://review.openstack.org/225427
Reason: Messed up the ammend to the previous patch

Timur Sufiev (tsufiev-x)
Changed in horizon:
importance: Undecided → Low
David Lyle (david-lyle)
Changed in horizon:
milestone: none → mitaka-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit 5e4a180d4d5edb0bd00278dd5909f08986090116
Author: Itxaka <email address hidden>
Date: Sun Sep 6 19:53:23 2015 +0200

    Missing default value on horizon.tables Column

    There was a getattr in the Column class,
    get_raw_data method that was missing a default value,
    thus spamming the logs with warnings.
    Now it will only log if debug is enabled

    Change-Id: I8bff6670b8cb0f153d51523f9886bbcc36122a81
    Closes-Bug: #1461158
    Signed-off-by: Itxaka <email address hidden>

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/horizon 9.0.0.0rc1

This issue was fixed in the openstack/horizon 9.0.0.0rc1 release candidate.

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.