Lower the time we wait for interfaces to appear after restart #1467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Waiting for interfaces is tricky. They might never appear.. for example when we have entries in
/etc/cloudstack/ips.json
that haven't been plugged yet. Waiting this long makes everything horribly slow (every vm, interface, static route, etc, etc, will hit this wait, for every device). We've seen CloudStack send anip_assoc.json
command foreth1
public nic only and then the router goes crazy waiting for all other interfaces that were there before reboot and aren't there. If only the router would return to the mgt server a success ofeth1
, it would get the command foreth2
etc etc. Obviously, a destroy works much faster because no state services, so no knowledge of previous devices so no waits :-)After a stop/start the router has state in
/etc/cloudstack/ips.json
and every commands waits. Eventually hitting the hardcoded 120 sec timeout.