ERROR tempest.test_discover.plugins [-] Could not load 'trio2o_tests': arguments already parsed: cannot register CLI option

Bug #1692291 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
trio2o
Fix Released
Undecided
Unassigned

Bug Description

http://logs.openstack.org/40/466440/3/check/gate-tempest-plugin-sanity-ubuntu-xenial-nv/bf85f3c/console.html tempest-plugin-sanity job checks the sanity of tempest plugin.
trio2o tempest plugins brokes the tempest cli by giving following errors:
2017-05-21 00:54:41.525696 | + /home/jenkins/workspace/gate-tempest-plugin-sanity-ubuntu-xenial-nv/tools/with_venv.sh tempest init /home/jenkins/workspace/gate-tempest-plugin-sanity-ubuntu-xenial-nv/tempest_sanity
2017-05-21 00:54:43.121401 | 2017-05-21 00:54:43.121 7244 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2017-05-21 00:54:43.339505 | 2017-05-21 00:54:43.339 7244 ERROR tempest.test_discover.plugins [-] Could not load 'trio2o_tests': arguments already parsed: cannot register CLI option
2017-05-21 00:54:43.339705 | 2017-05-21 00:54:43.339 7244 ERROR tempest [-] arguments already parsed: cannot register CLI option
2017-05-21 00:54:43.388712 | [Zuul] Task exit code: 1
2017-05-21 00:54:44.331103 | [Zuul] Job complete, result: FAILURE

After investigation, we found that trio2o tempest plugin config trio2o/tempestplugin/config.py is using the trio2o config defined in trio2o/common/config.py which is overriding the tempest config
which leads to the failure of tempest cli and the tempest plugin config implementation is also wrong. It should oslo config to populate required tempest config required for trio2o. It needs to be fixed.

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

Reviewed: https://review.openstack.org/466513
Committed: https://git.openstack.org/cgit/openstack/trio2o/commit/?id=acaf62fd4d1ae127493f5d881882ad8eab96176a
Submitter: Jenkins
Branch: master

commit acaf62fd4d1ae127493f5d881882ad8eab96176a
Author: Chandan Kumar <email address hidden>
Date: Sun May 21 12:06:05 2017 +0530

    Fixed trio2o tempest plugin config

    The trio2o tempest plugin is using the trio2o project config
    which overrides the tempest config while running tempest plugin tests
    with tempest. It leads to the failure of tempest command. We need to
    use oslo_config for specifiying tempest plugin config for trio2o
    to avoid overriding and avoid the above failure.

    Change-Id: Ia8a165d496c6520313f1454d11f98adb8830d027
    Closes-Bug: #1692291

Changed in trio2o:
status: New → 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.