Juju uses user known hosts file

Bug #1659385 reported by Nicholas Skaggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-ci-tools
Triaged
High
Unassigned

Bug Description

Juju will use ~/.ssh/known_hosts when it doesn't have information on key matching for new machines. This causes our tests to log "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!" warnings on initial connection. The connections will continue to fail until the controller recieves correct information from the agent. At this point the connection is achieved.

Juju 1.X does not use a temporary known hosts file, and thus will pollute our ~/.ssh/known_hosts. Juju 2.x only recently acquired this ability.

We should clear all current known_hosts files, and ensure they stay pure during runs.

Changed in juju-ci-tools:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Note, just deleting the files can cause us issues with our CI.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

In fixing this bug, we should somehow monitor if juju violates known_hosts.

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

In fixing this bug, we should somehow monitor if juju violates known_hosts. It sounds like using logsave and then doing post-analysis would fit this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.