Not creating files under tftproot directory when provisioned hosts in foreman

Problem: Files are not creating under tftproot directory

Expected outcome: Files should create under tftproot directory when provisioned hosts in foreman

Foreman and Proxy versions: foreman-release-3.10.0-1 and foreman-proxy-3.10.0-1

Foreman and Proxy plugin versions:

Distribution and version: Red Hat Enterprise Linux release 9.3

Other relevant data: TFTP Socket/Services is up and running and also servigng files.
We have enabled TFTP module under proxy.

Issue: when deploying a new template using TFTPboot for Linux it is not creating the necessary files under tftproot directory, files with the mac details for the provisioned hosts. it also has the necessary permission on the tftproot directory.

[ ~]# foreman-installer --help|grep tftp
–foreman-proxy-tftp Enable TFTP feature (current: true)
–foreman-proxy-tftp-dirs Directories to be create in $tftp_root (current: UNDEF)
–foreman-proxy-tftp-listen-on TFTP proxy to listen on https, http, or both (current: “https”)
–foreman-proxy-tftp-manage-wget If enabled will install the wget package (current: true)
–foreman-proxy-tftp-managed The TFTP daemon is managed by this module. (current: true)
–foreman-proxy-tftp-replace-grub2-cfg Determines if grub2.cfg will be replaced (current: false)
–foreman-proxy-tftp-root TFTP root directory (current: “/var/lib/tftpboot”)
–foreman-proxy-tftp-servername Defines the TFTP Servername to use, overrides the name in the subnet declaration (current: UNDEF)

Hi,
Be careful; the RHEL9 support is in an experimental phase.

Few questions:

  • Is this a new instance, or have you upgraded from the older one?
  • What were the foreman-install parameters when you installed it?
  • Any errors in the foreman-installer log? /var/log/foreman-installer/
  • Any errors in the foreman/smart-proxy logs? /var/log/foreman

Hi @lstejska

  • Is this a new instance, or have you upgraded from the older one?
    Yes new instance
  • What were the foreman-install parameters when you installed it?
    how to fetch this information
    *no specific errors found

**please find attached images for build host info




*Gave following permission for tftpboot
sudo chown -R foreman:foreman /var/lib/tftpboot
sudo chmod -R 755 /var/lib/tftpboot

files are not creating under this directory for tftpboot

This might be helpful: Debugging provisioning

you can find logs in /var/lib/foreman & /var/lib/foreman-proxy,
there must be some erorrs explaining why the files were not created

Hi @lstejska ,

please find foreman logs

2024-05-29T16:59:15 [D|tax|c799a50b] Current organization set to none
2024-05-29T16:59:15 [D|app|c799a50b] Rendered hosts/_templates.html.erb (Duration: 2.0ms | Allocations: 741)
2024-05-29T16:59:15 [I|app|c799a50b] Completed 200 OK in 238ms (Views: 2.5ms | ActiveRecord: 66.9ms | Allocations: 88387)
2024-05-29T16:59:18 [D|app|c4253594] Rendered hosts/_bmc.html.erb (Duration: 2893.6ms | Allocations: 6336)
2024-05-29T16:59:18 [I|app|c4253594] Completed 200 OK in 3248ms (Views: 2894.3ms | ActiveRecord: 3.7ms | Allocations: 12451)
2024-05-29T16:59:22 [D|dyn|] Executor heartbeat
2024-05-29T16:59:24 [I|app|f1740425] Started GET “/notification_recipients” for 10.136.202.47 at 2024-05-29 16:59:24 +0530
2024-05-29T16:59:24 [I|app|f1740425] Processing by NotificationRecipientsController#index as JSON
2024-05-29T16:59:24 [D|tax|f1740425] Current location set to none
2024-05-29T16:59:24 [D|tax|f1740425] Current organization set to none
2024-05-29T16:59:24 [D|not|f1740425] Cache Hit: notification, reading cache for notification-6
2024-05-29T16:59:24 [D|app|f1740425] Body: {“notifications”:[{“id”:21,“seen”:true,“level”:“info”,“text”:“Sunsetting rsync.theforeman.org”,“created_at”:“2024-05-10T13:30:00.399Z”,“group”:“Community”,“actions”:{“links”:[{“href”:“https://theforeman.org/2024/05/sunsetting-rsynctheforemanorg.html",“title”:“Open”,"external”:true}]}}]}
2024-05-29T16:59:24 [I|app|f1740425] Completed 200 OK in 6ms (Views: 0.1ms | ActiveRecord: 0.6ms | Allocations: 1680)
2024-05-29T16:59:37 [D|dyn|] Executor heartbeat
2024-05-29T16:59:52 [D|dyn|] Executor heartbeat
2024-05-29T17:00:06 [I|app|] Rails cache backend: Redis
2024-05-29T17:00:06 [W|app|] You are trying to replace import_subnets from . Adding allowed actions from plugin permissions to the existing one.
2024-05-29T17:00:06 [D|app|] Plugin foreman_puppet has assets outside of its namespace, these will be ignored: foreman_puppet.scss
2024-05-29T17:00:06 [D|app|] Registering 19 assets for plugin foreman_puppet precompilation
2024-05-29T17:00:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Location.completer_scope.
2024-05-29T17:00:07 [W|app|] Creating scope :completer_scope. Overwriting existing method Organization.completer_scope.
2024-05-29T17:00:07 [D|dyn|] Executor heartbeat
2024-05-29T17:00:08 [D|app|] Loading foreman_puppet precompiled asset manifest from /usr/share/gems/gems/foreman_puppet-6.2.0/public/assets/foreman_puppet/foreman_puppet.json
2024-05-29T17:00:22 [D|dyn|] Executor heartbeat