DNF Collector pre_stage_process fails in cases with many repos
name: Bug Report
about: Create a report to help us improve
- Version: 1.8.4
- Platform: Linux dd-rocky8-with-tools.localdomain 4.18.0-372.32.1.el8_6.x86_64 #1 (closed) SMP Thu Oct 27 15:18:36 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Running a hopctl bundle
command with a manifest that includes 31 rpm repositories (borrowed from a company user). When the CollectDnfPlugin runs its pre_stage_proces, it fails.
Log output:
[2023-05-16 16:46:24,310] - [CollectDnfPlugin--46912-1] - [DEBUG] - Creating repo hoppr-tmp-27 for url https://nexus.global.lmco.com/repository/yum-hashicorp-proxy/RHEL/7/x86_64/stable
[2023-05-16 16:46:24,567] - [CollectDnfPlugin--46912-1] - [DEBUG] - Creating repo hoppr-tmp-28 for url https://nexus.global.lmco.com/repository/yum-nginx-rhel-proxy/7/x86_64
[2023-05-16 16:46:24,838] - [CollectDnfPlugin--46912-1] - [DEBUG] - Creating repo hoppr-tmp-29 for url https://nexus.global.lmco.com/repository/yum-rancher-proxy/rke2/stable/1.24/centos/7/x86_64
[2023-05-16 16:46:25,102] - [CollectDnfPlugin--46912-1] - [DEBUG] - Creating repo hoppr-tmp-30 for url https://nexus.global.lmco.com/repository/swf-yum/deployment
[2023-05-16 16:46:25,108] - [CollectDnfPlugin--46912-1] - [DEBUG] - Running command: 'dnf --quiet --disableexcludes=all --config=/vagrant/hoppr-dev/hoppr/.hoppr-dnf/dnf.conf --disablerepo=* --enablerepo=hoppr-tmp-* check-update makecache'
[2023-05-16 16:46:29,952] - [CollectDnfPlugin--46912-1] - [DEBUG] - dnf command stdout content:
[2023-05-16 16:46:29,952] - [CollectDnfPlugin--46912-1] - [ERROR] - dnf command failed with error:
Error: Cannot rename directory "/vagrant/hoppr-dev/hoppr/.hoppr-dnf/cache/hoppr-tmp-0-1eab5078285e2057/tmpdir.GESU6Z/repodata" to "/vagrant/hoppr-dev/hoppr/.hoppr-dnf/cache/hoppr-tmp-0-1eab5078285e2057/repodata": cannot create directory /vagrant/hoppr-dev/hoppr/.hoppr-dnf/cache/hoppr-tmp-0-1eab5078285e2057/repodata: File exists
[2023-05-16 16:46:29,952] - [CollectDnfPlugin--46912-1] - [DEBUG] - Completed CollectDnfPlugin.pre_stage_process
[2023-05-16 16:46:29,953] - [CollectDnfPlugin--46912-1] - [DEBUG] - Process duration 14.032329 seconds
[2023-05-16 16:46:29,953] - [CollectDnfPlugin--46912-1] - [INFO] - Result: 'FAIL, msg: Failed to populate DNF cache.'
Subsequent calls to process_component
take hours to complete, and if they do complete, they fail.