skupper icon indicating copy to clipboard operation
skupper copied to clipboard

--console-auth=openshift fails without explanation on non-openshift clusters

Open hash-d opened this issue 1 year ago • 3 comments

Describe the bug

skupper init with --console-auth=openshift fails to get skupper started in a non-OpenShift cluster, and no obvious reason for the failure can be seen.

How To Reproduce

Execute on a non-OpenShift cluster:

$ skupper init --enable-console --enable-flow-collector --console-auth=openshift
Waiting for LoadBalancer IP or hostname...
Waiting for status...
Skupper status is not loaded yet.
Skupper is now installed in namespace 'dh-oauth'.  Use 'skupper status' to get more information.
$ skupper status
Status pending...
$ k get pod
NAME                                          READY   STATUS              RESTARTS   AGE
skupper-prometheus-5df7c7f66f-hh6cj           1/1     Running             0          72s
skupper-router-8655964fb-x6jdp                2/2     Running             0          75s
skupper-service-controller-64849cc6f9-tqjbk   0/3     ContainerCreating   0          73s
$ k get event | grep Warn
2m18s       Warning   FailedMount         pod/skupper-router-8655964fb-x6jdp                 MountVolume.SetUp failed for volume "claims-cert" : secret "skupper-site-server" not found
2m19s       Warning   FailedMount         pod/skupper-router-8655964fb-x6jdp                 MountVolume.SetUp failed for volume "router-config" : configmap "skupper-internal" not found
2m18s       Warning   FailedMount         pod/skupper-router-8655964fb-x6jdp                 MountVolume.SetUp failed for volume "skupper-site-server" : secret "skupper-site-server" not found
2m10s       Warning   Unhealthy           pod/skupper-router-8655964fb-x6jdp                 Readiness probe failed: Get "http://172.17.0.6:9090/healthz": dial tcp 172.17.0.6:9090: connect: connection refused
2m7s        Warning   Unhealthy           pod/skupper-router-8655964fb-x6jdp                 Readiness probe failed: Get "http://172.17.0.6:9191/healthz": dial tcp 172.17.0.6:9191: connect: connection refused
10s         Warning   FailedMount         pod/skupper-service-controller-64849cc6f9-tqjbk    MountVolume.SetUp failed for volume "skupper-console-certs" : secret "skupper-console-certs" not found
15s         Warning   FailedMount         pod/skupper-service-controller-64849cc6f9-tqjbk    Unable to attach or mount volumes: unmounted volumes=[skupper-console-certs], unattached volumes=[skupper-local-client kube-api-access-96gng skupper-console-certs]: timed out waiting for the condition

Expected behavior

I'm not sure. One of:

  • A working setup, if that is possible
  • Immediate error on command execution, stating that the openshift console auth mode is not available for non-openshift K8S
  • A warning message on the K8S events, stating the combination is not possible

Environment details

  • Skupper CLI: 1.5.3, 1.5.3-rh-1
  • Skupper Operator (if applicable): N/A
  • Platform: minikube

Additional context

hash-d avatar Jan 25 '24 16:01 hash-d

This is still true for 1.8.1:

$ skupper init --enable-flow-collector --enable-console --console-auth openshift
Waiting for LoadBalancer IP or hostname...
Waiting for status...
Skupper status is not loaded yet.
Skupper is now installed in namespace 'default'.  Use 'skupper status' to get more information.
$ k get pod 
NAME                                          READY   STATUS              RESTARTS   AGE
skupper-prometheus-5956497974-5j4md           1/1     Running             0          82s
skupper-router-5cdc76b5c5-2vzrr               2/2     Running             0          86s
skupper-service-controller-65d8bbdbcd-mrmmg   0/3     ContainerCreating   0          83s
$ skupper version
client version                 1.8.1-rh-1
transport version              x/y/service-interconnect-skupper-router-rhel9:2.7.1-1 (sha256:3e3cc571cfd9)
controller version             not-found
config-sync version            x/y/service-interconnect-config-sync-rhel9:1.8.1-1 (sha256:65fc88e0d018)
flow-collector version         not-found
$ skupper status
Status pending...
$

hash-d avatar Sep 13 '24 17:09 hash-d

Have you found any solution to this?

Experiencing this in one of my k3s clusters. In other similiar clusters it works fine though.

maaft avatar Nov 11 '24 10:11 maaft

@maaft, since you're using k3s, you wouldn't have openshift authentication in the first place, as it depends on openshift components being deployed on the cluster. Just use another console auth option (such as internal), and you should be good.

hash-d avatar Nov 11 '24 14:11 hash-d