The revert features is not revert completed.

Bug #1724537 reported by Alfie Huang
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When I checking issues between stable/candidate version, I found that revert features is not revert completed.

The detail issue's information is reported to Plano project https://bugs.launchpad.net/plano/+bug/1724494

Here is the bugs information:

Description:
1) While new snaps version have some new issues.
2) We revert the snaps to stable version.
3) The new issues is still reproduced in stable version.

In other words, the revert features is not revert completed.

Alfie Huang (alfie073)
description: updated
Tony Espy (awe)
Changed in snapd (Ubuntu):
status: New → Incomplete
Revision history for this message
Tony Espy (awe) wrote :

The description needs some more detail.

From what I've read, the bug is:

1) Install a new kernel snap from candidate channel which has known bugs
2) Verify that the bugs are reproducible
3) Revert the kernel snap back to the stable version
4) Re-test to ensure known bugs are not reproducible

Expected result:
Known bugs associated with new kernel snap aren't reproducible

Actual result:
Known bugs associated with new kernel snap are reproducible

Does that sound correct?

Revision history for this message
Alfie Huang (alfie073) wrote :

Hi Tony,

1) We are make sure that the stable version do not have the known issue.(use factory image + refresh to stable version)
2) refresh the kernel snap to new version and Known bugs reproducible.
3) We use revert features and revert the kernel snap back to stable version.

Expected result:
According to revert the kernal snap to stable version already, the known issue should be disappear.

Actual result:
Knwon bugs is exist in stable version.

Alfie Huang (alfie073)
description: updated
Changed in snapd (Ubuntu):
status: Incomplete → New
Alfie Huang (alfie073)
description: updated
Revision history for this message
Michael Vogt (mvo) wrote :

Could you please pastebin the output of:

snap version
snap changes
uname -a
snap list --all

?

after you installed the kernel and reverted to the previous version?

Revision history for this message
Michael Vogt (mvo) wrote :

I did a (naive) test on my core VM. We need to add a proper spread test into our tree, I'm not sure we fully test this yet. However in my test things look ok:
"""
root@localhost:~# snap list
Name Version Rev Developer Notes
core 16-2.28.1 3017 canonical core
pc 16.04-0.9 20 canonical gadget
pc-kernel 4.4.0.96.101 84 canonical kernel
test-snapd-tools 1.0 6 canonical -
root@localhost:~# uname -a
Linux localhost.localdomain 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@localhost:~# cat /proc/version_signature
Ubuntu 4.4.0-96.119-generic 4.4.83
root@localhost:~# snap revert pc-kernel

Broadcast message from <email address hidden> (Thu 2017-10-19 16:18:48 UTC):

reboot scheduled to update the system - temporarily cancel with 'sudo shutdown -c'
The system is going down for reboot at Thu 2017-10-19 16:28:48 UTC!

pc-kernel reverted to 4.4.0.97.102
root@localhost:~# reboot
Connection to localhost closed by remote host.
Connection to localhost closed.
egon@top:~/devel/go/src/github.com/snapcore/snappy.mvo$ ssh mvo@localhost -p 59379
Welcome to Ubuntu Core 16 (GNU/Linux 4.4.0-97-generic x86_64)

 * Documentation: https://help.ubuntu.com
 * Management: https://landscape.canonical.com
 * Support: https://ubuntu.com/advantage
Welcome to Snappy Ubuntu Core, a transactionally updated Ubuntu.

 * See https://ubuntu.com/snappy

It's a brave new world here in Snappy Ubuntu Core! This machine
does not use apt-get or deb packages. Please see 'snap --help'
for app installation and transactional updates.

Last login: Thu Oct 19 15:54:12 2017 from 10.0.2.2
mvo@localhost:~$ snap list
Name Version Rev Developer Notes
core 16-2.28.1 3017 canonical core
pc 16.04-0.9 20 canonical gadget
pc-kernel 4.4.0.97.102 86 canonical kernel
test-snapd-tools 1.0 6 canonical -
mvo@localhost:~$ uname -a
Linux localhost.localdomain 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
mvo@localhost:~$ cat /proc/version_signature
Ubuntu 4.4.0-97.120-generic 4.4.87
mvo@localhost:~$ mvo@localhost:~$ snap list --all
Name Version Rev Developer Notes
core 16-2.28.1 x1 core,disabled
core 16-2.28.1 3017 canonical core
core 16-2.28.5+git442.73d4990 3261 canonical core,disabled
pc 16.04-0.9 20 canonical gadget
pc-kernel 4.4.0.97.102 86 canonical kernel
pc-kernel 4.4.0.96.101 84 canonical kernel,disabled
test-snapd-tools 1.0 6 canonical -
"""

