Project

General

Profile

Actions

Feature #284

closed

Use MAC address if IP doesn't exist when tftp booting.

Added by Ashley Penney almost 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When a host is being built we use a DHCP range so the IP address recorded in foreman is wrong during the TFTP boot. It should check for MAC address and boot from that instead if possible!


Files

Actions #1

Updated by Ashley Penney almost 14 years ago

OK, I've now moved to foreman as my external node classifer and it's raised several problems for me and I'm going to attempt to explain my work flow and requirements because I feel other people may have similar workflows.

I have a small DHCP build range in the same subnet as my foreman/puppet server. I add a new host into foreman and type in the eventual IP of the server. I then PXE boot that server and it picks up an IP from the DHCP range and fails. I catch that IP and change the entry for the host in foreman to make them match and restart the build. It then builds and when it's done I change the IP to the final IP in foreman and let puppet run.

Problems:

  • Foreman needs me to set the DHCP build range IP in the host which is a pain.
  • Foreman can't figure out the right PXE boot stuff from the MAC alone.
  • When puppet runs it reports the current ip of the server to foreman, which then updates the IP field.
  • I rely on the IP field (thanks to a hack in host.rb) to set the node's networking details.

For this to work for me I ideally need foreman to work from a MAC address during the initial install and for it to only update the foreman database with the IP of the server if that field is currently blank. Ideally, this would be a toggle option somewhere.

Actions #2

Updated by Ohad Levy almost 14 years ago

  • Category set to Unattended installations
  • Assignee set to Ohad Levy
  • Target version set to 0.1-6
Actions #3

Updated by Ohad Levy almost 14 years ago

  • Tracker changed from Bug to Feature
Actions #4

Updated by Ohad Levy over 13 years ago

based on the discussion on irc the following has been agreed:

  1. add an option for foreman not to auto update the provisioning data from facts
  2. use the mac address alone to find RHEL / Fedora hosts
Actions #5

Updated by Ohad Levy over 13 years ago

  • File 0001-Fixes-284-Use-MAC-address-if-IP-doesn-t-exist-when-t.patch added
  • Status changed from New to Feedback
  • Assignee changed from Ohad Levy to Ashley Penney

Can you please try out the patch?

Actions #6

Updated by Ohad Levy over 13 years ago

  • File deleted (0001-Fixes-284-Use-MAC-address-if-IP-doesn-t-exist-when-t.patch)
Actions #8

Updated by Ohad Levy over 13 years ago

  • Status changed from Feedback to Ready For Testing
  • % Done changed from 0 to 100
Actions #9

Updated by Ohad Levy over 13 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF