Bug 468236

Summary: Remove Attempted yum / yum-rhn-plugin / pirut Upgrade In Kickstart Post Scripts
Product: [Community] Spacewalk Reporter: Devan Goodwin <dgoodwin>
Component: ServerAssignee: Jan Pazdziora <jpazdziora>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 0.2CC: jesusr, jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-05 11:57:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 490771, 723481    

Description Devan Goodwin 2008-10-23 17:31:23 UTC
Description of problem:

Spacewalk renders kickstart files with a %post script which attempts to upgrade some core components. If the kickstart is found to be RHEL 5 (also CentOS 5) the script attempts an upgrade of yum-rhn-plugin, yum, and pirut by fetching the latest version of the package available with wget and attempting an rpm -F. (freshen)

In the case of RHEL 5.0 kickstarts, this attempts to grab the latest RHEL 5.2 versions of these packages which are now coming with different dependencies. Not only will we need to continue adding new dependencies as RHEL progresses, but now yum required new packages completely as dependencies which will not be installed when attempting an rpm freshen. We could change this to an upgrade/install, but we're already counting on *not* installing packages that weren't installed before. (i.e. pirut)

In short, this is an unsustainable approach, we cannot do yum's job, without yum, in a kickstart post script.

NOTE: This issue has limited relevance to Spacewalk, just creating this ticket to track the removal of these lines which attempt to upgrade yum.


How reproducible:

Very

Steps to Reproduce:
1. Create a RHEL 5 or CentOS 5 kickstart profile.
2. View kickstart file contents in the UI.
  
Actual results:

Note the wget of yum-rhn-plugin, yum, pirut, etc.

Expected results:

We should not attempt to manually upgrade packages in kickstart post.

Comment 1 Jan Pazdziora 2010-11-19 16:03:31 UTC
Mass-moving to space13.

Comment 2 Miroslav Suchý 2011-04-11 07:32:14 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 3 Miroslav Suchý 2011-04-11 07:36:42 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 4 Jan Pazdziora 2011-07-20 11:50:02 UTC
Aligning under space16.

Comment 5 Jan Pazdziora 2011-08-05 11:57:33 UTC
We haven't seen progress with this requestion, nor a proposed patch. I gather the current behaviour does not cause big troubles after all.

Closing, please reopen if there is a patch available addressing this issue.