10560 Commits

Author SHA1 Message Date
Maciej Borzecki
7899dbf9df tests/nested/manual/core20-remodel: verify snapd_good_recovery_systems= in bootenv
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-10-01 16:07:52 +02:00
Maciej Borzecki
d805c492d1 Merge remote-tracking branch 'upstream/master' into bboozzoo/uc20-remodel-enable 2021-10-01 10:14:55 +02:00
Michael Vogt
c989d2d162 Merge pull request #10844 from mvo5/ice/get-device-size
disks: add `Size(path)` helper
2021-09-30 09:10:24 +02:00
Michael Vogt
b6131ce86e tests: drop test exclude in osutil-disks for ppc64el
This was just cargo culted - let's see if it really fails.
2021-09-29 17:57:33 +02:00
Michael Vogt
d2eb17d3c0 osutil,tests: add missing copyright header (thanks to Ian) 2021-09-29 17:53:00 +02:00
Michael Vogt
7b4ab38c42 Merge pull request #10855 from sergiocazzolato/tests-fix-degraded-impish
tests: reset some mount units failing on ubuntu impish
2021-09-29 17:47:56 +02:00
Sergio Cazzolato
1f5eadaff1 Reset some mount units failing on ubuntu impish
Some mount units failing which are installed in the prebuilt image
2021-09-28 18:23:54 -03:00
Michael Vogt
14525d230e tests: fix typo (thanks to Miguel) 2021-09-28 17:19:21 +02:00
Michael Vogt
c9424519b8 Merge pull request #10571 from jhenstridge/themes-api-access-check
daemon: implement access checkers for themes API
2021-09-28 15:54:39 +02:00
Michael Vogt
d2b75a6d82 Merge pull request #10812 from MiguelPires/fix-disc-fail-on-hook
o/ifacestate: don't fail remove if disconnect hook fails
2021-09-27 16:13:20 +02:00
Sergio Cazzolato
9362a63b66 Merge pull request #10833 from sergiocazzolato/tests-fix-core20-cloud-init-maas-signed-seed-data
tests: fix error trying to create the extra-snaps dir which already exists
2021-09-27 10:07:56 -03:00
Michael Vogt
e64a656b70 Merge pull request #10820 from mvo5/ice/check-encryption-no-longer-bool-2
devicestate: use EncryptionType
2021-09-27 13:35:20 +02:00
Michael Vogt
37a2b8de01 disks: add Size(path) helper
The `Size()` function will be used in the fde device-setup helpers
to get the size of the given partition so that it then can
create the right mapping devices for systems that use e.g.
inline encryption engines.
2021-09-27 11:59:37 +02:00
Michael Vogt
0d2e49d8ea many: rename secboot.EncryptionTypeCryptsetup -> secboot.EncryptionTypeLUKS (thanks to Samuele) 2021-09-25 20:07:41 +02:00
Sergio Cazzolato
598675f3af Merge remote-tracking branch 'upstream/master' into tests-fix-system-usernames-microk8s 2021-09-24 17:31:50 -03:00
Sergio Cazzolato
176cce5289 Merge remote-tracking branch 'upstream/master' into tests-fix-core20-cloud-init-maas-signed-seed-data 2021-09-24 17:31:23 -03:00
Maciej Borzecki
e776195b8a tests/main/security-device-cgroups: fix when both variants run on the same host
When both variants of the test run on the same host where the TAGS are sticky
due to systemd 247+, then any TAGS added due to the first variant will break the
assumptions of the second variant. Make sure that we check proper
TAGS/CURRENT_TAGS when verifying assumptions.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-09-24 14:47:32 +02:00
Sergio Cazzolato
c6ed0fcfe3 Add the comments 2021-09-24 08:09:42 -03:00
Sergio Cazzolato
55d4329364 Merge remote-tracking branch 'upstream/master' into tests-fix-core20-cloud-init-maas-signed-seed-data 2021-09-24 07:42:37 -03:00
Sergio Cazzolato
a0f42540b0 Merge remote-tracking branch 'upstream/master' into tests-fix-system-usernames-microk8s 2021-09-24 07:41:20 -03:00
Michael Vogt
26299799ac Merge pull request #10834 from sergiocazzolato/test-fix-netplan-2
tests: fix netplan test on i386 architecture
2021-09-24 09:32:38 +02:00
James Henstridge
97c5d9cd6f Merge remote-tracking branch 'upstream/master' into themes-api-access-check 2021-09-24 12:59:56 +08:00
Sergio Cazzolato
d05bc72989 Fix lxd-mount-units test which is based on core20 in focal system
Use core20 as base snap for focal system

The test is failing on focal with this error:
+ lxd.lxc exec ubuntu -- find /var/run/systemd/generator/ -name
container.conf
+ MATCH '/var/run/systemd/generator/snap-core18.*mount.d/container.conf'
grep error: pattern not found, got:
/var/run/systemd/generator/snap-snapd-12883.mount.d/container.conf
/var/run/systemd/generator/snap-core20-1081.mount.d/container.conf
/var/run/systemd/generator/snap-lxd-21545.mount.d/container.conf
2021-09-23 12:02:30 -03:00
Sergio Cazzolato
5b7c6d7527 Fix netplan test on i386 architecture
Skip i386 because core20 is not available for pc-i386 architecture

This is failing on beta validation:

+ snap install --dangerous netplan-snap-20.snap
error: cannot perform the following tasks:
- Ensure prerequisites for "netplan-snap" are available (cannot install
snap base "core20": no snap revision available as specified)
2021-09-23 11:40:26 -03:00
Sergio Cazzolato
1a0ed2f528 Fix error trying to create the extra-snaps dir which already exists
The test tests/nested/manual/core20-cloud-init-maas-signed-seed-data is
failing trying to create the extra-snaps directory which is being
created while the test is prepared.

+ mkdir
/home/gopath/src/github.com/snapcore/snapd/tests/nested/manual/core20-cloud-init-maas-signed-seed-data/extra-snaps
mkdir: cannot create directory
‘/home/gopath/src/github.com/snapcore/snapd/tests/nested/manual/core20-cloud-init-maas-signed-seed-data/extra-snaps’:
File exists
2021-09-23 10:56:38 -03:00