Hello, > We're trying to provision a machine (physical) in discovery from one subnet > (LA-PXE) to another (LA-SUBNET) using DHCP as IPAM, and we're getting an > error of "Ip does not match selected subnet" unless specifying an ip > address in advance (which is really a pain cause this is messing up our > automation). > > Another workaround that could be fine is getting a free ip via API and > specify it at the hammer command, but we couldn't find a way to do that > either.
at the moment, discovery keeps the provisioning interface IP filled in the form, so when you provision it with different subnet, it would error out. We are tracking a ticket to change this behavior to delete the IP address and call "Free IP" API during provisioning: http://projects.theforeman.org/issues/16143 The same applies to provisioning via API. -- Later, Lukas #lzap Zapletal -- You received this message because you are subscribed to the Google Groups "foreman-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to foreman-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.