You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #6 issue addressed this already, and the fix seemed to solve the maven problem, but unfortunately the problem still persists and the services remain there.
The Pod is started as expected:
But when trying to connect to it, an error is raised:
java.lang.RuntimeException: java.lang.RuntimeException: Failed to start quarkus
Caused by: java.lang.RuntimeException: Failed to start quarkus
Caused by: org.flywaydb.core.internal.exception.FlywaySqlException:
Unable to obtain connection from database: Connection to localhost:31533 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL State : 08001
Error Code : 0
Message : Connection to localhost:31533 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Caused by: org.postgresql.util.PSQLException: Connection to localhost:31533 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
Caused by: java.net.ConnectException: Connection refused: connect
When running kubectl get svc -n <project-namespace> the output is the following:
After running kubectl delete --all svc --namespace=<project-namespace>, the tests will run as expected.
Could you please take a look at it? It seems like the services still stick around, despite the pods being deleted.
A known problem is, when stopping the mvn test command with ctrl + c, then the pods don't get deleted and obviously the service will also stick around.
However, I investigated it and saw that the NodePort still sticks around for a pod which gets stopped after test execution.
Thanks for reporting this detailed issue 👍 .
I will look into it next week.
I'm indeed aware of the issue of pods and services remaining in case of tests process execution interruption but not yet have a viable solution for it, something to come in the upcoming version for sure.
The #6 issue addressed this already, and the fix seemed to solve the maven problem, but unfortunately the problem still persists and the services remain there.
The Pod is started as expected:
But when trying to connect to it, an error is raised:
When running
kubectl get svc -n <project-namespace>
the output is the following:After running
kubectl delete --all svc --namespace=<project-namespace>
, the tests will run as expected.Could you please take a look at it? It seems like the services still stick around, despite the pods being deleted.
A known problem is, when stopping the
mvn test
command with ctrl + c, then the pods don't get deleted and obviously the service will also stick around.However, I investigated it and saw that the NodePort still sticks around for a pod which gets stopped after test execution.
mvn version: 3.8.2
k8s version: v1.19.7
Docker-desktop K8s is used. Docker-desktop version: 3.5.2
junit5-kubernetes version: 2.3.1-beta
The text was updated successfully, but these errors were encountered: