cli update: jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated
Qubes OS release
4.2
Brief summary
cli update gives a deprecation warning
Steps to reproduce
sudo qubesctl --show-output --skip-dom0 --targets="fedora-39-xfce" state.sls update.qubes-vm
Expected behavior
no warning
Actual behavior
/usr/lib/python3.12/site-packages/salt/utils/jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). return datetime.datetime.utcnow()
https://github.com/saltstack/salt/issues/65604
(which already has a relevant PR: https://github.com/saltstack/salt/pull/66042)
I got the same issue in Qubes 4.1 trying to use qubes-dist-upgrade. Getting the error in phase 1 trying to update a fedora-39-minimal template.
I got the same issue in Qubes 4.1 trying to use qubes-dist-upgrade. Getting the error in phase 1 trying to update a fedora-39-minimal template.
I was able to go around by installing the qubes-mgmt-salt-vm-connector. Probably the python package that are required for it fixed the issues.