Commit Graph

3658 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 426e55e13f normalize subiquity/controllers/__init__.py 2020-10-12 14:11:02 +13:00
Michael Hudson-Doyle 68f23ffb5a
Merge pull request #853 from mwhudson/network-prep
prepare network code for upcoming client server split
2020-10-12 13:31:32 +13:00
Michael Hudson-Doyle 93b8998af6 split NetworkController into non-ui and ui-focused classes 2020-10-12 12:05:56 +13:00
Michael Hudson-Doyle d6f3f83622 run network answers in run_answers 2020-10-12 11:58:08 +13:00
Michael Hudson-Doyle 287b4492e8 start to factor out bits of networkcontroller that touch the view 2020-10-12 11:47:48 +13:00
Michael Hudson-Doyle 798a9da563 have answers code wait for nic creation/deletion to take effect
the UI will not be quite so synchronous in the client/server world
2020-10-12 11:25:50 +13:00
Michael Hudson-Doyle 8dc31a3c6b change network answers processing to not reference model directly 2020-10-12 11:22:08 +13:00
Michael Hudson-Doyle f89b9e692a asyncioify "fine grained action" handling a bit 2020-10-12 11:16:38 +13:00
Michael Hudson-Doyle 399e711b28
Merge pull request #852 from mwhudson/more-journal
feed progress view via journal
2020-10-09 14:55:59 +13:00
Michael Hudson-Doyle 4364a7ad1a feed progress view via journal
this means curtin events go through the journal twice, but that has to happen
when client and server get split
2020-10-09 14:48:38 +13:00
Michael Hudson-Doyle b3fade946a
Merge pull request #851 from mwhudson/installprogress-tweak
Installprogress tweak
2020-10-09 14:45:33 +13:00
Michael Hudson-Doyle ac120fe784
Merge pull request #850 from mwhudson/more-install-states
introduce a couple more installstates
2020-10-09 14:45:19 +13:00
Michael Hudson-Doyle 780cfe1e7c very minor installprogress refactoring 2020-10-09 13:55:45 +13:00
Michael Hudson-Doyle 7303d68847 introduce a couple more installstates 2020-10-09 13:39:09 +13:00
Michael Hudson-Doyle f7c3f04887
Merge pull request #849 from mwhudson/state-management
refactor startup and state management a bit
2020-10-09 13:30:50 +13:00
Michael Hudson-Doyle 673ade7f2a make core interface a little simpler 2020-10-09 13:12:09 +13:00
Michael Hudson-Doyle c03f6580fd move more code that should never have been so generic 2020-10-09 13:08:15 +13:00
Michael Hudson-Doyle 2bf981ebb8 move "last-screen" handling out of generic code 2020-10-09 13:07:04 +13:00
Michael Hudson-Doyle 7d22e299bd do not call setup_autoinstall as part of __init__ 2020-10-09 13:00:14 +13:00
Michael Hudson-Doyle cac81ccd99 update POTFILES.in 2020-10-09 10:49:54 +13:00
Michael Hudson-Doyle 9a8ef486d8
Merge pull request #848 from mwhudson/better-server-subproc-handling
handle automatically run server processes in dry-run mode better
2020-10-06 22:25:39 +13:00
Michael Hudson-Doyle 83f03089aa handle automatically run server processes in dry-run mode better
otherwise, when we start adding server restarts to the mix, it is easy to
end up with multiple server processes running
2020-10-06 17:21:51 +13:00
Michael Hudson-Doyle ed46be6681
Merge pull request #847 from mwhudson/add-missing-init-files
add missing __init__.py to subiquity/server
2020-09-30 11:44:39 +13:00
Michael Hudson-Doyle 31cf346cb2 add missing __init__.py to subiquity/server 2020-09-30 11:37:19 +13:00
Michael Hudson-Doyle 0ae3dde133
Merge pull request #845 from mwhudson/serialization-fixes
make serialization errors clearer and fix a type issue in NetDevInfo
2020-09-25 14:44:16 +12:00
Michael Hudson-Doyle 5f0f353069
Merge pull request #846 from mwhudson/yaaaaaargl
pin yarl at 1.5.1 to avoid some grotty test failures
2020-09-25 14:40:20 +12:00
Michael Hudson-Doyle a25ef1b933 make a certain kind of test failure clearer 2020-09-25 14:33:53 +12:00
Michael Hudson-Doyle 15ae0bf234 make NetDevInfo.is_connected a bool, as it is supposed to be 2020-09-25 14:33:53 +12:00
Michael Hudson-Doyle e8b73a7ca7 include path to problem when serialization fails 2020-09-25 14:33:53 +12:00
Michael Hudson-Doyle 7bb993a99f pin yarl at 1.5.1 to avoid some grotty test failures 2020-09-25 14:32:49 +12:00
Michael Hudson-Doyle f37f2b08aa
Merge pull request #843 from mwhudson/dead-code
remove some dead code
2020-09-23 16:08:01 +12:00
Michael Hudson-Doyle 8dc97707fe
Merge pull request #841 from mwhudson/skip-confirm
handling skipping controllers and confirmation in client/server comms
2020-09-23 16:07:48 +12:00
Michael Hudson-Doyle c383bf9b2e
Merge pull request #839 from mwhudson/server-snap
add subiquity-server to snap
2020-09-23 16:07:28 +12:00
Michael Hudson-Doyle 49f767449a remove some dead code 2020-09-23 15:44:20 +12:00
Michael Hudson-Doyle 61be9f3fef
Merge pull request #842 from mwhudson/answers-tweak
do not run answers for view that is skipped
2020-09-23 15:44:00 +12:00
Michael Hudson-Doyle e3d6bf9562 do not run answers for view that is skipped 2020-09-23 15:38:43 +12:00
Michael Hudson-Doyle 379b981ce4
Merge pull request #840 from mwhudson/restart-client-on-server-update
restart the client if the server is updated
2020-09-23 15:02:04 +12:00
Michael Hudson-Doyle a78cd1a021 handle skipping controllers and confirmation in client/server calls 2020-09-23 14:56:36 +12:00
Michael Hudson-Doyle 9cb66cdc71 refactor how we tell when to show confirmation a bit 2020-09-23 14:56:36 +12:00
Michael Hudson-Doyle 59364a737e add (trivial) server controller base class 2020-09-23 14:56:27 +12:00
Michael Hudson-Doyle 22836200f1 restart the client if the server is updated 2020-09-23 13:59:11 +12:00
Michael Hudson-Doyle c0f0e3caaa add subiquity-server to snap 2020-09-23 13:29:01 +12:00
Michael Hudson-Doyle 87d193b0ec
Merge pull request #838 from mwhudson/middleware
handle server errors nicely
2020-09-23 13:28:00 +12:00
Michael Hudson-Doyle 6647d88c14 generate the error report for a request failure in the server
this requires a bit of plumbing for the client to be able to show an error report
that has just been created in another process
2020-09-23 11:02:02 +12:00
Michael Hudson-Doyle 3458227e94 have clicking restart in an error view restart the server too 2020-09-23 11:01:56 +12:00
Michael Hudson-Doyle 913a5262a2 create and show an error report when a server request fails 2020-09-23 10:48:39 +12:00
Michael Hudson-Doyle 9ce19db20c add a dry-run only api method that crashes and a key to call it 2020-09-23 10:47:35 +12:00
Michael Hudson-Doyle eea6bb0e27
Merge pull request #837 from mwhudson/serialize-to_json
make serialization api a touch easier to use
2020-09-23 10:47:20 +12:00
Michael Hudson-Doyle 25b9cf4c99 make serialization api a touch easier to use 2020-09-23 10:30:05 +12:00
Michael Hudson-Doyle 0e4d2ea7b8
Merge pull request #836 from mwhudson/minimal-server
add a minimal server process
2020-09-22 14:52:30 +12:00