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

Bug #1693546 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tricircle
Fix Released
Medium
chandan kumar

Bug Description

http://logs.openstack.org/07/460507/11/check/gate-tempest-plugin-sanity-ubuntu-xenial-nv/4e8f12e/console.html tempest-plugin-sanity job checks the sanity of tempest plugin.

tricircle tempest plugins brokes the tempest cli by giving following errors:
/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-25 08:31:21.908950 | 2017-05-25 08:31:21.908 8016 INFO tempest [-] Using tempest config file /etc/tempest/tempest.conf
2017-05-25 08:31:22.303772 | 2017-05-25 08:31:22.303 8016 ERROR tempest.test_discover.plugins [-] Could not load 'tricircle_tests': arguments already parsed: cannot register CLI option
2017-05-25 08:31:22.303936 | 2017-05-25 08:31:22.303 8016 ERROR tempest [-] arguments already parsed: cannot register CLI option
2017-05-25 08:31:22.385093 | [Zuul] Task exit code: 1
2017-05-25 08:31:23.662657 | [Zuul] Job complete, result: FAILURE

After investigation, we found that tricircle tempest plugin config tricircle/tempestplugin/config.py is using the tricircle config defined in tricircle/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 tricircle.

Apart from that after doing testr list-tests, It is also failing
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-500} \
${PYTHON:-python} -m subunit.run discover -t /tmp/testfactory/.venv/lib/python2.7/site-packages/tempest /tmp/testfactory/.venv/lib/python2.7/site-packages/tempest/test_discover --list
--- import errors ---
Failed to import test module: tempestplugin.tests.api.test_sample
Traceback (most recent call last):
  File "/tmp/testfactory/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
    module = self._get_module_from_name(name)
  File "/tmp/testfactory/.venv/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
    __import__(name)
  File "/tmp/testfactory/.venv/lib/python2.7/site-packages/tricircle/tempestplugin/tests/api/test_sample.py", line 20, in <module>
    class TestTricircleSample(base.BaseTricircleTest):
  File "/tmp/testfactory/.venv/lib/python2.7/site-packages/tricircle/tempestplugin/tests/api/test_sample.py", line 26, in TestTricircleSample
    @decorators.attr(type="smoke")
AttributeError: 'module' object has no attribute 'attr'
Non-zero exit code (2) from test listing.

These both issues needs to be fixed

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

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

Changed in tricircle:
assignee: nobody → chandan kumar (chkumar246)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tricircle (master)

Reviewed: https://review.openstack.org/468122
Committed: https://git.openstack.org/cgit/openstack/tricircle/commit/?id=f78d30e1c696ffe575524d2547cba843f2ebd7be
Submitter: Jenkins
Branch: master

commit f78d30e1c696ffe575524d2547cba843f2ebd7be
Author: Chandan Kumar <email address hidden>
Date: Thu May 25 23:43:01 2017 +0530

    Remove tricircle tempest plugin

    * The tricircle projects contains the skeletion of tempest plugin and
      there is nothing implemented with in the plugin and the existing plugin
      extension is breaking the tempest cli. So it is better to completely
      remove the plugin.

    * In future, if we need tempest plugin for tricircle, we need to implement
      in a seperate repo.

    Change-Id: I2dbf532ae9b33035187f92b9092af6d26eaba338
    Closes-Bug: #1693546

Changed in tricircle:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tricircle 3.3.0

This issue was fixed in the openstack/tricircle 3.3.0 release.

Chaoyi Huang (joehuang)
Changed in tricircle:
importance: Undecided → Medium
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.