Bug 2218429

Summary: mock is broken due dnf5 update
Product: [Fedora] Fedora Reporter: Filipe Rosset <rosset.filipe>
Component: mockAssignee: Copr Team <copr-team>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: copr-team, msuchy, philip.wyett, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-29 06:01:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Filipe Rosset 2023-06-29 05:54:50 UTC
Unknown argument "--allowerasing" for command "dnf5"


[filiperosset@raw rlottie]$ sudo mock -r /etc/mock/fedora-rawhide-x86_64.cfg results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm
INFO: mock.py version 4.1 starting (python version = 3.11.4, NVR = mock-4.1-1.fc39)...
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: tmpfs initialized
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm)  Config(fedora-rawhide-x86_64)
Start: clean chroot
Finish: clean chroot
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root.
INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root.
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: enabled HW Info plugin
Mock Version: 4.1
INFO: Mock Version: 4.1
INFO: Package manager dnf detected and used (fallback)
Start(bootstrap): installing dnf tooling
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.
ERROR: Exception(results_rlottie/0.2/8.fc39/rlottie-0.2-8.fc39.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 1 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed:
 # /usr/bin/dnf --installroot /var/lib/mock/fedora-rawhide-x86_64-bootstrap/root/ --releasever 39 --setopt=deltarpm=False --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install dnf dnf-plugins-core --setopt=tsflags=nocontexts
Unknown argument "--allowerasing" for command "dnf5". Add "--help" for more information about the arguments.



Reproducible: Always

Steps to Reproduce:
1. try to use  mock -r /etc/mock/fedora-rawhide-x86_64.cfg xxx.srpm
2. also fedpkg mockbuild --no-clean is broken
3.

Comment 1 Filipe Rosset 2023-06-29 06:01:46 UTC
nevermind, my /etc/mock/site-defaults.cfg was too old