← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1567786] Re: missing ssh_host keys in /etc/ssh/

 

[Expired for cloud-init because there has been no activity for 60 days.]

** Changed in: cloud-init
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1567786

Title:
  missing ssh_host keys in /etc/ssh/

Status in cloud-init:
  Expired

Bug description:
  I'm using cloud-init 0.7.5-0ubuntu1.7 on ubuntu 14.04 as a glance
  image in an OpenStack deployment. I randomly saw failure to ssh to VM
  booted with this image. When I checked the VM from console, I find all
  ssh_host keys are missing from /etc/ssh/

  I do see logs of ssh-keygen runs in cloud-init.log, cloud-init-
  output.log and boot.log.

  2016-03-15 06:44:11,327 - helpers.py[DEBUG]: Running config-ssh using lock (<FileLock using file '/var/lib/cloud/instances/f4c31778-7b14-465c-b7e6-765f11c3b588/sem/config_ssh'>)
  2016-03-15 06:44:11,329 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_ecdsa_key.pub
  2016-03-15 06:44:11,329 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_dsa_key
  2016-03-15 06:44:11,330 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_rsa_key
  2016-03-15 06:44:11,330 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_ed25519_key.pub
  2016-03-15 06:44:11,330 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_ecdsa_key
  2016-03-15 06:44:11,330 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_dsa_key.pub
  2016-03-15 06:44:11,331 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_ed25519_key
  2016-03-15 06:44:11,331 - util.py[DEBUG]: Attempting to remove /etc/ssh/ssh_host_rsa_key.pub
  2016-03-15 06:44:11,331 - util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'rsa', '-N', '', '-f', '/etc/ssh/ssh_host_rsa_key'] with allowed return codes [0] (shell=False, capture=False)
  2016-03-15 06:44:11,501 - util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'dsa', '-N', '', '-f', '/etc/ssh/ssh_host_dsa_key'] with allowed return codes [0] (shell=False, capture=False)
  2016-03-15 06:44:11,630 - util.py[DEBUG]: Running command ['ssh-keygen', '-t', 'ecdsa', '-N', '', '-f', '/etc/ssh/ssh_host_ecdsa_key'] with allowed return codes [0] (shell=False, capture=False)

  And I don't see any failure of ssh key generation in the logs.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1567786/+subscriptions


References