Bug 1668179

Summary: [downstream clone - 4.2.8] Ensure ansible 2.8 compatibility
Product: Red Hat Enterprise Virtualization Manager Reporter: RHV bug bot <rhv-bugzilla-bot>
Component: ovirt-hosted-engine-setupAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED NOTABUG QA Contact: Nikolai Sednev <nsednev>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.2.8CC: apinnick, jcoscia, lsurette, mgoldboi, mperina, nsednev, sbonazzo, stirabos
Target Milestone: ovirt-4.2.8-3Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1667511 Environment:
Last Closed: 2019-02-21 13:14:17 UTC Type: ---
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: 1667511    
Bug Blocks:    
Attachments:
Description Flags
sosreport from alma04 none

Description RHV bug bot 2019-01-22 06:47:17 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1667511 +++
======================================================================

Description of problem:
With ansible 2.8 (May 2019?) ovirt modules will be available only with singular form naming.
Ensure that we are not using the old names anymore to avoid breaking on that.

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.2.33

How reproducible:
100%

Steps to Reproduce:
1. deploy hosted-engine on a 4.2.z host with ansible 2.8
2.
3.

Actual results:
It fails on ovirt_hosts

Expected results:
It successfully deploys HE

Additional info:

(Originally by Simone Tiraboschi)

Comment 1 Simone Tiraboschi 2019-01-28 12:15:00 UTC
Devel upstrem nightly build of ansible 2.8 are available here:
https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-x86_64/

Comment 3 Nikolai Sednev 2019-02-06 09:00:35 UTC
I see these downstream components on host with latest 4.2.8:
ovirt-hosted-engine-ha-2.2.19-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.34-1.el7ev.noarch
ansible-2.7.6-1.el7ae.noarch

Comment 4 Nikolai Sednev 2019-02-06 09:13:33 UTC
Moving back to assigned as I have nothing to test here.

Comment 5 Sandro Bonazzola 2019-02-11 12:10:56 UTC
Please give this a run using https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-x86_64/ for getting ansible-2.8

Comment 6 Nikolai Sednev 2019-02-11 14:17:30 UTC
(In reply to Sandro Bonazzola from comment #5)
> Please give this a run using
> https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-x86_64/ for
> getting ansible-2.8

Manually installed on downstream host from https://releases.ansible.com/ansible/rpm/nightly/devel/epel-7-x86_64/ansible-2.8.0-1.201902102330git.7b84c0ee80.el7.ans.noarch.rpm ,then deployed HE using answerfile, over NFS. 

Tested on these components:
ovirt-hosted-engine-ha-2.3.1-1.el7ev.noarch
ovirt-hosted-engine-setup-2.3.3-1.el7ev.noarch
ansible-2.8.0-1.201902102330git.7b84c0ee80.el7.ans.noarch
ovirt-ansible-repositories-1.1.4-2.el7ev.noarch
ovirt-ansible-engine-setup-1.1.7-1.el7ev.noarch
ovirt-ansible-hosted-engine-setup-1.0.8-1.el7ev.noarch
Red Hat Enterprise Linux Server release 7.6 (Maipo)
Linux 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

Got plenty of multiple and continuously repeating same deprecation errors as described within the attachment.
[ ERROR ] [DEPRECATION WARNING]: evaluating he_setup_iscsi_getdevices as a bare variable,     
[ ERROR ]  this behaviour will go away and you might need to add |bool to the expression        
[ ERROR ] in the future. Also see CONDITIONAL_BARE_VARS configuration toggle.. This      
[ ERROR ] feature will be removed in version 2.12. Deprecation warnings can be disabled        
[ ERROR ] by setting deprecation_warnings=False in ansible.cfg.

See https://bugzilla.redhat.com/show_bug.cgi?id=1674477 for more details.

Deployment got stuck for a very long time on step: "[ INFO  ] TASK [oVirt.hosted-engine-setup : debug]", then I interrupted deployment.
Moving back to assigned.

Comment 7 Nikolai Sednev 2019-02-11 14:18:21 UTC
Created attachment 1529024 [details]
sosreport from alma04

Comment 9 Sandro Bonazzola 2019-02-21 13:14:17 UTC
Latest build is working already with ansible 2.8, we kept this open because of some deprecation warning but we decided to not silence them in 4.2.