Project

General

Profile

Actions

Feature #8854

closed

Allow creation of DHCP records without IP specified

Added by Lukas Zapletal over 9 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

For automated deployments API users do unused_ip followed by DHCP record creation for the IP returned. By making "ip" parameter optional in the POST /dhcp/network call we can do the unused_ip call in proxy to shorten the timeframe between IP is picked up and reservation.

We've seen conflicts in Staypuft/OpenStack setups and this little change can prevent that.

Also this change would be useful in core Foreman - we would not need to have IP address a mandatory field in the New Host (bare-metal) form. If it's empty, we could simply send the reservation request without any IP to get one. Currently, the call returns the record created, therefore we'd only need to store the IP from reservation with the host entry.

Actions

Also available in: Atom PDF