← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1704212] Re: MAAS marks node 'Deployed' before sshd is up

 

We discussed this internally and decided that MAAS is doing the right
thing here. Although unlikely, you may want to prevent enabling SSH at
all, but MAAS will still ensure the machine is marked deployed even if
the user prevents ssh from being run (and configures user login on a
curtin script).

** Changed in: maas
       Status: New => Won't Fix

-- 
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/1704212

Title:
  MAAS marks node 'Deployed' before sshd is up

Status in cloud-init:
  New
Status in MAAS:
  Won't Fix

Bug description:
  MAAS is marking one of my nodes as 'deployed' before SSHD comes up.
  My code is watching for the MAAS node to change to Deployed state,
  attempts SSH, and then fails because sshd is not listening yet.

  After seeing the node turn to deployed state:
  Node changed status - From 'Deploying' to 'Deployed'	Thu, 13 Jul. 2017 20:17:34

  my code attempts ssh to the node and fails:

  ssh: connect to host 10.245.208.32 port 22: Connection refused
  2017-07-13-20:17:41 ERROR Fatal: Could not establish SSH connection to ubuntu@10.245.208.32

  According to logs from the node, ssh didn't start until 20:17:42:
  Jul 13 20:17:42 swoobat systemd[1]: Starting OpenBSD Secure Shell server...
  Jul 13 20:17:42 swoobat sshd[2230]: Server listening on 0.0.0.0 port 22.
  Jul 13 20:17:42 swoobat sshd[2230]: Server listening on :: port 22.
  Jul 13 20:17:42 swoobat systemd[1]: Started OpenBSD Secure Shell server.

  In the cloud-init.log, you can see the request for user data at
  20:17:35, 7 seconds before sshd starts up.  That's when MAAS marks the
  node deployed.

  Here is /var/log/cloud-init.log from the node:
  http://paste.ubuntu.com/25084186/


  And /var/log/cloud-init-output.log from the node:
  http://paste.ubuntu.com/25084192/

  This is with maas 2.2.0

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


References