Bug 2052686

Summary: [RFE] Upgrade to ansible-core-2.12 in hosted-engine-setup
Product: Red Hat Enterprise Virtualization Manager Reporter: Martin Perina <mperina>
Component: ovirt-hosted-engine-setupAssignee: Asaf Rachmani <arachman>
Status: CLOSED ERRATA QA Contact: Nikolai Sednev <nsednev>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.10CC: arachman, emarcus, lsurette, nsednev, sbonazzo
Target Milestone: ovirt-4.5.0Keywords: FutureFeature, Triaged, ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 17:22:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2069658    
Bug Blocks: 2065052    

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