Hi, I was trying to run the Kubernetes setup documented in [1] to verify whether there were any documentation gaps.
Initially, I was facing an issue where the networking aspect was not getting automatically configured in VirtualBox. This was probably because I had an older version of VirtualBox, which did not get uninstalled properly etc. To overcome this issue I reinstalled the required software on another machine (OS X) and ran the steps in [1]. Now, there are no networking issues when accessing the master node. However, I am still faced with an issue with my Kubernetes cluster and I also can not download (pull) the Docker image to the master node. [1] https://cwiki.apache.org/confluence/display/STRATOS/4.1.0-Alpha+Install+Stratos+with+Kubernetes Admin16s-MacBook-Air:vagrant-kubernetes-setup Admin16$ vagrant up /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Applications/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777 Bringing machine 'discovery' up with 'virtualbox' provider... Bringing machine 'master' up with 'virtualbox' provider... ==> discovery: Box 'coreos-alpha' could not be found. Attempting to find and install... discovery: Box Provider: virtualbox discovery: Box Version: >= 509.0.0 ==> discovery: Loading metadata for box ' http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json ' discovery: URL: http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json ==> discovery: Adding box 'coreos-alpha' (v591.0.0) for provider: virtualbox discovery: Downloading: http://alpha.release.core-os.net/amd64-usr/591.0.0/coreos_production_vagrant.box discovery: Calculating and comparing box checksum... ==> discovery: Successfully added box 'coreos-alpha' (v591.0.0) for 'virtualbox'! ==> discovery: Importing base box 'coreos-alpha'... ==> discovery: Matching MAC address for NAT networking... ==> discovery: Checking if box 'coreos-alpha' is up to date... ==> discovery: Setting the name of the VM: vagrant-kubernetes-setup_discovery_1423813813746_34009 ==> discovery: Clearing any previously set network interfaces... ==> discovery: Preparing network interfaces based on configuration... discovery: Adapter 1: nat discovery: Adapter 2: hostonly ==> discovery: Forwarding ports... discovery: 22 => 2222 (adapter 1) ==> discovery: Running 'pre-boot' VM customizations... ==> discovery: Booting VM... ==> discovery: Waiting for machine to boot. This may take a few minutes... discovery: SSH address: 127.0.0.1:2222 discovery: SSH username: core discovery: SSH auth method: private key discovery: Warning: Connection timeout. Retrying... ==> discovery: Machine booted and ready! ==> discovery: Setting hostname... ==> discovery: Configuring and enabling network interfaces... ==> discovery: Running provisioner: file... ==> discovery: Running provisioner: shell... discovery: Running: inline script ==> master: Box 'coreos-alpha' could not be found. Attempting to find and install... master: Box Provider: virtualbox master: Box Version: >= 509.0.0 ==> master: Loading metadata for box ' http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json ' master: URL: http://alpha.release.core-os.net/amd64-usr/current/coreos_production_vagrant.json ==> master: Adding box 'coreos-alpha' (v591.0.0) for provider: virtualbox ==> master: Importing base box 'coreos-alpha'... ==> master: Matching MAC address for NAT networking... ==> master: Checking if box 'coreos-alpha' is up to date... ==> master: Setting the name of the VM: vagrant-kubernetes-setup_master_1423813838740_69912 ==> master: Fixed port collision for 22 => 2222. Now on port 2200. ==> master: Clearing any previously set network interfaces... ==> master: Preparing network interfaces based on configuration... master: Adapter 1: nat master: Adapter 2: hostonly ==> master: Forwarding ports... master: 4001 => 4001 (adapter 1) master: 22 => 2200 (adapter 1) ==> master: Running 'pre-boot' VM customizations... ==> master: Booting VM... ==> master: Waiting for machine to boot. This may take a few minutes... master: SSH address: 127.0.0.1:2200 master: SSH username: core master: SSH auth method: private key master: Warning: Connection timeout. Retrying... ==> master: Machine booted and ready! ==> master: Setting hostname... ==> master: Configuring and enabling network interfaces... ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script ==> master: Running provisioner: file... ==> master: Running provisioner: shell... master: Running: inline script Admin16s-MacBook-Air:vagrant-kubernetes-setup Admin16$ vagrant ssh master /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /Applications/Vagrant/embedded/gems/gems/bundler-1.6.6/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777 CoreOS alpha (591.0.0) Update Strategy: No Reboots core@master ~ $ sudo systemctl restart controller-manager core@master ~ $ kubecfg list minions F0213 07:53:16.660889 2544 kubecfg.go:428] Got request error: Get http://localhost:8080/api/v1beta1/minions?namespace=default: dial tcp 127.0.0.1:8080: connection refused core@master ~ $ ping google.com PING google.com (222.165.163.159) 56(84) bytes of data. 64 bytes from 222.165.163.159: icmp_seq=1 ttl=63 time=7.04 ms 64 bytes from 222.165.163.159: icmp_seq=2 ttl=63 time=7.09 ms 64 bytes from 222.165.163.159: icmp_seq=3 ttl=63 time=5.85 ms 64 bytes from 222.165.163.159: icmp_seq=4 ttl=63 time=5.93 ms 64 bytes from 222.165.163.159: icmp_seq=5 ttl=63 time=3.54 ms 64 bytes from 222.165.163.159: icmp_seq=6 ttl=63 time=5.75 ms 64 bytes from 222.165.163.159: icmp_seq=7 ttl=63 time=6.53 ms --- google.com ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6010ms rtt min/avg/max/mdev = 3.541/5.967/7.093/1.115 ms core@master ~ $ docker pull stratos/php:4.1.0-alpha ^Ccore@master ~ $ docker pull stratos/php:4.1.0-beta ^Ccore@master ~ $ kubecfg list minions F0213 08:08:18.343231 11722 kubecfg.go:428] Got request error: Get http://localhost:8080/api/v1beta1/minions?namespace=default: EOF core@master ~ $ docker pull stratos/php:4.1.0-alpha FATA[0000] Post http:///var/run/docker.sock/v1.17/images/create?fromImage=stratos%2Fphp%3A4.1.0-alpha: dial unix /var/run/docker.sock: resource temporarily unavailable core@master ~ $ docker pull stratos/php:4.1.0-beta FATA[0000] Post http:///var/run/docker.sock/v1.17/images/create?fromImage=stratos%2Fphp%3A4.1.0-beta: dial unix /var/run/docker.sock: resource temporarily unavailable core@master ~ $ ping google.com PING google.com (222.165.163.49) 56(84) bytes of data. 64 bytes from 222.165.163.49: icmp_seq=1 ttl=63 time=7.82 ms 64 bytes from 222.165.163.49: icmp_seq=2 ttl=63 time=7.56 ms 64 bytes from 222.165.163.49: icmp_seq=3 ttl=63 time=6.60 ms 64 bytes from 222.165.163.49: icmp_seq=4 ttl=63 time=6.00 ms 64 bytes from 222.165.163.49: icmp_seq=5 ttl=63 time=5.92 ms 64 bytes from 222.165.163.49: icmp_seq=6 ttl=63 time=11.6 ms 64 bytes from 222.165.163.49: icmp_seq=7 ttl=63 time=8.68 ms 64 bytes from 222.165.163.49: icmp_seq=8 ttl=63 time=5.69 ms --- google.com ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7011ms rtt min/avg/max/mdev = 5.698/7.500/11.687/1.865 ms core@master ~ $ kubecfg list minions F0213 08:18:48.343963 18149 kubecfg.go:428] Got request error: Get http://localhost:8080/api/v1beta1/minions?namespace=default: EOF core@master ~ $ docker pull stratos/php:4.1.0-beta FATA[0000] Post http:///var/run/docker.sock/v1.17/images/create?fromImage=stratos%2Fphp%3A4.1.0-beta: dial unix /var/run/docker.sock: resource temporarily unavailable core@master ~ $ kubecfg list minions F0213 08:49:31.165542 4498 kubecfg.go:428] Got request error: Get http://localhost:8080/api/v1beta1/minions?namespace=default: dial tcp 127.0.0.1:8080: connection refused core@master ~ $ kubecfg list minions F0213 09:02:56.232329 12613 kubecfg.go:428] Got request error: Get http://localhost:8080/api/v1beta1/minions?namespace=default: dial tcp 127.0.0.1:8080: connection refused core@master ~ $ ping facebook.com PING facebook.com (173.252.120.6) 56(84) bytes of data. 64 bytes from 173.252.120.6: icmp_seq=1 ttl=63 time=309 ms 64 bytes from 173.252.120.6: icmp_seq=2 ttl=63 time=252 ms 64 bytes from 173.252.120.6: icmp_seq=3 ttl=63 time=292 ms 64 bytes from 173.252.120.6: icmp_seq=4 ttl=63 time=335 ms 64 bytes from 173.252.120.6: icmp_seq=5 ttl=63 time=249 ms --- facebook.com ping statistics --- 6 packets transmitted, 5 received, 16% packet loss, time 5003ms rtt min/avg/max/mdev = 249.720/288.093/335.796/33.053 ms Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. w: http://wso2.com <http://wso2.com/events/>