Bug 1502747

Summary: Deployment of SHE fails with "[ ERROR ] Failed to execute stage 'Clean up': [Errno 2] No such file or directory:"
Product: [oVirt] ovirt-engine Reporter: Nikolai Sednev <nsednev>
Component: BLL.HostedEngineAssignee: Doron Fediuck <dfediuck>
Status: CLOSED CURRENTRELEASE QA Contact: meital avital <mavital>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: bugs, stirabos
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-16 15:25:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1149579, 1304650, 1489463, 1536055    

Description Nikolai Sednev 2017-10-16 15:13:15 UTC
Description of problem:
Deployment of SHE fails with "[ ERROR ] Failed to execute stage 'Clean up': [Errno 2] No such file or directory:"

In vdsm log I see this:
2017-10-16 17:47:36,099+0300 ERROR (periodic/2) [root] failed to retrieve Hosted Engine HA score '[Errno 2] No such fi
le or directory'Is the Hosted Engine setup finished? (api:193)


Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.2.0-0.0.master.20171009203744.gitd01cc03.el7.centos.noarch
ovirt-hosted-engine-ha-2.2.0-0.0.master.20171013115034.20171013115031.gitc8edb37.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1.Deploy SHE on any kind of storage.
2.
3.

Actual results:
Deployment fails.

Expected results:
Deployment should succeed.

Additional info:
screencast attached and logs from alma03.

Comment 1 Nikolai Sednev 2017-10-16 15:15:18 UTC
Here you can find all logs and screencast from deployment:
https://drive.google.com/open?id=0B85BEaDBcF88NU16QjdPZWVtOU0

Comment 2 Simone Tiraboschi 2017-10-16 15:25:15 UTC
This issue was due to the firewalld playbook in ovirt-ansible on the engine-appliance that was removing iptables-service rpm and so ovirt-host rpm due to dpendencies and so ovirt-hosted-engine-setup as well in the middle of the deployment.
It has been fixed with:
https://github.com/oVirt/ovirt-ansible/pull/97

And 
http://jenkins.ovirt.org/job/ovirt-appliance_master_build-artifacts-el7-x86_64/581/
already publish an ovirt-engine-appliance rpm with that fix.

Comment 3 Nikolai Sednev 2017-10-16 16:17:12 UTC
With ovirt-engine-appliance-4.2-20171016.1.el7.centos.noarch, everything working as expected.