Problem:
When I try to create host from autodiscovery hardware node, customize it by adding host group, the tftp file for this host isn’t created. When I don’t choose hostgroup for the same host, the file in /var/lib/tftpboot/pxelinux.cfg is created.
If I create VM, using hostgroup (not the same as for hardware node), the tftp file is created properly.
relevant hostgroups:
for hardware:
# hammer hostgroup info --id 1
NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
Gem.gunzip called from /usr/lib/ruby/vendor_ruby/unicode/display_width/index.rb:5.
Id: 1
Name: Bare Metal from foreman
Title: Bare Metal from foreman
Description:
Network:
Subnet ipv4: vlan1301-mgmt_dhcp
Domain: example.com
Operating system:
Architecture: x86_64
Operating System: Ubuntu 22.04.2 LTS
Medium: Local ubuntu 22 miror
Partition Table: Preseed default autoinstall RAID1 + LVM
PXE Loader: PXELinux BIOS
Parameters:
Locations:
Default Location
Organizations:
Default Organization
for VM:
# hammer hostgroup info --id 7 14:05
NOTE: Gem.gunzip is deprecated; use Gem::Util.gunzip instead. It will be removed on or after 2018-12-01.
Gem.gunzip called from /usr/lib/ruby/vendor_ruby/unicode/display_width/index.rb:5.
Id: 7
Name: KVM virtual Machines
Title: KVM virtual Machines
Description:
Compute Profile: 2-Medium
Compute Resource: c2-dev-mgmt-02
Network:
Subnet ipv4: vlan1301-mgmt_dhcp
Domain: example.com
Operating system:
Architecture: x86_64
Operating System: Ubuntu 22.04.2 LTS
Medium: Local ubuntu 22 miror
Partition Table: Preseed default autoinstall
PXE Loader: PXELinux BIOS
Parameters:
puppet_ca_server => puppet.example.com
puppetmaster => puppet.example.com
Locations:
Default Location
Organizations:
Default Organization
Expected outcome:
TFTP file should be created for hardware node with hostgroup attached
Foreman and Proxy versions:
Foreman version: 3.6.1
Foreman proxy version: 3.6.1
Foreman and Proxy plugin versions:
Foreman version: 3.6.1
Plugins:
- foreman_dhcp_browser 0.0.8
- foreman_discovery 22.0.4
- foreman_puppet 5.1.2
- foreman_setup 8.0.1
Distribution and version:
ubuntu 20
Other relevant data: