Project

General

Profile

Bug #702

remove pxe-config-link when changing the mac address

Added by Alexander Rusa over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
TFTP
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

When I change the MAC-address of a machine that is marked as "Build",
then foreman should remove an existing link with the old mac-address from the TFTP-Server and create a new one.


Related issues

Is duplicate of Foreman - Bug #718: Permission denied trying to write to tftp dir directly instead of using smart proxyDuplicate2011-03-08

Associated revisions

Revision 5942416f (diff)
Added by Ohad Levy over 10 years ago

fixes #702 - remove pxe-config-link when changing the mac address

this also ensures that the legacy TFTP system won't be called once a smart proxy is in use.

History

#1 Updated by Ohad Levy over 10 years ago

Alex,

Which version of foreman are you using? afaik, the latest git develop branch already does that (assuming you are using the smart proxy to configure tftp).

#2 Updated by Alexander Rusa over 10 years ago

I pulled the latest version now and there were some updates for foreman and smart-proxy, but the behavior is still reproducible.

  1. I set an existing machine to "Build"
  2. The symlink /tftpboot/pxelinux.cfg/<mac>gets created
  3. I change the MAC address of the Host
  4. The symlink does not change.

If I now click "Cancel Build" and "Build" I have symlinks for both MAC addresses.

#3 Updated by Ohad Levy over 10 years ago

  • Category set to TFTP
  • Assignee set to Ohad Levy
  • Target version set to 0.2

You are correct - however :)

we left the old tftp behavior in place not to break anyones current foreman deployment.

the new way of managing tftp services is using a smart proxy, which would also remove the entry.

I agree we can fix the legacy setup as well - thanks.

#4 Updated by Ohad Levy over 10 years ago

  • Status changed from New to Duplicate

#5 Updated by Ohad Levy over 10 years ago

  • Status changed from Duplicate to New

#6 Updated by Ohad Levy over 10 years ago

  • Status changed from New to Assigned

this will only be officially supported with a smart proxy.

#7 Updated by Ohad Levy over 10 years ago

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

#8 Updated by Ohad Levy over 10 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF