Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1495854

Summary: Engine requires 'ovirt-host' package and failing to add ovirt-node-4.2
Product: [oVirt] ovirt-node Reporter: Michael Burman <mburman>
Component: GeneralAssignee: Ryan Barry <rbarry>
Status: CLOSED CURRENTRELEASE QA Contact: dguo
Severity: urgent Docs Contact:
Priority: unspecified    
Version: masterCC: bugs, cshao, dguo, didi, huzhao, jiawu, qiyuan, rbarry, sbonazzo, weiwang, yaniwang, ycui, yzhao
Target Milestone: ovirt-4.2.0Keywords: Regression
Target Release: 4.2Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
cshao: testing_plan_complete?
rbarry: devel_ack+
cshao: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-release-host-node-4.2.0-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:11:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1460609    
Attachments:
Description Flags
deploy log
none
all logs including engine.log vdsm.log and host_deploy.log none

Description Michael Burman 2017-09-26 12:35:01 UTC
Created attachment 1331044 [details]
deploy log

Description of problem:
Engine requires 'ovirt-host' package and failing to add ovirt-node-4.2.

Latest master now requires 'ovirt-host' package when trying to add ovirt-node-4.2 to the engine and failing installation.

Version-Release number of selected component (if applicable):
4.2.0-0.0.master.20170925172449.git9d850a9.el7.centos
ovirt-node-ng-4.2.0-0.20170918.0+1
vdsm-4.20.3-55.git5d02f64.el7.centos.x86_64
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch

How reproducible:
%

Steps to Reproduce:
1. Try to add ovirt-node-4.2 to master engine

Actual results:
Add host failed

Expected results:
Should work

Additional info:
Also see - BZ 1490274

Comment 1 Yedidyah Bar David 2017-09-26 12:42:06 UTC
Node should include/require ovirt-host.

Comment 2 Yedidyah Bar David 2017-09-26 12:43:10 UTC
Seems like the correct place to fix is actually ovirt-release, in ovirt-release-host-node.

Comment 3 dguo 2017-09-27 12:54:16 UTC
I tested on ovirt-node-ng-4.2.0-0.20170924.0+1 for twice, but could not reproduce since "ovirt-host" indeed exists on this build.

[root@dhcp-8-109 ~]# imgbase w
You are on ovirt-node-ng-4.2.0-0.20170924.0+1

[root@dhcp-8-109 ~]# rpm -qa|grep ovirt-host
ovirt-hosted-engine-ha-2.2.0-0.0.master.20170914130805.20170914130802.git82df275.el7.centos.noarch
ovirt-host-4.2.0-0.0.master.20170913090858.git0bfa7ab.el7.centos.noarch
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch
ovirt-hosted-engine-setup-2.2.0-0.0.master.20170919052946.git896e399.el7.centos.noarch
ovirt-host-dependencies-4.2.0-0.0.master.20170913090858.git0bfa7ab.el7.centos.noarch

[root@dhcp-8-109 ~]# rpm -qR ovirt-hosted-engine-setup-2.2.0-0.0.master.20170919052946.git896e399.el7.centos.noarch|grep ovirt-host
ovirt-host >= 4.2.0
ovirt-host-deploy >= 1.7.0
ovirt-hosted-engine-ha >= 2.2.0

Comment 4 dguo 2017-09-28 11:59:08 UTC
I am also trying to reproduce this issue on build ovirt-node-ng-4.2.0-0.20170915.0+1, find that the "ovirt-host" exists on rhvh originally, but be removed strangely while adding host to engine.   

Test version:
engine version: 4.2.0-0.0.master.20170925172449.git9d850a9.el7.centos
vdsm-4.20.3-27.git4fb1e37.el7.centos.x86_64
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch
ovirt-node-ng-4.2.0-0.20170915.0+1

Here is the test step:
1. Fresh install rhvh via ovirt-node-ng-installer-master-2017091509.iso
2. After first reboot, check "ovirt-host" package
3. Add host to engine, check "ovirt-host" package on rhvh during "installing phase"
4. Check if adding sucess

Actual results:
After step#2:
[root@dell-per515-01 ~]# imgbase w
You are on ovirt-node-ng-4.2.0-0.20170915.0+1
[root@dell-per515-01 ~]# date
Thu Sep 28 11:24:55 CST 2017
[root@dell-per515-01 ~]# rpm -qa|grep ovirt-host
ovirt-host-dependencies-4.2.0-0.0.master.20170913090858.git0bfa7ab.el7.centos.noarch
ovirt-hosted-engine-ha-2.2.0-0.0.master.20170911110029.20170911110026.git158d6fa.el7.centos.noarch
ovirt-host-4.2.0-0.0.master.20170913090858.git0bfa7ab.el7.centos.noarch
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch
ovirt-hosted-engine-setup-2.2.0-0.0.master.20170913082146.git120d800.el7.centos.noarch

As you can see above, the "ovirt-host" package does exist.

After step #3:
[root@dell-per515-01 ~]# rpm -qa|grep ovirt-host
ovirt-host-dependencies-4.2.0-0.0.master.20170913090858.git0bfa7ab.el7.centos.noarch
ovirt-hosted-engine-ha-2.2.0-0.0.master.20170911110029.20170911110026.git158d6fa.el7.centos.noarch
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch
[root@dell-per515-01 ~]# date
Thu Sep 28 19:30:35 CST 2017
[root@dell-per515-01 ~]# imgbase w
You are on ovirt-node-ng-4.2.0-0.20170915.0+1

But here, there is no "ovirt-host" package during adding host to engine

Finally, adding host failed

Additional info:
1. Remove the host from dc, and re-add to engine, then will reproduce the issue in description.

Comment 5 dguo 2017-09-28 12:02:15 UTC
Created attachment 1331937 [details]
all logs including engine.log vdsm.log and host_deploy.log

Comment 6 dguo 2017-10-31 02:50:39 UTC
Add latest ovirt-node-ng-4.2.0-0.20171030 to engine successfully, can not reproduce the issue and put it to verified.

Test versions:
ovirt-node-ng-4.2.0-0.20171030.0+1
ovirt-engine: 4.2.0-0.0.master.20171030210714.gitef6bb9c.el7.centos


Test step:
1. Install node via iso and configure network successfully
2. Check node if include ovirt-host package
3. Add node to engine

Actural results:
1. After step#2
[root@bootp-73-75-18 ~]# rpm -qa|grep ovirt-host
ovirt-host-dependencies-4.2.0-0.0.master.20170928133754.git2e62abb.el7.centos.noarch
ovirt-host-deploy-1.7.0-0.0.master.20170912090102.git1eeb5a2.el7.centos.noarch
ovirt-hosted-engine-ha-2.2.0-0.0.master.20171026143552.20171026143550.gitcbe3c76.el7.centos.noarch
ovirt-host-4.2.0-0.0.master.20170928133754.git2e62abb.el7.centos.noarch
ovirt-hosted-engine-setup-2.2.0-0.0.master.20171016160008.git55723e8.el7.centos.noarch
2.After step#3
The node was added to engine successfully

Comment 7 Sandro Bonazzola 2017-12-20 11:11:05 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.