default password not set

Bug #1962022 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

I wrote http://cdimage.ubuntu.com/ubuntu-server/focal/daily-preinstalled/20220223/focal-preinstalled-server-riscv64+unmatched.img.xz to SD card.

SiFive Unmatched reaches boot prompt.

After these messages
[ 60.971365] cloud-init[1989]: Cloud-init v. 22.1-1-gb3d9acdd-0ubuntu1~22.04.1 running 'modules:final' at Wed, 23 Feb 2022 16:02:11 +0000. Up 60.23 seconds.
[ 61.548552] cloud-init[1989]: Cloud-init v. 22.1-1-gb3d9acdd-0ubuntu1~22.04.1 finished at Wed, 23 Feb 2022 16:02:13 +0000. Datasource DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]. Up 61.51 seconds
login with ubuntu:ubuntu is still not possible.

Error message: "Login incorrect"

Running the same image on QEMU does not show the problem.

Tags: iso-testing
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Something was written to passwd and shadow on the SD-card:

-rw-r--r-- 1 root root 1709 Feb 23 15:49 passwd
-rw-r----- 1 root shadow 1007 Feb 23 15:50 shadow

# tail shadow -n1
ubuntu:$6$lzpbaYZrxSzzTfyF$vHMuzIAluwgoXyky1GQqlPgPEzbhwc/48VzHhpNE0xpWrmFKnAlg4ccHPeBirAMaxiavG7HevO5a6QtbcaxnJ/:19046:0:99999:7:::

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

openssl passwd -6 -salt lzpbaYZrxSzzTfyF
Password: ubuntu
$6$lzpbaYZrxSzzTfyF$6H75QX0fpKIMf6wc80qSl0/YDJiHZwHGvO.opjOs5zfKhwfbdr0no2KqT2dOG2hc6rr7UOoquj3xPCzyhH4n51

So the password set was not ubuntu.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

This is really weird, thanks for reporting. Is this reproducible everytime?

Changed in cloud-init (Ubuntu):
milestone: none → ubuntu-20.04.4
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1962022

tags: added: iso-testing
Revision history for this message
William Wilson (jawn-smith) wrote :

I have failed to recreate this locally.

Revision history for this message
James Falcon (falcojr) wrote :

By default, server images don't set a default user/password. Cloud-init will create the ubuntu user, but expects SSH auth by default and so will lock the password for the ubuntu user. Did you use an installer with the image? Was any userdata included on the SD card that you know of?

If you can access the instance, can you run cloud-init collect-logs and attach the tarball here? If not, can you grab /var/log/cloud-init.log, /var/log/cloud-init-output.log, and the contents of /etc/cloud and attach them here?

Changed in cloud-init (Ubuntu):
status: New → Incomplete
Revision history for this message
Chad Smith (chad.smith) wrote :

@Heinrich is it possible that this bug is a duplicate of the following: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2013403

which shows that cloud-init hadn't yet processed user-data setting up the user credentials yet.

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.