tripleo-ci-centos-9-content-provider failing with build error

Bug #2000897 reported by Rabi Mishra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Unassigned

Bug Description

Impacts all branches, noticed for tripleo-ansible patches. But possibly impacts all repos.

Noticed at:

https://a8c73bf87deb4cbd6808-2de800c51e9ddb963f260573366c025b.ssl.cf2.rackcdn.com/869032/2/check/tripleo-ci-centos-9-content-provider/ad34e47/logs/undercloud/home/zuul/DLRN/data/repos/component/tripleo/df/16/df161e5cbe5da6492c62f727e16edbedcb9602a3_dev/rpmbuild.log

INFO: Running in chroot: ['cd /var/tmp/pkgsrc && (([ -x /usr/bin/python3 ] && python3 setup.py sdist) || python setup.py sdist)']
Start: chroot ['cd /var/tmp/pkgsrc && (([ -x /usr/bin/python3 ] && python3 setup.py sdist) || python setup.py sdist)']
DEBUG: child environment: None
DEBUG: Executing command: ['cd /var/tmp/pkgsrc && (([ -x /usr/bin/python3 ] && python3 setup.py sdist) || python setup.py sdist)'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell True
ERROR:root:Error parsing
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pbr/core.py", line 111, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
  File "/usr/lib/python3.9/site-packages/pbr/util.py", line 272, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/usr/lib/python3.9/site-packages/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/usr/lib/python3.9/site-packages/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/usr/lib/python3.9/site-packages/pbr/hooks/metadata.py", line 25, in hook
    self.config['version'] = packaging.get_version(
  File "/usr/lib/python3.9/site-packages/pbr/packaging.py", line 872, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name tripleo-ansible was given, but was not able to be found.
error in setup command: Error parsing /var/tmp/pkgsrc/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name tripleo-ansible was given, but was not able to be f

Maybe similar to earlier upstream issue https://bugs.launchpad.net/devstack/+bug/1968798

Revision history for this message
Marios Andreou (marios-b) wrote :

didn't hit the gate yet but we have a few hits already in check https://zuul.opendev.org/t/openstack/builds?job_name=tripleo-ci-centos-9-content-provider so we expect this to become a gate blocker#

once we see it in the gate and confirm we should add the tags for the cix board

Revision history for this message
Rabi Mishra (rabi) wrote :

++ /usr/bin/mock -q -r /home/zuul/DLRN/data/dlrn-1.cfg --chroot 'cd /var/tmp/pkgsrc && git log --abbrev=7 -n1 --format=format:%h'
+ setversionandrelease fatal: detected dubious ownership in repository at ''\''/var/tmp/pkgsrc'\''' To add an exception for this directory, call: git config --global --add safe.directory /var/tmp/pkgsrc
+ UPSTREAMVERSION=fatal:
+ [[ fatal: =~ ([^-]*)-(.+) ]]
+ [[ fatal: =~ (.*?)\.(0rc.+) ]]
+ [[ fatal: =~ (.*?)\.(0b.+) ]]
+ [[ fatal: =~ (.*?)\.(0a.+) ]]
+ [[ fatal: =~ (.*?)\.(dev.+) ]]
+ [[ fatal: =~ (.*?)\.(g.+) ]]
+ [[ fatal: =~ (.*?)\.pre.* ]]
+ [[ fatal: =~ ^([.0-9]*)$ ]]
+ echo 'WARNING: Couldn'\''t parse VERSION, falling back to 0.0.1'
WARNING: Couldn't parse VERSION, falling back to 0.0.1
+ VERSION=0.0.1

Revision history for this message
Rabi Mishra (rabi) wrote :

Looks like it's fixed in https://github.com/softwarefactory-project/DLRN/commit/ef0a8cab7d9e8e9a0bb64f48eb840c488178c67b. We probably need a DLRN release and bump it in RDO(?).

Revision history for this message
Rabi Mishra (rabi) wrote :

Looks like We're using master https://opendev.org/openstack/tripleo-ci/src/branch/master/scripts/tripleo.sh#L388, so the fix should be there.

Revision history for this message
Rabi Mishra (rabi) wrote :

Ignore the last comment.

Since https://bugs.launchpad.net/tripleo/+bug/1713130 we seem to pip install dlrn. So we need a release[1] with above mentioned fix.

[1] https://pypi.org/project/DLRN/#history

tags: added: ci promotion-blocker
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-quickstart (master)

Related fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/tripleo-quickstart/+/869079

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-quickstart (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-quickstart/+/869079
Committed: https://opendev.org/openstack/tripleo-quickstart/commit/e4d55b0490c9d7691e72150fcd30d5f2e9b68071
Submitter: "Zuul (22348)"
Branch: master

commit e4d55b0490c9d7691e72150fcd30d5f2e9b68071
Author: Amol Kahat <email address hidden>
Date: Tue Jan 3 17:58:40 2023 +0530

    Install dlrn from source in built-test-packages role

    DLRN installation from the pip leading to
    failure[1]. Instead of installing it using
    pip trying to install it using source.

    [1] https://bugs.launchpad.net/tripleo/+bug/2000897/

    Related-Bug: lp#2000897

    Signed-off-by: Amol Kahat <email address hidden>
    Change-Id: I7b8a255755ce66af6ecde854f7612f0da376208a

Changed in tripleo:
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.