[Bug 1891481] Re: python-magnumclient ftbfs in focal
Robie Basak
1891481 at bugs.launchpad.net
Wed Mar 30 10:25:15 UTC 2022
Since this bug was to fix an FTBFS, it's sufficient to verify that
2.11.0-0ubuntu5 did build successfully. However block-proposed-focal
still seems appropriate.
** Tags removed: removal-candidate verification-needed verification-needed-focal
** Tags added: verification-done verification-done-focal
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-magnumclient in Ubuntu.
https://bugs.launchpad.net/bugs/1891481
Title:
python-magnumclient ftbfs in focal
Status in python-magnumclient package in Ubuntu:
Fix Released
Status in python-magnumclient source package in Focal:
Fix Committed
Bug description:
[Impact]
[Test Case]
seen in a focal test rebuild:
https://launchpad.net/ubuntu/+archive/test-rebuild-20200810-focal/+build/19799777
==============================
Failed 7 tests - output below:
==============================
magnumclient.tests.test_shell.ShellTest.test_insecure
-----------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pbr/version.py", line 442, in _get_version_from_pkg_resources
provider = pkg_resources.get_provider(requirement)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 358, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 901, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-magnumclient'
distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
return func(*args, **keywargs)
File "/<<PKGBUILDDIR>>/magnumclient/tests/test_shell.py", line 229, in test_insecure
self.shell('--insecure bay-list')
File "/<<PKGBUILDDIR>>/magnumclient/tests/utils.py", line 162, in shell
_shell.main(argstr.split())
File "/<<PKGBUILDDIR>>/magnumclient/shell.py", line 463, in main
parser = self.get_base_parser()
File "/<<PKGBUILDDIR>>/magnumclient/shell.py", line 123, in get_base_parser
version=version.version_info.version_string())
File "/usr/lib/python3/dist-packages/pbr/version.py", line 467, in version_string
return self.semantic_version().brief_string()
File "/usr/lib/python3/dist-packages/pbr/version.py", line 462, in semantic_version
self._semantic = self._get_version_from_pkg_resources()
File "/usr/lib/python3/dist-packages/pbr/version.py", line 449, in _get_version_from_pkg_resources
result_string = packaging.get_version(self.package)
File "/usr/lib/python3/dist-packages/pbr/packaging.py", line 870, 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 python-
magnumclient was given, but was not able to be found.
[Regression Potential]
Changes are required to debian/control and debian/rules to drop py2 support. To help mitigate any regression potential, I've visual inspected builds to compare files included in .deb files. The files match up exactly between the last known-good build ( https://launchpadlibrarian.net/472650057/buildlog_ubuntu-focal-amd64.python-magnumclient_2.11.0-0ubuntu4_BUILDING.txt.gz ) and the new package version that I'm uploading right now.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-magnumclient/+bug/1891481/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list