[Bug 2088451] Re: [SRU] datetime fix introduces runtime dependency on oslo.utils

Launchpad Bug Tracker 2088451 at bugs.launchpad.net
Thu Jan 23 17:47:35 UTC 2025


This bug was fixed in the package python-keystoneauth1 -
5.6.0-0ubuntu1.1

---------------
python-keystoneauth1 (5.6.0-0ubuntu1.1) noble; urgency=medium

  * d/gbp.conf: Create stable/2024.1 branch.
  * d/gbp.conf, .launchpad.yaml: Sync from cloud-archive-tools for
    caracal.
  * d/p/datetime-deprecations.patch: Refresh to use upstream accepted
    patch which avoids a runtime dependency on python3-oslo.utils
    (LP: #2088451).

 -- James Page <james.page at ubuntu.com>  Mon, 18 Nov 2024 15:40:06 +0000

** Changed in: python-keystoneauth1 (Ubuntu Noble)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-keystoneauth1 in Ubuntu.
https://bugs.launchpad.net/bugs/2088451

Title:
  [SRU] datetime fix introduces runtime dependency on oslo.utils

Status in python-keystoneauth1 package in Ubuntu:
  Invalid
Status in python-keystoneauth1 source package in Noble:
  Fix Released

Bug description:
  [Impact]
  keystoneauth1 is no usable without installing python3-oslo.utils

  [Test Case]
  sudo apt install python3-keystoneauth1

  python3 -c "import keystoneauth1._utils"
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/lib/python3/dist-packages/keystoneauth1/_utils.py", line 18, in <module>
      from oslo_utils import timeutils
  ModuleNotFoundError: No module named 'oslo_utils'

  [ Where problems could occur ]
  The revised patch directly uses the datetime API rather than using the oslo.utils provided helper.  Code is well covered as part of unit testing.  Issues might occur in reverse dependencies - this will be detected in autopkgtests.

  [Original Bug Report]
  Fix for Python 3.12 datetime changes introduced runtime dependency on python3-oslo.utils which is not expressed as a dependency.

  In addition, the upstream project explicitly does not depend on the
  oslo.* packages as these are intended for service usage rather than
  for CLI/SDK tools which is the intended audience for this package.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-keystoneauth1/+bug/2088451/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list