base core16->core18 migration

Bug #1819875 reported by Ondrej Kubik on 2019-03-13
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zygmunt Krynicki

Bug Description

snapd: 2.37.2
Ubuntu 18.04
core snap: 6405
kernel: 4.15.0-29-generic

 Snap updated base from core16 to core18
 Snap has one or more services

Expected result:
 snap refreshes to new revision using new core18 base

Actual result:
 snap refresh to new revision fails as it is using still core16 base
 post-refresh hook fails as executables from snap package fail to run against wrong glibc
 if there is no post-refresh hook snap refreshes to new revision, but services do not start for same reason of glibs mismatch

Closer look revealed that service forked additional long running process which was dangling around and was preventing successful namespace unmount.
While best is to define additional process as service to provide better way to control its lifecycle, we probably still need more aggressive process control/kill when moving between snap revisions so we are not leaking dangling processes from previous revisions

Tags: lxd Edit Tag help
Ondrej Kubik (ondrak) on 2019-03-13
description: updated
Zygmunt Krynicki (zyga) wrote :

I would add that any snap refresh that changes base snap name must be handled with dedicated logic that we currently don't have a design for. It is unacceptable to run a snap against different base snap than a snap has declared to use.

Changed in snappy:
status: New → Confirmed
importance: Undecided → High
Zygmunt Krynicki (zyga) on 2019-03-25
affects: snappy → snapd
Zygmunt Krynicki (zyga) on 2019-04-01
Changed in snapd:
status: Confirmed → In Progress
assignee: nobody → Zygmunt Krynicki (zyga)
milestone: none → 2.39
Zygmunt Krynicki (zyga) wrote :
Zygmunt Krynicki (zyga) wrote :

I've closed 6671 and re-opened as

Stéphane Graber (stgraber) wrote :

This is preventing LXD from moving to core16 to core18 (roadmap item).

tags: added: lxd
Zygmunt Krynicki (zyga) wrote :
Zygmunt Krynicki (zyga) on 2019-07-01
Changed in snapd:
milestone: 2.39 → 2.40
Zygmunt Krynicki (zyga) wrote :

This has just landed into master. The 2.40 backport will be released separately by mvo as a part of the 2.40 cycle.

Changed in snapd:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers