update user password fails when machine does not have openssh installed
Bug #1901761 reported by
Lucas Albuquerque Medeiros de Moura
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Low
|
Unassigned |
Bug Description
When creating a machine with the following userdata:
```
#cloud-config
chpasswd:
list: |
ubuntu:passw0rd
ssh_pwauth: True
```
cloud-init will fails if the machine does not have openssh installed on it. That happens because pasasword module will try to run the following command:
```
service ssh restart
```
Which will fail if the machine does not have openssh installed.
How to reproduce:
Just launch an lxd vm with the provided userdata using the following image as base: `images:
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Low |
To post a comment you must log in.
Tracked in Github Issues as https:/ /github. com/canonical/ cloud-init/ issues/ 3802