gate-ceilometer-python27 fail with ImportError

Bug #1634193 reported by Anton Chevychalov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Committed
High
Anton Chevychalov

Bug Description

gate-ceilometer-python27 is failed for https://review.fuel-infra.org/#/c/27465/

15:49:04 Failed to import test module: ceilometer.tests.unit.api.test_versions
15:49:04 Traceback (most recent call last):
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
15:49:04 module = self._get_module_from_name(name)
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
15:49:04 __import__(name)
15:49:04 File "ceilometer/tests/unit/api/test_versions.py", line 16, in <module>
15:49:04 from ceilometer.tests.functional import api
15:49:04 File "ceilometer/tests/functional/api/__init__.py", line 27, in <module>
15:49:04 cfg.CONF.import_group(OPT_GROUP_NAME, "keystonemiddleware.auth_token")
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2463, in import_group
15:49:04 __import__(module_str)
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 235, in <module>
15:49:04 from keystonemiddleware.auth_token import _cache
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_cache.py", line 21, in <module>
15:49:04 from keystonemiddleware.auth_token import _memcache_crypt as memcache_crypt
15:49:04 File "/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/local/lib/python2.7/site-packages/keystonemiddleware/auth_token/_memcache_crypt.py", line 38, in <module>
15:49:04 from oslo_utils import secretutils
15:49:04 ImportError: cannot import name secretutils
15:49:04 Non-zero exit code (2) from test listing.
15:49:04 error: testr failed (3)
15:49:04 ERROR: InvocationError: '/home/jenkins/workspace/gate-ceilometer-python27/.tox/py27/bin/python setup.py testr --slowest --testr-args='
15:49:04 ___________________________________ summary ____________________________________
15:49:04 ERROR: py27: commands failed

For additional information see http://logs.mosi.mirantis.net/65/27465/1/check/gate-ceilometer-python27/069b022/

That bug affects MOS8 packaging

Changed in mos:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → MOS Packaging Team (mos-packaging)
milestone: none → 8.0-updates
Changed in mos:
assignee: MOS Packaging Team (mos-packaging) → Anton Chevychalov (achevychalov)
Revision history for this message
Alexander Evseev (aevseev) wrote :

Looks like you need either limit version of keystonemiddleware less than 4.10.0 or change version limit for oslo.utils.

See: https://review.openstack.org/gitweb?p=openstack/keystonemiddleware.git;a=commitdiff;h=6ced68d629f62eb7ed67bd1f0e99dfa2ac613a57

Revision history for this message
Anton Chevychalov (achevychalov) wrote :

I think it's better to pin oslo.utils because it's pined in upstream https://github.com/openstack/requirements/blob/stable/liberty/upper-constraints.txt

Revision history for this message
Anton Chevychalov (achevychalov) wrote :

After additional investigation keystonemiddleware has been pined to 4.8.0 globaly for ci in MOS8

Fix has been merged https://review.fuel-infra.org/#/c/27586/

Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Anton Chevychalov (achevychalov) wrote :

Above solution is not complete because mos-infra-ro jobs ignore global pin.

Changed in mos:
status: Fix Committed → In Progress
Revision history for this message
Anton Chevychalov (achevychalov) wrote :

New falling jobs example gate-ceilometer-python27-ubuntu-trusty

2016-10-25 12:22:15.091970 | from oslo_utils import secretutils
2016-10-25 12:22:15.091994 | ImportError: cannot import name secretutils
2016-10-25 12:22:15.092458 | Non-zero exit code (2) from test listing.
2016-10-25 12:22:15.092565 | error: testr failed (3)
2016-10-25 12:22:15.123698 | ERROR: InvocationError: '/tmp/gate-ceilometer-python27-ubuntu-trusty/.tox/py27/bin/python setup.py testr --slowest --testr-args='

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack/ceilometer (openstack-ci/fuel-8.0/liberty)

Fix proposed to branch: openstack-ci/fuel-8.0/liberty
Change author: Anton Chevychalov <email address hidden>
Review: https://review.fuel-infra.org/27898

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/ceilometer (openstack-ci/fuel-8.0/liberty)

Reviewed: https://review.fuel-infra.org/27898
Submitter: Pkgs Jenkins <email address hidden>
Branch: openstack-ci/fuel-8.0/liberty

Commit: aeee5ed7f2c95364181ffae6c11dd6d0206b1d8d
Author: Anton Chevychalov <email address hidden>
Date: Fri Oct 28 09:16:08 2016

Restrict keystonemiddleware version for MOS8

Restrict keystonemiddleware version for MOS8 to pass
mos-infra-ro tests.

Change-Id: I608a4ed1ea111c318aae803c4258f429bdaffa76
Closes-Bug: #1634193

Changed in mos:
status: In Progress → Fix Committed
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.