Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry creating dynamic networks if not found #25550

Merged
merged 1 commit into from
Aug 10, 2016
Merged

Commits on Aug 9, 2016

  1. Retry creating dynamic networks if not found

    In cases there are failures in task start, swarmkit might be trying to
    restart the task again in the same node which might keep failing. This
    creates a race where when a failed task is getting removed it might
    remove the associated network while another task for the same service
    or a different service but connected to the same network is proceeding
    with starting the container knowing that the network is still
    present. Fix this by reacting to `ErrNoSuchNetwork` error during
    container start by trying to recreate the managed networks. If they
    have been removed it will be recreated. If they are already present
    nothing bad will happen.
    
    Signed-off-by: Jana Radhakrishnan <[email protected]>
    mrjana committed Aug 9, 2016
    Configuration menu
    Copy the full SHA
    117cef5 View commit details
    Browse the repository at this point in the history