Commit Graph

3961 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 5305f0b7be
Merge pull request #891 from mwhudson/lp-1913624-big
put a full locale (language/location/codeset) in languagelist
2021-02-15 11:12:10 +13:00
Michael Hudson-Doyle 047a903353 fail if -report_el_torito fails 2021-02-12 15:42:31 +13:00
Michael Hudson-Doyle 0f1b1646a9 be a bit smarter about the locale that gets written to the cloud init config 2021-02-12 15:03:10 +13:00
Michael Hudson-Doyle d39c52e4c4 put a full locale (language/location/codeset) in languagelist
the location is the default location for a language in
localechooser-data.
2021-02-12 15:03:10 +13:00
Michael Hudson-Doyle a8610e205a fix lint 2021-02-12 15:02:44 +13:00
Michael Hudson-Doyle 7ae9797a7f
Merge pull request #887 from xnox/occitan
scripts: fix make-language-lists for non-languagelist languages
2021-02-12 14:07:06 +13:00
Michael Hudson-Doyle 5593f305b1 fix cloud-init status invocation 2021-02-12 13:57:54 +13:00
Michael Hudson-Doyle 8943b253e4
Merge pull request #879 from mwhudson/start-api-server-before-cloud-init
wait for cloud-init to complete after starting api server
2021-02-12 10:39:54 +13:00
Michael Hudson-Doyle 565a570328 tidy code slightly and add a comment 2021-02-10 14:28:51 +13:00
Michael Hudson-Doyle f6b70096df restore special case for kab, as iso-codes in bionic is too old 2021-02-10 14:28:04 +13:00
Michael Hudson-Doyle 6fa1d9bbd0 fix crash on refresh: change ids are strings in the snapd api
for https://bugs.launchpad.net/subiquity/+bug/1913417
2021-02-10 11:43:58 +13:00
Dimitri John Ledkov 257ba251db
Update languagelist 2021-02-04 14:53:50 +00:00
Dimitri John Ledkov ff4a578308
scripts: fix lookup of languages without 639-3 translations
Fixes https://github.com/CanonicalLtd/subiquity/pull/886
2021-02-04 14:53:16 +00:00
Dimitri John Ledkov bb98d57fa0
scripts: fix make-language-lists for non-languagelist languages
Fixes #885
2021-02-04 14:39:54 +00:00
Michael Hudson-Doyle e813726aaa yaml is bad 2021-01-27 15:20:32 +13:00
Michael Hudson-Doyle 4394382d0d
Merge pull request #883 from mwhudson/curtin-update
use curtin 21.2 release
2021-01-27 14:56:50 +13:00
Michael Hudson-Doyle 0ff1739d19 use curtin 21.2 release 2021-01-27 14:55:52 +13:00
Michael Hudson-Doyle beae2d4974
Merge pull request #881 from mwhudson/lp-1912967
switch language in the client, not the server
2021-01-27 11:21:25 +13:00
Michael Hudson-Doyle 518aa14867
Merge pull request #882 from dbungert/client-get-ips
client: lookup machine IPs via API call
2021-01-27 10:51:16 +13:00
Daniel Bungert e923d14128 Remove create_task() workaround
With a better fix in place in wait_with_text_dialog(), this explicit
create_task() is no longer needed.
2021-01-26 14:47:42 -07:00
Daniel Bungert 6b34f80a90 client: lookup machine IPs via API call
Attempts to look them up directly fail due to an empty app.base_model.
Add an API call invocation to grab the public IPs.
2021-01-26 13:49:05 -07:00
Michael Hudson-Doyle d4c05d74ff
Merge pull request #880 from mwhudson/nic-info
fix crash when trying to view nic info
2021-01-27 09:41:21 +13:00
Michael Hudson-Doyle fac0eeed43 fix crash when trying to view nic info
fixes half of https://bugs.launchpad.net/subiquity/+bug/1912955
2021-01-27 09:35:09 +13:00
Michael Hudson-Doyle 5e91518a40 switch language in the client, not the server 2021-01-26 16:34:49 +13:00
Michael Hudson-Doyle ae025fa395 wait for cloud-init to complete after starting api server
Currently the api server waits for cloud-init to complete very very
early, before starting the API server. This can leave the client at a
message that just says "connecting...." for quite a few seconds. This
branch adds a couple more states to ApplicationState to use during
startup and has the client print appropriate messages for each one.
2021-01-22 16:32:51 +13:00
Michael Hudson-Doyle a888d823af pin pyyaml version 2021-01-20 22:33:01 +13:00
Michael Hudson-Doyle f603147a0f
Merge pull request #878 from mwhudson/virt-dasds
pass data about dasds from server to client
2021-01-15 12:52:51 +13:00
Michael Hudson-Doyle 49b9b08afb pass data about dasds from server to client
so the ptable ends up being correct
2021-01-15 12:17:26 +13:00
Michael Hudson-Doyle b515055a55
Merge pull request #877 from mwhudson/lp-1908123
print the usual stuff to the console on s390x for a non-interactive a…
2021-01-13 08:57:34 +13:00
Michael Hudson-Doyle 5756fc4195
Merge pull request #876 from mwhudson/fix-server-restart
fix restarting of server process
2021-01-13 08:57:17 +13:00
Michael Hudson-Doyle 2c10573480 fix restarting of server process 2021-01-12 16:03:26 +13:00
Michael Hudson-Doyle 9ee4e68cc6 print the usual stuff to the console on s390x for a non-interactive autoinstall 2021-01-07 13:12:45 +13:00
Michael Hudson-Doyle a3444d6f56
Merge pull request #875 from mwhudson/inject-subiquity-snap-vs-snap-preseed
re-run snap-preseed in inject-subiquity-snap.sh
2021-01-06 15:35:47 +13:00
Michael Hudson-Doyle ef78e7d01c re-run snap-preseed in inject-subiquity-snap.sh 2021-01-06 14:04:50 +13:00
Michael Hudson-Doyle b13dabba85
Merge pull request #867 from mwhudson/disk-matching-fixes
check udev data directly when processing match: specs
2021-01-06 13:56:05 +13:00
Michael Hudson-Doyle 6dba0e49b6
Merge pull request #874 from mwhudson/better-failure-handling
Better failure handling
2020-12-18 16:37:28 +13:00
Michael Hudson-Doyle 07a85949b1
Merge pull request #873 from mwhudson/combine-install-and-application-state
smoosh InstallState into ApplicationState
2020-12-18 15:52:59 +13:00
Michael Hudson-Doyle f4618cbdaa ensure probing errors get reported properly during an autoinstall 2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle 4cdfe469e7 run error commands on failure 2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle 4de9668a17 handle top-level exceptions as documented
Also let install failures be handled at this level.
2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle c77d6b402a document how error handling should work 2020-12-18 14:42:01 +13:00
Michael Hudson-Doyle 0ad21b7c96 smoosh InstallState into ApplicationState
Having these be separate was slightly confusing, particular as I need to
add an "ERROR" state that isn't necessarily due to the install step
itself failing. Now we have one enum for the overall status of the
installer and a separate field that indicates whether the client should
be in interactive or non-interactive mode (or "not-yet-known" which is
handled more or less like non-interactive mode).
2020-12-18 14:41:35 +13:00
Michael Hudson-Doyle 4798b7f9a5
Merge pull request #871 from mwhudson/exception-to-error-report
add a way of mapping an exception to an error report
2020-12-18 14:39:58 +13:00
Michael Hudson-Doyle 83ccaa7f1c
Merge pull request #872 from mwhudson/autoinstall-refresh-update-no
putting "update: no" in autoinstall for refresh section should prevent update
2020-12-18 14:39:33 +13:00
Michael Hudson-Doyle 842fe6176f
Merge pull request #869 from mwhudson/append-logs
append, do not overwrite logs
2020-12-18 13:43:42 +13:00
Michael Hudson-Doyle 25e107e522
Merge pull request #870 from mwhudson/reorg-syslog-ids
have the client unconditionally print whatever comes over one syslog id
2020-12-18 13:42:47 +13:00
Michael Hudson-Doyle 3161a1fb08 putting "update: no" in autoinstall for refresh section should prevent update
Crazily, the code interpreted the presence of an 'update' key as meaning
a refresh should be attempted and ignored its value.
2020-12-18 13:41:10 +13:00
Michael Hudson-Doyle 369c0f896e have the client unconditionally print whatever comes over one syslog id
This makes the code to print the output from early commands a bit
simpler, and would make the output of error commands visible if anything
actually ran the error commands (coming soon to a PR near you!)
2020-12-18 12:50:37 +13:00
Michael Hudson-Doyle 2154b03d0e add a way of mapping an exception to an error report
I am going to add code that generates an error report for an unhandled
exception soon and we do not want to generate two reports for one
exception...
2020-12-18 12:29:53 +13:00
Michael Hudson-Doyle 53d06961cc append, do not overwrite logs
The log file names have pids in now, but when subiquity re-execs itself
to fake a snap refresh the pid doesn't change. Having the pre "refresh"
logs get overwritten does not help anything and is sometimes very
annoying.
2020-12-18 12:18:40 +13:00