Bug 1073720

Summary: OVIRT35 - [RFE] Add --update option to edit-node
Product: [Retired] oVirt Reporter: haiyang,dong <hadong>
Component: ovirt-nodeAssignee: Fabian Deutsch <fdeutsch>
Status: CLOSED CURRENTRELEASE QA Contact: bugs <bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cshao, gklein, gouyang, hadong, huiwa, iheim, jboggs, leiwang, mgoldboi, ovirt-bugs, ovirt-maint, rbalakri, ycui, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1073724 (view as bug list) Environment:
Last Closed: 2014-10-17 12:42:32 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: 1073724    

Description haiyang,dong 2014-03-07 02:56:45 UTC
Description of problem:
Better to add --update option to edit-node to support update packages
by using edit-node tools

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 haiyang,dong 2014-04-15 06:18:59 UTC
Two patches to achieve add --update option to edit-node:
http://gerrit.ovirt.org/#/c/26778/
http://gerrit.ovirt.org/#/c/25470/

Comment 2 haiyang,dong 2014-04-15 06:24:39 UTC
Using the edit-node tools that depends on  two patches of Comment 1 to test follow:
[root@hp-z600-04 iso]# ./edit-node --repo=edit-node.repo --update=ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch.rpm rhevh-6.5-20140312.0.iso

rhevh-6.5-20140312.0.iso
Warning: the state of SELinux is disabled
Updating packages: ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch.rpm
Setting Up DNS For Chroot
Configuring Yum Repo
Running Yum Install
['ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch.rpm']
Setting up Local Package Process
Examining /tmp/yumrepo/ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch.rpm: ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch
Marking /tmp/yumrepo/ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch.rpm as an update to ovirt-node-plugin-cim-3.0.1-18.el6_5.7.noarch
Resolving Dependencies
--> Running transaction check
---> Package ovirt-node-plugin-cim.noarch 0:3.0.1-18.el6_5.7 will be updated
---> Package ovirt-node-plugin-cim.noarch 0:3.0.1-18.el6_5.8 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package
   Arch   Version          Repository                                      Size
================================================================================
Updating:
 ovirt-node-plugin-cim
   noarch 3.0.1-18.el6_5.8 /ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch  23 k

Transaction Summary
================================================================================
Upgrade       1 Package(s)
....
useradd: user 'cim' already exists
  Cleanup    : ovirt-node-plugin-cim-3.0.1-18.el6_5.7.noarch                2/2 
  Verifying  : ovirt-node-plugin-cim-3.0.1-18.el6_5.8.noarch                1/2 
  Verifying  : ovirt-node-plugin-cim-3.0.1-18.el6_5.7.noarch                2/2 

Updated:
  ovirt-node-plugin-cim.noarch 0:3.0.1-18.el6_5.8                               

Complete!

done
...
Setting supported flag to 0
Moving 'rhevh-6.5-20140312.0.iso.edited.iso' to 'rhevh-6.5-20140312.0.iso.edited.iso'

so this bug has been fixed by these two patches of Comment 1

Comment 3 Sandro Bonazzola 2014-10-17 12:42:32 UTC
oVirt 3.5 has been released and should include the fix for this issue.