Bug 1224338 - snapper-zypp-plugin not work
Summary: snapper-zypp-plugin not work
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-16 06:23 UTC by Dmitry Markov
Modified: 2024-05-16 15:20 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
aschnell: needinfo? (werwolf131313)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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