Bug 1474757 - crypto-policies broken in build root on x86_64 due to "missing" cat command [NEEDINFO]
crypto-policies broken in build root on x86_64 due to "missing" cat command
Status: NEW
Product: Fedora
Classification: Fedora
Component: crypto-policies (Show other bugs)
27
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Igor Gnatenko
Fedora Extras Quality Assurance
:
: 1474886 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-25 06:51 EDT by Daniel Berrange
Modified: 2017-08-15 02:51 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
ignatenko: needinfo? (ffesti)


Attachments (Terms of Use)
Diffs in build root since previous successful build (59.83 KB, text/plain)
2017-07-25 06:51 EDT, Daniel Berrange
no flags Details

  None (edit)
Description Daniel Berrange 2017-07-25 06:51:05 EDT
Created attachment 1304166 [details]
Diffs in build root since previous successful build

Description of problem:

I attempted to build libvirt in rawhide


When installing crypto-policies in the build root we see errors thrown

DEBUG util.py:439:  /usr/bin/update-crypto-policies: line 56: cat: command not found
DEBUG util.py:439:  /usr/bin/update-crypto-policies: line 66: cat: command not found
DEBUG util.py:439:  warning: %post(crypto-policies-20170606-2.git7c32281.fc27.noarch) scriptlet failed, exit status 1


This in turn causes libvirt's test suite to fail because the SYSTEM policy is not created

TEST: virnettlssessiontest
 1) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 2) TLS Session servercertreq.filename + clientcertaltreq.filename    ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 3) TLS Session servercertalt1req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 4) TLS Session servercertalt1req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 5) TLS Session servercertalt1req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 6) TLS Session servercertalt2req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 7) TLS Session servercertalt2req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 8) TLS Session servercertalt2req.filename + clientcertreq.filename   ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
 9) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
10) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
11) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
12) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
13) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
14) TLS Session servercertreq.filename + clientcertreq.filename       ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
15) TLS Session servercertlevel3areq.filename + clientcertlevel2breq.filename ... libvirt: XML-RPC error : Failed to set TLS session priority to @LIBVIRT,SYSTEM: The request is invalid.
FAILED
FAIL virnettlssessiontest (exit status: 1)
+ exit 1

https://koji.fedoraproject.org/koji/taskinfo?taskID=20721206


What's odd though is that the root.log does show 'coreutils' being installed, so 'cat' should be present.

It is also strange that it only affected x86_64

I'll attach a file showing a diff between all the packages present in the build root since the previous successful build

Version-Release number of selected component (if applicable):
20170606-2.git7c32281


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 1 Daniel Berrange 2017-07-25 08:35:05 EDT
It is unclear from the logs what order DNF installed the packages in. I wonder if it is possible that crypto-policies is installed before coreutils, because there's no  "Requires(post): coreutils" in crypto-policies to force the install ordering.
Comment 2 Nikos Mavrogiannopoulos 2017-07-25 08:45:07 EDT
Adding Igor who modified the spec to remove "Requires(post): coreutils"
Comment 3 Igor Gnatenko 2017-07-25 08:57:27 EDT
I've had discussion with Florian about this Requires(post) and my understanding was that all dependencies of crypto-policies must be installed *before* scriptlets run. And adding Requires(post): for coreutils should be hint only for circular deps which one to install first..

So it is something wrong here. Florian, could you help us here please?
Comment 4 Nikos Mavrogiannopoulos 2017-07-25 11:54:29 EDT
*** Bug 1474886 has been marked as a duplicate of this bug. ***
Comment 7 Jan Kurik 2017-08-15 02:51:52 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Note You need to log in before you can comment on or make changes to this bug.