Bug 1548806

Summary: HE deploy failed while target VM stage
Product: [oVirt] ovirt-engine Reporter: Polina <pagranat>
Component: BLL.HostedEngineAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED DUPLICATE QA Contact: Polina <pagranat>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.1CC: bugs
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: 2018-02-26 14:17:03 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:
Attachments:
Description Flags
he_logs_deploy.tar none

Description Polina 2018-02-25 08:59:31 UTC
Description of problem:
Hosted HE deploy fails while target VM stage. On this stage it is possible to connect to HE VM by ssh and also to WebAdmin

Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-2.2.5-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.10-1.el7ev.noarch

How reproducible: 100 %

Steps to Reproduce:
1.Run hosted-engine --deploy on AMD host.
2. 
3.

Actual results: after the storage is successfully added, it fails while target VM 


Expected results: no failures while deploy


Additional info: logs attached

Comment 1 Polina 2018-02-25 09:02:59 UTC
Created attachment 1400537 [details]
he_logs_deploy.tar

Comment 2 Polina 2018-02-25 11:57:16 UTC
[ INFO  ] TASK [Wait for the engine to come up on the target VM]
[ ERROR ] fatal: [localhost]: FAILED! => {"msg": "The conditional check 'health_result.rc == 0 and health_result.stdout|from_json|json_query('*.\"engine-status\".\"health\"')|first==\"good\"' failed. The error was: error while evaluating conditional (health_result.rc == 0 and health_result.stdout|from_json|json_query('*.\"engine-status\".\"health\"')|first==\"good\"): No first item, sequence was empty."}
[ ERROR ] Failed to execute stage 'Closing up': Failed executing ansible-playbook
[ INFO  ] Stage: Clean up
[ INFO  ] Cleaning temporary resources
[ INFO  ] TASK [Gathering Facts]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [include_tasks]
[ INFO  ] ok: [localhost]
[ INFO  ] TASK [Remove local vm dir]
[ INFO  ] changed: [localhost]
[ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20180223160244.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination
[ ERROR ] Hosted Engine deployment failed: please check the logs for the issue, fix accordingly or re-deploy from scratch.
          Log file is located at /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20180223152436-ehekte.log

Comment 3 Yaniv Kaul 2018-02-26 05:45:17 UTC
Does it fail only on AMD? Specific AMD? In any case, looks like a dup of the issue where hosted-engine status returns a non JSON response.

Comment 4 Polina 2018-02-26 13:51:51 UTC
(In reply to Yaniv Kaul from comment #3)
> Does it fail only on AMD? Specific AMD? In any case, looks like a dup of the
> issue where hosted-engine status returns a non JSON response.

I' don't think that it is related to AMD. Just mentioned what is the host architecture where the deploy was performed.Since I'm not sure if it is related or not.

Comment 5 Simone Tiraboschi 2018-02-26 14:17:03 UTC
(In reply to Polina from comment #4)
> I' don't think that it is related to AMD

OK, so I'm closing this as duplicate of 1548508

*** This bug has been marked as a duplicate of bug 1548508 ***