-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
VR / DHCP
CLOUDSTACK VERSION
4.11+
PROBLEM:
After the new VR is created as part of the network restart with cleanup, the new VR will have missing or empty "/var/lib/misc/dnsmasq.leases" file
This will cause that the VM after 15 days of running (50% from the currently hardcoded 30d lease duration) will try to renew it's DHCP lease by sending DHCPREQUEST, but VR/dnsmasq is not aware of that lease (dnsmasq.leases missing/empty), so it will send DHCPNAK, so eventually DHPC client will fail back to the initialization process and start from scratch with DHCPDISCOVER and get its IP again.
This doesn't mean network downtime, but on some older RHEL 6.x systems (that assumes CentOS 6.x as well), the "initialization" process will remove any static routes added, thus causing issues.
We need to ensure that the content of the "/var/lib/misc/dnsmasq.leases" file is regenerated/populated with all the needed records on the new VR when restarting a network with cleanup. Alos, rebootRouter / startRouter API while "recreate.systemvm.enabled”=”true” also need to produce the same results