Feature #284

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

Added by Ashley Penney over 1 year ago. Updated over 1 year ago.

Status:Closed Start:05/27/2010
Priority:Normal Due date:
Assigned to:Ashley Penney % Done:

100%

Category:Unattended installations
Target version:0.1-6
Backlog: Difficulity:
Votes: 0

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!

0001-Fixes-284-Use-MAC-address-if-IP-doesn-t-exist-when-t.patch (5.1 KB) Ohad Levy, 10/28/2010 05:17 pm

Associated revisions

Revision d97375e0e8ee13cbd1ace39dcbda6f6964d28dcb
Added by Ohad Levy over 1 year ago

Fixes #284 - Use MAC address if IP doesn't exist when tftp booting

  • Uses any of the assoicated mac addresses (RH only) prior to IP
  • Adds a new settings to not update mac or ip information to Foreman - used for cases
    where DHCP booting is done via a temporary dhcp range

History

Updated by Ashley Penney over 1 year 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.

Updated by Ohad Levy over 1 year ago

  • Category set to Unattended installations
  • Assigned to set to Ohad Levy
  • Target version set to 0.1-6

Updated by Ohad Levy over 1 year ago

  • Tracker changed from Bug to Feature

Updated by Ohad Levy over 1 year 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

Updated by Ohad Levy over 1 year ago

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

Can you please try out the patch?

Updated by Ohad Levy over 1 year ago

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

Updated by Ohad Levy over 1 year ago

updated patch to actually send the ip/mac as host parameters

Updated by Ohad Levy over 1 year ago

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

Updated by Ohad Levy over 1 year ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF