Till D�rges changed bug 1110259
What Removed Added
CC   doerges@pre-sense.de

Comment # 5 on bug 1110259 from
It appears I stumbled across another instance of this problem.

Bug occurred during 'zypper dup' (openSUSE Leap 15.0 -> 15.1).

The machine in question, however, does not use BTRFS at all:

--- snip ---
box:~ # grep btr /etc/fstab
box:~ # mount | grep btr
box:~ #
--- snap ---


Some additional information:

--- snip ---
(761/898) Installing: btrfsmaintenance-0.4.2-lp151.1.1.noarch
.............................................<100%>[\]

box:~ # ps auxwww
[...]
root      8446  0.0  0.1  57256  9332 pts/1    S+   13:44   0:00 rpm --root /
--dbpath /var/lib/rpm -U --percent --noglob --force --nodeps --
/var/cache/zypp/packages/deflektor_oss/noarch/btrfsmaintenance-0.4.2-lp151.1.1.noarch.rpm
root      8496  0.0  0.0  11980  2816 pts/1    S+   13:44   0:00 /bin/sh
/var/tmp/rpm-tmp.WnJcBQ 1
root      8531  0.0  0.0  11980  1904 pts/1    S+   13:44   0:00 /bin/sh
/var/tmp/rpm-tmp.WnJcBQ 1
root      8532  0.0  0.0  60224  6164 pts/1    S+   13:44   0:00
/usr/bin/systemctl
try-restart btrfsmaintenance-refresh.service btrfsmaintenance-refresh.path
btrfs-balance.service btrfs-balance.timer btrfs-defrag.service
btrfs-defrag.timer
btrfs-scrub.service btrfs-scrub.timer btrfs-trim.service btrfs-trim.timer


box:~ # lsof -p 8532
COMMAND    PID USER   FD   TYPE             DEVICE SIZE/OFF    NODE NAME
systemctl 8532 root  cwd    DIR              254,2     4096       2 /
systemctl 8532 root  rtd    DIR              254,2     4096       2 /
systemctl 8532 root  txt    REG              254,2   182416  531004
/usr/bin/systemctl
systemctl 8532 root  mem    REG              254,2  1356080 3932198
/lib64/libm-2.26.so
systemctl 8532 root  mem    REG              254,2   141560  533143
/usr/lib64/libudev.so.1.6.6
systemctl 8532 root  mem    REG              254,2    64208  530729
/usr/lib64/libjson-c.so.3.0.1
systemctl 8532 root  mem    REG              254,2    30896  525373
/usr/lib64/libargon2.so.1
systemctl 8532 root  mem    REG              254,2   354144  528070
/usr/lib64/libdevmapper.so.1.03
systemctl 8532 root  mem    REG              254,2    30840  524568
/usr/lib64/libuuid.so.1.3.0
systemctl 8532 root  mem    REG              254,2    18824 3932195
/lib64/libattr.so.1.1.0
systemctl 8532 root  mem    REG              254,2   575808  524531
/usr/lib64/libpcre.so.1.2.9
systemctl 8532 root  mem    REG              254,2   337224  530647
/usr/lib64/libcryptsetup.so.12.3.0
systemctl 8532 root  mem    REG              254,2   338976  525529
/usr/lib64/libblkid.so.1.1.0
systemctl 8532 root  mem    REG              254,2   268576  524634
/usr/lib64/libseccomp.so.2.3.2
systemctl 8532 root  mem    REG              254,2    35424 3932224
/lib64/libacl.so.1.1.2253
systemctl 8532 root  mem    REG              254,2   130208  530939
/usr/lib64/libgpg-error.so.0.24.0
systemctl 8532 root  mem    REG              254,2    18616 3932192
/lib64/libdl-2.26.so
systemctl 8532 root  mem    REG              254,2  1164832  529454
/usr/lib64/libgcrypt.so.20.2.2
systemctl 8532 root  mem    REG              254,2    84352  525302
/usr/lib64/liblz4.so.1.8.0
systemctl 8532 root  mem    REG              254,2   235576  525270
/usr/lib64/liblzma.so.5.2.3
systemctl 8532 root  mem    REG              254,2    97200 3932312
/lib64/libresolv-2.26.so
systemctl 8532 root  mem    REG              254,2    42120 3934078
/lib64/librt-2.26.so
systemctl 8532 root  mem    REG              254,2    18984  526567
/usr/lib64/libcap.so.2.25
systemctl 8532 root  mem    REG              254,2   159456 3934083
/lib64/libselinux.so.1
systemctl 8532 root  mem    REG              254,2  2034848 3932178
/lib64/libc-2.26.so
systemctl 8532 root  mem    REG              254,2   140688 3932289
/lib64/libpthread-2.26.so
systemctl 8532 root  mem    REG              254,2  2302168  531028
/usr/lib/systemd/libsystemd-shared-234.so
systemctl 8532 root  mem    REG              254,2   180056 3934066
/lib64/ld-2.26.so
systemctl 8532 root    0r  FIFO               0,12      0t0   50830 pipe
systemctl 8532 root    1w  FIFO               0,12      0t0   52546 pipe
systemctl 8532 root    2w  FIFO               0,12      0t0   52546 pipe
systemctl 8532 root    3u  unix 0xffff8801f5e10400      0t0   50858 type=STREAM


