Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CI tests fail with [Errno 2] No such file or directory: '/var/cache/dnf/metadata_lock.pid' #6189

Copy link
Copy link
@vashirov

Description

@vashirov
Issue body actions

Issue Description
There is an intermittent issue during container startup in our CI:

Status: Downloaded newer image for quay.io/389ds/ci-images:test
+ CID=cff2da4e43a2a712df774dbbe8b99206791e8592d6328261965b6f802140bdb7
+ sudo docker exec cff2da4e43a2a712df774dbbe8b99206791e8592d6328261965b6f802140bdb7 sh -c 'dnf install -y -v dist/rpms/*rpm'
Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
DNF version: 4.19.2
cachedir: /var/cache/dnf
User-Agent: constructed: 'libdnf (Fedora Linux 40; container; Linux.x86_64)'
repo: downloading from remote: copr:copr.fedorainfracloud.org:group_3[89](https://github.com/389ds/389-ds-base/actions/runs/9280063355/job/25534394245?pr=6182#step:7:90)ds:perl-Mozilla-LDAP
Copr repo for perl-Mozilla-LDAP owned by @389ds 8.4 kB/s | 1.6 kB     00:00    
copr:copr.fedorainfracloud.org:group_389ds:perl-Mozilla-LDAP: using metadata from Mon Feb 12 14:44:12 2024.
repo: downloading from remote: fedora
countme: no event for fedora: window already counted
Fedora 40 - x86_64                              6.9 MB/s |  20 MB     00:02    
fedora: using metadata from Sun Apr 14 18:51:11 2024.
repo: downloading from remote: updates
countme: no event for updates: window already counted
Fedora 40 - x86_64 - Updates                    3.4 MB/s | 6.6 MB     00:01    
updates: using metadata from Tue May 28 01:05:10 2024.
[Errno 2] No such file or directory: '/var/cache/dnf/metadata_lock.pid'
Error: Process completed with exit code 1.

With the recent container image update to F40 these failures are happening almost all the time.

The race condition happens here:

CID=$(sudo docker run -d -h server.example.com --ulimit core=-1 --cap-add=SYS_PTRACE --privileged --rm --shm-size=4gb -v ${PWD}:/workspace quay.io/389ds/ci-images:test)
sudo docker exec $CID sh -c "dnf install -y -v dist/rpms/*rpm"

systemd is not fully initialized when a second command runs and expects a pid file to be available.
The script should wait until systemctl is-system-running is successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThe issue will be triaged during scrumThe issue will be triaged during scrum

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.