Project

General

Profile

Actions

Feature #31585

closed

iPXE ping gateway and name server

Added by Pat Riehecky almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
trivial
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

It would be helpful for debugging if the iPXE boot templates did a `ping --count=1 < gateway >` and `ping --count=1 < nameserver >` to help diagnose boot issues.

In theory this would delay boot by less than 1 second, when things are working as expected. And when things are not right, the connectivity failure will be fairly clear.

Actions #1

Updated by Pat Riehecky almost 4 years ago

Would also be handy to ping the content source, but I'm not sure how easily that is exposed to the templates.

Actions #2

Updated by Lukas Zapletal almost 4 years ago

Feel free to file a PR:

[lzap@box foreman]$ g find ipxe
app/services/foreman/ipxe/message_renderer.rb
app/views/unattended/provisioning_templates/PXELinux/pxelinux_chain_ipxe.erb
app/views/unattended/provisioning_templates/PXELinux/pxelinux_chain_ipxe_undi.erb
app/views/unattended/provisioning_templates/iPXE/autoyast_default_ipxe.erb
app/views/unattended/provisioning_templates/iPXE/ipxe_default_local_boot.erb
app/views/unattended/provisioning_templates/iPXE/ipxe_global_default.erb
app/views/unattended/provisioning_templates/iPXE/ipxe_intermediate_script.erb
app/views/unattended/provisioning_templates/iPXE/kickstart_default_ipxe.erb
app/views/unattended/provisioning_templates/iPXE/preseed_default_ipxe.erb
app/views/unattended/provisioning_templates/iPXE/windows_default_ipxe.erb

[lzap@box foreman]$ ag content_source
app/views/unattended/report_templates/ansible_-_ansible_inventory.erb
130:          'content_source': content_facet.content_source,
131:          'content_source_id': content_facet.content_source_id,
132:          'content_source_name': content_facet.content_source_name,
Actions #3

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8240 added
Actions #4

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases 2.4.0 added
Actions #5

Updated by Pat Riehecky over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF