f28 master standalone job fails container-image-prepare - No module named 'pkg_resources'

Bug #1825220 reported by Ronelle Landy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Quique Llorente

Bug Description

periodic-tripleo-ci-fedora-28-standalone-master is failing the tripleo-container-image-prepare step with the following error:

Traceback (most recent call last):
  File "/usr/bin/tripleo-container-image-prepare", line 23, in <module>
    from tripleo_common.image import image_uploader
  File "/usr/lib/python3.6/site-packages/tripleo_common/image/image_uploader.py", line 33, in <module>
    from oslo_concurrency import processutils
  File "/usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py", line 34, in <module>
    from oslo_utils import timeutils
  File "/usr/lib/python3.6/site-packages/oslo_utils/timeutils.py", line 25, in <module>
    from debtcollector import removals
  File "/usr/lib/python3.6/site-packages/debtcollector/__init__.py", line 20, in <module>
    'debtcollector').version_string()
  File "/usr/lib/python3.6/site-packages/pbr/version.py", line 467, in version_string
    return self.semantic_version().brief_string()
  File "/usr/lib/python3.6/site-packages/pbr/version.py", line 462, in semantic_version
    self._semantic = self._get_version_from_pkg_resources()
  File "/usr/lib/python3.6/site-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Full log is linked below:

https://logs.rdoproject.org/openstack-periodic-master/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-fedora-28-standalone-master/cdbb808/logs/undercloud/var/log/tripleo-container-image-prepare.log.txt.gz

https://logs.rdoproject.org/openstack-periodic-master/git.openstack.org/openstack-infra/tripleo-ci/master/periodic-tripleo-ci-fedora-28-standalone-master/cdbb808/logs/undercloud/home/zuul/standalone_deploy.log.txt.gz#_2019-04-17_13_50_55

Revision history for this message
Ronelle Landy (rlandy) wrote :

Watching to see if this error repeats in next promotion

tags: added: alert promotion-blocker
Changed in tripleo:
milestone: none → stein-rc1
importance: Undecided → Critical
status: New → Triaged
Revision history for this message
Ronelle Landy (rlandy) wrote :
Revision history for this message
wes hayutin (weshayutin) wrote :
Revision history for this message
wes hayutin (weshayutin) wrote :
Changed in tripleo:
assignee: nobody → Quique Llorente (quiquell)
Revision history for this message
Quique Llorente (quiquell) wrote :

Let's try to reproduce this

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
Quique Llorente (quiquell) wrote :

Reproducer is able to run the image prepare

Maybe this is caused by https://review.opendev.org/#/c/652066/

Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :

Looks like revert works, but we have to discover why is not needed upstream.

Revision history for this message
Quique Llorente (quiquell) wrote :

After holding nodes with and without the revert, looks like f28 rdo dib has the python3-setuptools RPM installed but the content deleted

[zuul@upstream-fedora-28-rdo-cloud-tripleo-0001921565 ~]$ ls -la /usr/lib/python3.6/site-packages/pkg_resources/
ls: cannot access '/usr/lib/python3.6/site-packages/pkg_resources/': No such file or directory

while the one with pytho3-setuptool reinstalled have it right
[zuul@standalone ~]$ ls -la /usr/lib/python3.6/site-packages/pkg_resources/
total 148
drwxr-xr-x. 5 root root 4096 Apr 23 11:02 .
drwxr-xr-x. 387 root root 20480 Apr 23 11:30 ..
-rw-r--r--. 1 root root 106677 Mar 1 12:06 __init__.py
drwxr-xr-x. 2 root root 4096 Apr 23 11:02 __pycache__
drwxr-xr-x. 4 root root 4096 Apr 23 11:02 _vendor
drwxr-xr-x. 3 root root 4096 Apr 23 11:02 extern
-rw-r--r--. 1 root root 558 Mar 1 12:06 py31compat.py

Changed in tripleo:
milestone: stein-rc1 → train-1
Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :

Could be that RDO nodepool dib is using old version of dib and does not do the following
https://github.com/openstack/diskimage-builder/commit/ea1735b6a259c5424d2a0ca52eca371bf9213ac9

Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :

So 2.18.0 is on 4 Nov 2018 and does not have the fix this is the issue.

Revision history for this message
Quique Llorente (quiquell) wrote :
Revision history for this message
Quique Llorente (quiquell) wrote :

Looks like also image are now wrongly build as fedora-29

fix: https://softwarefactory-project.io/r/#/c/15430/

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