Gerrit ssh host key must be known to jenkins user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zuul |
Triaged
|
High
|
Unassigned |
Bug Description
Having zuul dev running has user jenkins, it choked because the Gerrit server ssh host key was not known:
2012-09-27 11:32:27,387 DEBUG zuul.Repo: Cloning from ssh://jenkins@
2012-09-27 11:32:27,534 ERROR zuul.Merger: Unable to initialize repo for mediawiki/core
Traceback (most recent call last):
File "/usr/local/
repo = Repo(url, path)
File "/usr/local/
self.
File "/usr/local/
git.
File "/usr/lib/
return cls._clone(
File "/usr/lib/
finalize_
File "/usr/lib/
proc.wait()
File "/usr/lib/
raise GitCommandError
GitCommandError: 'git clone -v ssh://jenkins@
fatal: The remote end hung up unexpectedly
At least the debug message is meaningful :-)
The first action would be to update the documentation. Then maybe zuul-server could get a check command that would validate the config files and attempt one connection to the host to make sure everything will work fine.
We could also probably have it accept the host key if it's unknown on first connection.