Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: enhance error messages when Kubernetes is not running #208

Open
diegodelemos opened this issue Oct 4, 2019 · 0 comments
Open

cli: enhance error messages when Kubernetes is not running #208

diegodelemos opened this issue Oct 4, 2019 · 0 comments

Comments

@diegodelemos
Copy link
Member

Stemmed from reanahub/reana-client#304

When Minikube is not running or the REANA pods are not working, reana-dev setup-environment errors out with cryptic errors:

$ # Minikube not running example
$ reana-dev setup-environment
Environment variables could not be generated: 
HTTPSConnectionPool(host='192.168.39.111', port=8443): Max retries exceeded with url: /api/v1/nodes (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f728e908f10>: Failed to establish a new connection: [Errno 113] No route to host',))
$ # DB pod down or inaccessible
$ reana-dev setup-environment
Environment variables could not be generated: 
Command '['kubectl', 'exec', '-t', u'db-54c5c6cb84-kvwph', '--', 'psql', '-U', 'reana', 'reana', '-c', 'SELECT access_token FROM user_']' returned non-zero exit status 1
@diegodelemos diegodelemos changed the title cli: enhance errors when Kubernetes is not running cli: enhance error messages when Kubernetes is not running Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant