{"action":"created","issue":{"url":"https://api.github.com/repos/socketplane/socketplane/issues/149","labels_url":"https://api.github.com/repos/socketplane/socketplane/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/socketplane/socketplane/issues/149/comments","events_url":"https://api.github.com/repos/socketplane/socketplane/issues/149/events","html_url":"https://github.com/socketplane/socketplane/issues/149","id":60582203,"number":149,"title":"Documentation : how to connect 2 physical servers","user":{"login":"pilerou","id":664865,"avatar_url":"https://avatars.githubusercontent.com/u/664865?v=3","gravatar_id":"","url":"https://api.github.com/users/pilerou","html_url":"https://github.com/pilerou","followers_url":"https://api.github.com/users/pilerou/followers","following_url":"https://api.github.com/users/pilerou/following{/other_user}","gists_url":"https://api.github.com/users/pilerou/gists{/gist_id}","starred_url":"https://api.github.com/users/pilerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilerou/subscriptions","organizations_url":"https://api.github.com/users/pilerou/orgs","repos_url":"https://api.github.com/users/pilerou/repos","events_url":"https://api.github.com/users/pilerou/events{/privacy}","received_events_url":"https://api.github.com/users/pilerou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/socketplane/socketplane/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"dave-tucker","id":3781777,"avatar_url":"https://avatars.githubusercontent.com/u/3781777?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-tucker","html_url":"https://github.com/dave-tucker","followers_url":"https://api.github.com/users/dave-tucker/followers","following_url":"https://api.github.com/users/dave-tucker/following{/other_user}","gists_url":"https://api.github.com/users/dave-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-tucker/subscriptions","organizations_url":"https://api.github.com/users/dave-tucker/orgs","repos_url":"https://api.github.com/users/dave-tucker/repos","events_url":"https://api.github.com/users/dave-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/dave-tucker/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/socketplane/socketplane/milestones/1","html_url":"https://github.com/socketplane/socketplane/milestones/0.1","labels_url":"https://api.github.com/repos/socketplane/socketplane/milestones/1/labels","id":915217,"number":1,"title":"0.1","description":"","creator":{"login":"dave-tucker","id":3781777,"avatar_url":"https://avatars.githubusercontent.com/u/3781777?v=3","gravatar_id":"","url":"https://api.github.com/users/dave-tucker","html_url":"https://github.com/dave-tucker","followers_url":"https://api.github.com/users/dave-tucker/followers","following_url":"https://api.github.com/users/dave-tucker/following{/other_user}","gists_url":"https://api.github.com/users/dave-tucker/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-tucker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-tucker/subscriptions","organizations_url":"https://api.github.com/users/dave-tucker/orgs","repos_url":"https://api.github.com/users/dave-tucker/repos","events_url":"https://api.github.com/users/dave-tucker/events{/privacy}","received_events_url":"https://api.github.com/users/dave-tucker/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2014-12-26T15:55:21Z","updated_at":"2015-03-13T01:28:34Z","due_on":"2015-01-31T00:00:00Z","closed_at":null},"comments":3,"created_at":"2015-03-10T22:45:14Z","updated_at":"2015-03-13T18:43:31Z","closed_at":"2015-03-13T01:28:34Z","body":"Hi,\r\n\r\nI posted a message on StackOverflow about the ability to connect 2 or more physical servers on which socketplane are installed.\r\nhttp://stackoverflow.com/questions/28901665/socketplane-and-docker-how-to-connect-2-or-more-physical-hosts-with-each-oth\r\n\r\nActually, i saw #69 and  #92 issues but I think I'm not in the same usecase.\r\n\r\nConsidering i have one physical server which IP is 5.x.x.x and another which IP is 91.x.x.x.\r\n\r\nI launched socketplane on both servers as explained in the documentation. The first one with \"`BOOTSTRAP=true`\" parameter and the second one with no parameter.\r\n\r\nI had the same problem as explained on this blog \r\nhttp://arnesund.com/2015/03/06/getting-started-with-socketplane-and-docker-on-openstack-vms/\r\n\r\nFirst, I wrote :\r\n`sudo socketplane cluster bind eth0`\r\nProblem solved even if I get an error when consul wanted to bind his port : \r\n> Error starting agent: Failed to start Consul server: Failed to start RPC layer: listen tcp 5.x.x.x:8300: bind: address already in use\r\n\r\nAfter network creation (called *net1*) on the first server 5.x.x.x, I launched two Ubuntu containers on it. The two containers was able to ping each other (*10.100.0.2* and *10.100.0.3*).\r\n\r\nOn the second server 91.x.x.x, I also began with \r\n`sudo socketplane cluster bind eth0`\r\nThen, I tried `sudo socketplane cluster join 5.x.x.x`\r\n\r\nAs I was \"tailing\" logs on 5.x.x.x server, I saw : \r\n>  2015/03/10 21:49:46 [INFO] serf: EventMemberJoin: testaca2 91.121.70.157\r\n    2015/03/10 21:49:46 [INFO] consul: member 'testaca2' joined, marking health alive\r\nINFO[1497] New Node joined the cluster : 91.121.70.157\r\n\r\n\r\n==> A tear flowed down my cheek :) :+1: \r\n\r\nI checked my cluster was OK  on both servers :\r\n`curl http://localhost:8500/v1/catalog/nodes`\r\n> [{\"Node\":\"testaca1\",\"Address\":\"5.x.x.x\"},{\"Node\":\"testaca2\",\"Address\":\"91.x.x.x\"}]\r\n\r\n==> Both OK !\r\n\r\nThe second server 91.x.x.x also recognised *net1* network.\r\n` socketplane network info net1`\r\n{\r\n    \"gateway\": \"10.100.0.1\",\r\n    \"id\": \"net1\",\r\n    \"subnet\": \"10.100.0.0/24\",\r\n    \"vlan\": 2\r\n}\r\n\r\n\r\nThen, I launched a new container by writing \r\n`socketplane run -n net1 -it ubuntu /bin/bash`\r\n`ifconfig` commands on this container confirms me I was on the good cluster as IP address was *10.100.0.4*.\r\n\r\nI tried to ping 10.100.0.2 and 10.100.0.3... \r\n==> But this time, I got :\r\n> From 10.100.0.2 icmp_seq=1 Destination Host Unreachable\r\n\r\nSame problem, when I tried to ping 91.x.x.x server container (10.100.0.4) from  5.x.x.x server containers (10.100.0.2 and 10.100.0.3) :\r\n> From 10.100.0.4 icmp_seq=1 Destination Host Unreachable\r\n\r\n\r\n**So I have 2 questions :**\r\n1. How to make my first server containers talk to my second server containers ?\r\n2. Is there functions or best practices in Socketplane to secure servers clusters (communications over SSH, authentication when a server join the cluster...) ?\r\n\r\nThose two questions could be splitted in two issues (bug for the first one and enhancement for the second one).\r\n\r\nThanks for your help."},"comment":{"url":"https://api.github.com/repos/socketplane/socketplane/issues/comments/79237931","html_url":"https://github.com/socketplane/socketplane/issues/149#issuecomment-79237931","issue_url":"https://api.github.com/repos/socketplane/socketplane/issues/149","id":79237931,"user":{"login":"pilerou","id":664865,"avatar_url":"https://avatars.githubusercontent.com/u/664865?v=3","gravatar_id":"","url":"https://api.github.com/users/pilerou","html_url":"https://github.com/pilerou","followers_url":"https://api.github.com/users/pilerou/followers","following_url":"https://api.github.com/users/pilerou/following{/other_user}","gists_url":"https://api.github.com/users/pilerou/gists{/gist_id}","starred_url":"https://api.github.com/users/pilerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilerou/subscriptions","organizations_url":"https://api.github.com/users/pilerou/orgs","repos_url":"https://api.github.com/users/pilerou/repos","events_url":"https://api.github.com/users/pilerou/events{/privacy}","received_events_url":"https://api.github.com/users/pilerou/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T18:43:31Z","updated_at":"2015-03-13T18:43:31Z","body":"I just tried once again after updating socketplane.\r\nIt works like a charm :+1: "}}