Project

General

Profile

Feature #284

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

Added by Ashley Penney about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Unattended installations
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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!

Associated revisions

Revision d97375e0 (diff)
Added by Ohad Levy over 8 years 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

#1 Updated by Ashley Penney about 9 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.

#2 Updated by Ohad Levy about 9 years ago

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

#3 Updated by Ohad Levy about 9 years ago

  • Tracker changed from Bug to Feature

#4 Updated by Ohad Levy over 8 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

#5 Updated by Ohad Levy over 8 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?

#6 Updated by Ohad Levy over 8 years ago

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

#8 Updated by Ohad Levy over 8 years ago

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

#9 Updated by Ohad Levy over 8 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF