configure hook missing reason it was invoked

Bug #1672747 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

when configure hook is invoked, there are several reasons leading to it, just to mention:
 - user calling snap set <key>=<value>
 - installing snap first time
 - updating snap
 - rollback

Each of this situation requires potentially different way to be be handled. At the moment it's left down to snap configure implementation to determine this, based on some custom storing of version/revisions values and comparing them.
This is
  a) fragile as changes in snapd break it (own experience)
  b) tricky thanks to other snapd bugs (config entries not being wiped at snap remove)
  c) each snap with configure hook needs to reimplement same workaround

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is a dupe of a bug reported by ogra.

Revision history for this message
Oliver Grawert (ogra) wrote :

and i cant find it anymore :/

Michael Vogt (mvo)
affects: snapd (Ubuntu) → snapd
Changed in snapd:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Paweł Stołowski (stolowski) wrote :

I think the situation is slowly improving with new hooks (pre-refresh, post-refresh, install and remove hooks). Let's keep this bug open and close it when we've complete set of hooks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.