{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libnetwork/issues/2098","repository_url":"https://api.github.com/repos/docker/libnetwork","labels_url":"https://api.github.com/repos/docker/libnetwork/issues/2098/labels{/name}","comments_url":"https://api.github.com/repos/docker/libnetwork/issues/2098/comments","events_url":"https://api.github.com/repos/docker/libnetwork/issues/2098/events","html_url":"https://github.com/docker/libnetwork/pull/2098","id":302211633,"number":2098,"title":"Delete stale HNS endpoints when creating a network","user":{"login":"johnstep","id":3768125,"avatar_url":"https://avatars3.githubusercontent.com/u/3768125?v=4","gravatar_id":"","url":"https://api.github.com/users/johnstep","html_url":"https://github.com/johnstep","followers_url":"https://api.github.com/users/johnstep/followers","following_url":"https://api.github.com/users/johnstep/following{/other_user}","gists_url":"https://api.github.com/users/johnstep/gists{/gist_id}","starred_url":"https://api.github.com/users/johnstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnstep/subscriptions","organizations_url":"https://api.github.com/users/johnstep/orgs","repos_url":"https://api.github.com/users/johnstep/repos","events_url":"https://api.github.com/users/johnstep/events{/privacy}","received_events_url":"https://api.github.com/users/johnstep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-05T08:37:41Z","updated_at":"2018-03-05T23:52:43Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/docker/libnetwork/pulls/2098","html_url":"https://github.com/docker/libnetwork/pull/2098","diff_url":"https://github.com/docker/libnetwork/pull/2098.diff","patch_url":"https://github.com/docker/libnetwork/pull/2098.patch"},"body":"Signed-off-by: John Stephens <johnstep@docker.com>\r\n\r\nWhen Windows Server 2016 is restarted with the Docker service running, it is possible for endpoints to be deleted from the libnetwork store without being deleted from HNS. This does not occur if the Docker service is stopped cleanly first, or forcibly terminated (since the endpoints still exist in both). This change works around the issue by removing any stale HNS endpoints for a network when creating it.\r\n\r\n@pradipd @msabansal"},"comment":{"url":"https://api.github.com/repos/docker/libnetwork/issues/comments/370609860","html_url":"https://github.com/docker/libnetwork/pull/2098#issuecomment-370609860","issue_url":"https://api.github.com/repos/docker/libnetwork/issues/2098","id":370609860,"user":{"login":"pradipd","id":14915188,"avatar_url":"https://avatars0.githubusercontent.com/u/14915188?v=4","gravatar_id":"","url":"https://api.github.com/users/pradipd","html_url":"https://github.com/pradipd","followers_url":"https://api.github.com/users/pradipd/followers","following_url":"https://api.github.com/users/pradipd/following{/other_user}","gists_url":"https://api.github.com/users/pradipd/gists{/gist_id}","starred_url":"https://api.github.com/users/pradipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pradipd/subscriptions","organizations_url":"https://api.github.com/users/pradipd/orgs","repos_url":"https://api.github.com/users/pradipd/repos","events_url":"https://api.github.com/users/pradipd/events{/privacy}","received_events_url":"https://api.github.com/users/pradipd/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T23:52:43Z","updated_at":"2018-03-05T23:52:43Z","author_association":"CONTRIBUTOR","body":"Wouldn't the check at L270 prevent that?"}}
{"actor":{"display_login":"pradipd"}}