Need to investigate the root cause that we need to change log level to suppress annoying message in unit tests

Bug #1360794 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Triaged
Low
David Lyle

Bug Description

bug 1358120 and https://review.openstack.org/#/c/115368/ suppress the annoying message during the unit tests, but we need to investigate the root cause we need to change the log level to support annoying messages.

The following tests need to be investigated.

- openstack_dashboard/dashboards/project/databases/tests.py
  test_launch_instance_exception_on_flavors
- openstack_dashboard/dashboards/identity/projects/tests.p
  test_update_project_when_default_role_does_not_exist

In both tests, we are using logger.setLevel(logging.CRITICAL) or logging.disable(logging.ERROR).

Tags: unittest
Revision history for this message
Akihiro Motoki (amotoki) wrote :

I tried to investigated the cause but cannot identify it so far.
The easiest way to show the detail error message is to remove setLevel or logging.disable sentences.

These tests also fail with Django 1.7 RC as Thomas reported in the dev ML for Debian Jessie.
I believe the root cause is same.
To test Django 1.7, please refer to https://www.djangoproject.com/download/

tags: added: django1.7 unittest
Revision history for this message
David Lyle (david-lyle) wrote :

The root cause seems to be throwing in memoized methods is not handled well. Better exception handling when making the api calls should resolve the issue.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → David Lyle (david-lyle)
status: Confirmed → Triaged
milestone: none → juno-3
Thierry Carrez (ttx)
Changed in horizon:
milestone: juno-3 → juno-rc1
David Lyle (david-lyle)
Changed in horizon:
milestone: juno-rc1 → kilo-1
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-1 → kilo-2
David Lyle (david-lyle)
Changed in horizon:
milestone: kilo-2 → kilo-3
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-3 → kilo-rc1
David Lyle (david-lyle)
Changed in horizon:
milestone: kilo-rc1 → next
tags: removed: django1.7
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.