Ceilometer nosetests fail

Bug #1233139 reported by Oleksii Serhiienko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
Low
Julien Danjou

Bug Description

I have a problem with running ceilometer tests. When I’m trying to run them I get an error:

/usr/bin/python2.7 /home/lexx/.IntelliJIdea12/config/plugins/python/helpers/pycharm/noserunner.py /home/lexx/Desktop/monitoring/tests/test_plugin.py
Testing started at 3:34 PM ...

Error
_StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/home/lexx/Desktop/monitoring/ceilometer/tests/base.py", line 49, in setUp
    self.path_get('etc/ceilometer/pipeline.yaml')
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1540, in __inner
    result = f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1783, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2029, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: pipeline_cfg_file

E

Error
_StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/home/lexx/Desktop/monitoring/ceilometer/tests/base.py", line 49, in setUp
    self.path_get('etc/ceilometer/pipeline.yaml')
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1540, in __inner
    result = f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1783, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2029, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: pipeline_cfg_file

E

======================================================================
ERROR: tests.test_plugin.NotificationBaseTestCase.test_handle_event_type
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/home/lexx/Desktop/monitoring/ceilometer/tests/base.py", line 49, in setUp
    self.path_get('etc/ceilometer/pipeline.yaml')
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1540, in __inner
    result = f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1783, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2029, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: pipeline_cfg_file

======================================================================
ERROR: tests.test_plugin.NotificationBaseTestCase.test_to_samples
----------------------------------------------------------------------
_StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/home/lexx/Desktop/monitoring/ceilometer/tests/base.py", line 49, in setUp
    self.path_get('etc/ceilometer/pipeline.yaml')
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1540, in __inner
    result = f(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1783, in set_override
    opt_info = self._get_opt_info(name, group)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2029, in _get_opt_info
    raise NoSuchOptError(opt_name, group)
NoSuchOptError: no such option: pipeline_cfg_file

----------------------------------------------------------------------
Ran 2 tests in 2.936s

FAILED (errors=2)

Process finished with exit code 1

I think that problem in ceilometer/tests/base.py in this line:

        cfg.CONF.set_override(
            'pipeline_cfg_file',
            self.path_get('etc/ceilometer/pipeline.yaml')
        )
I’m install ceilometer environment according to http://docs.openstack.org/developer/ceilometer/
Seeing that code has passed review – this is local error. Did somebody have the same problem? And how in your opinion I can fix it?

-I'm running it on IntellIJ via Nosetest. But the same error I have when I running it via tox

- https://git.openstack.org/cgit/openstack/ceilometer/commit/? id=c660794c75fe1b2079c8dbff35829081e67aeacd
Was merged on 26th September and should have fixed this problem. Yes, It's my fault. I was not have a latest ceilometer version. Its is fix now.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

How are you running the tests?

Revision history for this message
Julien Danjou (jdanjou) wrote :

That doesn't say which test failed unfortunately.

Changed in ceilometer:
status: New → Triaged
importance: Undecided → Low
description: updated
description: updated
description: updated
Revision history for this message
Julien Danjou (jdanjou) wrote :

https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=c660794c75fe1b2079c8dbff35829081e67aeacd

Was merged on 26th September and should have fixed this problem. What's your version of Ceilometer?

description: updated
Revision history for this message
Julien Danjou (jdanjou) wrote :

Bug already fixed.

Changed in ceilometer:
status: Triaged → Fix Committed
assignee: nobody → Julien Danjou (jdanjou)
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: none → havana-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: havana-rc1 → 2013.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.