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

James Page 2088451 at bugs.launchpad.net
Mon Nov 18 11:38:08 UTC 2024


** Description changed:

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

** Description changed:

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

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