[Bug 1891481] Re: python-magnumclient ftbfs in focal

Corey Bryant 1891481 at bugs.launchpad.net
Mon Aug 2 19:48:00 UTC 2021


** Description changed:

+ [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):
+     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/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 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 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)
+       File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 787, in resolve
+     raise DistributionNotFound(req, requirers)
  
-     pkg_resources.DistributionNotFound: The 'python-magnumclient'
+     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):
  
-     Traceback (most recent call last):
+       File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
+     return func(*args, **keywargs)
  
-       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/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/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 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 "/<<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 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 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/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"
  
-       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
+     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]
+ As the fix is removing py2 support a visual inspection of build files created will be done to ensure the same files are included in the new build as the last known good build.

-- 
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:
  Triaged

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]
  As the fix is removing py2 support a visual inspection of build files created will be done to ensure the same files are included in the new build as the last known good build.

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