Project

General

Profile

Actions

Bug #20942

closed

leading slash (/) missing in dhcp/tftp/pxe file path

Added by Andrzej Kaczynski over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When I configure Katello for provisioning (adding DHCP, TFTP, DNS etc.), it creates wrong configuration. The configuration of dhcp is wrong, due to missing leading slash (/) in boot file path. e.g.:

  1. Bootfile Handoff
    next-server 10.0.20.100;
    option architecture code 93 = unsigned integer 16 ;
    if option architecture = 00:06 {
    filename "*grub2/shim.efi*";
    } elsif option architecture = 00:07 {
    filename "*grub2/shim.efi*";
    } elsif option architecture = 00:09 {
    filename "*grub2/shim.efi*";
    } else {
    filename "*pxelinux.0*";
    }

It should be like:

  1. Bootfile Handoff
    next-server 10.0.20.100;
    option architecture code 93 = unsigned integer 16 ;
    if option architecture = 00:06 {
    filename "*/grub2/shim.efi*";
    } elsif option architecture = 00:07 {
    filename "*/grub2/shim.efi*";
    } elsif option architecture = 00:09 {
    filename "*/grub2/shim.efi*";
    } else {
    filename "*/pxelinux.0*";
    }

Similar when I create new host, it's configuration in /var/lib/tftp/pxelinux.cfg/{MAC_ADDRESS} is wrong due to the same issue:

  1. This file was deployed via 'Kickstart default PXELinux' template

TIMEOUT 10
DEFAULT Kickstart default PXELinux

LABEL Kickstart default PXELinux
KERNEL boot/CentOS-7.3-x86_64-vmlinuz
APPEND initrd=boot/CentOS-7.3-x86_64-initrd.img ks=http://sat01.home.lab/unattended/provision?token=ef7f560d-c773-4535-9cb2-83ec093258f6 network ksdevice=bootif ks.device=bootif BOOTIF=00-00-0c-29-a2-1c-8e kssendmac ks.sendmac inst.ks.sendmac
IPAPPEND 2

but it should be:

  1. This file was deployed via 'Kickstart default PXELinux' template

TIMEOUT 10
DEFAULT Kickstart default PXELinux

LABEL Kickstart default PXELinux
KERNEL /boot/CentOS-7.3-x86_64-vmlinuz
APPEND initrd=*/boot/CentOS-7.3-x86_64-initrd.img* ks=http://sat01.home.lab/unattended/provision?token=ef7f560d-c773-4535-9cb2-83ec093258f6 network ksdevice=bootif ks.device=bootif BOOTIF=00-00-0c-29-a2-1c-8e kssendmac ks.sendmac inst.ks.sendmac
IPAPPEND 2

Thx

Actions #1

Updated by Aditi Puntambekar over 6 years ago

  • Assignee set to Aditi Puntambekar
Actions #2

Updated by Lukas Zapletal about 6 years ago

  • Status changed from New to Closed

Hello, the configuration is correct and works out of box. I am going to close this one, please feel free to reopen but provide more details what excactly does not work.

Actions

Also available in: Atom PDF