qiskit-community / openshift-quantum-operators

Apache License 2.0
19 stars 21 forks source link

Unable to access Qiskit playground in kubernetes-qiskit-operator #19

Open husky-parul opened 3 years ago

husky-parul commented 3 years ago

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 commented 3 years ago

@blublinsky @osilkin98

blublinsky commented 3 years ago

@husky-parul Your pod seemed to fail to start? I see only 1 of 2 containers running. Is this a problem? Can you see if the pod shows any errors?

husky-parul commented 3 years ago

Do I need to deploy the CR explicitly? Shouldn't the operator be deploying it when I do install ?

blublinsky commented 3 years ago

@husky-parul How are you trying to install? Check if CR is there? Also feel free to ping me on slack, makes it more interactive.