Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 872951

Summary: kickstart over tftp broken by default
Product: [Community] Spacewalk Reporter: Jean-Francois Theroux <failshell>
Component: InstallationAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.8CC: jpazdziora, npiace
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-17 13:52:49 UTC Type: Bug
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: 1484117    
Attachments:
Description Flags
tftp boot error none

Description Jean-Francois Theroux 2012-11-04 15:33:20 UTC
Description of problem:
When settings up SPW 1.8 to kickstart machines over TFTP/DHCP, I had to manually copy menu.c32 and pxelinux.0 from the syslinux-tftpboot package to /var/lib/tftpboot.

Version-Release number of selected component (if applicable): 1.8

Comment 1 Jan Pazdziora (Red Hat) 2012-12-07 20:09:38 UTC
We need more details. What OS and version is this, what version of syslinux-tftpboot, what errors did you get when you did not do the copy?

Comment 2 Jean-Francois Theroux 2012-12-20 15:50:58 UTC
Here is more details, I just so happen to have to deploy it at work. The installed version of Spacewalk is 1.8.

1. Install RHEL 6.3 x86_64, minimal install without the @base group.
2. Install spacewalk-postgresql
3. Configure Spacewalk.
4. Start xinetd (enable it also with chkconfig) to provide tftp support.
5. Install syslinux-tftpboot.
6. Boot VM. I get the error provided in the screenshot (tftp-boot-error.png).

In order to resolve that issue, I had to copy the files located under /tftpboot to /var/lib/tftpboot.

Possible solution:

1. Document this better.
2. The installer takes care of that.

Comment 3 Jean-Francois Theroux 2012-12-20 15:53:15 UTC
Created attachment 666750 [details]
tftp boot error

Comment 4 Jan Pazdziora (Red Hat) 2013-03-08 15:37:56 UTC
(In reply to comment #2)
> Here is more details, I just so happen to have to deploy it at work. The
> installed version of Spacewalk is 1.8.
> 
> 1. Install RHEL 6.3 x86_64, minimal install without the @base group.
> 2. Install spacewalk-postgresql
> 3. Configure Spacewalk.
> 4. Start xinetd (enable it also with chkconfig) to provide tftp support.

This is suspicious. The installer (spacewalk-setup) should have asked you

   Cobbler requires tftp and xinetd services be turned on for
   PXE provisioning functionality. Enable these services

and enabled them for you automatically. What happened that they were not enabled?

Comment 5 Jean-Francois Theroux 2013-03-08 20:32:42 UTC
I did select yes to that option to enable the support.

Comment 6 Jan Pazdziora (Red Hat) 2013-03-11 07:34:42 UTC
(In reply to comment #5)
> I did select yes to that option to enable the support.

So what did happen our your system that they were not enabled on your installation after running spacewalk-setup and you had to enable it manually?

Comment 7 Nick 2013-08-30 22:03:13 UTC
I had this same issue, but solved it by copying menu.c32 and pxelinux.0 in place of the symlinks.  Tftp's configuration specifies -s before the directory /var/lib/tftpboot; this basically chroots the tftpd server in /var/lib/tftpboot, and it can't access the symlinks in /usr/share...

Comment 8 Milan Zázrivec 2014-01-10 19:35:04 UTC
I'm confirming this issue is reproducible with current
Spacewalk nightly (to be 2.1).

Comment 9 Milan Zázrivec 2014-01-17 13:52:49 UTC
After some consideration, I decided to close this report with WONTFIX.

Yes, tftp-server is by default configured to chroot into /var/lib/tftpboot
and syslinux-tftpboot puts the pxelinux.0 (and friends) into /tftpboot,
but if this is to be considered a bug, it's more a problem of the default
tftp-server configuration than anything else.

Comment 10 Eric Herget 2017-09-28 17:56:20 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.