sshd is reloaded immediately after start in the google 18.04 image
This bug report will be marked for expiration in 52 days if no further activity occurs. (find out why)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Incomplete
|
Undecided
|
Unassigned | ||
google-guest-agent (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
In recent published 18.04 images for Google Cloud, sshd is reloaded by systemd immediately after it is started.
The images I'm using are sourced from https:/
I've found this issue in ubuntu-
The image ubuntu-
I have not tested intermediate versions.
The specific version attributes are:
Cloud=Google Compute Engine
Zone=us-west2
Name=bionic
Version=18.04
Arch=amd64
Instance Type=kvm
Here's a snippet from the syslog of an image affected by this bug:
=======
systemd[1]: Starting Login Service...
systemd-
systemd-
systemd-
systemd-
systemd[1]: Started Login Service.
systemd[1]: Stopping Regular background program processing daemon...
systemd[1]: Stopped Regular background program processing daemon.
systemd[1]: Started Regular background program processing daemon.
cron[2066]: (CRON) INFO (pidfile fd = 3)
cron[2066]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
GCEGuestAgent[
google_
pollinate[2093]: [1.0K blob data]
systemd[1]: Started Pollinate to seed the pseudo random number generator.
systemd[1]: Starting OpenBSD Secure Shell server...
sshd[2108]: Server listening on 0.0.0.0 port 22.
sshd[2108]: Server listening on :: port 22.
systemd[1]: Started OpenBSD Secure Shell server.
systemd[1]: Reloading OpenBSD Secure Shell server.
sshd[2108]: Received SIGHUP; restarting.
systemd[1]: Reloaded OpenBSD Secure Shell server.
sshd[2108]: Server listening on 0.0.0.0 port 22.
sshd[2108]: Server listening on :: port 22.
systemd[1]: Reloading.
systemd[1]: Reloading.
=======
The line of importance to me is "systemd[1]: Reloading OpenBSD Secure Shell server."
This is in contrast to the first boot of an older, unaffected image, where no reloading is observed:
=======
google-
google_
useradd[1893]: failed adding user 'admin', data deleted
google-
google-
pollinate[1923]: [1.0K blob data]
systemd[1]: Started Pollinate to seed the pseudo random number generator.
systemd[1]: Starting OpenBSD Secure Shell server...
sshd[1945]: Server listening on 0.0.0.0 port 22.
sshd[1945]: Server listening on :: port 22.
systemd[1]: Started OpenBSD Secure Shell server.
systemd[1]: Reloading.
systemd[1]: Reloading.
=======
Note that the new image has swapped to using google_guest_agent instead of google_
This bug is impactful to me as I cannot safely "just" wait for SSH to be online in scripts before proceeding.
This bug should be observable in the aforementioned images on first boot with no modifications.
I have not seen this behavior in the equivalent AWS images. It seems GCP specific.