saurabh1284 commented on issue #2264: Unable to connect to the controller 
docker: Controller docker not starting
URL: 
https://github.com/apache/incubator-openwhisk/issues/2264#issuecomment-313647272
 
 
   @Katiyman . Thx for your inputs.
   Yes, its a distributed setup. There is no any proxy set. 
   I did not explicitly mentioned anything for couchdb, just followed the steps 
mentioned in documentation.
   What are the configuration setting for couchdb ?
   
   Please find setup details : ->
   ## Environment details:
   * distributed environment, native ubuntu 14.04    
   * 2 separate VMs running on openstack. Both are created manually (m1.large). 
   * IP addresses are able to ping each other and also able to ssh each other 
using private key shared.
   * As per my understanding of openwhisk , trying to have a setup in which 
will have 1 VM as Infra VM on which all sub-component of openwhisk (registry, 
edge, controllers, kafka etc.)  will run and 2nd VM on which invoker will run 
which will create containers to run action. 
   
   ## Total steps followed:
   1.   Followed steps mentioned in : 
         
https://github.com/apache/incubator-openwhisk/blob/master/tools/ubuntu-setup/README.md
           # Install git if it is not installed
        sudo apt-get install git -y  
   
        # Clone openwhisk
        git clone https://github.com/apache/incubator-openwhisk.git openwhisk
   
        # Change current directory to openwhisk
        cd openwhisk
   
        # Install all required software
        (cd tools/ubuntu-setup && ./all.sh)
           Here I had modified "docker.sh" to have docker running on specific 
IP adress(but same port).
           This is same IP address which I had mentioned in ansible host file.
           
           sudo -E bash -c 'echo '\''DOCKER_OPTS="-H tcp://10.11.12.24:4243 -H 
unix:///var/run/docker.sock 
          --storage-driver=aufs"'\'' >> /etc/default/docker'
          #sudo -E bash -c 'echo '\''DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H 
unix:///var/run/docker.sock --
          storage-driver=aufs"'\'' >> /etc/default/docker'
          
          sudo -E bash -c 'echo '\''export 
DOCKER_HOST="tcp://10.11.12.24:4243"'\'' >> /etc/bash.bashrc'
          #sudo -E bash -c 'echo '\''export 
DOCKER_HOST="tcp://0.0.0.0:4243"'\'' >> /etc/bash.bashrc'
          
   2. After all.sh finishes, follow link:
    
https://github.com/apache/incubator-openwhisk/blob/master/ansible/README_DISTRIBUTED.md
 
   
         ansible all -i environments/distributed -m ping
         ansible-playbook -i environments/distributed setup.yml
         ansible-playbook -i environments/distributed prereq_build.yml
         ansible-playbook -i environments/distributed registry.yml
         cd ..
        ./gradlew distDocker -PdockerHost=10.11.12.24:4243 
-PdockerRegistry=10.11.12.24:5000
        
         > Deploy CouchDB and configure OpenWhisk deployment.
           cd ansible
        ansible-playbook -i environments/distributed couchdb.yml
        ansible-playbook -i environments/distributed initdb.yml
        ansible-playbook -i environments/distributed wipe.yml
        ansible-playbook -i environments/distributed openwhisk.yml
           << Failed over here as above mentioned same error >>
   
   ## Additional information you deem important:
   
   -> cat /root/openwhisk/ansible/environments/distributed/hosts
   ; the first parameter in a host is the inventory_hostname which has to be
   ; either an ip
   ; or a resolvable hostname
   
   ; used for local actions only
   ansible ansible_connection=local
   [registry]
   10.11.12.24
   [edge]
   10.11.12.24
   [apigateway:children]
   edge
   [controllers]
   10.11.12.24
   [kafka]
   10.11.12.24
   [consul_servers]
   10.11.12.24
   [invokers]
   10.11.12.25
   [db]
   10.11.12.24
   
   -> docker ps --format "{{.Names}} - {{.Image}} - {{.Ports}}"
   consul - consul:0.7.0 - 0.0.0.0:8300-8302->8300-8302/tcp, 
0.0.0.0:8400->8400/tcp, 0.0.0.0:8301-8302->8301-8302/udp, 
0.0.0.0:8500->8500/tcp, 0.0.0.0:8600->8600/udp, 8600/tcp
   couchdb - couchdb:1.6 - 0.0.0.0:5984->5984/tcp
   whisk_docker_registry - registry:2.3.1 - 0.0.0.0:5000->5000/tcp
   
   -> ps -eaf | grep docker
   root      2704 14500  0 09:58 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 5984 -container-ip 172.17.0.3 -container-port 
