subiquity/subiquitycore
Dan Bungert 22c3987db5 api: delay most endpoints until controllers start
In LP: 2009797, an exception of this form happens:
AttributeError: 'FilesystemController' object has no attribute '_start_task'

The installer client, u-d-i, is asking for storage information ASAP
after the socket starts listening, and in this case that happened before
all controllers were started.  The sync primitive the probe is waiting
on wasn't created yet.

With one known exception, /meta/status, we really shouldn't be
responding to random API calls, and the startup sequence of the
controllers should be relatively quick (sub 1 second to be sure).
Just delay them, except for the special one.
2023-03-17 08:42:04 -06:00
..
controllers network: do not accept route metric > 20000 2023-02-21 13:30:05 -07:00
models network: add override mechanism to force offline install 2023-02-15 09:05:14 +01:00
testing support for editing existing partitions 2019-05-30 15:10:54 +12:00
tests async_helpers: simplify task done check 2023-03-17 08:39:01 -06:00
ui network: use pyroute2 to manage default routes 2023-02-21 13:30:05 -07:00
__init__.py pyflakes3 fixes for subiquitycore/__init__.py 2018-05-24 16:59:31 -05:00
async_helpers.py async_helpers: simplify task done check 2023-03-17 08:39:01 -06:00
context.py add a mode argument to shutdown to allow reboot or power off 2021-08-22 09:36:41 +12:00
controller.py Add type hinting for controller base class attributes 2022-01-14 13:02:44 +01:00
controllerset.py fixes for how install failures are presented 2020-09-21 14:01:23 +12:00
core.py api: delay most endpoints until controllers start 2023-03-17 08:42:04 -06:00
file_util.py file_util: generate_timestamped_header function to any subiquity written files 2022-07-14 21:48:51 -06:00
i18n.py remove stdlib backports from Python 3.8 2021-10-12 18:55:09 -06:00
log.py logging: 0770 log dir in install env, 0750 later 2022-03-11 12:44:22 -07:00
lsb_release.py Add type hints where necessary to make mypy happy 2022-04-06 11:23:34 +02:00
netplan.py do not log wifi passwords from existing configs 2020-05-19 07:47:33 +12:00
palette.py Merge pull request #1393 from CarlosNihelton/fix-gray-contrast 2022-08-24 08:44:45 -06:00
prober.py probert: implement os prober arg 2022-03-29 15:09:21 -06:00
pubsub.py loop: invoke asyncio.create_task() directly 2022-10-28 17:05:54 +02:00
screen.py Move the code for setting up the screen to its own file 2020-07-27 23:40:17 +12:00
snapd.py call into snapd to set up encryption when required 2022-11-11 14:46:44 +13:00
ssh.py fix getting ssh info when sshd is not installed 2022-11-30 11:12:51 +13:00
tui.py many: s/create_task/run_bg_task/ 2023-02-13 14:56:07 -07:00
tuicontroller.py simple replacement for urwid signals wrapper as used in server 2021-04-13 09:41:43 +12:00
utils.py utils: add parameter to avoid clearing the LC_* variables 2023-02-07 18:18:16 +01:00
view.py ui: add a helper to open a confirmation dialog and get the response 2023-01-05 09:54:51 +01:00