Bug 1452902

Summary: systemd-nspawn fails to install local .rpm file
Product: [Fedora] Fedora Reporter: Ken Dreyer <ktdreyer>
Component: mockAssignee: Clark Williams <williams>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: jdisnard, mebrown, msimacek, msuchy, praiskup, vondruch, williams
Target Milestone: ---   
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-05-22 10:57:47 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:
Embargoed:

Description Ken Dreyer 2017-05-20 01:12:46 UTC
Description of problem:
"mock install" cannot install any local RPMs.

Version-Release number of selected component (if applicable):
mock-1.4.1-1.fc25.noarch

How reproducible:
always

Steps to Reproduce:
1. Locally download an .rpm file, for example:
dnf download kernel-core-4.10.16-200.fc25.x86_64
2. mock -r fedora-25-x86_64 init
3. mock -r fedora-25-x86_64 install kernel-core-4.10.16-200.fc25.x86_64.rpm

Actual results:
Mock fails with an error

Expected results:
Mock installs the package into the F25 chroot.

The above steps work fine with mock-1.3.4-1.fc25. It occurs for any .rpm I tested, not just kernel-core.

Additional info:
Here is the output from "mock install" with the local .rpm file:
...
Mock Version: 1.4.1
INFO: Mock Version: 1.4.1
Finish: chroot init
INFO: installing package(s): kernel-core-4.10.16-200.fc25.x86_64.rpm
Can not load RPM file: kernel-core-4.10.16-200.fc25.x86_64.rpm.
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 88adba6792264b0c9ba044cf6f87219b -D /var/lib/mock/fedora-25-x86_64-bootstrap/root -a --setenv=LC_MESSAGES=C --setenv=LANG=en_US.utf8 --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=SHELL=/bin/bash --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=TERM=vt100 /usr/bin/dnf --installroot /var/lib/mock/fedora-25-x86_64/root/ --releasever 25 --disableplugin=local --setopt=deltarpm=false install kernel-core-4.10.16-200.fc25.x86_64.rpm

Comment 1 Vít Ondruch 2017-05-22 10:57:47 UTC

*** This bug has been marked as a duplicate of bug 1447627 ***