If you could provide me a similar list and steps how to reproduce that is appreciated.

Revision history for this message
Alfie Huang (alfie073) wrote :
Download full text (4.0 KiB)

Hi Michael,

Update the following information for you.
The following information if base on after installed the kernel and reverted to the previous version.

1) snap version

admin@localhost:~$ snap list
Name Version Rev Developer Notes
bluez 5.44-3 129 canonical -
checkbox-plano 31.1 120 ce-certification-qa devmode
core 16-2.28.5 3247 canonical core
modem-manager 1.6.2-5 82 canonical -
network-manager 1.2.2-13 233 canonical -
snapweb 0.26-10 300 canonical -
stlouis 16.04-1.14 13 canonical gadget
stlouis-kernel 4.4.0.96.101 29 canonical kernel
tpm 1.2-5 15 canonical -
tpm2 1.0-5 42 canonical -
udisks2 2.6.4-2 100 canonical -
uefi-fw-tools 1.5.2-0.7.2+git 10 canonical -
wifi-ap 17 204 canonical -

2) snap changes

admin@localhost:~$ snap changes
ID Status Spawn Ready Summary
75 Done 2017-10-19T11:45:45Z 2017-10-19T11:57:27Z
76 Done 2017-10-19T12:47:59Z 2017-10-19T12:47:59Z Refresh all snaps: no updates
77 Done 2017-10-19T19:22:21Z 2017-10-19T19:22:34Z Auto-refresh snap "uefi-fw-tools"
78 Done 2017-10-20T02:21:40Z 2017-10-20T02:33:22Z Refresh "core" snap from "candidate" channel
79 Done 2017-10-20T02:34:36Z 2017-10-20T02:34:38Z Refresh "stlouis-kernel" snap from "candidate" channel
80 Done 2017-10-20T02:43:16Z 2017-10-20T02:54:59Z
81 Done 2017-10-20T02:56:48Z 2017-10-20T02:56:49Z Refresh "stlouis-kernel" snap from "candidate" channel
82 Done 2017-10-20T03:02:02Z 2017-10-20T03:13:45Z Refresh "core" snap from "candidate" channel
83 Done 2017-10-20T11:11:12Z 2017-10-20T11:11:14Z Revert "stlouis-kernel" snap
84 Doing 2017-10-20T11:32:39Z - Auto-refresh snap "core"

3) uname -a

admin@localhost:~$ uname -a
Linux localhost.localdomain 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

4)snap list --all

admin@localhost:~$ snap list --all
Name Version Rev Developer Notes
bluez 5.37-2 11 canonical disabled
bluez 5.44-3 129 canonical -
checkbox-plano 31.1 120 ce-certification-qa devmode
core 16.04.1 394 canonical core,disabled
core 16-2.28.5 3247 canonical core
core 16-2.28.1 3017 canonical core,disabled
modem-manager 1.6.2-5 82 canonical -
modem-manager 1.4.0-1 1 canonical disabled
network-manager 1.2.2-13 233 canonical -
network-manager 1.2.2-9 44 canonical disabled
snapweb 0.21.2 24 canonical disabled
snapweb 0.26-10 300 canon...

Read more...

Revision history for this message
John Lenton (chipaca) wrote :

Alfie,

thank you for the extra info. Could we also see

snap info stlouis-kernel

?

Revision history for this message
Alfie Huang (alfie073) wrote :

Hi John,

Here is the snap info for stlouis-kernel:

admin@localhost:~$ snap info stlouis-kernel
name: stlouis-kernel
summary: linux kernel for Dell Edge Gateways
publisher: canonical
contact: <email address hidden>
description: |
  Kernel snap for Dell Edge Gateways
type: kernel
snap-id: 0EawO5JYYJmNw9CmweMnyrwGgJxDUHag
tracking: candidate
installed: 4.4.0.96.101 (29) 130MB kernel
refreshed: 2017-09-18 11:05:37 +0000 UTC
channels:
  stable: 4.4.0.96.101 (29) 130MB -
  candidate: 4.4.0.97.102 (30) 130MB -
  beta: 4.4.0.97.102 (30) 130MB -
  edge: 4.4.0.97.102 (30) 130MB -

Revision history for this message
John Lenton (chipaca) wrote :

I don't understand: uname says you're running the 'stable' kernel, so all should be well?

Changed in snapd (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd (Ubuntu) because there has been no activity for 60 days.]

Changed in snapd (Ubuntu):
status: Incomplete → Expired
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.