Bug 2052686 - [RFE] Upgrade to ansible-core-2.12 in hosted-engine-setup
Summary: [RFE] Upgrade to ansible-core-2.12 in hosted-engine-setup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.4.10
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Asaf Rachmani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
: 2065196 (view as bug list)
Depends On: 2069658
Blocks: 2065052
TreeView+ depends on / blocked
 
Reported: 2022-02-09 19:06 UTC by Martin Perina
Modified: 2022-05-26 17:23 UTC (History)
5 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.6.3-1
Doc Type: Release Note
Doc Text:
Red Hat Virtualization 4.4 SP1 now requires ansible-core >= 2.12.0 to execute Ansible playbooks/roles internally from RHV components.
Clone Of:
Environment:
Last Closed: 2022-05-26 17:22:47 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-hosted-engine-setup pull 21 0 None Merged ansible: Fix deprecation warning added in 2.11 2022-03-20 07:40:00 UTC
Github oVirt ovirt-hosted-engine-setup pull 23 0 None Merged spec: Require ansible-core 2022-03-28 15:11:36 UTC
Github oVirt ovirt-hosted-engine-setup pull 33 0 None Merged Move shared ansible constants 2022-03-28 15:11:02 UTC
Github oVirt ovirt-hosted-engine-setup pull 41 0 None Merged packaging: Package src/ansible/constants.py 2022-03-28 15:11:02 UTC
Red Hat Issue Tracker RHV-44672 0 None None None 2022-02-09 19:14:17 UTC
Red Hat Product Errata RHSA-2022:4764 0 None None None 2022-05-26 17:23:02 UTC

Description Martin Perina 2022-02-09 19:06:42 UTC
ansible-core-2.12 is the latest ansible version, which is available in RHEL 8.6 AppStream. It's not backward compatible with ansible-2.9, but with some code changes we should be able to make it working and dropping the requirement for ancient ansible 2.9 version

Comment 1 Sandro Bonazzola 2022-02-24 14:25:08 UTC

*** This bug has been marked as a duplicate of bug 2022620 ***

Comment 2 Asaf Rachmani 2022-03-20 07:39:14 UTC
The duplicate bug (bug 2022620) is for adjusting the HE role in ovirt-ansible-collection to work with ansible-core.
Moving this bug to "ASSIGNED", for adjusting the code in ovirt-hosted-engine-setup and removing the ansible 2.9 requirements.

Comment 3 Nikolai Sednev 2022-03-28 14:45:11 UTC
At the moment latest ansible-core-2.12.2-3.1.el8.x86_64 installed with ovirt-hosted-engine-setup-2.6.2-1.el8ev.noarch (ovirt 4.5), on RHEL 8.6 Beta (Ootpa) Linux 4.18.0-372.3.1.el8.x86_64 and with ovirt-ansible-collection-2.0.0-0.6.BETA.el8ev.noarch.
Is this enough for the verification on RHEL8.6?
serval15 ~]# rpm -qa | grep ansible
ovirt-ansible-collection-2.0.0-0.6.BETA.el8ev.noarch
ansible-core-2.12.2-3.1.el8.x86_64
ansible-macros-2021.1.2-2.1.el8ev.noarch

Comment 4 Asaf Rachmani 2022-03-28 15:06:21 UTC
(In reply to Nikolai Sednev from comment #3)
> At the moment latest ansible-core-2.12.2-3.1.el8.x86_64 installed with
> ovirt-hosted-engine-setup-2.6.2-1.el8ev.noarch (ovirt 4.5), on RHEL 8.6 Beta
> (Ootpa) Linux 4.18.0-372.3.1.el8.x86_64 and with
> ovirt-ansible-collection-2.0.0-0.6.BETA.el8ev.noarch.
> Is this enough for the verification on RHEL8.6?
> serval15 ~]# rpm -qa | grep ansible
> ovirt-ansible-collection-2.0.0-0.6.BETA.el8ev.noarch
> ansible-core-2.12.2-3.1.el8.x86_64
> ansible-macros-2021.1.2-2.1.el8ev.noarch

Yes

Comment 5 Asaf Rachmani 2022-03-28 15:09:53 UTC
We also need to check that HE deployment succeeds using "hosted-engine --deploy"

Comment 6 Asaf Rachmani 2022-03-30 12:16:36 UTC
*** Bug 2065196 has been marked as a duplicate of this bug. ***

Comment 9 Nikolai Sednev 2022-04-04 15:46:58 UTC
Works fine on:
ovirt-hosted-engine-setup-2.6.3-1.el8ev.noarch
ovirt-hosted-engine-ha-2.5.0-1.el8ev.noarch
ovirt-ansible-collection-2.0.0-0.9.BETA.el8ev.noarch
Red Hat Enterprise Linux release 8.6 Beta (Ootpa)
Linux 4.18.0-372.5.1.el8.x86_64 #1 SMP Mon Mar 28 11:03:39 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
Engine Software Version:4.5.0.1-605.90f87fe14688.14.el8ev
Successfully deployed over NFS storage.

Comment 10 Martin Perina 2022-04-04 16:58:22 UTC
(In reply to Nikolai Sednev from comment #9)
> Works fine on:
> ovirt-hosted-engine-setup-2.6.3-1.el8ev.noarch
> ovirt-hosted-engine-ha-2.5.0-1.el8ev.noarch
> ovirt-ansible-collection-2.0.0-0.9.BETA.el8ev.noarch
> Red Hat Enterprise Linux release 8.6 Beta (Ootpa)
> Linux 4.18.0-372.5.1.el8.x86_64 #1 SMP Mon Mar 28 11:03:39 EDT 2022 x86_64
> x86_64 x86_64 GNU/Linux
> Engine Software Version:4.5.0.1-605.90f87fe14688.14.el8ev
> Successfully deployed over NFS storage.

Could you please check if this was really verified on a setup with ansible-core-2.12 installed (and not ansible-2.9.z)? Because only today we have merged the full support of ansible-core-2.12 for engine and released final version of ovirt-ansible-collection-2.0.0, which you will get end of this with compose based on oVirt 4.5.0 beta.

Comment 11 Nikolai Sednev 2022-04-04 17:40:55 UTC
ansible-core-2.12.2-3.1.el8.x86_64

Comment 12 Martin Perina 2022-04-04 17:58:16 UTC
(In reply to Nikolai Sednev from comment #11)
> ansible-core-2.12.2-3.1.el8.x86_64

Thanks!

Comment 19 errata-xmlrpc 2022-05-26 17:22:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Low: RHV RHEL Host (ovirt-host) [ovirt-4.5.0] security update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2022:4764


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