[Bug 1136362] New: rpm hangs while updating btrfsmaintainance during 15.0 to 15.1 update

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 Bug ID: 1136362 Summary: rpm hangs while updating btrfsmaintainance during 15.0 to 15.1 update Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Upgrade Problems Assignee: bnc-team-screening@forge.provo.novell.com Reporter: linus.kardell@gmail.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Build Identifier: On two different laptops I've had rpm hang while updating btrfsmaintenance, during the update from Leap 15.0 to Leap 15.1, to the point were rpm didn't respond to SIGTERM, so I had to use SIGKILL. The first laptop didn't even use btrfs. On the second laptop I got the following console output (I didn't get the error until I killed rpm): (2550/3168) Installerar: btrfsmaintenance-0.4.2-lp151.1.1.noarch .....................................................................................................[fel] Installationen av btrfsmaintenance-0.4.2-lp151.1.1.noarch misslyckades: Fel: Subprocess failed. Error: RPM misslyckades: Updating /etc/sysconfig/btrfsmaintenance ... Warning: btrfs-scrub.timer changed on disk. Run 'systemctl daemon-reload' to reload units. Avbryt, försök igen, ignorera? [a/f/i] (a): f Ytterligare RPM-utdata: Updating /etc/sysconfig/btrfsmaintenance ... warning: file /usr/lib/zypp/plugins/commit/btrfs-defrag-plugin.py: remove failed: No such file or directory Warning: btrfs-scrub.timer changed on disk. Run 'systemctl daemon-reload' to reload units. When it retried, it succeeded. Reproducible: Sometimes -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c1 Mark Gray <graymark@ptd.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |graymark@ptd.net --- Comment #1 from Mark Gray <graymark@ptd.net> --- This happened on some of my machines as well (none of which had btrfs). It appears to be due to the fact that a python script in the package is used to defrag the rpm database and this can take a long, long time on rotating rust boxes with a long history of updates/upgrades. (Just my 2 cents worth -- please fix this somehow -- it seems to me that a rpmdb --rebuilddb before installation would speed things up, but I am just guessing). -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c2 --- Comment #2 from Mark Gray <graymark@ptd.net> --- This problem seems to happen because (by bad luck) btrfsmaintenance starts running while doing a zypper dup, and the python script that defrags the rpm database hangs waiting for the lock on the database to be released and zypper in turn hangs waiting for btrfsmaintenance to exit (I think, no way for me to reproduce this but it is a problem that a lot of people are running into). (I apologize if I wasting people's time with my wild eyed guesses.) -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c3 --- Comment #3 from Linus Kardell <linus.kardell@gmail.com> --- Yet I had it happen on a computer running on only EXT4. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c4 --- Comment #4 from Mark Gray <graymark@ptd.net> --- None of my computers use btrfs either, but btrfsmaintenance gets installed and run anyway. From another bug report for the same problem it is okay to do a: zypper rm btrfsmaintenance (I have done so on all my computers now and so far no problems.) -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c1 Mark Gray <graymark@ptd.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |graymark@ptd.net --- Comment #1 from Mark Gray <graymark@ptd.net> --- This happened on some of my machines as well (none of which had btrfs). It appears to be due to the fact that a python script in the package is used to defrag the rpm database and this can take a long, long time on rotating rust boxes with a long history of updates/upgrades. (Just my 2 cents worth -- please fix this somehow -- it seems to me that a rpmdb --rebuilddb before installation would speed things up, but I am just guessing). -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c2 --- Comment #2 from Mark Gray <graymark@ptd.net> --- This problem seems to happen because (by bad luck) btrfsmaintenance starts running while doing a zypper dup, and the python script that defrags the rpm database hangs waiting for the lock on the database to be released and zypper in turn hangs waiting for btrfsmaintenance to exit (I think, no way for me to reproduce this but it is a problem that a lot of people are running into). (I apologize if I wasting people's time with my wild eyed guesses.) -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c3 --- Comment #3 from Linus Kardell <linus.kardell@gmail.com> --- Yet I had it happen on a computer running on only EXT4. -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=1136362 http://bugzilla.opensuse.org/show_bug.cgi?id=1136362#c4 --- Comment #4 from Mark Gray <graymark@ptd.net> --- None of my computers use btrfs either, but btrfsmaintenance gets installed and run anyway. From another bug report for the same problem it is okay to do a: zypper rm btrfsmaintenance (I have done so on all my computers now and so far no problems.) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com