Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1763111

Summary: mock for forcearch=s390x fails to init due to scriptlet failure
Product: [Fedora] Fedora Reporter: Elliott Sales de Andrade <quantum.analyst>
Component: qemuAssignee: Fedora Virtualization Maintainers <virt-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 30CC: amit, berrange, cfergeau, dan, dwmw2, hannsj_uhl, itamar, jdisnard, jkeating, mebrown, msuchy, pbonzini, philip.wyett, praiskup, rjones, tstellar, virt-maint, 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: 2020-04-01 08:13:58 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:
Bug Depends On:    
Bug Blocks: 467765    

Description Elliott Sales de Andrade 2019-10-18 09:29:25 UTC
Description of problem:
Running mock for s390x (with forced arch on x86_64) fails to init due to crashes in scriptlets run while creating the initial buildroot.


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


Steps to Reproduce:
1. mock -r fedora-rawhide-s390x --forcearch=s390x --init


Actual results:
  Running scriptlet: libsepol-2.9-2.fc31.s390x
warning: %post(libsepol-2.9-2.fc31.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package libsepol

  Running scriptlet: libutempter-1.1.6-17.fc31.s390x
error: %prein(libutempter-1.1.6-17.fc31.s390x) scriptlet failed, signal 4
Error in PREIN scriptlet in rpm package libutempter
error: libutempter-1.1.6-17.fc31.s390x: install failed

  Running scriptlet: elfutils-default-yama-scope-0.177-1.fc32.noarch
warning: %post(elfutils-default-yama-scope-0.177-1.fc32.noarch) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package elfutils-default-yama-scope

  Running scriptlet: p11-kit-trust-0.23.18.1-1.fc32.s390x
warning: %post(p11-kit-trust-0.23.18.1-1.fc32.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package p11-kit-trust

  Running scriptlet: ca-certificates-2019.2.32-3.fc31.noarch
error: %prein(ca-certificates-2019.2.32-3.fc31.noarch) scriptlet failed, signal 4
Error in PREIN scriptlet in rpm package ca-certificates
error: ca-certificates-2019.2.32-3.fc31.noarch: install failed

  Running scriptlet: libblkid-2.34-6.fc32.s390x
warning: %post(libblkid-2.34-6.fc32.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package libblkid

  Running scriptlet: binutils-2.32-27.fc32.s390x
warning: %post(binutils-2.32-27.fc32.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package binutils

  Running scriptlet: systemd-libs-243-3.gitef67743.fc32.s390x
warning: %post(systemd-libs-243-3.gitef67743.fc32.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package systemd-libs

  Running scriptlet: util-linux-2.34-6.fc32.s390x
warning: %post(util-linux-2.34-6.fc32.s390x) scriptlet failed, signal 4
Error in POSTIN scriptlet in rpm package util-linux

  Running scriptlet: filesystem-3.12-2.fc31.s390x
warning: %posttrans(filesystem-3.12-2.fc31.s390x) scriptlet failed, signal 4
Error in POSTTRANS scriptlet in rpm package filesystem

  Running scriptlet: crypto-policies-20190816-4.gitbb9bf99.fc32.noarch
warning: %posttrans(crypto-policies-20190816-4.gitbb9bf99.fc32.noarch) scriptlet failed, signal 4
Error in POSTTRANS scriptlet in rpm package crypto-policies

  Running scriptlet: glibc-common-2.30.9000-11.fc32.s390x
warning: %triggerin(glibc-common-2.30.9000-11.fc32.s390x) scriptlet failed, signal 4
Error in <unknown> scriptlet in rpm package glibc-common

  Running scriptlet: info-6.7-2.fc32.s390x
warning: %triggerin(info-6.7-2.fc32.s390x) scriptlet failed, signal 4
Error in <unknown> scriptlet in rpm package info


Expected results:
Mock chroot is initialized correctly.

Comment 1 Miroslav Suchý 2019-10-18 13:20:07 UTC
Do you have package qemu-user-static installed?

Comment 2 Elliott Sales de Andrade 2019-10-18 20:47:16 UTC
Yes.

$ rpm -q qemu-user-static
qemu-user-static-3.1.1-2.fc30.x86_64

Comment 3 Dan Horák 2019-11-05 22:53:21 UTC
This has unlikely anything to do with mock, but it could be another symptom of bug 1741935 or some other emulation bug. I can provide access to real s390 hw if needed.

Comment 4 Dan Horák 2020-02-20 08:33:17 UTC
Also recommended is to use latest (rawhide) qemu from the virt-preview repo (https://copr.fedorainfracloud.org/coprs/g/virtmaint-sig/virt-preview/).

Comment 5 Fedora Admin XMLRPC Client 2020-03-17 04:43:09 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 6 Pavel Raiskup 2020-04-01 08:07:10 UTC
The bug 1741935 is fixed, is this still an issue?

Comment 7 Pavel Raiskup 2020-04-01 08:13:58 UTC
It probably doesn't make sense to require additional info.  This is
really unlikely to be a thing we could fix in mock.  I'm switching
against qemu and marking as duplicate.  Feel free to reopen if you
think it is worth tracking.

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