Tox mysql and postgres gates are failing

Bug #1659819 reported by Dawid Deja
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
Fix Released
High
Dawid Deja

Bug Description

Both gates are failing with error:

 Traceback (most recent call last):
   File "mistral/tests/unit/api/v2/test_action_executions.py", line 198, in setUp
     super(TestActionExecutionsController, self).setUp()
   File "mistral/tests/unit/api/base.py", line 32, in setUp
     super(APITest, self).setUp()
   File "mistral/tests/unit/base.py", line 283, in setUp
     self.__heavy_init()
   File "mistral/tests/unit/base.py", line 229, in __heavy_init
     cls.heavy_init()
   File "mistral/tests/unit/base.py", line 248, in heavy_init
     action_manager.sync_db()
   File "mistral/services/action_manager.py", line 82, in sync_db
     register_action_classes()
   File "mistral/services/action_manager.py", line 128, in register_action_classes
     _register_dynamic_action_classes()
   File "mistral/services/action_manager.py", line 87, in _register_dynamic_action_classes
     for generator in generator_factory.all_generators():
   File "mistral/actions/generator_factory.py", line 32, in all_generators
     mod_action_cls = importutils.import_class(mod_cls_name)
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 30, in import_class
     __import__(mod_str)
   File "mistral/actions/openstack/actions.py", line 37, in <module>
     muranoclient = importutils.try_import('muranoclient.v1.client')
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 103, in try_import
     return import_module(import_str)
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/oslo_utils/importutils.py", line 73, in import_module
     __import__(import_str)
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/muranoclient/v1/client.py", line 17, in <module>
     from muranoclient.v1 import artifact_packages
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/muranoclient/v1/artifact_packages.py", line 22, in <module>
     from muranoclient.common import utils
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/muranoclient/common/utils.py", line 20, in <module>
     from muranopkgcheck import manager as check_manager
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/muranopkgcheck/__init__.py", line 19, in <module>
     'muranopkgcheck').version_string()
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 465, in version_string
     return self.semantic_version().brief_string()
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 460, in semantic_version
     self._semantic = self._get_version_from_pkg_resources()
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/version.py", line 447, in _get_version_from_pkg_resources
     result_string = packaging.get_version(self.package)
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/packaging.py", line 716, in get_version
     version = _get_version_from_git(pre_version)
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/packaging.py", line 641, in _get_version_from_git
     git_dir = git._run_git_functions()
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/git.py", line 131, in _run_git_functions
     if _git_is_installed():
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/git.py", line 83, in _git_is_installed
     _run_shell_command(['git', '--version'])
   File "/home/jenkins/workspace/gate-mistral-tox-db-unit-mysql-ubuntu-xenial/.venv/local/lib/python2.7/site-packages/pbr/git.py", line 50, in _run_shell_command
     out = output.communicate()
   File "/usr/lib/python2.7/subprocess.py", line 800, in communicate
     return self._communicate(input)
   File "/usr/lib/python2.7/subprocess.py", line 1417, in _communicate
     stdout, stderr = self._communicate_with_poll(input)
   File "/usr/lib/python2.7/subprocess.py", line 1447, in _communicate_with_poll
     poller = select.poll()
 AttributeError: 'module' object has no attribute 'poll'

It was introduced by https://review.openstack.org/#/c/424617/

Changed in mistral:
assignee: nobody → Dawid Deja (dawid-deja-0)
status: New → Confirmed
Changed in mistral:
status: Confirmed → In Progress
Lingxian Kong (kong)
Changed in mistral:
importance: Undecided → High
milestone: none → ocata-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mistral (master)

Reviewed: https://review.openstack.org/428232
Committed: https://git.openstack.org/cgit/openstack/mistral/commit/?id=672f4663b2ecb639f5bb27e150289518758ff046
Submitter: Jenkins
Branch: master

commit 672f4663b2ecb639f5bb27e150289518758ff046
Author: Dawid Deja <email address hidden>
Date: Thu Feb 2 17:01:48 2017 +0100

    Fix for failing gates

    We were launching the tests using run_tests.sh
    with flag 'V' set, which makes the tests beeing run
    in the virtualenv. However, the tests are already beeing run
    in virtualenv since they are beeing run by tox. So we
    basically made virtualenv inside the virtualenv.

    Closes-bug: 1659819
    Change-Id: If647e44a43e730f00b01c597cde0c2345f8b780f

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

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