update user password fails when machine does not have openssh installed

Bug #1901761 reported by Lucas Albuquerque Medeiros de Moura
6
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:ubuntu/16.04/cloud`

Revision history for this message
Lucas Albuquerque Medeiros de Moura (lamoura) wrote :
James Falcon (falcojr)
Changed in cloud-init:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.