Bug 1044547

Summary: reprovisioning RHEL7 system results in system without rhn-clients installed and errors in /root/ks-rhn-post.log
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: ServerAssignee: Stephen Herr <sherr>
Status: CLOSED ERRATA QA Contact: Jiří Mikulka <jmikulka>
Severity: medium Docs Contact:
Priority: medium    
Version: 560CC: cperry, jmikulka, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.0.2-56 Doc Type: Bug Fix
Doc Text:
Cause: In RHEL 7 the packages contained in the @Core package group are different from what was in @Core in RHEL 6. Consequence: Some packages, specifically wget, perl, and the rhn client tools, are not installed by default when doing a kickstart. Later parts of the kickstart require these packages to be installed, and were failing. Fix: We added the necessary packages to the list of packages that we explicitly require for RHEL 7 kickstarts. Result: Now the kickstart can proceed normally with all of the package dependencies met.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-20 09:23:12 UTC Type: Bug
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: 924189    

Description Jan Hutař 2013-12-18 14:27:33 UTC
Description of problem:
When you reprovision RHEL7 system, you get system without rhn-clients installed and errors in /root/ks-rhn-post.log


Version-Release number of selected component (if applicable):
cobbler-2.0.7-39.el6sat.noarch
spacewalk-java-2.0.2-46.el6sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Create KS profile with wizard, without any other touches
2. Register RHEL7 system and reprovision it


Actual results:
System without rhn-clients installed and errors in /root/ks-rhn-post.log


Expected results:
E.g. rhn_check should work on the system. No errors should be in /root/ks-rhn-post.log


Additional info:
Errors in the /root/ks-rhn-post.log file are:

/tmp/ks-script-tsy_Ns: line 102: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT: No such file or directory
/tmp/ks-script-tsy_Ns: line 103: perl: command not found
/tmp/ks-script-tsy_Ns: line 107: wget: command not found
error: File not found by glob: /tmp/rhn_rpms/optional/pyOpenSSL*
error: File not found by glob: /tmp/rhn_rpms/optional/rhnlib*
error: File not found by glob: /tmp/rhn_rpms/optional/libxml2-python*
error: File not found by glob: /tmp/rhn_rpms/optional/libxml2*
/tmp/ks-script-tsy_Ns: line 109: perl: command not found
cp: cannot stat '/tmp/ks-tree-copy/*': No such file or directory
/tmp/ks-script-tsy_Ns: line 122: wget: command not found
/tmp/ks-script-tsy_Ns: line 123: perl: command not found
/tmp/ks-script-tsy_Ns: line 135: rhnreg_ks: command not found
/tmp/ks-script-tsy_Ns: line 141: rhn_check: command not found

Comment 1 Jan Hutař 2013-12-18 14:37:21 UTC
One symptom of this bug might be this (if not, I have to create extra bug-report):

When reprovisioning RHEL7 system and following provisioning status on Systems -> <system> -> Provisioning -> Kickstart -> Session Status, "Kickstart complete" is never marked as done even when system was already reinstalled.

Comment 2 Stephen Herr 2013-12-18 15:13:48 UTC
Ah, this is because the rpms installed by default have changed in RHEL 7. I'll have to add perl, wget, and the rhn client tools to the list of packages we tell it to install for RHEL 7 kickstarts. And yes, this problem would also cause the "Kickstart complete" symptom.

Comment 3 Stephen Herr 2013-12-18 21:00:41 UTC
Committed to Spacewalk master:
02b94a12c35b7b63de4cc62326a6263d6251a950

Comment 5 Stephen Herr 2014-01-03 14:50:39 UTC
And:
8834581f30ade1e96838907e7b51e1ea14c6a2d0

Comment 10 errata-xmlrpc 2014-01-20 09:23:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-0042.html