Aodh tempest plugin fails to load with DuplicateOpts Error

Bug #1549424 reported by Pradeep Kilambi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Aodh
Fix Released
Medium
Ryota Mibu
Ceilometer
Fix Released
Undecided
Ryota Mibu

Bug Description

2016-02-24 18:00:05.870 27658 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins [-] Plugin aodh_tests raised an exception trying to run register_opts
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins Traceback (most recent call last):
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/tempest/test_discover/plugins.py", line 93, in register_plugin_opts
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins plug.obj.register_opts(conf)
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/aodh/tests/tempest/plugin.py", line 37, in register_opts
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins tempest_config.ServiceAvailableGroup)
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/tempest/config.py", line 40, in register_opt_group
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins conf.register_opt(opt, group=getattr(opt_group, 'name', None))
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2110, in __inner
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins result = f(self, *args, **kwargs)
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2254, in register_opt
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins return group._register_opt(opt, cli)
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 1534, in _register_opt
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins if _is_opt_registered(self._opts, opt):
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 622, in _is_opt_registered
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins raise DuplicateOptError(opt.name)
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins DuplicateOptError: duplicate option: aodh
2016-02-24 18:00:05.919 27658 ERROR tempest.test_discover.plugins

Revision history for this message
Pradeep Kilambi (pkilambi) wrote :

This seems to be because tempest repo still has aodh opt registered

tempest/tempest/config.py: cfg.BoolOpt('aodh',
                                                         help="Whether or not Aodh is expected to be available"),

and its failing when it loads the config from aodh plugin since the new tempest code is merged in aodh now.

I assume we have plans to remove this from tempest code?

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

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

Changed in aodh:
assignee: nobody → Ryota Mibu (r-mibu)
status: New → In Progress
Liusheng (liusheng)
Changed in aodh:
importance: Undecided → Medium
Ryota Mibu (r-mibu)
Changed in ceilometer:
status: New → In Progress
assignee: nobody → Ryota Mibu (r-mibu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on aodh (master)

Change abandoned by Ryota MIBU (<email address hidden>) on branch: master
Review: https://review.openstack.org/285117
Reason: https://review.openstack.org/#/c/255188/

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

Reviewed: https://review.openstack.org/255188
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=10bd3e64025089378f2287e11d30417ee0574b8d
Submitter: Jenkins
Branch: master

commit 10bd3e64025089378f2287e11d30417ee0574b8d
Author: Ryota MIBU <email address hidden>
Date: Wed Dec 9 15:50:34 2015 +0900

    tempest: migrate api tests from tempest tree

    This patch migrate all tests for alarming function in tempest tree
    to this aodh tree.

    This patch also fixes conflicts in parameter name.

    Implements: blueprint tempest-plugin
    Closes-Bug: 1549424
    Change-Id: Ib548d2cbb005365ad4f97e56876e5bc2ad1c0aae

Changed in aodh:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/268054
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=6238c3be3950b1d7983dacb33f9dc902092ac283
Submitter: Jenkins
Branch: master

commit 6238c3be3950b1d7983dacb33f9dc902092ac283
Author: Ryota MIBU <email address hidden>
Date: Thu Dec 10 15:54:38 2015 +0900

    tempest: migrate api and scnario tests from tempest

    tempest: use ceilometer client manager instead of tempest one

    This patch replaces client manager used in base test class from tempest
    one to ceilometer dedicated manager which only has clients necessary to
    specific ceilometer test cases.

    The conflicts in config parameter are solved by adding '_plugin' in
    paramter names as suffix.

    This patch also includes the following changes in tempest.

      - Ie99bbbe7655138c4c3ecae69ae0b361198a9651d
      - I340d96c27f0e906df5b8a109494920e9cd3b21d1
      - I14e16a1a7d9813b324ee40545c07f0e88fb637b7

    Closes-Bug: 1549424
    Depends-On: Ifc29617743b76b01eb6cd30a375cf47b56e4f635
    Implements: blueprint tempest-plugin
    Change-Id: Ifbe3152c486ddba79bb851c0ec3097213975f95c

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

This issue was fixed in the openstack/ceilometer 6.0.0.0rc1 release candidate.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/aodh 2.0.0.0rc1

This issue was fixed in the openstack/aodh 2.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.