Escalated to Bugzilla from IssueTracker
Description of problem: Kicktarts are generated 'on request' by the RHN Satellite. A new feature of RHN Satellite 5.1 is a 'Log custom post scripts' where you can log custom post scripts. When this feature is enabled, an entry is added to the post section of the kickstart to redirect logs to /root/ks-post.log . The problem is intermittant approximately every second time the kickstart is accessed an extra line is placed in the kickstart file, causing a syntax error for the anaconda installer. How reproducible: 50% Steps to Reproduce: Install RHN Satellite 5.1. Populate the usual channels as required Create a kickstart with the feature Log custom post scripts: check box CHECKED. kickstart a system using the new kickstart. About every second attempt anaconda will error out at the post script stage. An easy way to observe the problem and it's cause is to visit the download link : https://dhcp-1-83.bne.redhat.com/kickstart/ks/org/1xa2622a09a74b2e07ff4dc0ffabe01138/view_label/ws1ws11 Actual results: At the end of the kickstart file , about 50% of the time you will see the following: %post --interpreter /bin/bash ( /bin/ls > /tmp/ls.out ) >> /root/ks-post.log 2>&1 ) >> /root/ks-post.log 2>&1 Notice the replicated line at the end. This is a script syntax error for anaconda installer. Expected results: End of the kickstart file should have a single line added for the script logging every time the kickstart file is accessd and generated by the RHN Satellite: %post --interpreter /bin/bash ( /bin/ls > /tmp/ls.out ) >> /root/ks-post.log 2>&1 Additional info: satellite-debug for the RHN Satellite in question is attached This event sent from IssueTracker by mpoole [SEG - RHN] issue 179369
I did 100 fetches of the kickstart mentioned. There was a duplicate redirect line in almost 25% of them.
weird, seems to have to do with a %post being a nochroot script....
fixed in rev 172368 for trunk and rev 172369.
After wgetting 10 ks cfg files repeatedly for both chroot and nonchroot logged post scripts I cannot reproduce the issue, so it looks like we're fixed here. Moving to VERIFIED.
5.1.1 Satellite is now GA, bugs Closed for Current Release.