Bug 404631 - After upgrading 5.0 to 5.1, kickstarting system gets HTML Not found page instead of vmlinux and initrd
Summary: After upgrading 5.0 to 5.1, kickstarting system gets HTML Not found page inst...
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades   
(Show other bugs)
Version: 510
Hardware: All Linux
Target Milestone: ---
Assignee: Devan Goodwin
QA Contact: Preethi Thomas
Keywords: Reopened
Depends On:
Blocks: 248635 362521
TreeView+ depends on / blocked
Reported: 2007-11-29 15:44 UTC by Jan Pazdziora
Modified: 2008-04-02 20:32 UTC (History)
0 users

Fixed In Version: sat510
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-04-02 20:32:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Jan Pazdziora 2007-11-29 15:44:23 UTC
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 - - [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" - - [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"


Expected results:

No error, system kickstarted.

Additional info:

Comment 1 Jan Pazdziora 2007-11-29 15:49:49 UTC
Well, that 302 points to https and here's that 404 from ssl_access_log: - - [29/Nov/2007:16:29:26 +0100] "GET
/rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/vmlinuz HTTP/1.1" 404 4021 - - [29/Nov/2007:16:29:26 +0100] "GET
/rhn/kickstart/ks-rhel-i386-server-5/images/pxeboot/initrd.img HTTP/1.1" 404 4030

Comment 2 Jan Pazdziora 2007-11-29 16:09:43 UTC
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

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

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

Comment 3 Jan Pazdziora 2007-12-03 10:32:40 UTC
The difference between those two is in the table rhnKickstartCommand:

select * from rhnKickstartCommand where KS_COMMAND_NAME_ID = 13 ;
'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 ...

Comment 4 Devan Goodwin 2007-12-03 19:49:20 UTC
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.

Comment 5 Justin Sherrill 2008-01-04 16:43:25 UTC
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.

Comment 6 Devan Goodwin 2008-02-13 14:57:50 UTC
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.

Comment 8 Brandon Perkins 2008-03-25 02:02:00 UTC
Release Pending.

Comment 9 Brandon Perkins 2008-04-02 20:32:13 UTC
Proxy 5.1.0 GA so Closed for Current Release.

Note You need to log in before you can comment on or make changes to this bug.