Public bug reported:

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:user-data: which is the only account
information even arriving on the installed machine, contained in
/var/log/installer/autoinstall-user-data , but not created. However, it
is not completely ignored, since if I am ommitting the ssh key, there is
a warning message when booting the machine about a missing ssh key.


- 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/installer/installer-journal.txt telling that it had
been created on the installer machine (nice, but useless).


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://ubuntu.com/server/docs/install/autoinstall-reference#user-data
and
https://ubuntu.com/server/docs/install/autoinstall-reference#identity

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

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1923045

Title:
  cloud-init  + installer not creating user accounts

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to