~mvo/snapd/+git/snapd-mvo:fix-disconnect-upgrade-from-215

Last commit made on 2019-02-27
Get this branch:
git clone -b fix-disconnect-upgrade-from-215 https://git.launchpad.net/~mvo/snapd/+git/snapd-mvo

Branch merges

Branch information

Name:
fix-disconnect-upgrade-from-215
Repository:
lp:~mvo/snapd/+git/snapd-mvo

Recent commits

8260369... by Paweł Stołowski

overlord/ifacestate: fix migration of connections on upgrade from ubuntu-core (#6530)

The connections migration code for ubuntu-core -> core transition migrates connections stored in "conns" from ubuntu-core to core and reloads connections in the repo (via reloadConnections helper). It hower incorrectly calls reloadConnections for "ubuntu-core" snap under the assumption that reloadConnections takes care of full synchronization of conns -> repo and removes non-existing connections, which is not the case. So as a result we end up with correct "conns" but incorrect repo with for both "core" and "ubuntu-core" connection. This causes an error when we run "auto-disconnect" task on "ubuntu-core" removal - see https://paste.ubuntu.com/p/FcK6mx2SwZ/
The spread test updated with this PR uncovers the problem and reports the failure of migration without the fix (thanks Michael).

The fix explicitely removed connections of "ubuntu-core" from the repo as part of migration task, so that "conns" and "repo" are in sync.

17838b6... by Maciej Borzecki

Merge pull request #6537 from bboozzoo/bboozzoo/fix-upgrade-from-2.15-2.37

tests: fix upgrade-from-2.15 with kernel 4.15 (2.37)

9f48915... by Michael Vogt

Merge pull request #6536 from bboozzoo/bboozzoo/seccomp-precise-filter-2.37

interfaces/seccomp: increase filter precision (2.37)

2caafc0... by Michael Vogt

tests: fix upgrade-from-2.15 with kernel 4.15

snapd version 2.15 will not work with kernels newer than
4.4 because later kernels require snap-exec to be mmapable.
This PR adds the missing rule manually.

206f25d... by Zygmunt Krynicki

interfaces/seccomp: increase filter precision

The filter is a bit too generic so let's make it more precise.

Signed-off-by: Zygmunt Krynicki <email address hidden>

ad1a723... by Maciej Borzecki

Merge pull request #6535 from mvo5/fix-snapweb-2.37

tests: remove snapweb from tests (2.37)

5ff928c... by Michael Vogt

tests: remove snapweb from tests

We use the snapweb snap in various tests. The package is now
unpublished from the store and thus the tests break. We really
don't want this package anymore.

f549076... by Michael Vogt

releasing package snapd version 2.37.3

0663da5... by Zygmunt Krynicki

interfaces/seccomp: generate global seccomp profile (#6516)

* interfaces/seccomp: generate global seccomp profile

When initializing the seccomp backend, write the global profile to disk.
This is picked up by snap-confine and applied to all non-classic snaps.

Signed-off-by: Zygmunt Krynicki <email address hidden>

* interfaces/seccomp: handle big endian arches

Signed-off-by: Zygmunt Krynicki <email address hidden>

d755140... by "John R. Lenton" <email address hidden>

overlord/snapstate: add some randomness to the catalog refresh (#6506)

overlord/snapstate: add some randomness to the catalog refresh

Without this change, once the catalog refresh was successful it was
done every 24 hours exactly. This meant that if other external factors
conspired to synchronise a large number of machines to do a catalog
refresh at the same time, we'd get a thundering herd every day.

This change adds a delta to spread things out.

Also, previously the presence of the `sections` file was used to
mean "a catalog refresh happened", when it's the `names` file that is
more indivative of that; sections can easily succeed (or fail with no
error, returning empty) and `names` (and `commands.db`) fail. This
changes that.

Lastly, due to a bad systems: line the snap-advise-command integration test
wasn't running. This fixes that, tweaks the prepare so that it works
as it had apparently bitrotten, and then makes it skip for now because
the store.