box:~ # strace -p 8532
strace: Process 8532 attached
ppoll([{fd=3, events=POLLIN}], 1, NULL, NULL, 8



box:~ # ps -elf | head -1; ps -elf | egrep 'bt[r]|853[1]'
F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY          TIME CMD
0 S root      3255  3225  0  80   0 -  8210 -      13:25 pts/1    00:00:00
/usr/bin/python3 /usr/lib/zypp/plugins/commit/btrfs-defrag-plugin.py
4 S root      8446  3225  0  80   0 - 14314 -      13:44 pts/1    00:00:00 rpm
--root
/ --dbpath /var/lib/rpm -U --percent --noglob --force --nodeps --
/var/cache/zypp/packages/deflektor_oss/noarch/btrfsmaintenance-0.4.2-lp151.1.1.noarch.rpm
1 S root      8531  8496  0  80   0 -  2995 -      13:44 pts/1    00:00:00
/bin/sh
/var/tmp/rpm-tmp.WnJcBQ 1
0 S root      8532  8531  0  80   0 - 15056 SyS_pp 13:44 pts/1    00:00:00
/usr/bin/systemctl try-restart btrfsmaintenance-refresh.service
btrfsmaintenance-refresh.path btrfs-balance.service btrfs-balance.timer
btrfs-defrag.service btrfs-defrag.timer btrfs-scrub.service btrfs-scrub.timer
btrfs-trim.service btrfs-trim.timer


box:~ # systemctl | head -1; systemctl | grep btr
  UNIT                           LOAD      ACTIVE SUB       DESCRIPTION
  btrfsmaintenance-refresh.path  loaded    active waiting   Watch
/etc/sysconfig/btrfsmaintenance
  btrfs-balance.timer            loaded    active waiting   Balance block
groups on a
btrfs filesystem
  btrfs-scrub.timer              loaded    active waiting   Scrub btrfs
filesystem,
verify block checksums
  btrfs-trim.timer               loaded    active waiting   Discard unused
blocks on
a mounted filesystem


box:~ # cat /var/tmp/rpm-tmp.WnJcBQ

test -n "$FIRST_ARG" || FIRST_ARG="$1"
if [ "$FIRST_ARG" -ge 1 ]; then
        # Package upgrade, not uninstall
        if [ -x /usr/bin/systemctl ]; then
                /usr/bin/systemctl daemon-reload || :
                (
                        test "$YAST_IS_RUNNING" = instsys && exit 0
                        test -f /etc/sysconfig/services -a \
                             -z "$DISABLE_RESTART_ON_UPDATE" && .
/etc/sysconfig/services
                        test "$DISABLE_RESTART_ON_UPDATE" = yes -o \
                             "$DISABLE_RESTART_ON_UPDATE" = 1 && exit 0
                        /usr/bin/systemctl try-restart
btrfsmaintenance-refresh.service btrfsmaintenance-refresh.path
btrfs-balance.service
btrfs-balance.timer btrfs-defrag.service btrfs-defrag.timer btrfs-scrub.service
btrfs-scrub.timer btrfs-trim.service btrfs-trim.timer
                ) || :
        fi
else # package uninstall
        for service in btrfsmaintenance-refresh.service
btrfsmaintenance-refresh.path
btrfs-balance.service btrfs-balance.timer btrfs-defrag.service
btrfs-defrag.timer
btrfs-scrub.service btrfs-scrub.timer btrfs-trim.service btrfs-trim.timer ; do
                sysv_service="${service%.*}"
                rm -f "/var/lib/systemd/migrated/$sysv_service" || :
        done
        if [ -x /usr/bin/systemctl ]; then
                /usr/bin/systemctl daemon-reload || :
        fi
fi


# did not terminate process
box:~ # kill 8532

# did work
box:~ # kill -9 8532
--- snap ---


You are receiving this mail because: