python-magnumclient ftbfs in focal

Bug #1891481 reported by Matthias Klose
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-magnumclient (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Committed
High
Unassigned

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.

Matthias Klose (doko)
Changed in python-magnumclient (Ubuntu):
status: New → Confirmed
importance: Undecided → High
tags: added: ftbfs rls-ff-incoming
Changed in python-magnumclient (Ubuntu Focal):
status: New → Triaged
importance: Undecided → High
Changed in python-magnumclient (Ubuntu):
status: Confirmed → Fix Released
importance: High → Undecided
description: updated
description: updated
Revision history for this message
Corey Bryant (corey.bryant) wrote :

A new version of python-magnumclient has been uploaded to the focal unapproved queue:
https://launchpad.net/ubuntu/focal/+queue?queue_state=1&queue_text=python-magnumclient

Revision history for this message
Robie Basak (racb) wrote :

Thank you for working on this! Accepting into Focal. This is valuable as if a further change is needed, including any security fixes, then they won't be held up by the FTBFS. However this is probably a good candidate to hold, staged, in focal-proposed, rather than shipping to users an update that will make no difference to them. So I'm tagging block-proposed-focal accordingly. If you disagree, please explain and remove the tag.

tags: added: block-proposed-focal
Changed in python-magnumclient (Ubuntu Focal):
status: Triaged → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Matthias, or anyone else affected,

Accepted python-magnumclient into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python-magnumclient/2.11.0-0ubuntu5 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Mathew Hodson (mhodson)
Changed in python-magnumclient (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote : [python-magnumclient/focal] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for focal for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Robie Basak (racb) wrote :

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: added: verification-done verification-done-focal
removed: removal-candidate verification-needed verification-needed-focal
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Matthias, or anyone else affected,

Accepted python-magnumclient into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/python-magnumclient/2.11.0-0ubuntu6 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
removed: verification-done verification-done-focal
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers