Bug 1224338

Summary: snapper-zypp-plugin not work
Product: [openSUSE] openSUSE Tumbleweed Reporter: Dmitry Markov <werwolf131313>
Component: BasesystemAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aschnell, werwolf131313
Version: CurrentFlags: aschnell: needinfo? (werwolf131313)
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dmitry Markov 2024-05-16 06:23:21 UTC
if create snapshot manual `snapper create -d "test snapshot"` everything is fine.
but if use zypper up/dup/in/rm snapshot not create, in `/var/log/snapper.log` this text:

> 2024-05-16 10:14:27 MIL libsnapper(14223) snapperd.cc(main):283 - Requesting DBus name
> 2024-05-16 10:14:27 MIL libsnapper(14223) snapperd.cc(main):298 - Loading snapper configs
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(getConfigs):355 - Snapper get-configs
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(getConfigs):356 - libsnapper version 0.10.7
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(reload):922 - loading file /etc/sysconfig/snapper
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:SNAPPER_CONFIGS value:root
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(reload):922 - loading file /etc/snapper/configs/root
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:SUBVOLUME value:/
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:ALLOW_USERS value:
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:ALLOW_GROUPS value:
> 2024-05-16 10:14:27 MIL libsnapper(14223) snapperd.cc(main):311 - Listening for method calls and signals
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(Snapper):97 - Snapper constructor
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(Snapper):98 - snapper version 0.10.7
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(Snapper):99 - libsnapper version 7.4.0
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(Snapper):100 - config_name:root root_prefix:/ disable_filters:false
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(reload):922 - loading file /etc/snapper/configs/root
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:SUBVOLUME value:/
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:FSTYPE value:btrfs
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:QGROUP value:1/0
> 2024-05-16 10:14:27 MIL libsnapper(14223) Selinux.cc(_is_selinux_enabled):141 - SELinux support disabled
> 2024-05-16 10:14:27 MIL libsnapper(14223) AsciiFile.cc(get_value):1078 - key:SYNC_ACL value:no
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(Snapper):130 - subvolume:/ filesystem:btrfs
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapper.cc(loadIgnorePatterns):204 - number of ignore patterns:8
> 2024-05-16 10:14:27 MIL libsnapper(14223) Snapshot.cc(read):344 - found 2 snapshots
> 2024-05-16 10:14:27 WAR libsnapper(14223) FileUtils.cc(SDir):88 - THROW: open failed path://.snapshots/111 errno:2 (No such file or directory)
> 2024-05-16 10:14:27 WAR libsnapper(14223) Btrfs.cc(checkSnapshot):490 - CAUGHT: open failed path://.snapshots/111 errno:2 (No such file or directory)
> 2024-05-16 10:14:27 ERR libsnapper(14223) Btrfs.cc(createSnapshot):328 - create snapshot failed, btrfs_util_create_snapshot_fd2() failed, errno:2 (No such file or directory)
> 2024-05-16 10:14:27 WAR libsnapper(14223) Btrfs.cc(createSnapshot):329 - THROW: create snapshot failed
> 2024-05-16 10:14:27 WAR libsnapper(14223) Snapshot.cc(createHelper):780 - CAUGHT: create snapshot failed
> 2024-05-16 10:14:27 WAR libsnapper(14223) Snapshot.cc(createHelper):785 - RETHROW: create snapshot failed
> 2024-05-16 10:14:27 WAR libsnapper(14223) Client.cc(dispatch):1983 - CAUGHT: create snapshot failed
Comment 1 Arvin Schnell 2024-05-16 10:35:38 UTC
Likely the btrfs qgroup 1/0 is missing. Please check that and either
create it or clear QGROUP in the config.
Comment 2 Dmitry Markov 2024-05-16 15:20:44 UTC
(In reply to Arvin Schnell from comment #1)
> Likely the btrfs qgroup 1/0 is missing. Please check that and either
> create it or clear QGROUP in the config.

thanks. i do
> sudo btrfs qgroup create 1/0 /
and now zypper can create snapshots