canonical / data-science-stack

Stack with machine learning tools needed for local development.
Apache License 2.0
16 stars 6 forks source link

CLI doesn't have intuitive message if it can't connect to MicroK8s #153

Open kimwnasptd opened 3 months ago

kimwnasptd commented 3 months ago

Bug Description

Right now the DSS CLI will show cryptic errors when it can't connect to microK8s. We saw this in https://github.com/canonical/data-science-stack/issues/151

Specifically we saw messages like this:

dss status
[ERROR] Failed to retrieve status: [Errno 111] Connection refused.

The CLI should clearly expose that the issue is with talking to MicroK8s

To Reproduce

  1. sudo snap install data-science-stack --channel latest/stable
  2. dss status

Note that you should run those without initialising the DSS

Environment

Ubuntu 22.04

Relevant Log Output

[ERROR] Failed to retrieve status: [Errno 111] Connection refused.

Additional Context

No response

syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/KF-6049.

This message was autogenerated

DnPlas commented 2 months ago

From @misohu suggestion:

Part of this task can be to confirm with the UX team on how to best show the message, based on that we can fix it.