Comment 9 for bug 1633453

mathew boorman (mathew-boorman) wrote :

I think the problem is that is doing an immediate sshd service restart, and forcing sshd to get started immediately.

If that 'restart' is changed to a 'condrestart', it will only restart the service if it is already running. That should continue to work in any odd cases where cloud-init is being run after sshd has started, without starting it too early.