ERROR retrieving SSH host keys for ...: keys not found

Bug #1599272 reported by Casey Marshall on 2016-07-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
Medium
Unassigned

Bug Description

This is a UX problem, but it was noticeable enough that I feel like it could trip up new users.

Deployed a service and tried to SSH in to see what was going on. I got this error until the service is "up" enough to have registered its keys (as I imagine it):

$ juju ssh prometheus/2
ERROR retrieving SSH host keys for "prometheus/2": keys not found

After a while, `juju ssh` succeeds. I don't think that error message is very clear to most users though. If this was my first time with Juju, I might conclude there was a persistent issue with that workload and conclude that "juju is broken".

This is also seen in CI
    http://reports.vapour.ws/releases/issue/57961a62749a567e39534c3c

Cheryl Jennings (cherylj) wrote :

I also see this error before the error retrieving SSH host keys:

$ juju ssh ubuntu/0
ERROR no public address

It would be nice to state that the machine / unit isn't ready instead of these errors.

tags: added: ssh usability
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Curtis Hovey (sinzui) on 2016-07-25
tags: added: ci
tags: added: retry
description: updated
Changed in juju-core:
assignee: nobody → Menno Smits (menno.smits)
milestone: none → 2.0.0

Thanks for picking up on this. I agree that this should be better.

How about if it looked something like this?

$ juju ssh prometheus/2
ERROR no SSH host keys available yet (agent is being provisioned?)

The "no public address" issue is related. I agree that should be better too. At a minimum we could do something like this:

$ juju ssh ubuntu/0
ERROR no public address available yet

It would be even better if the controller checked the provisioning status of the machine when there's no address or SSH keys available so that it could say something like:

$ juju ssh ubuntu/0
ERROR target machine is still being provisioned

Suggestions for improvement welcome.

affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Curtis Hovey (sinzui) on 2016-10-06
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui) on 2016-10-28
Changed in juju:
milestone: 2.0.1 → none
Changed in juju:
assignee: Menno Finlay-Smits (menno.smits) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers