{"action":"created","issue":{"url":"https://api.github.com/repos/weaveworks/weave/issues/1083","labels_url":"https://api.github.com/repos/weaveworks/weave/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/weave/issues/1083/comments","events_url":"https://api.github.com/repos/weaveworks/weave/issues/1083/events","html_url":"https://github.com/weaveworks/weave/issues/1083","id":93290197,"number":1083,"title":"`weave launch` hangs on IPAM claim","user":{"login":"awh","id":1504438,"avatar_url":"https://avatars.githubusercontent.com/u/1504438?v=3","gravatar_id":"","url":"https://api.github.com/users/awh","html_url":"https://github.com/awh","followers_url":"https://api.github.com/users/awh/followers","following_url":"https://api.github.com/users/awh/following{/other_user}","gists_url":"https://api.github.com/users/awh/gists{/gist_id}","starred_url":"https://api.github.com/users/awh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awh/subscriptions","organizations_url":"https://api.github.com/users/awh/orgs","repos_url":"https://api.github.com/users/awh/repos","events_url":"https://api.github.com/users/awh/events{/privacy}","received_events_url":"https://api.github.com/users/awh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/weaveworks/weave/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/weaveworks/weave/milestones/10","html_url":"https://github.com/weaveworks/weave/milestones/1.0.2","labels_url":"https://api.github.com/repos/weaveworks/weave/milestones/10/labels","id":1174983,"number":10,"title":"1.0.2","description":"","creator":{"login":"rade","id":109109,"avatar_url":"https://avatars.githubusercontent.com/u/109109?v=3","gravatar_id":"","url":"https://api.github.com/users/rade","html_url":"https://github.com/rade","followers_url":"https://api.github.com/users/rade/followers","following_url":"https://api.github.com/users/rade/following{/other_user}","gists_url":"https://api.github.com/users/rade/gists{/gist_id}","starred_url":"https://api.github.com/users/rade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rade/subscriptions","organizations_url":"https://api.github.com/users/rade/orgs","repos_url":"https://api.github.com/users/rade/repos","events_url":"https://api.github.com/users/rade/events{/privacy}","received_events_url":"https://api.github.com/users/rade/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":20,"state":"open","created_at":"2015-06-22T11:58:22Z","updated_at":"2015-07-06T14:22:22Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-06T14:17:02Z","updated_at":"2015-07-06T14:25:12Z","closed_at":null,"body":"@pacaletx encountered the following problem attempting to dynamically grow a weave 0.11.2 network ([IRC transcript](https://botbot.me/freenode/weavenetwork/2015-07-06/?msg=43773908&page=1)):\r\n\r\nOn `$HOST1`\r\n````\r\nweave launch -iprange 10.2.3.0/24 -initpeercount 1\r\nweave launch-dns \"10.9.1.1/24\" -debug\r\nweave launch-proxy --with-dns --with-ipam\r\n````\r\n\r\nLater, attempt to add `$HOST2`\r\n````\r\nweave launch -iprange 10.2.3.0/24 -initpeercount 2\r\n````\r\nwith the intent of following up with `launch-dns`/`launch-proxy` and `weave connect $HOST1`. This is not possible as the `weave launch` on $HOST2 hangs:\r\n\r\n````\r\nAllocator range [10.2.3.0-10.2.4.0) awaiting consensus: Nodes known: 1, Quorum size: 2\r\nPending requests:\r\n  Claim 1f38974edf82148f65b1a721003a89f708e922a2846a280e8f5bdb87353882e8 -> 10.2.3.1\r\nAllocator default subnet: 10.2.3.0/24\r\n````\r\n\r\n@bboreham diagnosed that $HOST2 had extant application containers with `ethwe` interfaces addressed inside the IPAM range; `weave launch` was therefore waiting on IPAM quorum to reclaim these addresses, a state which would never be reached as the two routers were not yet connected. User confirmed that a `weave connect $HOST1` in a separate session on $HOST2 allowed the `weave launch` to complete.\r\n\r\nPossible workarounds:\r\n\r\n* Ensure no application containers are running when weave is launched\r\n* Specify IP address to second launch\r\n* Run `weave connect` asynchronously\r\n\r\nall of which are inconvenient in other ways.\r\n\r\nFinally, it was not clear why `weave launch` was stuck (similar concerns are echoed [here](https://github.com/weaveworks/weave/issues/1023#issuecomment-118781742))"},"comment":{"url":"https://api.github.com/repos/weaveworks/weave/issues/comments/118871721","html_url":"https://github.com/weaveworks/weave/issues/1083#issuecomment-118871721","issue_url":"https://api.github.com/repos/weaveworks/weave/issues/1083","id":118871721,"user":{"login":"bboreham","id":8125524,"avatar_url":"https://avatars.githubusercontent.com/u/8125524?v=3","gravatar_id":"","url":"https://api.github.com/users/bboreham","html_url":"https://github.com/bboreham","followers_url":"https://api.github.com/users/bboreham/followers","following_url":"https://api.github.com/users/bboreham/following{/other_user}","gists_url":"https://api.github.com/users/bboreham/gists{/gist_id}","starred_url":"https://api.github.com/users/bboreham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboreham/subscriptions","organizations_url":"https://api.github.com/users/bboreham/orgs","repos_url":"https://api.github.com/users/bboreham/repos","events_url":"https://api.github.com/users/bboreham/events{/privacy}","received_events_url":"https://api.github.com/users/bboreham/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T14:25:12Z","updated_at":"2015-07-06T14:25:12Z","body":"The thing you'd lose is the ability to notify the user that another peer now owned one of the IP addresses.\r\n\r\nWhich is not hugely important compared to hanging the whole thing."}}