Project

General

Profile

Feature #31585

iPXE ping gateway and name server

Added by Pat Riehecky about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

Associated revisions

Revision 676d18a2 (diff)
Added by Pat Riehecky about 2 years ago

fixes #31585 - iPXE ping gateway and name server

History

#1 Updated by Pat Riehecky about 2 years ago

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

#2 Updated by Lukas Zapletal about 2 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,

#3 Updated by The Foreman Bot about 2 years ago

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

#4 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases 2.4.0 added

#5 Updated by Pat Riehecky about 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF