Bug 1540621

Summary: Hosted-engine with ansible is marked as failed although all the tasks were successful
Product: [oVirt] cockpit-ovirt Reporter: Simone Tiraboschi <stirabos>
Component: Hosted EngineAssignee: Phillip Bailey <phbailey>
Status: CLOSED CURRENTRELEASE QA Contact: Yihui Zhao <yzhao>
Severity: urgent Docs Contact:
Priority: high    
Version: 0.11.6CC: bugs, cshao, huzhao, jiaczhan, phbailey, qiyuan, stirabos, weiwang, yaniwang, ycui, ylavi, yzhao
Target Milestone: ovirt-4.2.2Flags: rule-engine: ovirt-4.2+
ykaul: blocker+
sbonazzo: devel_ack+
yzhao: testing_ack+
Target Release: 0.11.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cockpit-ovirt-0.11.12-0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 11:12:48 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:
Bug Depends On: 1539560, 1556866    
Bug Blocks:    
Attachments:
Description Flags
Screenshot of the issue
none
Failure with console none

Description Simone Tiraboschi 2018-01-31 14:36:18 UTC
Description of problem:
Hosted-engine with ansible is marked as failed although all the tasks were successful .

See the screenshot.

Version-Release number of selected component (if applicable):
0.11.6

How reproducible:
?

Steps to Reproduce:
1. Deploy hosted-engine from cockpit with ansible
2.
3.

Actual results:
It says deployment failed although all the tasks of the bootstrap phase were OK

Expected results:
If all the tasks of the bootstrap phase are OK it goes to the next section

Additional info:

Comment 1 Simone Tiraboschi 2018-01-31 14:36:43 UTC
Created attachment 1389006 [details]
Screenshot of the issue

Comment 2 Phillip Bailey 2018-01-31 14:52:13 UTC
The "Oops" in the screenshot indicates there was an error thrown. Could you please provide the output from the developer's console?

Comment 3 Simone Tiraboschi 2018-01-31 15:57:16 UTC
Created attachment 1389071 [details]
Failure with console

Comment 4 Simone Tiraboschi 2018-02-21 18:37:43 UTC
Can we move it to MODIFIED?

Comment 5 Phillip Bailey 2018-02-22 14:59:52 UTC
(In reply to Simone Tiraboschi from comment #4)
> Can we move it to MODIFIED?

It's already been done, but yes. =)

Comment 6 Yihui Zhao 2018-03-05 06:12:38 UTC
QE can reproduce the bug.

Test steps:
1. Deploy hosted-engine from cockpit with ansible

Test versions:
cockpit-ovirt-dashboard-0.11.6-0.1.el7ev.noarch
rhvm-appliance-4.1.20180125.0-1.el7.4.1

Test result:
Deploy HE failed with ansible although all the tasks of the bootstrap phase were OK.

Comment 7 Phillip Bailey 2018-03-12 19:39:20 UTC
(In reply to Yihui Zhao from comment #6)
> QE can reproduce the bug.
Yihui,

A patch was merged today that should fix this problem. Once the next build is available, please test this again and make sure it's resolved for you, as well.

Thanks!

Comment 8 Yihui Zhao 2018-03-26 07:39:42 UTC
Tested with these versions:

rhvh-4.2.2.0-0.20180322.0+1
cockpit-ovirt-dashboard-0.11.19-1.el7ev.noarch
ovirt-hosted-engine-setup-2.2.14-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.7-1.el7ev.noarch
rhvm-appliance-4.2-20180322.0.el7.noarch

Test result:
when all tasks are successful, the deployment is also successful.

[root@ibm-x3650m5-06 ~]# hosted-engine --vm-status


--== Host 1 status ==--

conf_on_shared_storage             : True
Status up-to-date                  : True
Hostname                           : ibm-x3650m5-06.lab.eng.pek2.redhat.com
Host ID                            : 1
Engine status                      : {"health": "good", "vm": "up", "detail": "Up"}
Score                              : 3400
stopped                            : False
Local maintenance                  : False
crc32                              : a8dcd9f1
local_conf_timestamp               : 156195
Host timestamp                     : 156195
Extra metadata (valid at timestamp):
	metadata_parse_version=1
	metadata_feature_version=1
	timestamp=156195 (Mon Mar 26 15:39:04 2018)
	host-id=1
	score=3400
	vm_conf_refresh_time=156195 (Mon Mar 26 15:39:05 2018)
	conf_on_shared_storage=True
	maintenance=False
	state=EngineUp
	stopped=False


So, change this bug's status to verified.

Comment 9 Sandro Bonazzola 2018-03-29 11:12:48 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

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