Michael Hudson-Doyle
29c9f0878b
indent a "raise" properly
2019-12-17 11:28:42 +13:00
Dimitri John Ledkov
8f88daeb64
Upload subiquity snapshot to unbreak console-conf on core20.
2019-12-16 20:49:39 +00:00
Dimitri John Ledkov
ea8d463fbb
Merge pull request #605 from mwhudson/more-asyncio-snaplist
...
make the snaplist code more async
2019-12-16 19:40:44 +00:00
Dimitri John Ledkov
4bcb0e5fd1
Merge pull request #609 from mwhudson/less-signalling
...
stop some pointless use of urwid signals
2019-12-16 19:38:45 +00:00
Dimitri John Ledkov
889d4bba23
Merge pull request #610 from mwhudson/remove-cruft
...
remove ancient model and view code
2019-12-16 19:30:15 +00:00
Michael Hudson-Doyle
f02c86175f
remove ancient model and view code
...
Old bcache, iscsi and ceph code from 2015. If we want to look at it
again we can just dig it out of git...
2019-12-17 07:59:30 +13:00
Dimitri John Ledkov
42343d665f
Merge pull request #601 from mwhudson/more-async-refresh
...
make the refresh view code use asyncio apis
2019-12-16 12:33:22 +00:00
Dimitri John Ledkov
c067e5e741
Merge pull request #606 from mwhudson/prober-fail-lower
...
push debug_flag block probe crashing into Prober
2019-12-16 12:27:16 +00:00
Michael Hudson-Doyle
28d1c917c9
Merge pull request #607 from mwhudson/fix-screens-cmd-line
...
make --screen command line option do something again
2019-12-16 23:38:20 +13:00
Michael Hudson-Doyle
af7b485e43
Merge pull request #608 from mwhudson/fix-filesystem-early
...
fix getting to the filesystem screen very early
2019-12-16 23:27:04 +13:00
Michael Hudson-Doyle
cf16d6c3b9
fix getting to the filesystem screen very early
2019-12-16 23:17:50 +13:00
Michael Hudson-Doyle
33af65bde1
make --screen command line option do something again
2019-12-16 23:17:21 +13:00
Michael Hudson-Doyle
324dddac94
push debug_flag block probe crashing into Prober
2019-12-16 23:15:48 +13:00
Michael Hudson-Doyle
01e5261b3f
kill off other top level signals
2019-12-16 23:09:17 +13:00
Michael Hudson-Doyle
2765e6a773
replace next-screen/prev-screen signals with method calls
2019-12-16 23:02:03 +13:00
Michael Hudson-Doyle
4c92e2dd53
make the snaplist code more async
2019-12-16 22:49:14 +13:00
Michael Hudson-Doyle
7e7ca080f6
Merge pull request #604 from mwhudson/tab-cycling-oddity
...
fix tab-cycling between header and body
2019-12-16 21:37:20 +13:00
Michael Hudson-Doyle
7b697a1978
Merge pull request #602 from mwhudson/selector-non-text
...
allow Selector to have non-text entries
2019-12-16 21:36:45 +13:00
Michael Hudson-Doyle
8ae0a72184
Merge pull request #603 from mwhudson/simplify-subform
...
simplify SubForm stuff a bit
2019-12-16 21:33:19 +13:00
Michael Hudson-Doyle
b41560fc4c
fix tab-cycling between header and body
2019-12-16 21:32:25 +13:00
Michael Hudson-Doyle
9736825e32
simplify SubForm stuff a bit
2019-12-16 21:21:57 +13:00
Michael Hudson-Doyle
6913294de6
EXTREMELY OBSCURE fix
...
without this, selectors get skipped over when selecting the first element in a
pile if the label is some kind of container.
2019-12-16 21:15:46 +13:00
Michael Hudson-Doyle
9759957f36
allow Selector to have non-text entries
2019-12-16 13:28:42 +13:00
Michael Hudson-Doyle
394cfc723c
handle check task being cancelled while view is shown
2019-12-16 12:41:43 +13:00
Michael Hudson-Doyle
de18cc977f
make SingleInstanceTask.start_sync set self.task synchronously
2019-12-16 12:33:19 +13:00
Michael Hudson-Doyle
b639d3a4dd
do not have a request to v2/changes failing crash the ui
2019-12-16 11:50:38 +13:00
Michael Hudson-Doyle
c44a15d4c3
straigthen out refresh logic and handle failed update better
2019-12-16 11:40:29 +13:00
Michael Hudson-Doyle
930d479e85
make the refresh view code use asyncio apis
2019-12-16 09:54:48 +13:00
Michael Hudson-Doyle
5173e46b33
Merge pull request #600 from mwhudson/fix-probing-failures
...
stop block probing failures from crashing the process
2019-12-15 09:53:47 +13:00
Michael Hudson-Doyle
fe08311c19
stop block probing failures from crashing the process
...
There is a common problem in concurrent / asynchronous code of what to
do with unhandled exceptions. If a (conceptual) thread of execution
fails, there's no guarantee (and no way of telling) if there's anything
listening. By default, I chose to have a failing task propagate the
exception up to the run loop for two reasons:
1) Unhandled exceptions are generally bad
2) urwid.ExitMainLoop needs to be propagated to the run loop to have
any effect
But this means that tasks that are expected to fail (and have this
failure handled) like block probing crash the process, which is
obviously a Bad Thing. This branch adds a way to turn off exception
propagation per-task, which is a bit hackish but works ok it seems.
2019-12-15 09:45:14 +13:00
Michael Hudson-Doyle
bd3ede4c21
Merge pull request #595 from mwhudson/remove-run_in_bg
...
remove run_in_bg
the asyncioification is complete (apart from bug fixes)
2019-12-15 09:44:09 +13:00
Michael Hudson-Doyle
6d4ea2bf34
Merge pull request #596 from xnox/uc20
...
Unbreak console-conf in UC20 images
2019-12-15 09:04:03 +13:00
Michael Hudson-Doyle
ae5cd6268a
kill off run_in_bg and some related hacks
2019-12-15 08:53:37 +13:00
Michael Hudson-Doyle
a92b88ed9d
asyncioify run_command_in_foreground
2019-12-15 08:53:36 +13:00
Michael Hudson-Doyle
614ebc415e
stop using run_in_bg for setting the snapd proxy
2019-12-15 08:53:00 +13:00
Michael Hudson-Doyle
735966d163
use run_in_bg for uploading crash reports
2019-12-15 08:53:00 +13:00
Michael Hudson-Doyle
d62636cf44
use run_in_thread for adding info to crash reports
2019-12-15 08:53:00 +13:00
Dimitri John Ledkov
8e882235be
Merge pull request #593 from mwhudson/asyncio-filesystem
...
asyncioify filesystem controller
2019-12-14 17:41:14 +00:00
Dimitri John Ledkov
d6689d9200
Merge pull request #594 from mwhudson/asyncio-ssh
...
asyncioify ssh
2019-12-14 16:48:55 +00:00
Dimitri John Ledkov
b4ff1bde70
Merge pull request #599 from mwhudson/radiobuttonfield
...
add a RadioButtonField for forms
2019-12-14 16:47:29 +00:00
Michael Hudson-Doyle
a2fc6da694
add a RadioButtonField for forms
2019-12-14 22:35:19 +13:00
Michael Hudson-Doyle
285eeee0ed
Merge pull request #598 from mwhudson/repeatedcontroller-index
...
fix RepeatedController
2019-12-14 22:16:07 +13:00
Michael Hudson-Doyle
7078d47af6
Merge pull request #597 from mwhudson/no-ui-controller
...
add a class for controllers with no ui
2019-12-14 22:15:54 +13:00
Michael Hudson-Doyle
0090aec3be
fix RepeatedController
...
a snap update was offered the second time even if it had been
offered already
2019-12-14 21:44:10 +13:00
Michael Hudson-Doyle
5571e1fab3
add a class for controllers with no ui
...
there will be a bunch of these coming for autoinstall
2019-12-14 21:27:39 +13:00
Dimitri John Ledkov
d19e405666
Unbreak console-conf in UC20 images
2019-12-14 03:00:17 +00:00
Michael Hudson-Doyle
1db2c7ee5c
asyncioify the ssh controller
2019-12-13 11:49:49 +13:00
Michael Hudson-Doyle
05a61544fb
asyncio.create_subprocess_exec defaults stdin to None
2019-12-13 11:44:12 +13:00
Michael Hudson-Doyle
b500df5ecc
fix behaviour after a failed probe
2019-12-13 10:15:58 +13:00
Michael Hudson-Doyle
17251ce431
fix updating after a slow probe
2019-12-13 10:15:58 +13:00