Michael Hudson-Doyle
e3ec05a6c1
always include partition number in curtin config
2020-04-14 10:21:29 +12:00
Michael Hudson-Doyle
96a6dfd010
add integration-style test for reusing an existing partitions
2020-04-14 09:50:56 +12:00
Michael Hudson-Doyle
be146972da
fix travis
2020-04-07 21:37:42 +12:00
Michael Hudson-Doyle
b0302484d2
fix tty check for autoinstalls
2020-04-07 20:34:38 +12:00
Michael Hudson-Doyle
467257ff9a
hack for testing in lxd
2020-04-02 11:11:25 +13:00
Michael Hudson-Doyle
9a68ce91c1
fix not supplying snaps in autoinstall, oops
2020-04-02 10:47:47 +13:00
Michael Hudson-Doyle
c1c33dee03
add a simple integration test for autoinstall
2020-04-02 10:22:08 +13:00
Dimitri John Ledkov
897fe56213
Try overriding zfs-mount.service
2020-03-05 16:53:35 +00:00
Dimitri John Ledkov
cbaab430a3
Switch script to use python3, as python is no longer available
...
I guess good luck to the Jenkins CI?
2020-01-29 18:00:54 +00:00
Michael Hudson-Doyle
683d1932ac
have replayed curtin runs create a log file too
2019-11-21 14:55:23 +13:00
Michael Hudson-Doyle
ae033101e6
code for uploading to daisy
2019-11-21 14:54:35 +13:00
Michael Hudson-Doyle
e8a9cdf4f8
have dry-run install failures replay events from a real failure
2019-11-21 11:25:43 +13:00
Michael Hudson-Doyle
0141defa01
changes suggested in review
2019-11-08 09:47:34 +13:00
Michael Hudson-Doyle
65a961be1a
do not run the 100T raid tests, mdadm fails with SIGPIPE
2019-11-08 09:31:51 +13:00
Michael Hudson-Doyle
5d8c983448
make raid-size-tests.py a tiny bit friendlier
2019-11-08 09:31:51 +13:00
Michael Hudson-Doyle
fde1c53141
sort raid devices consistently when computing size and when serializing
2019-11-08 09:30:22 +13:00
Michael Hudson-Doyle
233965b376
fix raid size calculation when sizes of devices in array vary
...
It turns out mdadm computes the headroom based on the first device in
the array, which means that the order of the devices matters!
2019-11-08 09:22:59 +13:00
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
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
Paride Legovini
0501a1d33b
inject-subiquity-snap: fix the ppc64 edge iso volume name
2019-10-08 11:29:31 +02:00
Paride Legovini
627ecadf6b
inject-subiquity-snap: add support for ppc64 iso images
2019-10-08 10:37:12 +02:00
Michael Hudson-Doyle
fb6ea590a5
still create a subiquity-debug.log symlink
2019-09-30 16:21:42 +13:00
Michael Hudson-Doyle
7c1154b758
create one log file per invocation
...
Log to subiquity-debug.log.$PID instead of just subiquity-debug.log.
When we implement error reports we'll obviously attach the log to the
error report. There's no point adding log messages from previous runs of
subiquity.
2019-09-30 13:47:56 +13:00
Paride Legovini
a23c554af3
test-this-branch.sh: fix the ISO file name
2019-08-22 14:41:38 +02:00
Michael Hudson-Doyle
588c933505
use the xenial travis build environment
2019-07-18 09:40:03 +12:00
Dimitri John Ledkov
90bbad44c1
Enable -proposed for testing
2019-07-02 13:43:00 +01:00
Dimitri John Ledkov
94de7dc522
Merge remote-tracking branch 'origin/pull/500/head'
...
Merge using existing partitions. Revert to using archive
curtin/deps/etc.
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>
2019-07-02 13:18:46 +01:00
Dimitri John Ledkov
dac6f12c0f
Basic zdev view
2019-06-06 16:15:15 +01:00
Michael Hudson-Doyle
9ef3ce19a1
add ppa:mwhudson/devirt to get newer version of curtin for now
2019-05-30 15:38:09 +12:00
Michael Hudson-Doyle
0c55149c31
run integration tests with simple sample data
2019-05-30 15:33:59 +12:00
Michael Hudson-Doyle
0873225ad6
Flags that do not indicate a bootloader partition are ok_for_raid
...
Existing partitions can turn up with flags like "linux" and these are
fine to put into a RAID. I also checked all the other places we inspect
flag to check they weren't being over strict and they seem fine.
2019-05-02 10:45:57 +12:00
Michael Hudson-Doyle
27b49c9849
use yaml.safe_load instead of yaml.load
2019-03-26 13:59:38 +13:00
Michael Hudson-Doyle
b94dfd719c
fix inject-subiquity-snap for a local snap again
2019-03-23 21:44:06 +13:00
Michael Hudson-Doyle
c1f8c10091
answers support for refresh screen
2019-03-12 11:49:03 +13:00
Michael Hudson-Doyle
cb2203be10
allow specifying a track to follow in inject-subiquity-snap.sh
2019-03-06 15:15:01 +13:00
Michael Hudson-Doyle
18ff7f6973
seed subiquity with an assertion if one is there
2019-03-01 13:20:17 +13:00
Michael Hudson-Doyle
8365b5d507
add options to inject-subiquity-snap to allow a custom snapd and store url
2019-03-01 09:13:05 +13:00
Michael Hudson-Doyle
8892e027e9
make sure that dmcrypt passphrase does not end up in log
2019-02-28 11:55:44 +13:00
Michael Hudson-Doyle
ee9956671e
fix inject-subiquity-snap.sh to not exit 1 on non s390x
2019-02-22 12:13:13 +01:00
Michael Hudson-Doyle
8409c6e62e
set DEBIAN_FRONTEND=noninteractive when setting up the lxd
2019-02-21 11:08:00 +01:00
Michael Hudson-Doyle
b77aa9499e
make sure all delays during replaying answers repsect SUBIQUITY_REPLAY_TIMESCALE
2019-02-21 11:07:54 +01:00
Michael Hudson-Doyle
0e844ccffa
fix inject-subiquity-snap.sh now that installer overlay does not necessarily contain core snap
2018-12-19 12:23:05 +13:00
Dimitri John Ledkov
5041731ff7
scripts: add s390x support to inject-subiquity-snap
2018-11-23 01:45:15 +00:00
Michael Hudson-Doyle
0457985208
fixup tests
2018-07-11 14:55:41 +12:00
Michael Hudson-Doyle
569700864a
a guided option that uses LVM
2018-07-07 21:41:30 +12:00
Michael Hudson-Doyle
32b7d785cd
answers support for lvm and some related fixes
2018-07-07 20:59:47 +12:00
Michael Hudson-Doyle
1cdfea174d
add some validation of curtin config generated from answers
2018-06-19 11:43:59 +12:00
Scott Moser
af94275618
Make tox and Makefile more similar.
...
This does a few things with the end goal of making simplifying and
making consistent tox and 'make' methods of test or check.
Things here:
* move python programs out of bin and into their own main. Use
entry_points to get scripts written for them. One gain here is
that we no longer have python programs that are not named .py.
flake8 and friends would not check those programs by default.
* install scripts in bin/ using the setup.py scripts and adjust
snapcraft.yaml and debian packaging for that.
* declare and use PYTHON in Makefile to avoid repeating 'python3'
* declare and use CHECK_DIRS in Makefile for list of dirs to check.
* no longer run 'flake8' from 'make check' by default.
* remove the old tests/ directory.
2018-06-05 22:19:17 -04:00