Ra1nmaker opened a new issue #35: Invoker is not deployed
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/35
 
 
   Hi,
   I want to deploy OpenWhisk on Kubernetes (v1.5.6) by using this code.
   I found that when I used default setting (danlavine's whisk_config:v1.5.6 
image) and execute "kubectl apply -f configure/configure_whisk.yml", invoker 
was not installed & configured.<br>
   
   I checked job, and found that "kubectl apply -f 
environments/kube/files/invoker-service.yml" was never called. I doubt that 
Installing & configuring invoker was not executed.
   
   [Log (snipet)]
   ```bash
   $kubectl -n openwhisk logs -f configure-openwhisk-n639f
   + cp -R /openwhisk/ansible/ /incubator-openwhisk-deploy-kube/ansible
   + cp -R /openwhisk/tools/ /incubator-openwhisk-deploy-kube/tools
   + cp -R /openwhisk/bin/ /incubator-openwhisk-deploy-kube/bin
   + mkdir -p /incubator-openwhisk-deploy-kube/core
   + cp -R /openwhisk/core/routemgmt 
/incubator-openwhisk-deploy-kube/core/routemgmt
   + cp -R /incubator-openwhisk-deploy-kube/ansible-kube/. 
/incubator-openwhisk-deploy-kube/ansible/
   + pushd /incubator-openwhisk-deploy-kube/ansible
   /incubator-openwhisk-deploy-kube/ansible /
   + ansible-playbook -i environments/kube setup.yml
   + kubectl proxy -p 8001
   Starting to serve on 127.0.0.1:8001
   PLAY [localhost] 
***************************************************************
   :
   Tuesday 11 July 2017  11:15:53 +0000 (0:00:01.119)       0:00:11.520 
********** 
   
=============================================================================== 
   Gathering Facts --------------------------------------------------------- 
9.16s
   gen untrusted certificate for host -------------------------------------- 
1.12s
   prepare db_local.ini ---------------------------------------------------- 
0.62s
   check if db_local.ini exists? ------------------------------------------- 
0.39s
   find the ip of docker-machine ------------------------------------------- 
0.05s
   get the docker-machine ip ----------------------------------------------- 
0.05s
   gen hosts for docker-machine -------------------------------------------- 
0.05s
   add new db host on-the-fly ---------------------------------------------- 
0.05s
   + kubectl apply -f environments/kube/files/db-service.yml
   service "couchdb" created
   + kubectl apply -f environments/kube/files/consul-service.yml
   service "consul" created
   + kubectl apply -f environments/kube/files/zookeeper-service.yml
   service "zookeeper" created
   + kubectl apply -f environments/kube/files/kafka-service.yml
   service "kafka" created
   + kubectl apply -f environments/kube/files/controller-service.yml
   service "controller" created
   + deployCouchDB
   ++ kubectl -n openwhisk get pods --show-all
   ++ grep couchdb
   ++ grep 1/1
   + COUCH_DEPLOYED=
   + '[' -z '' ']'
   + return 0
   + ansible-playbook -i environments/kube couchdb.yml
   :
   ```
   [Result]
   ```
   $kubectl -n openwhisk get pods --show-all=true
   NAME                          READY     STATUS      RESTARTS   AGE
   configure-openwhisk-n639f     0/1       Completed   0          7m
   consul-57995027-gtkfr         2/2       Running     0          5m
   controller-3250411552-jxnrd   1/1       Running     0          4m
   couchdb-109298327-0h6c6       1/1       Running     0          6m
   kafka-1060962555-62sx5        1/1       Running     0          4m
   zookeeper-1304892743-w5vwj    1/1       Running     0          4m
   ```
   
   On the other hand, I built my own customed image and run  "kubectl apply -f 
environments/kube/files/invoker-service.yml", everything was finished 
successfully and invoker was created in the end.
   
   [Log (snipet)]
   ```
   $kubectl -n openwhisk logs -f configure-openwhisk-s520q
   ++ awk '{print $2}'
   ++ grep replicas:
   ++ cat 
/incubator-openwhisk-deploy-kube/ansible-kube/environments/kube/files/invoker.yml
   + INVOKER_REP_COUNT=1
   + INVOKER_COUNT=1
   + sed -ie s/REPLACE_INVOKER_COUNT/1/g 
/incubator-openwhisk-deploy-kube/ansible-kube/environments/kube/group_vars/all
   + cp -R /openwhisk/ansible/ /incubator-openwhisk-deploy-kube/ansible
   + cp -R /openwhisk/tools/ /incubator-openwhisk-deploy-kube/tools
   + cp -R /openwhisk/bin/ /incubator-openwhisk-deploy-kube/bin
   + mkdir -p /incubator-openwhisk-deploy-kube/core
   + cp -R /openwhisk/core/routemgmt 
/incubator-openwhisk-deploy-kube/core/routemgmt
   + cp -R /incubator-openwhisk-deploy-kube/ansible-kube/. 
/incubator-openwhisk-deploy-kube/ansible/
   + pushd /incubator-openwhisk-deploy-kube/ansible
   + ansible-playbook -i environments/kube setup.yml
   /incubator-openwhisk-deploy-kube/ansible /
   + kubectl proxy -p 8001
   Starting to serve on 127.0.0.1:8001
   PLAY [localhost] 
***************************************************************
   :
   Wednesday 12 July 2017  02:12:14 +0000 (0:00:00.985)       0:00:10.246 
******** 
   
=============================================================================== 
   Gathering Facts --------------------------------------------------------- 
8.15s
   gen untrusted certificate for host -------------------------------------- 
0.99s
   prepare db_local.ini ---------------------------------------------------- 
0.56s
   check if db_local.ini exists? ------------------------------------------- 
0.35s
   find the ip of docker-machine ------------------------------------------- 
0.04s
   get the docker-machine ip ----------------------------------------------- 
0.04s
   gen hosts for docker-machine -------------------------------------------- 
0.04s
   add new db host on-the-fly ---------------------------------------------- 
0.04s
   + kubectl apply -f environments/kube/files/db-service.yml
   service "couchdb" created
   + kubectl apply -f environments/kube/files/consul-service.yml
   service "consul" created
   + kubectl apply -f environments/kube/files/zookeeper-service.yml
   service "zookeeper" created
   + kubectl apply -f environments/kube/files/kafka-service.yml
   service "kafka" created
   + kubectl apply -f environments/kube/files/controller-service.yml
   service "controller" created
   + kubectl apply -f environments/kube/files/invoker-service.yml
   service "invoker" created
   + deployCouchDB
   ++ kubectl -n openwhisk get pods --show-all
   ++ grep 1/1
   ++ grep couchdb
   + COUCH_DEPLOYED=
   + '[' -z '' ']'
   + return 0
   + ansible-playbook -i environments/kube couchdb.yml
   
   PLAY [db] 
**********************************************************************
   :
   ```
   
   [Result]
   ```
   $kubectl -n openwhisk get pods --show-all=true
   NAME                          READY     STATUS      RESTARTS   AGE
   configure-openwhisk-3w4gv     0/1       Completed   0          6h
   consul-57995027-8gsvd         2/2       Running     0          6h
   controller-3250411552-j3fvk   1/1       Running     0          6h
   couchdb-109298327-kbr26       1/1       Running     0          6h
   invoker-0                     1/1       Running     0          6h
   kafka-1060962555-f71g9        1/1       Running     0          6h
   zookeeper-1304892743-03ksc    1/1       Running     0          6h
   ```
   
   At this time, do we have to create own customized image to build OpenWhisk 
environment on Kubernetes? <br>
   
   Regards,
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to