Dan Bungert
3c32cb773c
Merge pull request #1076 from mwhudson/core20-cleanups
...
remove stdlib backports from Python 3.8
2021-10-14 14:57:48 -06:00
Dan Bungert
e35f1848f7
filesystem: guided_lvm code/comment consistency
...
Update the guided lvm sizes to match the comments.
2021-10-13 06:45:55 -06:00
Dan Bungert
db15b1c5c2
Merge pull request #1085 from dbungert/fr-1710-storage-v2-part2
...
/storage/v2: boot related fixes
2021-10-12 20:58:34 -06:00
Dan Bungert
4ec569fb74
storage/v2: refactor partition format/mount attrs
...
Cleanup some duplicated logic.
2021-10-12 20:05:35 -06:00
Dan Bungert
21c731f7ec
storage/v2: expose boot on Partition
...
Leave current grub_device on Partiton and change nothing about it.
Add boot as an intended replacement for grub_device usage which is an
all-in-one check for the partition being the correct type of boot
partition, of which grub_device is just one scenario.
2021-10-12 20:05:35 -06:00
Dan Bungert
de4b7751c2
storage/v2: fix add_boot_partition w/ multi disks
2021-10-12 20:05:35 -06:00
Dan Bungert
cc0f37fead
storage/v2: fix bad operator precedence in apitest
2021-10-12 20:05:35 -06:00
Dan Bungert
c62d79a1e2
storage/v2: advertise boot disk as boot_device
2021-10-12 20:05:35 -06:00
Dan Bungert
f17139c4a0
storage/v2: report grub_device on disk
...
If a partition has grub_device, that is shown at the disk level as well.
2021-10-12 20:05:35 -06:00
Dan Bungert
491842f15f
storage/v2: expose grub_device on disk
2021-10-12 20:05:34 -06:00
Dan Bungert
d12355710a
storage/v2: fix ValueError on edit_partition
2021-10-12 20:05:34 -06:00
Dan Bungert
c8a5a224a9
storage/v2: mark grub_device on BIOS 'partition'
2021-10-12 20:05:34 -06:00
Dan Bungert
5181e4a4ac
storage/v2: decline a second add_boot_partition
2021-10-12 20:05:34 -06:00
Dan Bungert
39b6c428ac
Merge pull request #1088 from dbungert/apitest-improvements
...
test/api cohabitation with dryrun
2021-10-12 19:18:38 -06:00
Michael Hudson-Doyle
744269d074
remove stdlib backports from Python 3.8
2021-10-12 18:55:09 -06:00
Michael Hudson-Doyle
48448b2e44
Merge pull request #1096 from dbungert/runtests-detect-crash
...
runtests: fail on detected crash
2021-10-13 13:52:12 +13:00
Michael Hudson-Doyle
6e1c1ac176
Merge pull request #1095 from mwhudson/lp-1946790
...
invoke lsb_release from /target when configuring cdrom source for apt
2021-10-13 13:50:55 +13:00
Dan Bungert
39b3394047
runtests: fail on detected crash
...
* exit if a crash is detected
* intentionally not cleanup on exit, to make it easier to analyze
2021-10-12 17:17:05 -06:00
Michael Hudson-Doyle
adeaf9df50
invoke lsb_release from /target when configuring cdrom source for apt
...
for some reason lsb_release in the snap is a bit busted.
For https://bugs.launchpad.net/subiquity/+bug/1946790
2021-10-13 10:13:34 +13:00
Didier Roche
31fa83e79e
Merge pull request #1078 from canonical/wsl_oobe_deeng_83
...
DEENG-83 - Implement a reboot in shutdown to restart WSL instances to take new configuration in effect.
2021-10-12 18:13:07 +02:00
Patrick Wu
1d19dfb772
system_setup: implement shutdown/reboot action
2021-10-12 23:20:05 +08:00
Dan Bungert
363098d1fd
Merge pull request #1094 from mwhudson/lp-1946656
...
close the session object after each request to the snapd API
2021-10-12 08:59:52 -06:00
Michael Hudson-Doyle
7cfc7d1215
close the session object after each request to the snapd API
...
As reported in https://bugs.launchpad.net/snapd/+bug/1946656 ,
not-quite idle connections between subiquity and snapd are piling up and
causing issues when trying to restart subiquity. I don't really
understand why, but using a fresh session for each API access makes the
problem go away.
2021-10-12 22:22:12 +13:00
Didier Roche
b4fce71e5d
Merge pull request #1079 from canonical/wsl_oobe_conf_calls_module_group
...
WSL OOBE - modulize the process of getting user groups
2021-10-12 09:16:23 +02:00
Patrick Wu
8559d7fe7d
modulizing the usergroup retriving
2021-10-12 10:07:45 +08:00
Dan Bungert
8561e43145
test/api: use a tempdir socket
...
Moving the socket to a tempdir solves several problems
* helps enable parallel testing
* doesn't conflict with locally running real server instance
* a test won't connect by accident to an old server instance
2021-10-11 17:27:29 -06:00
Dan Bungert
1c5ed98430
test/api: fix hang on server shutdown
...
If the server was fully hung, then these shutdown steps were also stuck.
2021-10-11 17:27:29 -06:00
Dan Bungert
b95ba87440
test/api: print body of incoming exceptions
2021-10-11 17:27:29 -06:00
Dan Bungert
3ce9e193cc
test/api: split client connector from server
...
Add a connect_server() that is a drop-in replacement for start_server(),
which allows failing tests to be converted into something to connect to
an already running server instance with a single line change.
Useful for setting a breakpoint in the server against the test.
2021-10-11 17:27:29 -06:00
Dan Bungert
8bcb6b79b3
test/api: allow choosing which bootloader type
2021-10-11 17:27:04 -06:00
Dan Bungert
06a2626db8
Merge pull request #1093 from dbungert/lp-1946668
...
filesystem: fix lack of confirm
2021-10-11 13:32:36 -06:00
Dan Bungert
63eeb20e8f
filesystem: fix lack of confirm
...
LP: #1946668
2021-10-11 13:11:30 -06:00
Didier Roche
02e602354d
Merge pull request #1090 from canonical/wsl_oobe_setup_user
...
WSL OOBE - setup users with wsl.conf
2021-10-11 09:42:03 +02:00
Didier Roche
deab1b0859
Merge pull request #1091 from canonical/wsl_oobe_autoinstall
...
WSL OOBE - properly setup autoinstall
2021-10-11 09:34:59 +02:00
Patrick Wu
271b72b41a
system_setup: setup user with wsl.conf
2021-10-11 15:33:46 +08:00
Patrick Wu
7ae8e108a6
system_setup: include full autoinstall system
2021-10-11 10:20:18 +08:00
Michael Hudson-Doyle
206b7ae678
Merge pull request #1092 from dbungert/source-catalog-tests
...
sources: add sample source catalog
2021-10-11 12:09:25 +13:00
Dan Bungert
a9bf5e004b
sources: add sample source catalog
...
* Add sample source catalog from impish iso
* Show in dryrun
* Use in one of the runtests invocations (but not really tested yet)
2021-10-08 13:02:55 -06:00
Didier Roche
031256c771
Merge pull request #1084 from canonical/wsl_oobe_conf_calls_tests
...
DEENG-82 - Compare in runtest.sh the configuration set to `.subiquity/wsl.conf` and other generated files.
2021-10-08 15:07:18 +02:00
Patrick Wu
07b0407815
system_setup: refactor the testing system
...
1. updating testing system with the proper autoinstall schema
2. reconf mode testing included
2021-10-08 20:49:06 +08:00
Didier Roche
8cf0b5350f
Merge pull request #1089 from canonical/wsl_oobe_conf_fixes
...
WSL OOBE - several fixes that should be merged before DEENG-82
2021-10-08 11:30:57 +02:00
Patrick Wu
5879b41e48
system_setup: several fixes that should be merge before DEENG-82
...
1. fix a wrong type information
2. fix some configuration error when updating information
2021-10-08 16:41:28 +08:00
Michael Hudson-Doyle
66021ef6e2
Merge pull request #1086 from mwhudson/source-answers
...
fix SourceController.run_answers
2021-10-08 11:20:49 +13:00
Michael Hudson-Doyle
4e3b7610ee
Merge pull request #1087 from dbungert/core20-ssh
...
ssh: fix PYTHONPATH
2021-10-08 11:20:34 +13:00
Dan Bungert
5b425b2ea0
ssh: fix PYTHONPATH
2021-10-07 15:57:37 -06:00
Michael Hudson-Doyle
26d15adcdf
fix SourceController.run_answers
...
for https://bugs.launchpad.net/subiquity/+bug/1946398
2021-10-08 10:34:31 +13:00
Didier Roche
58a78c0506
Merge pull request #1074 from canonical/wsl_oobe_conf_calls_tmp_files
...
DEENG-40 - Write wsl.conf and other files in dry-run mode to .subiquity/
2021-10-07 10:44:33 +02:00
Patrick Wu
1c111c764c
system_setup: write files to .subiquity when dryrun
2021-10-07 16:25:07 +08:00
Didier Roche
e367e7b4b1
Merge pull request #1066 from canonical/wsl_oobe_conf_calls
...
DEENG-38/DEENG-39 - Moving to WSL Configuration and remove old command call
2021-10-07 09:35:02 +02:00
Dan Bungert
18f04d1172
storage/v2: more explicit machine config init
...
Use a context manager and an explicit machine config arg per test to
help clarify the background machine assumptions.
Restructure tests for the above, and to make them more targeted on a
single idea per test.
2021-10-06 18:47:58 -06:00