opendatahub-io / notebooks

Notebook images for ODH
Apache License 2.0
17 stars 61 forks source link

Facing connection refused issue due to unavailability of opendatahub/jovyan/api while testing jupyter-minimal-ubi8-python-3.8 notebook image on Power #140

Open someshmlad opened 1 year ago

someshmlad commented 1 year ago

We have built the jupyter-minimal-ubi8-python-3.8 notebook image on Power(ppc64le), the make deploy command for this notebook image is working fine and the pods are up and running:

# oc get all
NAME                                             READY   STATUS    RESTARTS   AGE
pod/jupyter-minimal-ubi8-python-3-8-notebook-0   1/1     Running   0          34s
pod/nfs-client-provisioner-65686f6dd6-9g2ft      1/1     Running   1          17d

NAME                                               TYPE           CLUSTER-IP       EXTERNAL-IP                            PORT(S)    AGE
service/jupyter-minimal-ubi8-python-3-8-notebook   ClusterIP      172.30.112.140   <none>                                 8888/TCP   34s
service/kubernetes                                 ClusterIP      172.30.0.1       <none>                                 443/TCP    31d
service/openshift                                  ExternalName   <none>           kubernetes.default.svc.cluster.local   <none>     31d

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/nfs-client-provisioner   1/1     1            1           27d

NAME                                                DESIRED   CURRENT   READY   AGE
replicaset.apps/nfs-client-provisioner-65686f6dd6   1         1         1       27d

NAME                                                        READY   AGE
statefulset.apps/jupyter-minimal-ubi8-python-3-8-notebook   1/1     34s

But while performing make test for the same notebook, we are getting the following issue:

# make test-jupyter-minimal-ubi8-python-3.8
# Running tests for jupyter-minimal-ubi8-python-3-8 notebook...
bin/kubectl wait --for=condition=ready pod -l app=jupyter-minimal-ubi8-python-3-8 --timeout=600s
pod/jupyter-minimal-ubi8-python-3-8-notebook-0 condition met
bin/kubectl port-forward svc/jupyter-minimal-ubi8-python-3-8-notebook 8888:8888 &
curl --retry 5 --retry-delay 5 --retry-connrefused \
        http://localhost:8888/notebook/opendatahub/jovyan/api; EXIT_CODE=$?; echo && \
pkill --full "^bin/kubectl.*port-forward.*"; \
exit ${EXIT_CODE}
curl: (7) Failed to connect to localhost port 8888: Connection refused

make: *** [Makefile:289: test-jupyter-minimal-ubi8-python-3.8] Error 7

Any suggestions on how we can resolve the following issue would be helpful. Also, if anyone could provide some reference doc or source repo for jovyan/api, that would be helpful. Thanks

harshad16 commented 1 year ago

@someshmlad Thanks for opening the issue. We are working on gathering resources for powerpc testing. I'll reach out to you soon.

if possible, can you share if you are able to set a route for the service and test the notebook from there ?

Also some information, the notebook are kept in standard of kubeflow notebooks, so they function as required on notebook controller. https://www.kubeflow.org/docs/components/notebooks/container-images/#image-requirements