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 2021/07/14 14:13:29 UTC

[GitHub] [cloudstack] havengit opened a new issue #5208: VR: dnsmasq service start failed

havengit opened a new issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
   
    * Improvement Request
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   VR
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   cloudstack 4.15.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   ubuntu20.04.4
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   Create a large number of virtual machines 10+, and the DNSMASQ service in VR will be restarted frequently, resulting in service startup failure
   
   Need to modify parameters in VR ,To support mass creation of virtual machines
   
   cat /etc/systemd/system.conf 
     default:
        DefaultStartLimitIntervalSec=10s
        DefaultStartLimitBurst=5
     example:
        DefaultStartLimitIntervalSec=10s
        DefaultStartLimitBurst=100
   
   
   
   
   logs: 
   cat /var/log/daemon.log
   Jul 13 03:25:39 r-359-VM systemd[1]: user-runtime-dir@0.service: Start request r
   epeated too quickly.
   Jul 13 03:25:39 r-359-VM systemd[1]: user-runtime-dir@0.service: Failed with res
   ult 'start-limit-hit'.
   Jul 13 03:25:39 r-359-VM systemd[1]: Failed to start User Runtime Directory /run
   /user/0.
   Jul 13 03:25:39 r-359-VM systemd[1]: Dependency failed for User Manager for UID 
   0.
   Jul 13 03:25:39 r-359-VM systemd[1]: user@0.service: Job user@0.service/start fa
   iled with result 'dependency'.
   Jul 13 03:25:39 r-359-VM systemd[1]: Started Session 12714 of user root.
   Jul 13 03:25:39 r-359-VM systemd[1]: Stopping dnsmasq - A lightweight DHCP and c
   aching DNS server...
   Jul 13 03:25:39 r-359-VM systemd[1]: dnsmasq.service: Succeeded.
   Jul 13 03:25:39 r-359-VM systemd[1]: Stopped dnsmasq - A lightweight DHCP and ca
   ching DNS server.
   Jul 13 03:25:39 r-359-VM systemd[1]: dnsmasq.service: Start request repeated too
    quickly.
   Jul 13 03:25:39 r-359-VM systemd[1]: dnsmasq.service: Failed with result 'start-
   limit-hit'.
   Jul 13 03:25:39 r-359-VM systemd[1]: Failed to start dnsmasq - A lightweight DHC
   P and caching DNS server.
   Jul 13 03:25:39 r-359-VM systemd[1]: session-12714.scope: Succeeded.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   create lots of machine ,vr work fine 
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   dnsmasq start faild, vm cannot get IP by dhcp.
   ~~~
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez closed issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
nvazquez closed issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208


   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-880670998


    @havengit can you post the resulf of command below in VR ?
   ```
   grep dnsmasq /var/log/cloud.log |grep Service
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-880673337


   I did a small testing in VR
   ```
   interval=0.5
   action=reload
   for i in `seq 1 20`;do echo $i;systemctl $action dnsmasq && sleep $interval;done
   ```
   if action is 'reload', it works without issue (tested interval =0.5, 1 or 2)
   if action is 'restart', error if interval is 0.5 or 1, no error if interval is 2.
   
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] havengit commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
havengit commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-881112539


   > @havengit can you post the resulf of command below in VR ?
   > 
   > ```
   > grep dnsmasq /var/log/cloud.log |grep Service
   > ```
   
   2021-07-02 02:26:20,942 INFO     Service dnsmasq restart
   2021-07-03 02:14:22,327 INFO     Service dnsmasq restart
   2021-07-05 10:14:44,116 INFO     Service dnsmasq restart
   2021-07-05 10:19:17,779 INFO     Service dnsmasq restart
   2021-07-06 05:53:34,067 INFO     Service dnsmasq restart
   2021-07-13 03:25:14,428 INFO     Service dnsmasq restart
   2021-07-13 03:25:15,239 INFO     Service dnsmasq restart
   2021-07-13 03:25:15,970 INFO     Service dnsmasq restart
   2021-07-13 03:25:21,205 INFO     Service dnsmasq restart
   2021-07-13 03:25:30,068 INFO     Service dnsmasq restart
   2021-07-13 03:25:30,692 INFO     Service dnsmasq restart
   2021-07-13 03:25:37,763 INFO     Service dnsmasq restart
   2021-07-13 03:25:38,520 INFO     Service dnsmasq restart
   2021-07-13 03:25:39,232 INFO     Service dnsmasq restart
   2021-07-13 03:25:39,859 INFO     Service dnsmasq restart
   2021-07-13 08:04:11,194 INFO     Service dnsmasq restart
   2021-07-13 08:37:12,665 INFO     Service dnsmasq restart
   2021-07-13 08:37:15,996 INFO     Service dnsmasq reload
   2021-07-13 08:37:16,679 INFO     Service dnsmasq reload
   2021-07-13 08:46:46,242 INFO     Service dnsmasq restart
   2021-07-13 08:46:47,140 INFO     Service dnsmasq restart
   2021-07-13 08:46:47,962 INFO     Service dnsmasq restart
   2021-07-13 09:10:48,036 INFO     Service dnsmasq reload
   2021-07-13 09:24:28,826 INFO     Service dnsmasq restart
   2021-07-13 09:54:04,212 INFO     Service dnsmasq restart
   2021-07-13 18:14:24,265 INFO     Service dnsmasq restart
   2021-07-14 03:58:54,292 INFO     Service dnsmasq restart
   2021-07-14 07:51:02,498 INFO     Service dnsmasq restart
   2021-07-14 08:31:22,588 INFO     Service dnsmasq restart
   2021-07-14 08:31:26,810 INFO     Service dnsmasq restart
   2021-07-14 08:31:27,450 INFO     Service dnsmasq restart
   2021-07-14 08:31:31,785 INFO     Service dnsmasq restart


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-880449213


   @luhaijiao can you test with 4.15.1.0?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] havengit commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
havengit commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-881117492


   > I did a small testing in VR
   > 
   > ```
   > interval=0.5
   > action=reload
   > for i in `seq 1 20`;do echo $i;systemctl $action dnsmasq && sleep $interval;done
   > ```
   > 
   > if action is 'reload', it works without issue (tested interval =0.5, 1 or 2)
   > if action is 'restart', error if interval is 0.5 or 1, no error if interval is 2.
   
   Somebody mentioned that service reload instead of restart, https://github.com/apache/cloudstack/issues/3613


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] weizhouapache commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
weizhouapache commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-880572800


   @luhaijiao @havengit 
   creating vms with 1-2s interval should solve the problem, it is a workaround.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] luhaijiao commented on issue #5208: VR: dnsmasq service start failed

Posted by GitBox <gi...@apache.org>.
luhaijiao commented on issue #5208:
URL: https://github.com/apache/cloudstack/issues/5208#issuecomment-879937067


   We found this issue while creating VMs in one batch


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org