Bug 501074
Summary: | kickstart creation create url --url with full url including host | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Justin Sherrill <jsherril> |
Component: | Provisioning | Assignee: | Justin Sherrill <jsherril> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Steve Salevan <ssalevan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 530 | CC: | bperkins, cperry, jsefler |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | sat530 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-09-10 19:25:53 UTC | Type: | --- |
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: | 457075 |
Description
Justin Sherrill
2009-05-15 19:56:30 UTC
In fact here's a nice piece of code: StringBuilder buf = new StringBuilder(); if (host != null && host.length() > 0) { buf.append("http://").append(host); } if (!defaultLocation.startsWith("/")) { buf.append("/"); } so make a string with 'http://hostname' and if it doesn't start with '/' (which it never will), then append '/'. How does that make any sense.... In summary, unless we fix this, provisioning through proxy won't work properly if the client can't communicate with the satellite as well.. df5eb48 VERIFIED on 6/12 build of both Satellite and Proxy. Test Plan (for clarification purposes): 1. Create a kickstart profile on an RHN Satellite >= 530 2. Activate an RHN Proxy against this Satellite 3. Register a machine to this Proxy 4. Kickstart this machine (registered through the proxy) with the profile you created earlier (on the Satellite) 5. Before the machine reboots, kill the reboot process with a 'shutdown -c' 6. View the URL for the kickstart file supplied for this kickstart in /etc/grub.conf or /etc/lilo.conf (it should be in the ks=<url> kernel parameter) 7. Verify that the kickstart file contains a 'url --url' directive that reflects the FQDN of the Proxy and NOT of the Satellite 8. If this is true, then reboot the box and verify that the kickstart succeeds Re-verified in staged (Satellite-5.3.0-RHEL5-re20090724.0) Followed the steps in comment #6 The sat was: http://sun-x4200-01.rhts.bos.redhat.com The proxy was: http://fjs-0-20.rhndev.redhat.com Notice that /etc/grub.conf and /root/cobbler.ks reference the proxy and not the sat. moving to RELEASE_PENDING THE GRUB FILE # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 serial --unit=0 --speed=38400 terminal --timeout=5 serial console title kick1250186477 root (hd0,0) kernel /vmlinuz ro root=/dev/VolGroup00/LogVol00 acpi=noirq console=ttyS0,38400n8 acpi=noirq ks=http://fjs-0-20.rhndev.redhat.com/cblr/svc/op/ks/system/rlx-3-24:3 ksdevice=link kssendmac lang= text initrd /initrd.img title Red Hat Enterprise Linux Server (2.6.18-128.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-128.el5 com1=38400n8 acpi=noirq module /vmlinuz-2.6.18-128.el5xen ro root=/dev/VolGroup00/LogVol00 acpi=noirq console=ttyS0,38400n8 acpi=noirq module /initrd-2.6.18-128.el5xen.img THE KICKSTART FILE # Kickstart config file generated by RHN Satellite Config Management # Profile Label : ks_to_RHEL5 # Date Created : 2009-08-13 13:57:03.0 install text network --bootproto dhcp url --url http://fjs-0-20.rhndev.redhat.com/ty/PYFuP7mY lang en_US keyboard us <cut off> An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html |