← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1901761] [NEW] update user password fails when machine does not have openssh installed

 

Public bug reported:

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`

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Attachment added: "cloud-init.log"
   https://bugs.launchpad.net/bugs/1901761/+attachment/5428074/+files/cloud-init.log

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1901761

Title:
  update user password fails when machine does not have openssh
  installed

Status in cloud-init:
  New

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`

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1901761/+subscriptions


Follow ups