Problem:
Foreman fails to provision Openstack Instances with fixed IP address
Expected outcome:
An instance provisioned , with a network port attached with a fixed IP address entered in the interface section of the Foreman host creation wizard.
Foreman and Proxy versions:
Foreman 3.13
Openstack Antelope
Foreman and Proxy plugin versions:
foreman-openstack-3.13.0-1.el9.noarch
Distribution and version:
Other relevant data:
Hi,
I am not very familiar with Foreman , but I fail to do something that seems obvious to me.
I have configured Foreman to provision instances on Openstack (Compute Resource, Images, Compute Profile , Networks , …).
I am able to connect Foreman to one project and provision new instances with the right flavor , on the right network. We use standard cloud images RHEL 9.6 + Katello. Everything works as expected.
However , the IP address of the network port attached to the instance is always allocated by (I guess) Openstack .
Since we manage our IP pool upstream , I want now to be able to specify one static IP address at the instance creation on Foreman side.
This features seems to be available in Foreman, and I have played with parameters in two sections :
- in the Infrastructure → subnet definition->
IPAM field to “None” or “Internal DB”
Boot mode to “Static” vs DHCP - in the Host creation wizard → Interfaces Tab → edit :
choose the IPV4 subnet
entered a fixed IP in the subnet in the IPV4 Address field
check or uncheck the Managed box
and on Openstack side :
- enable or disable DHCP in the subnet details
In all cases, the port IP address is still allocated by Openstack .
I would expect Foreman to reproduce what I can do by hand on Openstack side :
- allocate a port in the subnet with one fixed IP address
- create an instance with this port attached.
Did I miss something on Foreman or Openstack ?