Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support IPs from CNI #67

Open
tgross opened this issue Oct 4, 2024 · 3 comments
Open

support IPs from CNI #67

tgross opened this issue Oct 4, 2024 · 3 comments

Comments

@tgross
Copy link
Member

tgross commented Oct 4, 2024

Right now we watch for DHCP leases to be assigned to the domains, so even if the VM is configured with a static IP address there's not really a way to use it without also provisioning a DHCP address. This would not be an especially important use case except for #66, which prevents a machine from restarting and having the same IP.

@tgross tgross changed the title support static IPs support IPs from CNI Oct 6, 2024
@tgross
Copy link
Member Author

tgross commented Oct 6, 2024

It occurs to me that what we really want here is to support IP addresses issued by CNI plugins. Adjusted the title to match.

@ocient-cliimatta
Copy link

Does Nomad Virt driver only support libvirt provided DHCP addresses? I'm currently facing an issue where an external DHCP server is successfully replying to the DHCP requests from Nomad managed VMs, however the task fails because Nomad is unable to determine the IP address of the VM.

It of course works via the libvirt managed bridge virbr0 which handle DNS via dnsmasq

Would it be possible to fall back to using the VM-tools commands to get the IP from the VMs? It would also be nice if we could assign static IPs to the VMs, which means there's no DHCP to intercept

@jrasell
Copy link
Member

jrasell commented Dec 24, 2024

Hi @ocient-cliimatta; in its current state the driver only supports IPs provided by libvirt managed DHCP. We are open to other possibilities on the networking side, but this issue is focussed on CNI integration rather than external DHCP or fallback mechanisms. Could you open a new issue to detail your feature request please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants