autoinstall with nocloud does not seed password when identity is interactive

Bug #1883180 reported by tylerecouture
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cloud-init
Invalid
Undecided
Unassigned
subiquity
Triaged
High
Unassigned

Bug Description

I am using the [autoinstall process](https://ubuntu.com/server/docs/install/autoinstall) with nocloud provider. I want to manually enter the hostname, so have set the identity section to interactive. However, when I do this, the password section is blank instead of pre-seeded with the value provided. The other identity sections (hostname, username, realname) are preseeded as expected, when the interactive section comes up. Only the pw is missing.

1. Tell us your cloud provider: `ds=nocloud-net`
2. Any appropriate cloud-init configuration you can provide us:

*user-data*
```
#cloud-config
autoinstall:
  version: 1
  interactive-sections:
    - identity
  identity:
    hostname: change-me
    password: $6$xnH...
    username: admin
    realname: Admin
```

Tags: medium nocloud
Revision history for this message
tylerecouture (tylerecouture) wrote :
tags: added: nocloud
Revision history for this message
Paride Legovini (paride) wrote :

Hi and thanks for filing this bug report.

I believe this is a bug in subiquity (the Ubuntu Server installer) rather than a bug in cloud-init. I am reassigning it.

Changed in cloud-init:
status: New → Incomplete
status: Incomplete → Invalid
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Hm I wonder what to do here. I can see the problem, otoh, we can't put the password in the form already because we don't know what it is. I guess we can put a few *s in the box to indicate that there _is_ a value. Or add a checkbox "use password from autoinstall". Or maybe something else...

tags: added: medium
Revision history for this message
tylerecouture (tylerecouture) wrote :

I think a few *'s would be intuitive for users.

Revision history for this message
Joe Cooper (joe-virtualmin) wrote :

It's such a common use case to want to only ask for hostname, it's really frustrating that there's no way to do that. I mean, it's generally frustrating that all of the options are bundled into categories and you always have to make the whole section interactive, but this one option in particular is painful since you can't even pre-fill the password.

Filling with asterisks is an obvious solution, very widely used by other projects.

Dan Bungert (dbungert)
Changed in subiquity:
status: New → Triaged
importance: Undecided → High
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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