DEFAULT_LOG_LEVELS out of sync with oslo_log

Bug #1430124 reported by Kaitlin Farr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Medium
Kaitlin Farr
tempest
Fix Released
Undecided
Kaitlin Farr

Bug Description

This bug was noticed in the Barbican functional tests after the release of oslo.log 1.0.0. The Barbican functional tests would fail in the gate with errors such as:

2015-03-10 00:55:33.146 | 2015-03-10 00:55:33.114 | Captured traceback:
2015-03-10 00:55:33.148 | 2015-03-10 00:55:33.116 | ~~~~~~~~~~~~~~~~~~~
2015-03-10 00:55:33.150 | 2015-03-10 00:55:33.117 | Traceback (most recent call last):
2015-03-10 00:55:33.152 | 2015-03-10 00:55:33.119 | ImportError: Failed to import test module: api.v1.functional.test_secrets
2015-03-10 00:55:33.154 | 2015-03-10 00:55:33.121 | Traceback (most recent call last):
2015-03-10 00:55:33.155 | 2015-03-10 00:55:33.123 | File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 445, in _find_test_path
2015-03-10 00:55:33.157 | 2015-03-10 00:55:33.124 | module = self._get_module_from_name(name)
2015-03-10 00:55:33.158 | 2015-03-10 00:55:33.126 | File "/usr/local/lib/python2.7/dist-packages/unittest2/loader.py", line 384, in _get_module_from_name
2015-03-10 00:55:33.161 | 2015-03-10 00:55:33.127 | __import__(name)
2015-03-10 00:55:33.162 | 2015-03-10 00:55:33.130 | File "/opt/stack/new/barbican/functionaltests/api/v1/functional/test_secrets.py", line 25, in <module>
2015-03-10 00:55:33.164 | 2015-03-10 00:55:33.132 | from functionaltests.api import base
2015-03-10 00:55:33.166 | 2015-03-10 00:55:33.134 | File "/opt/stack/new/barbican/functionaltests/__init__.py", line 18, in <module>
2015-03-10 00:55:33.168 | 2015-03-10 00:55:33.135 | from tempest import config
2015-03-10 00:55:33.170 | 2015-03-10 00:55:33.137 | File "/opt/stack/new/tempest/tempest/config.py", line 23, in <module>
2015-03-10 00:55:33.172 | 2015-03-10 00:55:33.139 | from tempest.openstack.common import lockutils
2015-03-10 00:55:33.174 | 2015-03-10 00:55:33.141 | File "/opt/stack/new/tempest/tempest/openstack/common/lockutils.py", line 31, in <module>
2015-03-10 00:55:33.175 | 2015-03-10 00:55:33.143 | from tempest.openstack.common import fileutils
2015-03-10 00:55:33.178 | 2015-03-10 00:55:33.144 | File "/opt/stack/new/tempest/tempest/openstack/common/fileutils.py", line 24, in <module>
2015-03-10 00:55:33.179 | 2015-03-10 00:55:33.147 | from tempest.openstack.common import log as logging
2015-03-10 00:55:33.181 | 2015-03-10 00:55:33.148 | File "/opt/stack/new/tempest/tempest/openstack/common/log.py", line 175, in <module>
2015-03-10 00:55:33.182 | 2015-03-10 00:55:33.150 | CONF.register_opts(log_opts)
2015-03-10 00:55:33.184 | 2015-03-10 00:55:33.152 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1794, in __inner
2015-03-10 00:55:33.185 | 2015-03-10 00:55:33.153 | result = f(self, *args, **kwargs)
2015-03-10 00:55:33.187 | 2015-03-10 00:55:33.154 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1951, in register_opts
2015-03-10 00:55:33.188 | 2015-03-10 00:55:33.156 | self.register_opt(opt, group, clear_cache=False)
2015-03-10 00:55:33.190 | 2015-03-10 00:55:33.158 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1798, in __inner
2015-03-10 00:55:33.192 | 2015-03-10 00:55:33.160 | return f(self, *args, **kwargs)
2015-03-10 00:55:33.194 | 2015-03-10 00:55:33.162 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 1940, in register_opt
2015-03-10 00:55:33.195 | 2015-03-10 00:55:33.163 | if _is_opt_registered(self._opts, opt):
2015-03-10 00:55:33.198 | 2015-03-10 00:55:33.165 | File "/usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py", line 573, in _is_opt_registered
2015-03-10 00:55:33.199 | 2015-03-10 00:55:33.166 | raise DuplicateOptError(opt.name)
2015-03-10 00:55:33.200 | 2015-03-10 00:55:33.168 | DuplicateOptError: duplicate option: default_log_levels

Using process of elimination, the commit that seemed to have uncovered this problem was this one: https://github.com/openstack/oslo.log/commit/54e3d0e705accfaa4c73a01fc2ea1480fcc0024e

The Tempest OpenStack common files from oslo-incubator need to be updated.

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

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

Changed in tempest:
assignee: nobody → Kaitlin Farr (kaitlin-farr)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Kaitlin Farr (<email address hidden>) on branch: master
Review: https://review.openstack.org/162854
Reason: https://review.openstack.org/#/c/163549/ did the same thing.

Revision history for this message
Kaitlin Farr (kaitlin-farr) wrote :

This bug was fixed on the tempest side when https://review.openstack.org/#/c/163549/ was merged and on the barbican side with https://review.openstack.org/#/c/163229/

Changed in tempest:
status: In Progress → Fix Released
Changed in barbican:
status: New → Fix Committed
Changed in tempest:
status: Fix Released → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: kilo-3 → 2015.1.0
Changed in barbican:
importance: Undecided → Medium
assignee: nobody → Kaitlin Farr (kaitlin-farr)
Changed in tempest:
status: Fix Committed → Fix Released
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.