5984
   root      2712 14515  0 09:58 ?        00:00:00 docker-containerd-shim 
e69d639b1f0eca327f6cd9c6fc5669112d012f8e5ba90c43a8a88a02e01d5a1c 
/var/run/docker/libcontainerd/e69d639b1f0eca327f6cd9c6fc5669112d012f8e5ba90c43a8a88a02e01d5a1c
 docker-runc
   root      2728  2712  0 09:58 ?        00:00:02 tini -- 
/docker-entrypoint.sh couchdb
   root      4392 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
udp -host-ip 0.0.0.0 -host-port 8600 -container-ip 172.17.0.4 -container-port 
8600
   root      4401 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 8500 -container-ip 172.17.0.4 -container-port 
8500
   root      4409 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 8400 -container-ip 172.17.0.4 -container-port 
8400
   root      4417 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 8302 -container-ip 172.17.0.4 -container-port 
8302
   root      4427 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
udp -host-ip 0.0.0.0 -host-port 8302 -container-ip 172.17.0.4 -container-port 
8302
   root      4437 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 8301 -container-ip 172.17.0.4 -container-port 
8301
   root      4446 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
udp -host-ip 0.0.0.0 -host-port 8301 -container-ip 172.17.0.4 -container-port 
8301
   root      4456 14500  0 10:11 ?        00:00:00 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 8300 -container-ip 172.17.0.4 -container-port 
8300
   root      6022  5989 99 10:25 pts/3    00:00:01 grep --color=auto docker
   root     14500     1  1 Jul05 ?        00:41:55 /usr/bin/dockerd -H 
tcp://10.11.12.24:4243 -H unix:///var/run/docker.sock --storage-driver=aufs 
--insecure-registry 10.11.12.24:5000 --raw-logs
   root     14515 14500  0 Jul05 ?        00:06:06 docker-containerd -l 
unix:///var/run/docker/libcontainerd/docker-containerd.sock --shim 
docker-containerd-shim --metrics-interval=0 --start-timeout 2m --state-dir 
/var/run/docker/libcontainerd/containerd --runtime docke -runc
   root     14630 14500  0 Jul05 ?        00:00:02 /usr/bin/docker-proxy -proto 
tcp -host-ip 0.0.0.0 -host-port 5000 -container-ip 172.17.0.2 -container-port 
5000
   root     14637 14515  0 Jul05 ?        00:00:03 docker-containerd-shim 
396bd34e718d5e03fc78dfb056aa3e7f25956193c62a8b1aad016f3bf2ed2c08 
/var/run/docker/libcontainerd/396bd34e718d5e03fc78dfb056aa3e7f25956193c62a8b1aad016f3bf2ed2c08
 docker-runc
   root     14655 14637  0 Jul05 ?        00:06:19 /bin/registry 
/etc/docker/registry/config.yml
   
   -> netstat -atpn
   Active Internet connections (servers and established)
   Proto Recv-Q Send-Q Local Address           Foreign Address         State    
   PID/Program name
   tcp        0      0 10.11.12.24:4243        0.0.0.0:*               LISTEN   
   14500/dockerd
   tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN   
   1372/sshd
   tcp        0      0 10.11.12.24:22          10.20.2.4:45740         
ESTABLISHED 5896/sshd: ubuntu [
   tcp        0      0 10.11.12.24:22          10.20.2.4:40068         
ESTABLISHED 2216/sshd: ubuntu [
   tcp6       0      0 :::8500                 :::*                    LISTEN   
   4401/docker-proxy
   tcp6       0      0 :::22                   :::*                    LISTEN   
   1372/sshd
   tcp6       0      0 :::5984                 :::*                    LISTEN   
   2704/docker-proxy
   tcp6       0      0 :::5000                 :::*                    LISTEN   
   14630/docker-proxy
   tcp6       0      0 :::8300                 :::*                    LISTEN   
   4456/docker-proxy
   tcp6       0      0 :::8301                 :::*                    LISTEN   
   4437/docker-proxy
   tcp6       0      0 :::8302                 :::*                    LISTEN   
   4417/docker-proxy
   tcp6       0      0 :::8400                 :::*                    LISTEN   
   4409/docker-proxy
   
   ===========================
   Correct me if I am doing something wrong.. Please suggest
   Thx !
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to