Hello,
Hope you are all doing well. We have an interesting thing going on and so wanted to share
with you all for some ideas and feedback.
We configured a cluster with OVS switch and added an external network with subnet. So OVN
started managing the subnet using DHCP. But here's the problem. When we add a nic with
this network, an ip is assigned by DHCP. But we want an IP of our choice to be assigned.
Here's what we tried.
1. We tried using the ovn-nbctl lsp-set-address like ovn-nbctl lsp-set-addresses
7840c97b-73c2-4246-a2a8-0e9e5b7f420a "56:6f:6b:54:00:ec 10.19.3.8" to update the
static IP. But this does not persist a NIC unplug or a VM reboot.
So you might ask why not just try assigning a static IP and not add the external subnet.
We want to use security groups. For security groups to work, the ip assigned to the NIC
and the IP in the value for fixed_ips in `openstack port show` should be the same. So the
same thing repeats here as well. If we use the `openstack port set` to update the
fixed_ips, a NIC unplug or a VM reboot will remove the IP.
We have an internal IPAM that provides us IPs during our automated provisioning. Did
anyone try this or have any ideas how to work around this? The only option seems to be
just use DHCP and then update that IP in our internal IPAM tool.
Please let me know if I'm unclear and any more info is required.
Regards,
rav
Show replies by date