Actions
Bug #9208
closedDHCP/DNS PTR records already exist error when renaming host
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
When executing the hammer command
hammer host update {--id ##,--name old-name} --name new-name
The output is:
Could not update the host:
Conflict DHCP records <fqdn>-<mac>/<ip> already exists
Conflict DNS PTR Records <ip>/<fqdn> already exists
There is a relevant bug which has been fixed for REST calls here:
http://projects.theforeman.org/issues/6998
The Foreman GUI issues the error as well but allows an overwrite.
It seems to me that the hammer cli should have an 'overwrite' option exposed so that hosts can be renamed despite these warnings/errors. e.g.,
hammer host update --overwrite true {--id ##,--name old-name} --name new-name
Actions