Bug 1569420

Summary: Failed to execute Ansible host-deploy role
Product: [oVirt] ovirt-engine Reporter: Petr Balogh <pbalogh>
Component: Host-DeployAssignee: Sahina Bose <sabose>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: 4.2.3CC: amarchuk, bugs, lsvaty, sabose
Target Milestone: ovirt-4.2.3Keywords: AutomationBlocker
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
sabose: devel_ack+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-10 06:27:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Balogh 2018-04-19 09:19:10 UTC
Description of problem:
When deploying new host in cluster with enabled Gluster we are failing with error:
2018-04-19 01:50:21,725 p=10890 u=ovirt |  TASK [hc-gluster-cgroups : Set CPU quota] **************************************
2018-04-19 01:50:21,741 p=10890 u=ovirt |  [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using 
`result|abs` instead use `result is abs`. This feature will be removed in 
version 2.9. Deprecation warnings can be disabled by setting 
deprecation_warnings=False in ansible.cfg.
2018-04-19 01:50:21,756 p=10890 u=ovirt |  An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'int' object has no attribute 'startswith'
2018-04-19 01:50:21,756 p=10890 u=ovirt |  fatal: [host.xx.xx.com]: FAILED! => {}



Version-Release number of selected component (if applicable):
rhv-4.2.3-2
Host: RHVH-4.2-20180404.0

How reproducible:


Steps to Reproduce:
1. Install engine
2. Create cluster with Enable Gluster Service
3. Add host

Actual results:
Failing in deployment with mentioned error


Expected results:
Deployed host.

Additional info:

Comment 3 Sahina Bose 2018-04-19 10:01:24 UTC
This seems to be an issue with the abs filter in ansible 2.5 tracked at https://github.com/ansible/ansible/issues/37856 and fixed in 2.5.1 as per the github issue.

To unblock removing abs as the int check should suffice.

Comment 4 Sandro Bonazzola 2018-04-19 10:10:06 UTC
Please note ansible 2.5.1 has been released.
It's in testing for EPEL: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-ad971a0926

Comment 5 SATHEESARAN 2018-05-09 14:11:43 UTC
Tested with RHV 4.2.3-6 with the following steps:

1. Created a new RHV 4.2 cluster
2. Added a RHVH node to cluster
3. Added one more node to the cluster

All the nodes added the cluster become operational

Comment 6 Sandro Bonazzola 2018-05-10 06:27:05 UTC
This bugzilla is included in oVirt 4.2.3 release, published on May 4th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.3 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.