http://bugzilla.opensuse.org/show_bug.cgi?id=980962 Bug ID: 980962 Summary: "brtfs sub-get default" and "snapper list" report inconsistent snapshot id's Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: uli.wortmann@utoronto.ca QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- OS: Tumbleweed with 4.5.4-1-default snapper list reports the following snapshot images: bonk:/tmp # snapper list Type | # | Pre # | Date | User | Cleanup | Description | Userdata -------+-----+-------+---------------------------------+------+---------+-----------------------+-------------- single | 0 | | | root | | current | single | 1 | | Tue 01 Mar 2016 01:15:31 PM EST | root | number | first root filesystem | single | 2 | | Tue 01 Mar 2016 01:21:40 PM EST | root | number | after installation | important=yes pre | 465 | | Wed 18 May 2016 10:49:18 AM EDT | root | number | zypp(zypper) | important=no post | 466 | 465 | Wed 18 May 2016 10:50:45 AM EDT | root | number | | important=no pre | 467 | | Wed 18 May 2016 11:00:09 AM EDT | root | number | zypp(zypper) | important=no post | 468 | 467 | Wed 18 May 2016 11:00:34 AM EDT | root | number | | important=no pre | 469 | | Wed 18 May 2016 11:01:29 AM EDT | root | number | zypp(zypper) | important=no post | 470 | 469 | Wed 18 May 2016 11:01:52 AM EDT | root | number | | important=no single | 472 | | Thu 19 May 2016 11:08:35 AM EDT | root | number | test | important=no single | 474 | | Thu 19 May 2016 11:47:38 AM EDT | root | | | single | 475 | | Thu 19 May 2016 11:47:39 AM EDT | root | | | pre | 476 | | Thu 19 May 2016 01:58:42 PM EDT | root | number | yast sw_single | pre | 477 | | Thu 19 May 2016 01:59:47 PM EDT | root | number | zypp(y2base) | important=no post | 478 | 477 | Thu 19 May 2016 01:59:57 PM EDT | root | number | | important=no post | 479 | 476 | Thu 19 May 2016 02:00:14 PM EDT | root | number | | pre | 480 | | Thu 19 May 2016 02:45:21 PM EDT | root | number | yast fonts | post | 481 | 480 | Thu 19 May 2016 02:45:51 PM EDT | root | number | | pre | 482 | | Fri 20 May 2016 09:19:25 AM EDT | root | number | yast fonts | post | 483 | 482 | Fri 20 May 2016 09:22:13 AM EDT | root | number | | pre | 484 | | Fri 20 May 2016 01:53:15 PM EDT | root | number | yast sw_single | post | 485 | 484 | Fri 20 May 2016 01:53:39 PM EDT | root | number | | pre | 486 | | Fri 20 May 2016 01:53:41 PM EDT | root | number | yast repositories | post | 487 | 486 | Fri 20 May 2016 01:54:25 PM EDT | root | number | | pre | 488 | | Fri 20 May 2016 01:54:55 PM EDT | root | number | zypp(zypper) | important=yes post | 489 | 488 | Fri 20 May 2016 02:03:34 PM EDT | root | number | | important=yes where snapshot id 489 is the most current snapshot. However, bonk:/tmp # btrfs sub get-default / ID 868 gen 145084 top level 257 path .snapshots/475/snapshot reports snapshot 475 as the current snapshot. Upon inspection of the actual file content, snapshot 489 is indeed mounted as current. However, since "brtfs sub-get default" reports the wrong snapshot id, snapshot 475 cannot be deleted bonk:/.snapshots # snapper delete 475 Deleting snapshot failed. This is turn causes the snapshot cleanup script to fail, so that snapshots accumulate unchecked. The above behavior is triggered by booting from a readonly snapshot and subsequent rollback. Reproducible: always Workaround: Boot to the second last snapshot image (488) and revert to this version, which will reset the result of btrfs sub get-default / to 488 and allow you to delete the previous snapshot. Repeat regularly to keep your snapshots in check. Cheers Uli -- You are receiving this mail because: You are on the CC list for the bug.