cloud-init + installer not creating user accounts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned | ||
cloud-init (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm currently testing the 20.04 methods of both automatically running and installing ubuntu server using cloud-init files and the autoinstaller (using methods like PXE, the provided image and the autoinstaller).
Unfortunately the documentation covers only the main parameters but does not tell the details of the autoinstallation process. I ran into the problem that while running a 20.04 server images with cloud-init files seems to create these users, while running the ubuntu autoinstaller (did not even find where it comes from) seems to mostly ignore account parameters.
In order to track down the problem I've stripped things down to a test case, see the attached install.sh and user-data files.
I've included three different accounts at different locations of the user-data file.
- hadmut1 in autoinstall:
- hadmut2 in autoinstall: seems to be completely irrelevant.
- hadmut3 at toplevel seems to be installed, but on the temporary machine running the autoinstaller only, since on the installed machine there's a /var/log/
So while machines run directly with cloud-init seem to create the user accounts in the users: section of user-data, the autoinstaller does not seem to do this, almost completely ignoring those users (except for noticing if the ssh pub key is missing).
Actually, I am not even sure whether the autoinstaller is even intended to create users or just the one given in the „identity” section. I did not even find any documentation about this. There is only a short paragraph in
https:/
and
https:/
telling that this is mixed with the users section and at least one of them must be present, identity can be omitted if there's a user section, but that's not what's happening. Without the identity section, it is not possible to login at all.
So the autoinstaller seems to both differ from the documentation and to create machines where you can't login (while the documentation says that can't happen).
regards
Attached install.sh to demonstrate the problem (will download huge iso if not present)