Bug 2066623 - Drop dependency on python-dateutil
Summary: Drop dependency on python-dateutil
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: General
Version: 2.6.1
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.5.0
: ---
Assignee: Yedidyah Bar David
QA Contact: Sandro Bonazzola
URL:
Whiteboard:
Depends On:
Blocks: 2065052
TreeView+ depends on / blocked
 
Reported: 2022-03-22 08:01 UTC by Asaf Rachmani
Modified: 2022-04-20 06:32 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-03-28 10:00:40 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.5+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-45376 0 None None None 2022-03-22 08:20:17 UTC

Description Asaf Rachmani 2022-03-22 08:01:56 UTC
ansible-core-2.12 requires all libraries used in Ansible modules/roles/playbooks to be built with Python 3.8, so we need to build and distribute python38-dateutil in RHV channels, because it's a dependency for ovirt-hosted-engine-setup, where we use ansible callbacks executed within ansible-core-2.12

Comment 1 Yedidyah Bar David 2022-03-28 10:00:40 UTC
AFAIU the only user of dateutil was ovirt-hosted-engine-setup. With [1], it does not use it anymore. Closing.

[1] https://github.com/oVirt/ovirt-hosted-engine-setup/commit/00cf2690739e98772bf3c827e33ec0313baf5888

Comment 2 Yedidyah Bar David 2022-03-28 11:53:21 UTC
Mind you, this isn't purely a CodeChange. It does have the slight (IMO) disadvantage that the timezone offset is calculated only once, at ansible-playbook run start. So if you start it slightly before an offset change (e.g. from daylight saving time to standard time or vice verse), the log file will be wrong since the offset change onwards - will show the same offset instead of the updated one. But I think it's worth it.

Comment 3 Yedidyah Bar David 2022-03-28 11:58:50 UTC
("it", in "start it", isn't the full deployment, but a specific playbook. 'hosted-engine --deploy' has its own log file, which should be correct (it requires and uses python36-dateutil), and runs several invocations of ansible-playbook).

Comment 4 Sandro Bonazzola 2022-04-20 06:32:24 UTC
This bugzilla is included in oVirt 4.5.0 release, published on April 20th 2022.

Since the problem described in this bug report should be resolved in oVirt 4.5.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.