Description of problem: After upgrading Satellite 5.0.1 to 5.1, kickstart that used to work alright on 5.0.1 does not work on 5.1 -- the initrd.* and vmlinuz.* files downloaded to /boot/rhn-kickstart/ks-rhel-i386-server-5/ have about 4kB, containing HTML pages. Version-Release number of selected component (if applicable): Satellite 5.1.0-26, upgraded from 5.0.1. How reproducible: Seen two instances. Steps to Reproduce: 1. Have Satellite 5.0.1. 2. Create kickstart profile there, verify that you can kickstart system using that profile. 3. Upgrade the Satellite to 5.1.0. 4. Try to kickstart using the very same kickstart profile. Actual results: Error 13: Invalid or unsupported executable format By booting back to the original system, we can explore /boot/rhn-kickstart and files that were downloaded there are not the ones we'd expect to see there. Also -- looking into httpd's access_log, there are records like 10.34.34.139 - - [29/Nov/2007:16:29:26 +0100] "GET /rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/vmlinuz HTTP/1.0" 302 - "-" "Python-urllib/1.16" 10.34.34.139 - - [29/Nov/2007:16:29:26 +0100] "GET /rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/initrd.img HTTP/1.0" 302 - "-" "Python-urllib/1.16" there. Expected results: No error, system kickstarted. Additional info:
Well, that 302 points to https and here's that 404 from ssl_access_log: 10.34.34.139 - - [29/Nov/2007:16:29:26 +0100] "GET /rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/vmlinuz HTTP/1.1" 404 4021 10.34.34.139 - - [29/Nov/2007:16:29:26 +0100] "GET /rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/initrd.img HTTP/1.1" 404 4030
The difference between kickstart created in 5.0 (and accessed in 5.1) and created after that upgrade to 5.1 is the url parameter: # Kickstart config file generated by RHN Config Management # # Profile Name : rhel-5 # Profile Label : rhel-5 # Date Created : 2007-11-29 10:29:58.0 # install text network --bootproto dhcp url --url http://xen61.englab.brq.redhat.com/rhn/kickstart/ks-rhel-i386-server-5 lang en_US langsupport --default en_US en_US keyboard us mouse none --- # Kickstart config file generated by RHN Config Management # # Profile Name : rhel-5-new # Profile Label : rhel-5-new # Date Created : 2007-11-29 17:07:50.0 # install text network --bootproto dhcp url --url http://xen61.englab.brq.redhat.com/ty/hGSJeWIz lang en_US langsupport --default en_US en_US keyboard us mouse none
The difference between those two is in the table rhnKickstartCommand: select * from rhnKickstartCommand where KS_COMMAND_NAME_ID = 13 ; ID,KICKSTART_ID,KS_COMMAND_NAME_ID,ARGUMENTS,CREATED,MODIFIED '4','1','13','--url http://xen61.englab.brq.redhat.com/rhn/kickstart/ks-rhel-i386-server-5','29-NOV-07','29-NOV-07' '47','2','13','--url /rhn/kickstart/ks-rhel-i386-server-5','29-NOV-07','29-NOV-07' [2 rows of 6 fields returned] So if the url is spelled out fully, as all url created by 5.0 (and earlier) seem to be, it does not start with a slash, and does not get rewritten ...
Brought back some of the old logic prior to the fix that caused this to hopefully cover us in the situation where a profile was created prior to upgrade. Sending code/src/com/redhat/rhn/manager/kickstart/KickstartFormatter.java Transmitting file data . Committed revision 134389.
seems fixed in -32. I installed a 5.0 satellite, registered and kickstarted a machine, then upgraded to 5.1, kickstarted the same machine and it worked perfectly.
Have to reopen this, the logic we added in commend #4 was removed. URLs should now be corrected on upgrade. Logic removed in revision 136875.
Release Pending.
Proxy 5.1.0 GA so Closed for Current Release.