Commit Graph

2971 Commits

Author SHA1 Message Date
Michael Hudson-Doyle 6b5e7adcf6 add some explanation to raid-size-tests.py 2019-11-08 09:22:59 +13:00
Michael Hudson-Doyle 5da663fede raid-size-tests.py: run in tmpfs, clean up better
ext4 limits files to a measly 16TiB!
2019-11-08 09:22:59 +13:00
Michael Hudson-Doyle 679b611077 add tests of get_raid_size against reality 2019-11-08 09:22:59 +13:00
Michael Hudson-Doyle 53e532e602 add a test from the only bug i can find where the size of the resulting raid is reported 2019-11-08 09:22:59 +13:00
Michael Hudson-Doyle ea9af1cbc0 More accurate estimation of the size of a RAID
I found the code in mdadm that decides how much of a device is usable
for data and copied it. It's a bit hairy!

For https://bugs.launchpad.net/subiquity/+bug/1816777 and many similar
bugs.
2019-11-08 09:22:59 +13:00
Michael Hudson-Doyle 2baf9583db
Merge pull request #569 from mwhudson/error-report-5
generate crash reports
2019-11-07 15:39:19 +13:00
Michael Hudson-Doyle 7908a958d0 create crash reports 2019-11-07 14:47:20 +13:00
Michael Hudson-Doyle 74ef2ad8f6 add a way to create a crash report 2019-11-07 14:47:18 +13:00
Michael Hudson-Doyle 38dfeebde7 Add ErrorReport and ErrorController classes 2019-11-07 14:46:58 +13:00
Michael Hudson-Doyle 7691e26489 add and use a way for code to note data that should end up in a crash report 2019-11-07 14:46:57 +13:00
Dimitri John Ledkov dd1bcc9a89
Merge pull request #570 from mwhudson/monitor-udev
reprobe block devices on udev events
2019-11-06 14:04:06 +00:00
Michael Hudson-Doyle 2ec5b3b2d4
Merge pull request #572 from mwhudson/bump-probert
bump probert
2019-11-06 22:27:13 +13:00
Michael Hudson-Doyle 4afb53a7ce bump probert 2019-11-06 14:59:25 +13:00
Michael Hudson-Doyle 4d5c217063
Merge pull request #571 from mwhudson/curtin-ubuntu-devel
go back to getting curtin from ubuntu/devel branch
2019-11-06 10:43:18 +13:00
Michael Hudson-Doyle b0d19fc58b go back to getting curtin from ubuntu/devel branch 2019-11-06 10:34:37 +13:00
Michael Hudson-Doyle 69c5e8179f fix logic around waiting for udev to settle 2019-11-05 10:39:06 +13:00
Michael Hudson-Doyle 54823e364c remove signal sent after debug shell exits 2019-11-04 23:52:49 +13:00
Michael Hudson-Doyle 4fa941ef4a reprobe block devices on udev block events 2019-11-04 23:50:00 +13:00
Michael Hudson-Doyle 4798348740
Merge pull request #567 from mwhudson/restricted-saved-probing
implement restricted probing for canned probert data
2019-11-04 10:44:18 +13:00
Michael Hudson-Doyle bd7f0eef1d
Merge pull request #568 from mwhudson/controlled-failures
add a controlled way to make various things fail
2019-11-04 10:43:48 +13:00
Michael Hudson-Doyle ca02972195 add a controlled way to make various things fail
In dry-run mode, treat SUBIQUITY_DEBUG as a comma-separated list of
things to fail:

 * install-fail: curtin install fails
 * copy-logs-fail: the postinstall copying of logs fails
 * bpfail-full: full block device probing fails
 * bpfail-restricted: restricted block device probing fails

In addition, control-u makes the UI crash in dry-run mode.

(This is all for testing of crash report generation but does not depend
on that).
2019-11-04 10:43:29 +13:00
Michael Hudson-Doyle d56b72b35b implement restricted probing for canned probert data 2019-10-31 13:39:01 +13:00
Michael Hudson-Doyle 3d1fb15dae
Merge pull request #566 from CanonicalLtd/drop-deb-packages
Drop crufty .deb packages from the source package build
2019-10-31 09:42:19 +13:00
Steve Langasek f6416abd78 Don't call dh_missing
Just don't bother, it's not worth creating a whitelist that's 3x longer than
the actual target packages we're building
2019-10-30 10:57:54 -07:00
Steve Langasek 4129f6f5ff Drop crufty .deb packages from the source package build
The binary packages from the subiquity source are unused with the exception
of console-conf (+subiquitycore) which is input into the core snap build;
and subiquity-tools is particularly bad as it has a hard-coded dependency
on python-all, which is not at all normal for a runtime package.

