console-conf when run with auto-refresh of core20 will crash and become non-responsive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
High
|
Ian Johnson | ||
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
When booting a VM image on amd64, I tried to configure the device with console-conf, but it seems that an auto-refresh of the core20 snap was in progress and subsequently snapd attempted to reboot the device immediately, causing what I think are the following bugs:
1. console-conf hung after entering my email and hitting "Done", it didn't show any progress or anything and was just hung until the VM rebooted itself a while later, maybe a minute or slightly less
2. upon rebooting I could no longer use console-conf at all, the message "Press enter to configure" was displayed but upon hitting enter some sort of other message appeared on the screen immediately and then all text went away leaving me with an empty screen, and furthermore being unable to configure console-conf at all. I waited for a minute or two before giving up and rebooting the VM as it normally is much much quicker to run in this VM, but perhaps it would
Upon a manual reboot after 2 I was then able to use console-conf and login successfully.
To be clear, during 2 I still could not login to the device over SSH with my configured credentials.
I think the sequencing is basically this:
1. snapd starts to auto-refresh core20
2. I hit enter and console-conf starts to run
3. snapd finishes the auto-refresh
4. I finish entering in my email
5. console-conf is stuck trying to run `snap create-user` which for some reason just hangs
6. eventually snapd's scheduled reboot for the refresh of the core20 snap hard-reboots the system
Probably this is a snapd bug in that when snapd has requested a scheduled reboot for the base snap, etc. it should fail quickly with some message that it can't respond now.
What I think console-conf could do better is to have some sort of spinning animation while waiting for snap create-user to finish/return, because there could be other situations where snap create-user takes longer than expected, i.e. high system load from background service snaps or internet connectivity issues talking to the store or even some kind of store issue.
Changed in snapd: | |
importance: | Undecided → Medium |
Changed in snapd: | |
status: | Incomplete → Triaged |
importance: | Medium → High |
Changed in subiquity: | |
status: | New → Incomplete |
Changed in snapd: | |
status: | New → Incomplete |
Changed in snapd: | |
status: | Incomplete → New |
Changed in subiquity: | |
status: | Incomplete → New |
Changed in snapd: | |
assignee: | nobody → Ian Johnson (anonymouse67) |
status: | Confirmed → In Progress |
I can reproduce issue 1 with the same image again, but I have not been able to reproduce issue 2.