Bug 1433271

Summary: Error during installation of pcp-selinux
Product: [Fedora] Fedora Reporter: Dominik Perpeet <dperpeet>
Component: pcpAssignee: Lukas Berk <lberk>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: brolley, dperpeet, fche, lberk, mgoodwin, nathans, pcp, scox
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcp-3.11.9-1.fc24 pcp-3.11.10-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-09 19:02:40 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:
Attachments:
Description Flags
pcpupstream.cil from pp /var/lib/pcp/selinux/pcpupstream.pp none

Description Dominik Perpeet 2017-03-17 09:22:26 UTC
Description of problem:

During our Cockpit CI creation of Fedora 26 images, the installation of pcp-selinux produces errors for the pcp-selinux package.

Version-Release number of selected component (if applicable):
pcp-selinux-3.11.8-1.fc26.x86_64 

How reproducible:
Always

Steps to Reproduce:
1. Install pcp-selinux on Fedora 26

Actual results:
Installing  : pcp-selinux-3.11.8-1.fc26.x86_64                        378/503 
libsemanage.map_file: Unable to open %{localstatedir}/lib/pcp/selinux/pcpupstream.pp 
 (No such file or directory).
libsemanage.semanage_direct_install_file: Unable to read file %{localstatedir}/lib/pcp/selinux/pcpupstream.pp
 (No such file or directory).
semodule:  Failed on %{localstatedir}/lib/pcp/selinux/pcpupstream.pp!
warning: %post(pcp-selinux-3.11.8-1.fc26.x86_64) scriptlet failed, exit status 1

Comment 2 Fedora Update System 2017-03-17 14:39:45 UTC
pcp-3.11.8-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-46a9ee7f93

Comment 3 Dominik Perpeet 2017-03-17 16:00:42 UTC
On a fresh install I get the following error when installing the packages from pcp-3.11.8-2.fc26:

Installing  : pcp-selinux-3.11.8-2.fc26.x86_64                        206/294 
Failed to resolve typeattributeset statement at /var/lib/selinux/targeted/tmp/modules/400/pcpupstream/cil:13
semodule:  Failed!
warning: %post(pcp-selinux-3.11.8-2.fc26.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package pcp-selinux
Non-fatal POSTIN scriptlet failure in rpm package pcp-selinux

Comment 4 Lukas Berk 2017-03-17 20:14:03 UTC
Hey Dominik, 

I'm unable to reproduce this on a local setup.
would you be able to run /usr/libexec/selinux/hll/pp /var/lib/pcp/selinux/pcpupstream.pp pcpupstream.cil

and attach the resulting .cil file?

Comment 5 Dominik Perpeet 2017-03-17 21:07:42 UTC
Created attachment 1264291 [details]
pcpupstream.cil from pp /var/lib/pcp/selinux/pcpupstream.pp

I ran the command after installing the package and produced the attached .cil file.

Comment 6 Fedora Update System 2017-03-17 22:23:19 UTC
pcp-3.11.8-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-46a9ee7f93

Comment 7 Fedora Update System 2017-04-02 05:14:09 UTC
pcp-3.11.9-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-aca0a468b4

Comment 8 Fedora Update System 2017-04-02 05:15:27 UTC
pcp-3.11.9-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-def05eeac1

Comment 9 Fedora Update System 2017-04-02 05:16:47 UTC
pcp-3.11.9-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c6c3616693

Comment 10 Fedora Update System 2017-04-03 02:22:10 UTC
pcp-3.11.9-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c6c3616693

Comment 11 Fedora Update System 2017-04-03 02:22:28 UTC
pcp-3.11.9-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-def05eeac1

Comment 12 Fedora Update System 2017-04-03 03:53:33 UTC
pcp-3.11.9-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-aca0a468b4

Comment 13 Fedora Update System 2017-04-10 21:20:47 UTC
pcp-3.11.9-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2017-04-11 04:51:20 UTC
pcp-3.11.9-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2017-05-18 16:31:11 UTC
pcp-3.11.10-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-c0a1605df5

Comment 16 Fedora Update System 2017-05-19 21:10:19 UTC
pcp-3.11.10-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-c0a1605df5

Comment 17 Fedora Update System 2017-06-09 19:02:40 UTC
pcp-3.11.10-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.