You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launchpad user Jordan Evans(jordane) wrote on 2014-06-24T19:11:45.575046+00:00
Description of problem:
When using automated scripts for deployment, many wait for sshd to come up, then ssh in. Since cloud-init and sshd are started in parallel, this creates a race condition for cloud-init to add ssh keys before sshd starts or the user can't login and the automated scripts can fail.
Specifically, this is happening to me using test-kitchen with the kitchen-openstack plugin, which uses Fog. It calls wait_for and watches for sshd to come up. It catches sshd before cloud-init finishes installing keys, and fails to ssh.
Reproducing:
Attempt to ssh in before cloud-init finishes but after sshd is up and running.
Steps to Reproduce:
Pull in Fedora Cloud image for OpenStack
Configure test kitchen to use Fedora
Run test-kitchen tests
Actual results:
ssh fails, which causes test-kitchen or other automated scripts to fail.
Expected results:
ssh should succeed.
This is specifically affecting me on Fedora-20, but can potentially affect any distribution using systemd.
The text was updated successfully, but these errors were encountered:
This bug was originally filed in Launchpad as LP: #1333920
Launchpad details
Launchpad user Jordan Evans(jordane) wrote on 2014-06-24T19:11:45.575046+00:00
Description of problem:
When using automated scripts for deployment, many wait for sshd to come up, then ssh in. Since cloud-init and sshd are started in parallel, this creates a race condition for cloud-init to add ssh keys before sshd starts or the user can't login and the automated scripts can fail.
Specifically, this is happening to me using test-kitchen with the kitchen-openstack plugin, which uses Fog. It calls wait_for and watches for sshd to come up. It catches sshd before cloud-init finishes installing keys, and fails to ssh.
Reproducing:
Attempt to ssh in before cloud-init finishes but after sshd is up and running.
Steps to Reproduce:
Actual results:
ssh fails, which causes test-kitchen or other automated scripts to fail.
Expected results:
ssh should succeed.
This is specifically affecting me on Fedora-20, but can potentially affect any distribution using systemd.
The text was updated successfully, but these errors were encountered: