openshift-quantum-operators icon indicating copy to clipboard operation
openshift-quantum-operators copied to clipboard

Unable to access Qiskit playground in kubernetes-qiskit-operator

Open husky-parul opened this issue 2 years ago • 4 comments

Describe the bug Cant access the Qiskit Playground using port-forward of the service

To Reproduce Steps to reproduce the behavior: I am testing on a kind cluster with k8s v1.22.1

kubectl get nodes -o wide
NAME                 STATUS   ROLES                  AGE   VERSION   INTERNAL-IP   EXTERNAL-IP   OS-IMAGE       KERNEL-VERSION            CONTAINER-RUNTIME
kind-control-plane   Ready    control-plane,master   99m   v1.22.1   172.18.0.2    <none>        Ubuntu 21.04   5.12.12-200.fc33.x86_64   containerd://1.5.2

Install and run the operator using

make deploy IMG=qiskit/operator:0.1
make install run

kubectl get all -n qiskit-operator-system

NAME                                                      READY   STATUS    RESTARTS   AGE
pod/qiskit-operator-controller-manager-6c9bf69f8d-qg2mc   1/2     Running   0          18s

NAME                                                         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
service/qiskit-operator-controller-manager-metrics-service   ClusterIP   10.96.157.196   <none>        8443/TCP   18s

NAME                                                 READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/qiskit-operator-controller-manager   0/1     1            0           18s

NAME                                                            DESIRED   CURRENT   READY   AGE
replicaset.apps/qiskit-operator-controller-manager-6c9bf69f8d   1    

kubectl port-forward svc/qiskit-operator-controller-manager-metrics-service 8090:8443 -n qiskit-operator-system
Forwarding from 127.0.0.1:8090 -> 8443
Forwarding from [::1]:8090 -> 8443
Handling connection for 8090
Handling connection for 8090
E0921 14:39:24.407272  194364 portforward.go:400] an error occurred forwarding 8090 -> 8443: error forwarding port 8443 to pod 806bca8a8b00c774d5aefb1d6ca9cd9a9b2457dc27d328ed20f7a72c727bef23, uid : failed to execute portforward in network namespace "/var/run/netns/cni-ea9f15d0-4dad-7b1f-5e17-99cd0739f1f8": read tcp4 127.0.0.1:60878->127.0.0.1:8443: read: connection reset by peer

Expected behavior I should be able to access QiskitPlayground on localhost:8090

husky-parul avatar Sep 21 '21 18:09 husky-parul