Public bug reported:
There is a patch added in the ubuntu package to deal with
datetime.datetime.utcnow() deprecation. It solves this by pulling in
oslo.utils, which might normally seem to make sense in an openstack
packaging context.
However - there are two issues.
The first is simple - it adds usage of oslo.utils without adding it as a
packaging dependency. This makes the library not work when installed
without manual installation of an additional unrelated and unexpected
package. The simple fix to this would be to add an appropriate package
dependency.
The second is philosophical - the keystoneauth project is fundamentally
opposed to the use of runtime dependencies on oslo libraries. The oslo
libraries are designed for server applications, while keystoneauth is
intended for lightweight client interations, as it openstacksdk which
depends on it. It is directly against the stated design goals of the
project to add the oslo.utils import.
As such, it is highly recommended that rather than updating the
packaging to add a dependency on oslo.utils, simply replace
datetime.datetime.utcnow() with
datetime.datetime.now(datetime.datetime.utc) which adds no further
dependencies.
I have only noticed this in noble - where this missing package actually
caused an unrelated CI job failure. I don't know if it manifests
elsewhere.
** Affects: python-keystoneauth1 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2088384
Title:
Incorrect use of oslo.utils added
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-keystoneauth1/+bug/2088384/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs