Project

General

Profile

Bug #2712

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

Added by Greg Sutcliffe about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Orchestration
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
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.

Associated revisions

Revision 0b5d270d (diff)
Added by Greg Sutcliffe about 6 years ago

Fixes #2712 - Handle Net::SSH::Disconnect gracefully

Revision be49e1ee (diff)
Added by Greg Sutcliffe about 6 years ago

Fixes #2712 - Handle Net::SSH::Disconnect gracefully
(cherry picked from commit 0b5d270d9fcb1fae39b5d9e3b8bbd4999e710882)

History

#1 Updated by Dominic Cleal about 6 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Greg Sutcliffe about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF