Bug 1806719 - Menu Options in iPXE global default do not work
Summary: Menu Options in iPXE global default do not work
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning Templates
Version: 6.7.0
Hardware: All
OS: All
high
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Ondrej Gajdusek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-24 20:20 UTC by roarora
Modified: 2023-03-24 17:03 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-03 13:50:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description roarora 2020-02-24 20:20:46 UTC
Description of problem:

Discovery related menu options in 6.7 global iPXE template or Upstream latest : 

---------------------------------------
:discovery
dhcp
kernel http://${next-server}:8000/boot/fdi-image/vmlinuz0 initrd=initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset nokaslr proxy.url=<%= foreman_server_url %> proxy.type=foreman BOOTIF=01-${net0/mac}
initrd http://${next-server}:8000/boot/fdi-image/initrd0.img
imgstat
sleep 2
boot || goto failed
goto start

:discovery_custom
dhcp
kernel http://${next-server}:${port}/httpboot/boot/fdi-image/vmlinuz0 initrd=initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset nokaslr proxy.url=<%= foreman_server_url %> proxy.type=foreman BOOTIF=01-${net0/mac}
initrd http://${next-server}:${port}/httpboot/boot/fdi-image/initrd0.img
imgstat
sleep 2
boot || goto failed
goto start
---------------------------------------

The first one does not work as URL does not exist. As far as I know, TFTP directory is published only with routes "/httpboot" and "/EFI". the URL in first entry starts with "/boot/". 


The second one is also not usable as in the start of template value of "port" is set as 8448 which is not used in downstream. 

So none of options work.


The template  that is shipped with Satellite 6.6 has similar but more problems : 

Following entry has same issue as 6.7. URL starting with /boot directly does not work.
---------------
:discovery
dhcp
kernel http://${next-server}:8000/boot/fdi-image/vmlinuz0 initrd=initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset nokaslr proxy.url=https://rhsat.lab.box proxy.type=foreman BOOTIF=01-${net0/mac}
initrd http://${next-server}:8000/boot/fdi-image/initrd0.img
imgstat
sleep 2
boot || goto failed
goto start
---------------


There is a menu item named "discovery8448" but there is no section for it later.

There is following section which has correct options but there is no menu item called "discovery8000" using this so it cannot work
------------------
:discovery8000
dhcp
kernel http://${next-server}:8000/httpboot/boot/fdi-image/vmlinuz0 initrd=initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nomodeset nokaslr proxy.url=https://rhsat.lab.box proxy.type=foreman BOOTIF=01-${net0/mac}
initrd http://${next-server}:8000/httpboot/boot/fdi-image/initrd0.img
imgstat
sleep 2
boot || goto failed
goto start
------------------

Comment 5 Lukas Zapletal 2021-11-03 13:50:39 UTC
You need to have HTTPBoot Capsule feature enabled to use iPXE.

iPXE is not supported for Satellite: https://access.redhat.com/solutions/2674001


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