Periodic jobs failing with ImportError: No module named os_ken.tests.integrated.common

Bug #1869701 reported by Sandeep Yadav
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Sandeep Yadav

Bug Description

Periodic jobs failing with ImportError: No module named os_ken.tests.integrated.common

https://d38d0367c1ca70558cf0-3059cf1890ea1358c70d952067d56657.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/tripleo-ci/master/tripleo-ci-centos-7-containers-multinode-rocky/1e5694a/job-output.txt

https://86e12ffa06843fc66646-2ddaf8b34d9bb8641604942a74454094.ssl.cf2.rackcdn.com/periodic/opendev.org/openstack/tripleo-ci/master/tripleo-ci-centos-7-containers-multinode-rocky/c10a4a6/job-output.tx

Logs:-

https://d38d0367c1ca70558cf0-3059cf1890ea1358c70d952067d56657.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/tripleo-ci/master/tripleo-ci-centos-7-containers-multinode-rocky/1e5694a/logs/undercloud/home/zuul/tempest.log

~~~
2020-03-28 08:06:40 | =========================
2020-03-28 08:06:40 | Failures during discovery
2020-03-28 08:06:40 | =========================
2020-03-28 08:06:40 | --- import errors ---
2020-03-28 08:06:40 | Failed to import test module: neutron_tempest_plugin.neutron_dynamic_routing.scenario.basic.test_4byte_asn
2020-03-28 08:06:40 | Traceback (most recent call last):
2020-03-28 08:06:40 | File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
2020-03-28 08:06:40 | module = self._get_module_from_name(name)
2020-03-28 08:06:40 | File "/usr/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
2020-03-28 08:06:40 | __import__(name)
2020-03-28 08:06:40 | File "/usr/lib/python2.7/site-packages/neutron_tempest_plugin/neutron_dynamic_routing/scenario/basic/test_4byte_asn.py", line 17, in <module>
2020-03-28 08:06:40 | from neutron_tempest_plugin.neutron_dynamic_routing.scenario import base
2020-03-28 08:06:40 | File "/usr/lib/python2.7/site-packages/neutron_tempest_plugin/neutron_dynamic_routing/scenario/base.py", line 24, in <module>
2020-03-28 08:06:40 | from os_ken.tests.integrated.common import docker_base as ctn_base
2020-03-28 08:06:40 | ImportError: No module named os_ken.tests.integrated.common
~~~

Tags: alert
yatin (yatinkarel)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → ussuri-3
Revision history for this message
yatin (yatinkarel) wrote :

Actually the issue is upstream jobs are running with un promoted content(tripleo-ci-testing).

Happening due to below condition:-
{% if ('periodic' in zuul.pipeline and not force_non_periodic|default(false)|bool) or (force_periodic|default(false)|bool) -%}

Since the pipeline name is 'periodic' in upstream which matches the above check, and these jobs using wrong content(rpms,containers etc) from tripleo-ci-testing tag. For promotion jobs pipeline name starts with openstack-periodic(ex.openstack-periodic-master, openstack-periodic-master-released etc). The condition should be fixed to differentiate promotion jobs with periodic ones running upstream.

https://github.com/openstack/tripleo-ci/blob/af5acec7b8b1145c0eafa65ca1a1bfbae81a2de8/roles/common/vars/main.yaml#L26

wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
Revision history for this message
Sandeep Yadav (sandeepyadav93) wrote :

Fix Released: https://review.opendev.org/#/c/716964/

Change 716964 - Merged

Make upstream periodic jobs run with current-tripleo

In tripleo-ci we mix periodic jobs with promotion jobs.
This patch makes periodic jobs to run periodically, but with
settings of regular "check" job (instead of "promotion" job)

We have done similiar thing for standalone jobs in the past[1].

[1] https://review.opendev.org/#/c/679039/

Change-Id: Ic98f005b1942c1626258ed70ec2a5afebd6751e6
Closes-Bug: #1869701

Changed in tripleo:
assignee: nobody → Sandeep Yadav (sandeepyadav93)
status: Triaged → 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.