Project

General

Profile

Bug #20942

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

Added by Andrzej Kaczynski almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Provisioning
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

History

#1 Updated by Aditi Puntambekar almost 4 years ago

  • Assignee set to Aditi Puntambekar

#2 Updated by Lukas Zapletal over 3 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.

Also available in: Atom PDF