You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/06/10 13:46:33 UTC

[GitHub] [openwhisk-deploy-kube] yuxiaoba opened a new issue #607: install-packages error

yuxiaoba opened a new issue #607:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/607


   I have deploy openwhisk on kubernetes by  helm 3.2
   ```
   $ vi openwhisk.yaml
   # -----------Whisk-----------------
   whisk:
     ingress:
       awsSSL: "false"
       apiHostName: "33.33.33.183"
       apiHostPort: 31001
       apiHostProto: "http"
       type: NodePort
       annotations:
         nginx.ingress.kubernetes.io/proxy-body-size: "100m"
   
   
   
   # -----------Prometheus-----------------    
   prometheus:
     imageName: "prom/prometheus"
     imageTag: v2.14.0
     imagePullPolicy: "IfNotPresent"
     replicaCount: 1
     restartPolicy: "Always"
     port: 9090
     persistence:
       size: 10Gi
     persistentVolume:
       mountPath: /prometheus/
   
   
   # -----------Provider-----------------    
   providers:
     cloudant:
       enabled: false
   
   
   #-----------Invoker--------------------
   invoker:
     containerFactory:
       impl: "kubernetes"
   
   #-----------Metrics--------------------
   metrics:
     prometheusEnabled: true
     userMetricsEnabled: true
     whiskconfigFile: "whiskconfig.conf"
     kamonEnabled: true
     kamonTags: true
   
   $ helm install owdev ./helm/openwhisk -n openwhisk -f openwhisk.yaml
   $ kubectl get pod -n openwhisk 
   NAME                                     READY   STATUS      RESTARTS   AGE
   owdev-alarmprovider-b554f7dfb-zb4dd      1/1     Running     0          22m
   owdev-apigateway-7cc89c5c44-pjkrx        1/1     Running     0          22m
   owdev-controller-0                       1/1     Running     0          22m
   owdev-couchdb-5fb4894d7c-p99rp           1/1     Running     0          22m
   owdev-gen-certs-rqzn9                    0/1     Completed   0          22m
   owdev-grafana-dd76db4d9-vdzsw            1/1     Running     0          22m
   owdev-init-couchdb-kk8tn                 0/1     Completed   0          22m
   owdev-install-packages-9mw8d             0/1     Error       0          16m
   owdev-install-packages-shk9q             0/1     Error       0          18m
   owdev-install-packages-sn682             0/1     Error       0          13m
   owdev-install-packages-wspl9             0/1     Error       0          22m
   owdev-invoker-0                          1/1     Running     0          22m
   owdev-kafka-0                            1/1     Running     0          22m
   owdev-kafkaprovider-6d798794fc-lh2nw     1/1     Running     0          22m
   owdev-nginx-ff88b64d4-lqnjr              1/1     Running     0          22m
   owdev-prometheus-server-0                1/1     Running     0          22m
   owdev-redis-69b6656c78-2vvl2             1/1     Running     0          22m
   owdev-user-events-795cf7bdb6-jv7x6       1/1     Running     1          22m
   owdev-wskadmin                           1/1     Running     0          22m
   owdev-zookeeper-0                        1/1     Running     0          22m
   wskowdev-invoker-00-1-prewarm-nodejs10   1/1     Running     0          21m
   wskowdev-invoker-00-2-prewarm-nodejs10   1/1     Running     0          21m
   
   ```
   
   While the install-packages pods' status is error.
   
   The logs of the  install-packages  is 
   ```
   $ kubectl logs -n openwhisk owdev-install-packages-9mw8d 
   Cloning into 'openwhisk'...
   /openwhisk /
   Note: checking out '18bbac5bfa12f852f016536960d9b29a5c0198d9'.
   
   You are in 'detached HEAD' state. You can look around, make experimental
   changes and commit them, and you can discard any commits you make in this
   state without impacting any branches by performing another checkout.
   
   If you want to create a new branch to retain commits you create, you may
   do so (now or later) by using -b with the checkout command again. Example:
   
     git checkout -b <new-branch-name>
   
   HEAD is now at 18bbac5b Add jq to ow-utils image (#4901)
   /
   /openwhisk/ansible/roles/routemgmt/files /
   Installing apimgmt package
   error: Package update failed: The connection failed, or timed out. (HTTP status code 400)
   Failed to deploy routemgmt package; will pause, uninstall, and try again
   Deleting routemgmt actions
   error: Unable to get action 'routemgmt/getApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'routemgmt/createApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'routemgmt/deleteApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   Deleting routemgmt package - but only if it exists
   error: Unable to get package 'routemgmt': The connection failed, or timed out. (HTTP status code 400)
   Deleting apimgmt actions
   error: Unable to get action 'apimgmt/getApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'apimgmt/createApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'apimgmt/deleteApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   Deleting apimgmt package - but only if it exists
   error: Unable to get package 'apimgmt': The connection failed, or timed out. (HTTP status code 400)
   Installing apimgmt package
   error: Package update failed: The connection failed, or timed out. (HTTP status code 400)
   Failed to deploy routemgmt package; will pause, uninstall, and try again
   Deleting routemgmt actions
   error: Unable to get action 'routemgmt/getApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'routemgmt/createApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'routemgmt/deleteApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   Deleting routemgmt package - but only if it exists
   error: Unable to get package 'routemgmt': The connection failed, or timed out. (HTTP status code 400)
   Deleting apimgmt actions
   error: Unable to get action 'apimgmt/getApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   error: Unable to get action 'apimgmt/createApi': The connection failed, or timed out. (HTTP status code 400)
   Run 'wsk --help' for usage.
   ```
   
   It seems that there are some errors in openwhisk-deploy-kube/helm/openwhisk/configMapFiles/installPackages/myTask.sh
   ```
   pushd $OPENWHISK_HOME/ansible/roles/routemgmt/files
       # This operation is unreliable in a TravisCI environment (for unknown reasons),
       # so try multiple times before giving up.
       PASSED=false
       TRIES=0
       until $PASSED || [ $TRIES -eq 10 ]; do
           if ./installRouteMgmt.sh $WHISK_AUTH $WHISK_API_HOST_URL $WHISK_SYSTEM_NAMESPACE /usr/local/bin/wsk; then
               PASSED=true
               echo "Successfully deployed routemgmt package"
           else
               echo "Failed to deploy routemgmt package; will pause, uninstall, and try again"
               let TRIES=TRIES+1
               sleep 10
               ./uninstallRouteMgmt.sh $WHISK_AUTH $WHISK_API_HOST_URL $WHISK_SYSTEM_NAMESPACE /usr/local/bin/wsk;
           fi
       done
       if ! $PASSED; then
           echo "Giving up after 10 failed attempts to install the routemgmt package"
           exit 1
       fi
   popd
   ```
   
   How can I resolve this?
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk-deploy-kube] yuxiaoba closed issue #607: install-packages error

Posted by GitBox <gi...@apache.org>.
yuxiaoba closed issue #607:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/607


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk-deploy-kube] yuxiaoba commented on issue #607: install-packages error

Posted by GitBox <gi...@apache.org>.
yuxiaoba commented on issue #607:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/607#issuecomment-642344576


   Thank you for your reply, it is so userful !!!
   I think the cluster.yaml has some error, the `apiHostProto: "http"` should be the `apiHostProto: "https"` 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [openwhisk-deploy-kube] dgrove-oss commented on issue #607: install-packages error

Posted by GitBox <gi...@apache.org>.
dgrove-oss commented on issue #607:
URL: https://github.com/apache/openwhisk-deploy-kube/issues/607#issuecomment-642093605


   Usually this means that your ingress configuration is not correct.  The install scripts are trying to use the `wsk` cli to create packages/actions.  If `http://33.33.33.183:31001` is not reachable from within the cluster the scripts will fail in the way you are describing.
   
   The best way to debug is probably to run a ow-utils pod interactively (this will have `wsk` installed) and figure out how to set apihost to successfully connect from inside your cluster.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org