Skip to content

Router aggregate timeout does not seem to be honored #2978

Closed

Description

@wido
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Virtual Router
CLOUDSTACK VERSION
4.11.1
CONFIGURATION
router.aggregation.command.each.timeout = 6000
OS / ENVIRONMENT

Basic Networking

SUMMARY

Router gets killed on Start due to timeout before configuration has completed

STEPS TO REPRODUCE
Deploy a Virtual Router with ~600 DHCP entries
EXPECTED RESULTS
VR should deploy properly
ACTUAL RESULTS
Timeout was reached

The story is that during a upgrade from 4.10 to 4.11.1 we (PCextreme) encountered a problem that Virtual Routers would not start.

During their Start and configuration they ran into a timeout which caused the VR to get killed.

For example we saw in the logs:

2018-10-29 06:38:07,041 DEBUG [resource.virtualnetwork.VirtualRoutingResource] (agentRequest-Handler-6:null) (logid:ded92662) Aggregate action timeout in seconds is 665
2018-10-29 06:38:07,041 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-6:null) (logid:ded92662) Creating file in VR, with ip: 169.254.3.223, file: VR-d09aa357-27e3-4176-a283-9a7afedbae27.cfg
2018-10-29 06:38:07,464 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-6:null) (logid:ded92662) Executing: /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh vr_cfg.sh 169.254.3.223 -c /var/cache/cloud/VR-d09aa357-27e3-4176-a283-9a7afedbae27.cfg 
2018-10-29 06:38:07,466 DEBUG [kvm.resource.LibvirtComputingResource] (agentRequest-Handler-6:null) (logid:ded92662) Executing while with timeout : 665700

So in this case the timeout was 665 seconds, about 11 minutes.

We tried to increase router.aggregation.command.each.timeout both on the Management Server side and in agent.properties, but that did not seem to make any change.

For each DHCP entry a ~1 second timeout seems to be calculated. This VR has 609 DHCP entries:

root@r-32727-VM:~# wc -l /etc/dhcphosts.txt 
609 /etc/dhcphosts.txt
root@r-32727-VM:~#

10 minutes is a long time, that is something that would need improving as well, but apart from that I just would not start.

My colleague created PR #2977 as this fixed the issue for us. So we need to investigate if his fix is the proper one or that the (default) timeout should be increased.

Activity

  1. wido commented on Oct 29, 2018

    @wido
    ContributorAuthor

    Seee #2979 , I was too fast with typing :)

  2. added this to the 4.11.2.0 milestone on Oct 29, 2018
  3. yadvr commented on Oct 29, 2018

    @yadvr
    Member

    The fix shared by @RPDiep LGTM @wido

  4. yadvr commented on Oct 29, 2018

    @yadvr
    Member

    #2979 has been merged, closing this issue. /cc @wido please re-open if additional work needs to be done.

  5. added a commit that references this issue on Dec 18, 2025
    9fa76f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions