Thanks, got it. For the record, if you use my github email remove the “-x” from the address, otherwise it goes to spam right next to those “job offers”. I recently created a new email lukasNOSPAM@zapletalovi.com
which is hopefully more obvious.
The offending record is this one:
2021-11-22T09:14:46 [D] Added a reservation: 192.168.250.159:00:50:56:84:d1:d2:test-foreman-06.config.landcareresearch.co.nz
You can tell from the debug log:
omshell= name = "test-foreman-06.config.landcareresearch.co.nz"
omshell= ip-address = c0:a8:fa:d1
omshell= hardware-address = 00:50:56:84:78:19
omshell= hardware-type = 1
omshell= > obj: host
omshell= name = "test-foreman-06.config.landcareresearch.co.nz"
omshell= ip-address = c0:a8:fa:d1
omshell= hardware-address = 00:50:56:84:78:19
omshell= hardware-type = 1
omshell= statements = "filename = "pxelinux.0"; option host-name = "test-foreman-06.config.landcareresearch.co.nz";"
omshell= > can't open object: already exists
omshell= obj: host
Problem is not MAC or IP address, problem is the host name. See, in ISC DHCP, every reservation must have a name and foreman uses the FQDN for such name, ISC insists on the name to be unique as it is actually the identifier of the record.
You need to delete the offending record first which is a leftover from some kind of rename? or operation that did not succeed successfully.