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

James Page 2088451 at bugs.launchpad.net
Fri Dec 20 10:31:12 UTC 2024


# sudo apt install python3-keystoneauth1

[...]
Get:13 http://archive.ubuntu.com/ubuntu noble/main amd64 python3-keystoneauth1 all 5.6.0-0ubuntu1 [164 #

# 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'

# sudo apt install python3-keystoneauth1/noble-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '5.6.0-0ubuntu1.1' (Ubuntu:24.04/noble-proposed [all]) for 'python3-keystoneauth1'
Suggested packages:
  python-keystoneauth1-doc python3-requests-kerberos
The following packages will be upgraded:
  python3-keystoneauth1
1 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Need to get 165 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 python3-keystoneauth1 all 5.6.0-0ubuntu1.1 [165 kB]
Fetched 165 kB in 1s (293 kB/s)              
(Reading database ... 37940 files and directories currently installed.)
Preparing to unpack .../python3-keystoneauth1_5.6.0-0ubuntu1.1_all.deb ...
Unpacking python3-keystoneauth1 (5.6.0-0ubuntu1.1) over (5.6.0-0ubuntu1) ...
Setting up python3-keystoneauth1 (5.6.0-0ubuntu1.1) ...
Scanning processes...                                                                                                       

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root at workable-opossum:~# python3 -c "import keystoneauth1._utils"

return code 0.


** Tags removed: verification-needed verification-needed-noble
** Tags added: verification-done verification-done-noble

-- 
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 Committed

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