uc20 console-conf cannot create user on first-boot of run mode initially

Bug #1890282 reported by Ian Johnson on 2020-08-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Undecided
Unassigned

Bug Description

With a fresh edge image (see snap list at the bottom), I am unable to create a user through console-conf initially, as console-conf complains thusly when I enter my user info:

```
   │ Creating user failed: │
   │ │
   │ error: while creating user: cannot create user │
   │ "<email address hidden>": persistent network error: Get │
   │ https://login.ubuntu.com/api/v2/keys/me.me%domain.com: │
   │ dial tcp: lookup login.ubuntu.com: Temporary failure in name │
   │ resolution │
```

I'm not sure what the true source of the error here is, maybe snapd is to blame and it is caching the network connections from before we had a working network, etc. but this is a bad first experience for a user as it is not clear that they should try again (in this case as a technical person I can guess that the "Temporary failure in name resolution" means I should try again in a bit, but that won't be clear to everyone).

Note that after waiting another minute or two it did successfully create the user then and I was able to complete logging into the device.

Console-conf debug logs: https://pastebin.ubuntu.com/p/yts3BKgnDx/

Snap list:

```
$ snap list
core20 20 772 latest/edge canonical✓ base
pi 20-1 71 20/edge canonical✓ gadget
pi-kernel 5.4.0-1015.15 180 20/edge canonical✓ kernel
snapd 2.45.3.1+git2381.gafe8bec 8849 latest/edge canonical✓ snapd
```

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers