Hugh-ifly opened a new issue #293: controller-0 failed to probe the readiness 
of couchdb
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/293
 
 
   1. I followed all the steps to install openwhisk with helm on kubernetes 
cluster. When I entered the cmdline `helm status openwhisk` I got the following 
output:
   ```
   LAST DEPLOYED: Sat Sep  1 04:43:27 2018
   NAMESPACE: openwhisk
   STATUS: DEPLOYED
   
   RESOURCES:
   ==> v1/Pod(related)
   NAME                         READY  STATUS                 RESTARTS  AGE
   invoker-j7smk                0/1    Init:CrashLoopBackOff  309       3d
   invoker-p7jqq                0/1    Init:CrashLoopBackOff  943       3d
   apigateway-7b87dd957f-nfm47  1/1    Running                0         1d
   couchdb-6b87ccfb78-9454z     1/1    Running                0         1d
   nginx-598c75d7d6-j26jw       1/1    Running                0         1d
   redis-5d77674f65-bnzpp       1/1    Running                0         3d
   controller-0                 0/1    Init:1/2               0         1d
   kafka-0                      1/1    Running                0         1d
   zookeeper-0                  1/1    Running                0         3d
   init-couchdb-dd4nt           0/1    Completed              0         3d
   
   ==> v1/ConfigMap
   NAME                  DATA  AGE
   whisk.config          9     3d
   db.config             10    3d
   init-couchdb          1     3d
   install-catalog       1     3d
   install-routemgmt     1     3d
   docker-pull-runtimes  1     3d
   nginx                 1     3d
   zookeeper             1     3d
   
   ==> v1/ServiceAccount
   NAME     SECRETS  AGE
   ow-core  1        3d
   
   ==> v1/Service
   NAME        TYPE       CLUSTER-IP      EXTERNAL-IP  PORT(S)                  
                  AGE
   apigateway  ClusterIP  172.22.227.64   <none>       8080/TCP,9000/TCP        
                  3d
   controller  ClusterIP  172.22.31.64    <none>       8080/TCP                 
                  3d
   couchdb     ClusterIP  172.22.123.206  <none>       5984/TCP                 
                  3d
   kafka       ClusterIP  172.22.138.243  <none>       9092/TCP                 
                  3d
   nginx       NodePort   172.22.222.245  <none>       
80:32374/TCP,443:30999/TCP,8443:30549/TCP  3d
   redis       ClusterIP  172.22.154.138  <none>       6379/TCP                 
                  3d
   zookeeper   ClusterIP  None            <none>       
2181/TCP,2888/TCP,3888/TCP                 3d
   
   ==> v1beta1/DaemonSet
   NAME     DESIRED  CURRENT  READY  UP-TO-DATE  AVAILABLE  NODE SELECTOR  AGE
   invoker  2        2        0      2           0          <none>         3d
   
   ==> v1beta1/Deployment
   NAME        DESIRED  CURRENT  UP-TO-DATE  AVAILABLE  AGE
   apigateway  1        1        1           1          3d
   couchdb     1        1        1           1          3d
   nginx       1        1        1           1          3d
   redis       1        1        1           1          3d
   
   ==> v1/Job
   NAME               DESIRED  SUCCESSFUL  AGE
   init-couchdb       1        1           3d
   install-catalog    1        0           3d
   install-routemgmt  1        0           3d
   
   ==> v1/Secret
   NAME                  TYPE    DATA  AGE
   docker.registry.auth  Opaque  2     3d
   db.auth               Opaque  2     3d
   whisk.auth            Opaque  2     3d
   nginx                 tls     2     3d
   
   ==> v1/RoleBinding
   NAME        AGE
   allow-view  3d
   
   ==> v1beta1/StatefulSet
   NAME        DESIRED  CURRENT  AGE
   controller  1        1        3d
   kafka       1        1        3d
   zookeeper   1        1        3d
   
   
   NOTES:
   
   
   Apache OpenWhisk
   Copyright 2016-2018 The Apache Software Foundation
   
   This product includes software developed at
   The Apache Software Foundation (http://www.apache.org/).
   
   To configure your wsk cli to connect to it, set the apihost property
   using the command below:
     $ wsk property set --apihost 10.1.86.22:30999
   ```
   
   2. I dived into the container init phase of `controller-0` to see where the 
failure was. Below is each step and its output:
   (1) First I ran busybox on kubernetes node, entering `kubectl run -i --tty 
busybox --image=busybox`. Then I checked the `wait-for-kafka` and everything 
was ok:
   ```
   / #
   / # echo ruok | nc -w 1 zookeeper-0.zookeeper.openwhisk.svc.cluster.local 
2181
   imok
   / #
   ```
   (2) Second I checked the `wait-for-couchdb` but it failed:
   ```
   / # 
   / # 
READINESS_URL=http://couchdb.openwhisk.svc.cluster.local:5984/test_activations
   / # wget -T 5 --spider $READINESS_URL --header="Authorization: Basic 
d2hpc2tfYWRtaW46c29tZV9wYXNzdzByZA=="
   Connecting to couchdb.openwhisk.svc.cluster.local:5984 (172.22.123.206:5984)
   wget: server returned error: HTTP/1.1 404 Object Not Found
   / # 
   ```
   
   Any advice how to fix it? Thanks a lot! 
   
   

----------------------------------------------------------------
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