You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2019/12/26 21:24:12 UTC

[GitHub] [cloudstack] andrijapanicsb opened a new issue #3788: dnsmasq.leases file is missing on the new VR after network restart

andrijapanicsb opened a new issue #3788: dnsmasq.leases file is missing on the new VR after network restart
URL: https://github.com/apache/cloudstack/issues/3788
 
 
   
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VR / DHCP
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on master branch.
   -->
   
   ~~~
   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

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] andrijapanicsb commented on issue #3788: dnsmasq.leases file is missing on the new VR after network restart

Posted by GitBox <gi...@apache.org>.
andrijapanicsb commented on issue #3788: dnsmasq.leases file is missing on the new VR after network restart
URL: https://github.com/apache/cloudstack/issues/3788#issuecomment-573929852
 
 
   The problem of VMs not being able to renew it’s IP address (that his issues casuses) is solved (in 4.13.1 / 4.14) by increasing the dhcp lease time to ~infinity (~98 years) - so currently running VMs will not try to renew the lease for < 50 years. This PR #3662 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] andrijapanicsb closed issue #3788: dnsmasq.leases file is missing on the new VR after network restart

Posted by GitBox <gi...@apache.org>.
andrijapanicsb closed issue #3788: dnsmasq.leases file is missing on the new VR after network restart
URL: https://github.com/apache/cloudstack/issues/3788
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [cloudstack] andrijapanicsb edited a comment on issue #3788: dnsmasq.leases file is missing on the new VR after network restart

Posted by GitBox <gi...@apache.org>.
andrijapanicsb edited a comment on issue #3788: dnsmasq.leases file is missing on the new VR after network restart
URL: https://github.com/apache/cloudstack/issues/3788#issuecomment-573929852
 
 
   The problem of VMs not being able to renew it’s IP address (that this issues casuses) is solved (in 4.13.1 / 4.14) by increasing the dhcp lease time to ~infinity (98 years) - so currently running VMs will not try to renew the lease for < 50 years. This PR #3662 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services