{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libnetwork/issues/661","labels_url":"https://api.github.com/repos/docker/libnetwork/issues/661/labels{/name}","comments_url":"https://api.github.com/repos/docker/libnetwork/issues/661/comments","events_url":"https://api.github.com/repos/docker/libnetwork/issues/661/events","html_url":"https://github.com/docker/libnetwork/pull/661","id":111764050,"number":661,"title":"Explicitly set namepsace for ipamutils.ElectInterface","user":{"login":"aboch","id":10080882,"avatar_url":"https://avatars.githubusercontent.com/u/10080882?v=3","gravatar_id":"","url":"https://api.github.com/users/aboch","html_url":"https://github.com/aboch","followers_url":"https://api.github.com/users/aboch/followers","following_url":"https://api.github.com/users/aboch/following{/other_user}","gists_url":"https://api.github.com/users/aboch/gists{/gist_id}","starred_url":"https://api.github.com/users/aboch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboch/subscriptions","organizations_url":"https://api.github.com/users/aboch/orgs","repos_url":"https://api.github.com/users/aboch/repos","events_url":"https://api.github.com/users/aboch/events{/privacy}","received_events_url":"https://api.github.com/users/aboch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-16T05:40:30Z","updated_at":"2015-10-16T14:05:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/libnetwork/pulls/661","html_url":"https://github.com/docker/libnetwork/pull/661","diff_url":"https://github.com/docker/libnetwork/pull/661.diff","patch_url":"https://github.com/docker/libnetwork/pull/661.patch"},"body":"During the run of `TestCreateMultipleNetworks()` (which runs in  a netns) occasionally `ipamutils.ElectInterfaceAddresses()` returns a network which is already being used, causing the test to fail. While debugging the test failure it turned out  the root cause was netutils.CheckRouteOverlaps() returning host routes during the failure. This looks the same issue that was fixed by #476. \r\n\r\nNow that the address pool election is moved away from bridge code into ipamutils via #588 , its execution is no longer tied to the netns by the fix introduced in #476.\r\n\r\nIn fact the random `TestCreateMultipleNetworks()` failures in circle ci started after #588.\r\n\r\nCloses #652 \r\n\r\nSigned-off-by: Alessandro Boch <aboch@docker.com>"},"comment":{"url":"https://api.github.com/repos/docker/libnetwork/issues/comments/148725589","html_url":"https://github.com/docker/libnetwork/pull/661#issuecomment-148725589","issue_url":"https://api.github.com/repos/docker/libnetwork/issues/661","id":148725589,"user":{"login":"mrjana","id":1693482,"avatar_url":"https://avatars.githubusercontent.com/u/1693482?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjana","html_url":"https://github.com/mrjana","followers_url":"https://api.github.com/users/mrjana/followers","following_url":"https://api.github.com/users/mrjana/following{/other_user}","gists_url":"https://api.github.com/users/mrjana/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjana/subscriptions","organizations_url":"https://api.github.com/users/mrjana/orgs","repos_url":"https://api.github.com/users/mrjana/repos","events_url":"https://api.github.com/users/mrjana/events{/privacy}","received_events_url":"https://api.github.com/users/mrjana/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:05:05Z","updated_at":"2015-10-16T14:05:05Z","body":"@aboch Good find. LGTM"}}