-
Notifications
You must be signed in to change notification settings - Fork 41
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
dhcp_leases.rb:8:in `dhcp_leases': Call to virNetworkGetDHCPLeases failed: internal error: no lease with matching MAC address: 52:54:00:32:36:b7 (Libvirt::Error) #28
Comments
I believe this was not intentional. Perhaps we can fix this together with #27? |
I encountered the same issue, using debian 8.6 host with libvirt 1.2.9, vagrant 1.8.6 and vagrant-libvirt-0.0.36 . As a temporal workaround I edited the source code, but I don't sure if this appropriate: def dhcp_leases(uuid, mac, flags = 0)
client.lookup_network_by_uuid(uuid).dhcp_leases(mac, flags)
rescue => e
if e.message =~ /no lease with matching MAC address/
return []
end
raise e.class, e.message
end |
Same issue on Debian 8.8 with vagrant-libvirt (0.0.40) installed from vagrant-libvirt repository due to this workaround vagrant-libvirt/vagrant-libvirt#770 has been fixed with workaround provided by mrvovanness |
Supposed to be fixed in new Debian versions due to this reports: |
This issue has been marked inactive and will be closed if no further activity occurs. |
When calling
dhcp_leases
with a mac that does not exist, libvirt throws an error.vagrant-libvirt calls
def addresses
in a while loop, waiting for a VM to boot and retrying until an IP is returned (with an eventual timeout). Since PR #11 this fails due to a functional change.I believe this case should be handled correctly and return
nil
fordef addresses(service_arg=service, options={})
as it was before so that this doesn't break existing functionality. Or is the failure here intentional?The text was updated successfully, but these errors were encountered: