apache / openwhisk-deploy-kube

The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
https://openwhisk.apache.org/
Apache License 2.0
301 stars 231 forks source link

Unable to install OpenWhisk #759

Open axoxymous-coder opened 1 year ago

axoxymous-coder commented 1 year ago

Hi Team,

I am trying to install OpenWhisk in a Kubernetes cluster deployed via Kind. The kind config file is shown below:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: openwhisk
nodes:
- role: control-plane
- role: worker
  extraPortMappings:
    - hostPort: 
      containerPort: 31001
- role: worker

Command to create the cluster: sudo kind create cluster --config kind-cluster.yaml

sudo kubectl get nodes

NAME                      STATUS   ROLES           AGE   VERSION
openwhisk-control-plane   Ready    control-plane   14m   v1.25.3
openwhisk-worker          Ready    <none>          13m   v1.25.3
openwhisk-worker2         Ready    <none>          13m   v1.25.3

sudo kubectl cluster-info --context kind-openwhisk

Kubernetes control plane is running at https://127.0.0.1:42413
CoreDNS is running at https://127.0.0.1:42413/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

The OpenWhisk configuration file mycluster.yaml looks as below:

whisk:
  ingress:
    type: NodePort
    apiHostName: localhost
    apiHostPort: 31001
    apiHostProto: https
    useInternally: false

nginx:
  httpsNodePort: 31001

# disable affinity
affinity:
  enabled: false
toleration:
  enabled: false
invoker:
  options: "-Dwhisk.kubernetes.user-pod-node-affinity.enabled=false"
  # must use KCF as kind uses containerd as its container runtime
  containerFactory:
    impl: "kubernetes"

Command to deploy OpenWhisk: sudo helm install owdev openwhisk/openwhisk -n openwhisk --create-namespace -f mycluster.yaml

Output of the above command is shown below:

NAME: owdev
LAST DEPLOYED: Wed Mar  1 05:10:28 2023
NAMESPACE: openwhisk
STATUS: deployed
REVISION: 1
NOTES:
Apache OpenWhisk
Copyright 2016-2020 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 localhost:31001

Your release is named owdev.

To learn more about the release, try:

  $ helm status owdev
  $ helm get owdev

Once the 'owdev-install-packages' Pod is in the Completed state, your OpenWhisk deployment is ready to be used.

Once the deployment is ready, you can verify it using: 

  $ helm test owdev --cleanup

OpenWhisk Pod status: sudo kubectl get pods -n openwhisk

NAME                                                         READY   STATUS      RESTARTS        AGE
owdev-alarmprovider-6bf499454d-9zxqz                         1/1     Running     0               10m
owdev-apigateway-6cc4fdf844-g5ss9                            1/1     Running     0               10m
owdev-controller-0                                           1/1     Running     0               10m
owdev-couchdb-65886c6f99-ngvqh                               1/1     Running     0               10m
owdev-gen-certs-vfcv8                                        0/1     Completed   0               10m
owdev-init-couchdb-v6fw2                                     0/1     Completed   0               10m
owdev-install-packages-84g69                                 1/1     Running     0               33s
owdev-install-packages-bqsr2                                 0/1     Error       0               10m
owdev-install-packages-j6n62                                 0/1     Error       0               4m27s
owdev-install-packages-jw9wr                                 0/1     Error       0               2m30s
owdev-invoker-0                                              1/1     Running     0               10m
owdev-kafka-0                                                1/1     Running     1 (8m31s ago)   10m
owdev-kafkaprovider-568d8b8958-t27cm                         1/1     Running     0               10m
owdev-nginx-547f4fb7bc-5qp5d                                 1/1     Running     0               10m
owdev-redis-7c9c9bcb48-trh8t                                 1/1     Running     0               10m
owdev-wskadmin                                               1/1     Running     0               10m
owdev-zookeeper-0                                            1/1     Running     0               10m
wskowdev-invoker-00-1-prewarm-nodejs10                       1/1     Running     0               6m57s
wskowdev-invoker-00-2-prewarm-nodejs10                       1/1     Running     0               6m57s
wskowdev-invoker-00-3-whisksystem-invokerhealthtestaction0   1/1     Running     0               6m56s

The owdev-install-packages pod never comes to completed state after repeated retries. Logs for one the the attempt is shown below:

kubectl logs -n openwhisk owdev-install-packages-bqsr2
Cloning into 'openwhisk'...
/openwhisk /
Note: checking out '1.0.0'.

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 2c621c07 fix start.sh to work on macos (#5019)
/
/openwhisk/ansible/roles/routemgmt/files /
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Installing apimgmt package
error: Package update failed: Put https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt?overwrite=true: dial tcp [::1]:31001: getsockopt: connection refused
Failed to deploy routemgmt package; will pause, uninstall, and try again
Deleting routemgmt actions
error: Unable to get action 'routemgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'routemgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/routemgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting routemgmt package - but only if it exists
error: Unable to get package 'routemgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/routemgmt: dial tcp [::1]:31001: getsockopt: connection refused
Deleting apimgmt actions
error: Unable to get action 'apimgmt/getApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/getApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/createApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/createApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
error: Unable to get action 'apimgmt/deleteApi': Get https://localhost:31001/api/v1/namespaces/whisk.system/actions/apimgmt/deleteApi?code=false: dial tcp [::1]:31001: getsockopt: connection refused
Run 'wsk --help' for usage.
Deleting apimgmt package - but only if it exists
error: Unable to get package 'apimgmt': Get https://localhost:31001/api/v1/namespaces/whisk.system/packages/apimgmt: dial tcp [::1]:31001: getsockopt: connection refused
Giving up after 10 failed attempts to install the routemgmt package

Port 31001 is allowed in the host firewall where the Kubernetes cluster is installed.

Any help in resolving the above issue to have a successful install of OpenWhisk will be highly appreciated.

Thanks.

singhals163 commented 11 months ago

@axoxymous-coder did you figure out how to resolve this error?

estebanz01 commented 7 months ago

you can fix this by using the service that nginx creates, I solved with this:

whisk:
  ingress:
    type: NodePort
    apiHostName: owdev-nginx
    apiHostPort: 443
    useInternally: false
singhsegv commented 5 months ago

@estebanz01 changing the apiHostName to owdev-nginx is leading to dial tcp 10.96.4.117:31001: i/o timeout error now. Any idea about how to fix that?

estebanz01 commented 5 months ago

sorry, I can't help you as we ditched the idea of using openwhisk. We moved to knative :grinning: