Commit Graph

585 Commits

Author SHA1 Message Date
Michael Hudson-Doyle ef01c7d291 break run_command in two
and use the two halves when applying network config (to allow cancellation)
2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle 24347f1843 use run_command_async 2016-08-22 17:02:42 +12:00
Michael Hudson-Doyle e0a7aded85 update UI while apply network steps are running
as a special hack, the first time you apply changes in dry run mode it will
fail
2016-08-22 17:02:42 +12:00
Mathieu Trudel-Lapierre e02a4c8d55 Use netplan apply instead of restarting networkd ourselves.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:17:22 -04:00
Mathieu Trudel-Lapierre 958ab1a339 Show decent error messages on failure.
Signed-off-by: Mathieu Trudel-Lapierre <mathieu.trudel-lapierre@canonical.com>
2016-08-18 16:15:28 -04:00
Michael Hudson-Doyle 2a540e11c1 fix passing username to welcome view 2016-08-17 20:54:00 +12:00
Michael Hudson-Doyle 9751b1a6b3 be more careful about checking exit statuses 2016-08-17 20:44:59 +12:00
Mathieu Trudel-Lapierre ade3c8b93d Only render dhcp if set to True 2016-08-16 22:23:39 -04:00
Mathieu Trudel-Lapierre 0c8deeece4 Update padding sizes for prettier output; account for future translations. 2016-08-16 22:15:41 -04:00
Mathieu Trudel-Lapierre 761403930c Changelog update. 2016-08-16 21:38:27 -04:00
Mathieu Trudel-Lapierre 60c58e6654 Merge branch 'cyphermox/network_v2' 2016-08-16 15:33:20 -04:00
Mathieu Trudel-Lapierre f49cdba274 Merge pull request #140 from CanonicalLtd/create-user-updates
adapt to new behavior of snap create-user.
2016-08-16 15:32:08 -04:00
Mathieu Trudel-Lapierre 0e93ab3e61 Check we're online, display network error otherwise. 2016-08-16 15:25:58 -04:00
Mathieu Trudel-Lapierre 0e92883a83 Make it a little more obvious where labels are in fact buttons or menus 2016-08-16 15:01:51 -04:00
Mathieu Trudel-Lapierre 410ddf74d7 Drop 'match' for yaml rendering: it's unnecessary while we don't provide a way to rename interfaces. 2016-08-16 14:32:23 -04:00
Mathieu Trudel-Lapierre 10d06a73e4 Allow clearing IP configuration 2016-08-16 14:14:25 -04:00
Mathieu Trudel-Lapierre 682181ae62 We shouldn't render empty bits; also add rendering for IPv6 default route 2016-08-16 12:59:52 -04:00
Mathieu Trudel-Lapierre 11782ced12 Improve handling of the default routes. 2016-08-16 12:59:19 -04:00
Mathieu Trudel-Lapierre 2ffe10aaa7 Remove stray console_conf development drafts. 2016-08-16 11:01:18 -04:00
Mathieu Trudel-Lapierre df5e0fcb4c Try to do something sane to set a default gateway 2016-08-16 01:09:28 -04:00
Mathieu Trudel-Lapierre cac89c30e9 Do bonding, dhcp toggle, and segregate IPv4 and IPv6 again. 2016-08-16 00:48:15 -04:00
Michael Hudson-Doyle c3907430fa adapt to new behavior of snap create-user. 2016-08-16 16:32:14 +12:00
Mathieu Trudel-Lapierre 0f82a12208 Allow setting IPs and rendering as yaml 2016-08-15 17:05:19 -04:00
Mathieu Trudel-Lapierre 18c7e93cc2 WIP: Remove actions, port to an approximation of network yaml v2. 2016-08-13 00:13:22 -04:00
Mathieu Trudel-Lapierre 1980c4e483 fake-merge mwhudson/network 2016-08-12 22:31:31 -04:00
Mathieu Trudel-Lapierre d73ef34774 Display IPv6 addresses. 2016-08-12 17:55:03 -04:00
Mathieu Trudel-Lapierre a23840411d Iterate all IPv4 addresses on an interface. 2016-08-12 14:58:21 -04:00
Michael Hudson-Doyle 55bc516959 forgot something 2016-08-12 16:49:30 +12:00
Michael Hudson-Doyle 12c0947bad hacking that might be enough to let you turn dhcp on for an interface 2016-08-12 16:38:53 +12:00
Michael Hudson-Doyle 2857cc90a3 give up on probert for now 2016-08-12 16:04:40 +12:00
Mathieu Trudel-Lapierre 3e7edce714 Fix curtin log location for curtin install. 2016-08-09 22:22:26 -04:00
Mathieu Trudel-Lapierre 9441d95260 Merge branch 'master' into cyphermox/network-ui 2016-08-09 15:20:32 -04:00
Mathieu Trudel-Lapierre 69b12f54f9 Configure LOGDIR/LOGFILE for dryrun for the subiquity wrapper 2016-08-09 15:20:15 -04:00
Mathieu Trudel-Lapierre 6754a15c93 Allow more than one IPv4 address on an interface, and leave room for IPv6. 2016-08-09 15:11:02 -04:00
Michael Hudson-Doyle 959743aded start on configure interface view 2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle 724a99ac1a works so long as you do not actually want to change anything 2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle c0ce60f767 start network view 2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle 377bb841be move netconfig into console_conf 2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle 5e3f808b36 some kind of NetworkConfig.from_probe_data
it's mostly lies but it'll do for now.
2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle 553cb3b8da sketches 2016-08-09 11:03:10 +12:00
Michael Hudson-Doyle c052fa1aef Merge pull request #137 from CanonicalLtd/mwhudson/systemd-reorg-2
systemd reorganization

This branch changes the console-conf jobs to be depended on by the getty jobs via systemd drop-in files. It also moves log files and the completion marker file to more sensible places (this assumes your OS snap has ubuntu-core-config from the ppa in it) and uses systemctl stop to end all console-conf processes when done. This last bit isn't quite perfect -- it takes a surprisingly long time for the getty to appear after you press the 'finish' button, not sure what's going on there. Maybe we should only stop all console-conf processes other than 'us' and just exit normally... but this all seems to be an improvement.
2016-08-08 10:00:03 +12:00
Michael Hudson-Doyle 492f4e7bf9 UNRELEASED->xenial 2016-08-05 15:16:54 +12:00
Michael Hudson-Doyle eec8adf6f8 Stop all console-conf processes when complete. 2016-08-05 14:59:25 +12:00
Michael Hudson-Doyle 070a96bcc4 Write stamp file and logs to somewhere more sensible. 2016-08-05 14:41:50 +12:00
Michael Hudson-Doyle f9ebd17afe same for serial + fixes 2016-08-05 14:35:53 +12:00
Michael Hudson-Doyle a21aba4f11 use a drop-in file to run console-conf before getty 2016-08-05 14:35:00 +12:00
Mathieu Trudel-Lapierre e4e9edacfd Really drop curtin requirement. 2016-07-28 22:41:49 -04:00
Mathieu Trudel-Lapierre 046d3774ba Revert "Temporary unbreak, but nerf the user logins with email address."
This reverts commit 89c9e70501.
2016-07-28 20:51:48 -04:00
Mathieu Trudel-Lapierre 69cafa643a Merge branch 'mwhudson/demo' 2016-07-28 20:50:51 -04:00
Michael Hudson-Doyle dfb5eb6a15 oops 2016-07-29 12:48:53 +12:00