systemd units have broken PATH in recent cloud images.
The PATH set for them is
PATH=:/snap/bin.
Previously value is
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# cat /etc/cloud/build.info
build_name: server
serial: 20180906
Booted in lxc, that fails providing
# cat /run/cloud-init/result.json
{
"v1": {
"datasource": null,
"errors": [
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"('ssh-authkey-fingerprints', KeyError('getpwnam(): name not found: ubuntu',))"
]
}
}
systemd units have broken PATH in recent cloud images. /usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin
The PATH set for them is
PATH=:/snap/bin.
Previously value is
PATH=
# cat /etc/cloud/ build.info
build_name: server
serial: 20180906
Booted in lxc, that fails providing init/result. json authkey- fingerprints' , KeyError( 'getpwnam( ): name not found: ubuntu',))"
# cat /run/cloud-
{
"v1": {
"datasource": null,
"errors": [
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"Unexpected error while running command.\nCommand: ['netplan', 'generate']\nExit code: -\nReason: [Errno 2] No such file or directory: b'netplan': b'netplan'\nStdout: -\nStderr: -",
"('ssh-
]
}
}