Bug 1330841

Summary: The package "ovirt-node-ng-image-update-*" is not correct after upgrade
Product: [oVirt] ovirt-node Reporter: Huijuan Zhao <huzhao>
Component: Installation & UpdateAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED DUPLICATE QA Contact: Huijuan Zhao <huzhao>
Severity: high Docs Contact:
Priority: high    
Version: 4.0CC: bugs, cshao, fkong, huiwa, leiwang, weiwang, yaniwang, ycui
Target Milestone: ovirt-4.0.0-betaFlags: fdeutsch: ovirt-4.0.0?
rule-engine: planning_ack?
fdeutsch: devel_ack+
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-17 11:54:40 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:
Bug Depends On:    
Bug Blocks: 1140646    
Attachments:
Description Flags
The log of upgrade none

Description Huijuan Zhao 2016-04-27 06:32:50 UTC
Created attachment 1151202 [details]
The log of upgrade

Description of problem:
The package "ovirt-node-ng-image-update-*" is not correct after upgrade, this will cause repeat upgrade to the same build.


Version-Release number of selected component (if applicable):
ovirt-node-ng-image-update-placeholder-007-1.el7.noarch
imgbased-0.6-0.201604150305git1e3b28f.el7.centos.noarch
ovirt-release36-007-1.noarch
ovirt-release-host-node-007-1.el7.noarch

The update version:
ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch.rpm

How reproducible:
100%

Steps to Reproduce:
1. Anaconda install NGN 4.0.
2. Download ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch.rpm
3. yum install ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch.rpm
4. Check 2 packages:
   [root@dhcp-10-125 ~]# rpm -qa | grep ovirt-node
   ovirt-node-ng-image-update-placeholder-007-1.el7.noarch
   ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch
   [root@dhcp-10-125 ~]# rpm -qa | grep imgbased
   imgbased-0.6-0.201604150305git1e3b28f.el7.centos.noarch
5. Reboot rhev-h
6. Check 2 packages
   [root@dhcp-10-125 ~]# rpm -qa | grep ovirt-node
   ovirt-node-ng-image-update-placeholder-3.6.5-0.0.master.20160425075818.gite23be77.el7.noarch
   [root@dhcp-10-125 ~]# rpm -qa | grep imgbased
   imgbased-0.6-0.201604241653git1e3b28f.el7.centos.noarch
7. yum install ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch.rpm  

Actual results:
1. After step6, the package is "ovirt-node-ng-image-update-placeholder-3.6.5-0.0.master.20160425075818.gite23be77.el7.noarch".
2. After step7, it upgrades again.

Expected results:
1. After step6, the package should be "ovirt-node-ng-image-update-3.6.5-1.20160426.0.el7.noarch".
2. After step7, can not upgrade as now is the latest build. There should be warning message: "Error: Nothing to do"

Additional info:
1. After step7, reboot rhev-h again, the results is the same as "Expected results".

Comment 1 Fabian Deutsch 2016-04-27 07:23:39 UTC
Yes, we still need to tweak the versioning of the involved packages.

Comment 2 Fabian Deutsch 2016-05-17 11:54:40 UTC

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