Bug 1390593

Summary: Possible deadlock in dnf when installing python3-libs in docker after system upgrade
Product: [Fedora] Fedora Reporter: Frantisek Sumsal <fsumsal>
Component: dnfAssignee: rpm-software-management
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: 26CC: jmracek, mluscon, packaging-team-maint, pnemade, rpm-software-management, szidek, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-31 15:25:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
dnf - log and strace none

Description Frantisek Sumsal 2016-11-01 13:38:51 UTC
Created attachment 1216118 [details]
dnf - log and strace

Description of problem:
After running 'dnf -y upgrade && dnf -y install beakerlib' in docker with Fedora rawhide, dnf gets stuck on/after installing package python3-libs-3.5.2-6.fc26.x86_64. On f24 and f23 these commands finish successfully. I'm not sure, if the problem is in docker or fedora itself, but as it happens only on rawhide I'm more inclined to the latter variant.

Version-Release number of selected component (if applicable):
fedora-rawhide (https://hub.docker.com/_/fedora/)
docker-engine-1.12.3-1

How reproducible:
always

Steps to Reproduce:
# docker run -it --rm fedora:rawhide /bin/bash -c "dnf -y upgrade && dnf -y install beakerlib"

Actual results:
dnf gets stuck on:
Installing  : python3-libs-3.5.2-6.fc26.x86_64                                           34/49

Expected results:
dnf should finish successfully

Additional info:
I managed to get an strace log of the failing dnf command (dnf -y install beakerlib), which can be found in the attachments. 

End of the strace log:
# docker run --security-opt seccomp:unconfined -it --rm fedora:rawhide /bin/bash -c "dnf -y install strace && dnf -y upgrade && strace dnf -y install beakerlib" | tee dnf-strace.log
...
gettimeofday({1478006544, 72725}, NULL) = 0
gettimeofday({1478006544, 72750}, NULL) = 0
futex(0x7f0cdc09669c, FUTEX_WAIT, 4294967295, NULL

Comment 1 Fedora End Of Life 2017-02-28 10:32:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 2 Jaroslav Mracek 2017-03-31 15:25:14 UTC
I am sorry, but I cannot reproduce it with your reproducer. Probably there were some problem in package that was installed in the first command, but latest version solve it (in rawhide it happens). Please if you will again experience the problem and you will have the new reproducer don't hesitate to reopen the bug report.