Hi Sebastian,
the log only contains #2 "reason why this is a libvirt issue" when you know 
where to look exactly in your opinion or give it some pointers where others 
should look. So you could help next time by pointing to it with a few more 
words :-)

I can find the output of "net-dhcp-leases" at the end and see that it
only has one IP reported.

I found above that you pinged a few adresses:
- 10.17.3.0 -> the ?bridge?; replies
- 10.17.3.1 -> the guest; replies
- 10.17.3.2 -> ??, does not reply

I'd assume you'd want to set up three guests kubic-kubadm-[1-3] is that right?
I'd further assume that your root issue is that guests get either the same or 
no dhcp IP is that correct?


There are multiple things here that could be an issue, that come to my mind.
1. the net-dhcp-leases reads from the host dnsmasq files, so if there is 
missing something it is actually a dnsmasq issue, but more important anything 
not asking dnsmasq can't be shown there like "bridges with external dhcp 
server" or "static IP configs in the guest"
If anything like this applies it would never show up, but that you succeed with 
"-parallelism=1" suggests this isn't the case.

2. I've seen bad guest cloning triggering issues like that.
old dhcpd did not pass a client-id which will overrule almost all other UIDs in 
dhcp processing. systemd-resolved / networkd will send a client ID. I have seen 
cases where a guest was installed (creates UUID for client-id) and then copied 
as a base image which led to all guests having the same client-id. That made 
dnsmasq mad and let it return only a lease to the first showing up.
Your case doesn't perfectly match, but 3 macs in 
/var/lib/libvirt/dnsmasq/virbr2.macs while only one client-id in 
/var/lib/libvirt/dnsmasq/virbr2.status would be like that.


I'd ask you to:
- check for duplicate client-id's please
- is the output complete "later"?
- do the other guests get an IP at all (check via virsh console)?
- outline the guest network setup (how is there dhcp call configured)
- help to clarify more of your case as asked above while reading through logs

I assume I need to sort out more details with you to be of any help :-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1788841

Title:
  incomplete output of `virsh net-dhcp-leases`

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1788841/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to