Project

General

Profile

Actions

Bug #2712

closed

Net::SSH::Disconnect not handled in SSH provisioning

Added by Greg Sutcliffe almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Category:
Orchestration
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Some premade Openstack images set up SSH keys as part of cloud-init. This means SSH comes up initially without and host keys and refuses connections for 10-15 seconds while the keys are created during the cloud-init run.

Since we don't catch Net::SSH::Disconnect Foreman sees the disconnect as an error and immediately fails the job. We should catch the error and retry (as we do for other exceptions) and lengthen the timeout to account for the cloud-init startup time.

Actions

Also available in: Atom PDF