Comment 0 for bug 1791691

Revision history for this message
Scott Moser (smoser) wrote :

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',))"
  ]
 }
}