Bug ID 1185596
Summary Snapper commands for home directory fail with IO Error (Operation not permitted)
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware x86-64
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component Basesystem
Assignee screening-team-bugs@suse.de
Reporter arnim.laeuger@gmx.net
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

After upgrade to tumbleweed 20210502-962.1 my previously working snapper config
for /home/arnim stopped working.

Executing 'snapper -c home_arnim list' as root fails with
  IO Error (open failed path:/home/arnim errno:1 (Operation not permitted)).

Other snapper commands that refer to this configuration fail with the same
error.

The snapshot for the home directory was created a week ago according to item 1
at http://snapper.io/faq.html. All partitions use btrfs.
* /home is a subvolume, created during initial system installation
* /home/arnim is a subvolume that was manually created with 'mksubvolume'
* ls -l /home/anrnim
  drwxr-xr-x 1 arnim users 966 May  5 08:01 /home/arnim


Steps to reproduce
------------------
1. Create a new subvolume in /home
   mksubvolume /home/test
2. Create snapper config for /home/test
   snapper -c home_test create-config /home/test
3. Check correct listing
   snapper -c home_test list
4. Change ownership of directory to a user account
   chown arnim:users /home/test
5. Re-run listing
   snapper -c home_test list
--> IO Error (query default id failed, open failed path:/home/test errno:1
(Operation not permitted)).


Observation
-----------
When I remove the settings in /usr/lib/systemd/system/snapper*.service that
were introduced with
https://github.com/openSUSE/snapper/commit/d884cea34cfe2cb20b0b25683e30b7cb385ca960
then everything is back to normal and step 5 works as expected.

I haven't tried to isolate which off the new settings actually cause the
failure.


You are receiving this mail because: