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

James Page 2088451 at bugs.launchpad.net
Mon Nov 18 11:31:40 UTC 2024


Public bug reported:

[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.

[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.

** Affects: python-keystoneauth1 (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: python-keystoneauth1 (Ubuntu Noble)
     Importance: Medium
         Status: Triaged

** Also affects: python-keystoneauth1 (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: python-keystoneauth1 (Ubuntu)
       Status: New => Invalid

** Changed in: python-keystoneauth1 (Ubuntu Noble)
       Status: New => Triaged

** Changed in: python-keystoneauth1 (Ubuntu Noble)
   Importance: Undecided => Medium

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

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.

  [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