yum deadlocks during the build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Triaged
|
Low
|
Davlet Panech |
Bug Description
Brief Description
-----------------
Occasionally mock hangs during the build due to a stale yum.lock file in the chroot directory. This is caused by a bug in pre-DNF yum-builddep: it creates the pid file, but never deletes it. If the stale PID happens to match an existing process during a subsequent yum run, it thinks the file is locked and hangs.
Severity
--------
Minor
Steps to Reproduce
------------------
Call build-pkgs on a CentOS 7 host or docker container.
Expected Behavior
------------------
Mock, yum & related commands called by build-pkgs work correctly.
Actual Behavior
---------------
Yum deadlocks.
Reproducibility
---------------
Intermittent. Happens very infrequently.
System Configuration
-------
CentOS 7 - based build host
Branch/Pull Time/Commit
-------
Master branch, 2021-03-22
Last pass
---------
N/A
Timestamp/Logs
--------------
DEBUG package_
DEBUG util.py:563: child environment: None
DEBUG util.py:495: Executing command: ['/usr/
DEBUG util.py:417: http://
DEBUG util.py:417: Trying other mirror.
DEBUG util.py:417: To address this issue please refer to the below wiki article
DEBUG util.py:417: https:/
DEBUG util.py:417: If above article doesn't help to resolve this issue please use https:/
DEBUG util.py:417: Getting requirements for wrs_avp-
DEBUG util.py:417: --> Already installed : gcc-4.8.
DEBUG util.py:417: --> Already installed : glibc-headers-
DEBUG util.py:417: --> Already installed : kernel-
DEBUG util.py:417: --> Already installed : 4:perl-
DEBUG util.py:417: --> Already installed : 1:openssl-
DEBUG util.py:417: --> Already installed : elfutils-
DEBUG util.py:417: Error: No Package found for cgcs-dpdk-rt
DEBUG util.py:417: Error: No Package found for cgcs-dpdk-rt-dev
DEBUG util.py:542: Child return code was: 1
DEBUG util.py:176: kill orphans
...
DEBUG util.py:495: Executing command: ['/usr/bin/yum', '--installroot', '/localdisk/
DEBUG util.py:417: Existing lock /localdisk/
DEBUG util.py:417: Another app is currently holding the yum lock; waiting for it to exit...
DEBUG util.py:417: The other application is: mock
DEBUG util.py:417: Memory : 16 M RSS (268 MB VSZ)
DEBUG util.py:417: Started: Sat Mar 20 02:35:19 2021 - 00:01 ago
DEBUG util.py:417: State : Running, pid: 68378
DEBUG util.py:417: Another app is currently holding the yum lock; waiting for it to exit...
DEBUG util.py:417: The other application is: mock
DEBUG util.py:417: Memory : 16 M RSS (268 MB VSZ)
DEBUG util.py:417: Started: Sat Mar 20 02:35:19 2021 - 00:03 ago
DEBUG util.py:417: State : Sleeping, pid: 68378
...
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
screening: marked as low priority given the issue happens very infrequently