Bug 1489016

Summary: installation of 3.6 host into 3.6 compatibility cluster fails
Product: [oVirt] ovirt-host-deploy Reporter: Radim Hrazdil <rhrazdil>
Component: GeneralAssignee: Ondra Machacek <omachace>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.7.0CC: bugs, didi, mperina, oourfali, rhrazdil, sradco, ykaul, ylavi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-07 10:07:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1460954    
Bug Blocks:    

Description Radim Hrazdil 2017-09-06 15:19:55 UTC
Description of problem:
When installing 3.6 host into 3.6 comp. cluster on 4.2 engine, the installation fails on Ansible host-deploy role: 
TASK [ovirt-host-deploy-firewalld : Check if VDSM version is supported for FirewallD] ***
fatal: [xx.xx.xx.xx]: FAILED! => {"changed": false, "failed": true, "msg": "VDSM version 4.17.32 is not supported for FirewallD."}


Version-Release number of selected component (if applicable):
engine: Version 4.2.0-0.0.master.20170903205106.gitb17261a.el7.centos
host: http://resources.ovirt.org/pub/yum-repo/ovirt-release36.rpm
      Cent OS 7

How reproducible:
100%

Steps to Reproduce:
1. On 4.2 engine create 3.6 datacenter and 3.6 cluster.
2. try to install host with 3.6 packages (link above) into the 3.6 cluster
3. 

Actual results:
Host testhost installation fails with message: "Failed to execute Ansible host-deploy role."

Expected results:
Host should install successfully

Additional info:

Comment 1 Sandro Bonazzola 2017-09-07 05:46:21 UTC
(In reply to Radim Hrazdil from comment #0)
> Description of problem:
> When installing 3.6 host into 3.6 comp. cluster on 4.2 engine, the
> installation fails on Ansible host-deploy role: 
> TASK [ovirt-host-deploy-firewalld : Check if VDSM version is supported for
> FirewallD] ***
> fatal: [xx.xx.xx.xx]: FAILED! => {"changed": false, "failed": true, "msg":
> "VDSM version 4.17.32 is not supported for FirewallD."}

Martin, this seems to be a ovirt-engine bug, trying to enable firewalld stuff on non-4.2 clusters.

Comment 2 Martin Perina 2017-09-07 07:02:52 UTC
1. It's not possible to set firewall type to firewalld for 3.6 cluster (I've just check this in webadmin).

2. For cluster levels 4.0 - 4.2 you can set firewall type to firewalld, but if your host is not 4.2 (checked by VDSM version), then of course installation fails with above error message

So here are questions:

1. How exactly were you able to to create 3.6 cluster with firewalld type?
2. Could you please attach complete engine logs?

Comment 3 Radim Hrazdil 2017-09-07 09:33:19 UTC
I accidentaly added the host into 4.2 cluster instead of 3.6. Just tried it again with fresh host and it works ok. Please close.