So just stop building these unmaintained binaries, and only build the ones
we actually use.
2019-10-30 10:41:46 -07:00
Dimitri John Ledkov dff7c1f67c
Merge pull request #564 from mwhudson/restart-serial-subiquity-on-refresh
add post-refresh hook to restart subiquity on the serial line
2019-10-18 12:58:36 +01:00
Michael Hudson-Doyle 5f021228d6
Merge pull request #565 from xnox/too-many-wwn
WWN is confusing, for non-multipathed (but multipath capable) drives.
2019-10-18 09:19:25 +13:00
Dimitri John Ledkov a26d2b8fcd WWN is confusing, for non-multipathed (but multipath capable) drives.
LP: #1848533
2019-10-17 16:45:53 +01:00
Michael Hudson-Doyle 7571a4a8a2 add post-refresh hook to restart subiquity on the serial line
For https://bugs.launchpad.net/subiquity/+bug/1848182.

This was easy? As a bonus, the hook from the refreshed-to snap is
executed so this will work even when the user is running current media.
2019-10-17 13:43:39 +13:00
Michael Hudson-Doyle d91dad9561
Merge pull request #563 from mwhudson/pop-up-frame-color
wrap actionmenu/selector popups in Color.body
2019-10-16 13:12:54 +13:00
Michael Hudson-Doyle a3734cda03 wrap actionmenu/selector popups in Color.body
this fixes a slight visual glitch in gnome-terminal
2019-10-16 12:50:44 +13:00
Michael Hudson-Doyle d28a1fe813
Merge pull request #561 from mwhudson/curtin-hax
get curtin fix for nvme/multipath crash
2019-10-15 11:13:01 +13:00
Michael Hudson-Doyle a469fc1c46
Merge pull request #562 from mwhudson/lp-1848016
fix crash after keyboard detection
2019-10-15 11:12:55 +13:00
Michael Hudson-Doyle d2d3e7f51d fix crash after keyboard detection 2019-10-15 10:55:18 +13:00
Michael Hudson-Doyle 129b855c54 use my curtin branch 2019-10-15 09:50:42 +13:00
Michael Hudson-Doyle bdfb40a931
Merge pull request #560 from xnox/alignment
Align non-clickable Help title
2019-10-14 11:37:34 +13:00
Dimitri John Ledkov ecd9876481 Align non-clickable Help title 2019-10-14 11:36:37 +13:00
Dimitri John Ledkov ba00c3bd62
Merge pull request #559 from xnox/master-curtin
Use 19.2-33-gedfdb1d1 curtin from master for all the bugfixes.
2019-10-09 15:21:21 +01:00
Dimitri John Ledkov dd8de22238 Use 19.2-33-gedfdb1d1 curtin from master for all the bugfixes. 2019-10-09 13:03:34 +01:00
Dimitri John Ledkov 8b98f1446f
Merge pull request #558 from xnox/multipath
Multipath support
2019-10-09 12:41:34 +01:00
Dimitri John Ledkov 1df6adb8da Use multipath device, as type descriptor 2019-10-09 12:33:47 +01:00
Michael Hudson-Doyle f2918fa30b
Merge pull request #550 from mwhudson/reprobe-block-devices-on-shell-exit
Reprobe block devices on debug shell exit
2019-10-09 15:37:23 +13:00
Dimitri John Ledkov 2c358d7173 Add missing : 2019-10-08 19:23:45 +01:00
Dimitri John Ledkov 4538c9e776 Show mpath name in disk info. 2019-10-08 16:47:18 +01:00
Dimitri John Ledkov 5342be6652 Fixup multipath display, prefer WWN over serial. 2019-10-08 16:43:21 +01:00
Dimitri John Ledkov 9822d0f4a3 Add WWN to disk info. 2019-10-08 16:37:01 +01:00
Dimitri John Ledkov a012403f65 Simplify info dict. None is boolean false. 2019-10-08 16:34:11 +01:00
Dimitri John Ledkov bddc383a25 Exclude all but the first path 2019-10-08 16:31:43 +01:00
Dimitri John Ledkov eda4707e10 Store wwn & multipath attributes. 2019-10-08 15:41:39 +01:00
Dimitri John Ledkov 82883cf75b Add multipath machine config 2019-10-08 15:40:50 +01:00