unittest broken: DuplicateOptError: duplicate option: rpc_backend

Bug #1309139 reported by ZhiQiang Fan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Invalid
Undecided
Unassigned

Bug Description

after update to latest master code and run tox -epy27 -- tests.api.v2.test_app, it complains that

Traceback (most recent call last):
  File "ceilometer/tests/api/__init__.py", line 89, in setUp
    messaging.setup("fake://")
  File "ceilometer/messaging.py", line 37, in setup
    aliases=_ALIASES)
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/messaging/transport.py", line 166, in get_transport
    conf.register_opts(_transport_opts)
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1547, in __inner
    result = f(self, *args, **kwargs)
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1687, in register_opts
    self.register_opt(opt, group, clear_cache=False)
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1551, in __inner
    return f(self, *args, **kwargs)
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1676, in register_opt
    if _is_opt_registered(self._opts, opt):
  File "/home/zqfan/openstack/ceilometer-master/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 516, in _is_opt_registered
    raise DuplicateOptError(opt.name)
DuplicateOptError: duplicate option: rpc_backend

but jenkins doesn't complain, it is weird

Revision history for this message
gordon chung (chungg) wrote :

you have stray pyc files... when we switched to oslo.messaging the code in openstack.common.rpc was removed... make sure the residual pyc files in openstack.common are gone.

setting this as incomplete for now in case someone else has same problem

Changed in ceilometer:
status: New → Invalid
status: Invalid → Won't Fix
status: Won't Fix → Incomplete
ZhiQiang Fan (aji-zqfan)
Changed in ceilometer:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

I have run wrong command to clear pyc files

this time I run with: find ./ceilometer -name *.pyc | xargs -i rm -f {}

then it is ok

Changed in ceilometer:
assignee: ZhiQiang Fan (aji-zqfan) → nobody
status: Incomplete → Invalid
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.