Michael Hudson-Doyle
6a9d100b64
have console-conf-write-login-details exit with code 2 when no IPs found
...
Also make the log files resulting from console-conf-write-login-details
execution a bit easier to spot.
2021-05-03 11:04:03 +12:00
Michael Hudson-Doyle
00cfee002f
trivial fixes for console_conf breakage
2020-11-06 09:54:30 +13:00
Michael Hudson-Doyle
edc43ff811
add a minimal server process
...
run it automatically in dry-run mode
2020-09-22 14:43:26 +12:00
Michael Hudson-Doyle
f0082c2068
change controller api to return a view, rather than setting it
2020-09-18 11:44:00 +12:00
Michael Hudson-Doyle
edc65dbbfb
make the base controller have no ui, add subclass for one that has ui
2020-08-23 23:18:28 +12:00
Michael Hudson-Doyle
f5f8a8a75c
import the controllers module explicitly
2020-08-23 23:18:28 +12:00
Michael Hudson-Doyle
ccd8c2382e
split urwid-using bits out of subiquitycore.core.Application
2020-08-23 23:18:26 +12:00
Michael Hudson-Doyle
210cdcb51b
Move the code for setting up the screen to its own file
...
Looking at this code thinking about the coming client / server split
made me realise that we could start by at least moving this
functionality to a more encapsulated place.
2020-07-27 23:40:17 +12:00
Michael Hudson-Doyle
0c9737097a
fix get_device_owner return value
2020-07-09 23:22:20 +12:00
Michael Hudson-Doyle
57cd4c3e4c
changes suggested in review
2020-07-09 10:47:46 +12:00
Michael Hudson-Doyle
164c575f2a
use snapd apis to check for a user and (minimally) handle a managed system with no owner
2020-07-03 15:55:07 +12:00
Dimitri John Ledkov
6de8970560
console_conf: fix showing error messages, when snap create-user fails
2020-05-18 12:42:14 +01:00
Dimitri John Ledkov
760fbaa22f
Review comments
2020-04-16 00:22:52 +01:00
Dimitri John Ledkov
5be2961a62
subiquity: add --ssh option to print ssh login details.
2020-04-16 00:08:56 +01:00
Dimitri John Ledkov
b34aeda02d
Merge pull request #695 from CanonicalLtd/fix-login-view-focus
...
Fix login view button focus to done
2020-04-09 13:28:34 +01:00
Dimitri John Ledkov
b61a3369a3
Fix login view button focus to done
2020-04-09 12:34:37 +01:00
Dimitri John Ledkov
a70d309f6a
Use common palette.
...
Fixes header frindge colors in console-conf.
2020-04-09 12:20:16 +01:00
Dimitri John Ledkov
f3b1a70822
Merge pull request #692 from bboozzoo/bboozzoo/chooser-tweaks
...
console_conf: various recover chooser tweaks
2020-04-09 10:59:39 +01:00
Maciej Borzecki
9293d85638
console_conf/ui/views: simplify sorting actions, tweaks
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 12:56:18 +02:00
Maciej Borzecki
8ebc8e0580
console_conf/ui/views/chooser: tweak generic action summary
...
Thanks @degville!
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 11:57:24 +02:00
Maciej Borzecki
3967329832
console_conf/ui/views/chooser: use lowercase action title in canned summary
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-08 11:57:00 +02:00
Maciej Borzecki
a957c5b889
console_conf/chooser: UI tweaks
...
- drop the ABORT button
- introduce BACK button, goes back to the correct previous screen
- sort actions in the order of run -> recover -> install -> rest
- capitalize action title strings
- simplify current model actions screen
- user hints in the confirm screen for well known modes
- generic hint for unknown modes
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-07 17:38:45 +02:00
Maciej Borzecki
d3ac0d6f36
console_conf/chooser: use model display name in top banner
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-07 17:36:47 +02:00
Maciej Borzecki
ed791e5c9e
console_conf/models/systems: add method for forgetting the current selection
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-07 17:22:29 +02:00
Michael Hudson-Doyle
00e33ae0e1
include ssh host key details in ssh help
2020-04-06 14:10:26 +12:00
Michael Hudson-Doyle
fac202d123
move newly added tests to tests directories
2020-04-02 10:18:07 +13:00
Dimitri John Ledkov
590b4b8f23
Merge pull request #655 from bboozzoo/bboozzoo/uc20-recovery-chooser
...
console_conf: implement UC20 recovery chooser
2020-04-01 22:05:30 +01:00
Dimitri John Ledkov
c2aa72a9ee
Merge pull request #672 from xnox/consoleconf-focus-identity
...
consoleconf: focus on entry field in identy.
2020-04-01 21:54:00 +01:00
Maciej Borzecki
0b58dd598b
console_conf/controllers: add tests for recovery chooser
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
b0ea2e1be7
console_conf/controllers/chooser: show current system actions first
...
When we know which system is current, show its actions first. Optionally allow
opening the list of other systems.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
95b65d1caf
console_conf/ui/views: add screen with actions of the current system
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:17:20 +02:00
Maciej Borzecki
6ae155faf7
console_conf/ui/views: sort recovery systems, indicate which is the current one
...
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 16:00:34 +02:00
Maciej Borzecki
d7e03cd5a8
console_conf/models: identify the current system
...
When creating a recovery systems model, find out which of the systems is
current.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-04-01 15:58:34 +02:00
Dimitri John Ledkov
dffed63df5
consoleconf: focus on entry field in identy.
2020-04-01 14:32:55 +01:00
Michael Hudson-Doyle
cab565304a
write netplan directly to the target
...
rather than via curtin and then cloud-init
2020-04-01 19:37:02 +13:00
Maciej Borzecki
a147c720ba
console_conf: run as recovery chooser when --recovery-chooser-mode is provided
...
Add support for --recover-chooser-mode command line argument. When provided, run
as a recovery chooser, rather than as a regular console-conf instance.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Maciej Borzecki
f6ea3bc960
console_conf: add an app for the recovery chooser
...
Add an app and hook it up with the rest of elements.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Maciej Borzecki
8d2f1f9a8b
console_conf/controllers: add recovery chooser controllers
...
Add controller used by the recovery chooser.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Maciej Borzecki
5504a9aa91
console_conf/views: add recovery chooser views
...
Add views used by recovery chooser:
- welcome - recovery chooser specific message
- chooser - list of seed systems and actions
- confirm - where user confirms the selected action
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Maciej Borzecki
c328152fb8
console_conf/models: add models for recovery systems
...
Add models for recovery chooser systems, brand information, snapd models and
recovery actions.
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2020-03-24 15:09:50 +01:00
Michael Hudson-Doyle
cb52ab75a2
use the asyncio loop object rather than the urwid loop almost everywhere
2019-12-20 12:04:38 +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
Dimitri John Ledkov
d19e405666
Unbreak console-conf in UC20 images
2019-12-14 03:00:17 +00:00
Michael Hudson-Doyle
64378cdb95
refactor how controllers are stored a bit
2019-12-12 10:38:03 +13:00
Michael Hudson-Doyle
a2ccb0cd9e
remove all remaining footer-related things
2019-09-30 09:32:23 +13:00
Michael Hudson-Doyle
b24dbf7095
remove environment_check stuff
2019-09-09 15:27:29 +12:00
Michael Hudson-Doyle
5dca5e861e
remove some pointless wrapping of exceptions
2019-09-09 14:30:49 +12:00
Dimitri John Ledkov
25ed1e281f
Merge pull request #533 from mwhudson/app-specific-uis
...
allow the application to have a widget in the bottom right
2019-09-05 14:36:12 +01:00
Michael Hudson-Doyle
3f8c005237
allow console_conf and subiquity to use different UI classes
...
Subiquity is going to grow some global UI elements that console_conf
does not want.
2019-09-05 11:58:25 +12:00