snappy fails to update snap if previous version systemd stop action failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Expired
|
Critical
|
Unassigned |
Bug Description
previous version of snap failed to install service due to another bug. I modified snap and changed version from 1.0.2 to 1.0.3 .
when I tried to update to the new version, I got:
-------
ubuntu@
=======
Installing ./snappyonie_
issues while running ssh command: Installing /tmp/snappyonie
2015/05/07 18:05:19 Signature check failed, but installing anyway as requested
/tmp/snappyonie
ubuntu@
-------
If I log into the snappy box,
sudo snappy remove snappyonie
also fails with the same error
affects: | snappy-ubuntu → snappy |
Thanks for your bugreport. This is indeed a problem, to reproduce: ======= ======= ======= ======= ==] 100.00 % 824.45 KB/s xkcd-webserver_ 0.4.service] failed with exit status 5: Failed to stop xkcd-webserver_ xkcd-webserver_ 0.4.service: Unit xkcd-webserver_ xkcd-webserver_ 0.4.service not loaded.
- install xkcd-webserver 0.5
- rename to 0.4 on disk and in meta/packages.yaml
- run snappy update xkcd-webserver
and verify that this errors with:
# snappy update xkcd-webserver
Installing xkcd-webserver (0.5)
Starting download of xkcd-webserver
12.23 KB / 12.23 KB [======
Done
[stop xkcd-webserver_
I guess similar results can be triggered with a incorrect stop line, like "Stop=false". In this case snappy should not stop uninstalling the app, just warn, we never want to be in a situation where we can not update because a old version is broken.