Description of problem: Registration process when kickstarting a box is falling due a code error in redhat_register snippet Version-Release number of selected component (if applicable): Spacewalk 1.8 nightly How reproducible: 100% Steps to Reproduce: 1. Create an activation key 2. Associate with a kickstart profile 3. Kickstart the box Actual results: Registration will fail if [ -f /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release ] rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release fi Expected results: Registration occurs normally Additional info:
Executing the script manually after kickstart the box bash -x /tmp/ks-script-hIABqo {..SNIP..} + perl -npe s/RHNS-CA-CERT/RHN-ORG-TRUSTED-SSL-CERT/g -i /etc/sysconfig/rhn/allowed-actions /etc/sysconfig/rhn/clientCaps.d /etc/sysconfig/rhn/osad-auth.conf /etc/sysconfig/rhn/osad.conf /etc/sysconfig/rhn/rhnsd /etc/sysconfig/rhn/up2date Can't do inplace edit: /etc/sysconfig/rhn/allowed-actions is not a regular file. Can't do inplace edit: /etc/sysconfig/rhn/clientCaps.d is not a regular file. ks-script-hIABqo: line 272: syntax error near unexpected token `fi' ks-script-hIABqo: line 272: `fi'
Created attachment 580352 [details] Patch proposed Patch already submitted to approval on spacewalk-devel mailing list. Best, mmello
Mail thread --> https://www.redhat.com/archives/spacewalk-devel/2012-April/msg00081.html
Committed to Spacewalk master, 1e417be3c38abb1f9d5768b5124079a44402e2f1.
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18