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 1827441
Summary: | Cannot install pcp in Fedora IoT 31 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | nicolasoliver03 |
Component: | pcp | Assignee: | Nathan Scott <nathans> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 31 | CC: | agerstmayr, enrico.tagliavini, mgoodwin, nathans |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pcp-5.2.0-1.fc31 pcp-5.2.0-1.fc32 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-08-17 01:07:26 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: | 1352154 |
Description
nicolasoliver03
2020-04-23 22:58:25 UTC
This is the upstream issue: https://github.com/performancecopilot/pcp/issues/816 There have been some changes made in pcp-5.1.0 (just released) to help with this issue - could you re-try with that release once the build is available? Thanks. The update installed successfully after enabling the fedora-updats-testing.repo [test@localhost ~]$ sudo nano /etc/yum.repos.d/fedora-updates-testing.repo [test@localhost ~]$ rpm-ostree install pcp Checking out tree 50222fe... done Enabled rpm-md repositories: docker-ce-stable updates-modular updates fedora updates-testing fedora-modular rpm-md repo 'docker-ce-stable' (cached); generated: 2020-03-11T17:51:39Z rpm-md repo 'updates-modular' (cached); generated: 2020-04-25T05:28:19Z rpm-md repo 'updates' (cached); generated: 2020-04-27T02:36:17Z rpm-md repo 'fedora' (cached); generated: 2019-10-23T22:52:47Z Updating metadata for 'updates-testing'... done rpm-md repo 'updates-testing'; generated: 2020-04-26T04:02:02Z rpm-md repo 'fedora-modular' (cached); generated: 2019-10-23T22:53:13Z Importing rpm-md... done Resolving dependencies... done Will download: 10 packages (4.5 MB) Downloading from 'updates-testing'... done Importing packages... done Checking out packages... done Running pre scripts... done Running post scripts... done Running posttrans scripts... done Writing rpmdb... done Writing OSTree commit... done Staging deployment... done Freed: 4.5 MB (pkgcache branches: 6) Upgraded: ansible 2.9.6-1.fc31 -> 2.9.7-1.fc31 cockpit 216-1.fc31 -> 217-1.fc31 cockpit-bridge 216-1.fc31 -> 217-1.fc31 cockpit-dashboard 216-1.fc31 -> 217-1.fc31 cockpit-docker 216-1.fc31 -> 217-1.fc31 cockpit-networkmanager 216-1.fc31 -> 217-1.fc31 cockpit-packagekit 216-1.fc31 -> 217-1.fc31 cockpit-selinux 216-1.fc31 -> 217-1.fc31 cockpit-storaged 216-1.fc31 -> 217-1.fc31 cockpit-system 216-1.fc31 -> 217-1.fc31 cockpit-ws 216-1.fc31 -> 217-1.fc31 git 2.25.3-1.fc31 -> 2.25.4-1.fc31 git-core 2.25.3-1.fc31 -> 2.25.4-1.fc31 git-core-doc 2.25.3-1.fc31 -> 2.25.4-1.fc31 openvpn 2.4.8-1.fc31 -> 2.4.9-1.fc31 perl-Git 2.25.3-1.fc31 -> 2.25.4-1.fc31 pkcs11-helper 1.22-8.fc31 -> 1.22-10.fc31 python3-perf 5.5.17-200.fc31 -> 5.6.7-200.fc31 python3-pip 19.1.1-7.fc31 -> 19.1.1-8.fc31 python3-pyrsistent 0.15.7-1.fc31 -> 0.16.0-1.fc31 setroubleshoot-plugins 3.3.10-3.fc31 -> 3.3.12-1.fc31 setroubleshoot-server 3.3.22-6.fc31 -> 3.3.23-1.fc31 Added: avahi-libs-0.7-20.fc31.x86_64 libuv-1:1.37.0-1.fc31.x86_64 pcp-5.1.0-1.fc31.x86_64 pcp-conf-5.1.0-1.fc31.x86_64 pcp-libs-5.1.0-1.fc31.x86_64 pcp-selinux-5.1.0-1.fc31.x86_64 Run "systemctl reboot" to start a reboot But after reboot, services cannot start [test@localhost ~]$ journalctl -u pmcd -- Logs begin at Fri 2020-04-24 13:33:34 PDT, end at Mon 2020-04-27 08:09:34 PDT. -- Apr 27 08:08:23 localhost.localdomain systemd[1]: Starting Performance Metrics Collector Daemon... Apr 27 08:09:19 localhost.localdomain pmcd[986]: Starting pmcd ... Apr 27 08:09:19 localhost.localdomain systemd[1]: pmcd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Apr 27 08:09:19 localhost.localdomain systemd[1]: pmcd.service: Failed with result 'exit-code'. Apr 27 08:09:19 localhost.localdomain systemd[1]: Failed to start Performance Metrics Collector Daemon. Apr 27 08:09:20 localhost.localdomain systemd[1]: pmcd.service: Scheduled restart job, restart counter is at 1. Apr 27 08:09:20 localhost.localdomain systemd[1]: Stopped Performance Metrics Collector Daemon. Apr 27 08:09:20 localhost.localdomain systemd[1]: Starting Performance Metrics Collector Daemon... [test@localhost ~]$ journalctl -u pmie -- Logs begin at Fri 2020-04-24 13:33:34 PDT, end at Mon 2020-04-27 08:10:20 PDT. -- Apr 27 08:09:19 localhost.localdomain systemd[1]: Starting Performance Metrics Inference Engine... Apr 27 08:09:20 localhost.localdomain systemd[1]: pmie.service: Can't open PID file /run/pcp/pmie.pid (yet?) after start: No such file or directory Apr 27 08:09:20 localhost.localdomain pmie[4125]: Starting pmie ... Apr 27 08:10:20 localhost.localdomain pmie[4125]: pmpost: cannot open or create file "/var/log/pcp/NOTICES": Permission denied Apr 27 08:10:20 localhost.localdomain pmie[4125]: pmpost: unposted message: [Mon Apr 27 08:10:20 2020] pmcd_wait failed in /usr/share/pcp/lib/pmie: exit status: 2 [test@localhost ~]$ journalctl -u pmlogger.service -- Logs begin at Fri 2020-04-24 13:33:34 PDT, end at Mon 2020-04-27 08:10:34 PDT. -- Apr 27 08:09:19 localhost.localdomain systemd[1]: Starting Performance Metrics Archive Logger... Apr 27 08:09:30 localhost.localdomain pmlogger[4126]: Starting pmlogger ... Apr 27 08:09:30 localhost.localdomain systemd[1]: pmlogger.service: Failed with result 'protocol'. Apr 27 08:09:30 localhost.localdomain systemd[1]: Failed to start Performance Metrics Archive Logger. Apr 27 08:09:30 localhost.localdomain systemd[1]: pmlogger.service: Scheduled restart job, restart counter is at 1. Apr 27 08:09:30 localhost.localdomain systemd[1]: Stopped Performance Metrics Archive Logger. Apr 27 08:10:20 localhost.localdomain systemd[1]: Starting Performance Metrics Archive Logger... Apr 27 08:10:30 localhost.localdomain pmlogger[4666]: Starting pmlogger ... Apr 27 08:10:30 localhost.localdomain systemd[1]: pmlogger.service: Failed with result 'protocol'. Apr 27 08:10:30 localhost.localdomain systemd[1]: Failed to start Performance Metrics Archive Logger. Apr 27 08:10:30 localhost.localdomain systemd[1]: pmlogger.service: Scheduled restart job, restart counter is at 2. Apr 27 08:10:30 localhost.localdomain systemd[1]: Stopped Performance Metrics Archive Logger. The following SELinux error messages are also present [test@localhost ~]$ sudo ausearch -c 'runlevel' --raw type=AVC msg=audit(1588000160.152:521): avc: denied { read } for pid=4249 comm="runlevel" name="utmp" dev="tmpfs" ino=13758 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file permissive=0 type=AVC msg=audit(1588000160.152:522): avc: denied { read } for pid=4249 comm="runlevel" name="utmp" dev="tmpfs" ino=13758 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file permissive=0 type=AVC msg=audit(1588000280.926:551): avc: denied { read } for pid=5254 comm="runlevel" name="utmp" dev="tmpfs" ino=13758 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file permissive=0 type=AVC msg=audit(1588000280.926:552): avc: denied { read } for pid=5254 comm="runlevel" name="utmp" dev="tmpfs" ino=13758 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:object_r:initrc_var_run_t:s0 tclass=file permissive=0 [test@localhost ~]$ sudo ausearch -c 'pmpost' --raw type=AVC msg=audit(1588000220.243:534): avc: denied { dac_override } for pid=4660 comm="pmpost" capability=1 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000220.243:535): avc: denied { dac_override } for pid=4660 comm="pmpost" capability=1 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000341.048:561): avc: denied { dac_override } for pid=5657 comm="pmpost" capability=1 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000341.048:562): avc: denied { dac_override } for pid=5657 comm="pmpost" capability=1 scontext=system_u:system_r:pcp_pmie_t:s0 tcontext=system_u:system_r:pcp_pmie_t:s0 tclass=capability permissive=0 [test@localhost ~]$ sudo ausearch -c 'cp' --raw type=AVC msg=audit(1588000160.201:523): avc: denied { fsetid } for pid=4281 comm="cp" capability=4 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000220.527:537): avc: denied { fsetid } for pid=4744 comm="cp" capability=4 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000280.972:553): avc: denied { fsetid } for pid=5287 comm="cp" capability=4 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability permissive=0 type=AVC msg=audit(1588000341.329:564): avc: denied { fsetid } for pid=5741 comm="cp" capability=4 scontext=system_u:system_r:pcp_pmlogger_t:s0 tcontext=system_u:system_r:pcp_pmlogger_t:s0 tclass=capability permissive=0 Tried this on Fedora IoT 32. It is failing at installation step: [test@localhost ~]$ rpm-ostree status State: idle AutomaticUpdates: disabled Deployments: * ostree://fedora-iot:fedora/stable/x86_64/iot Version: 32.20200429.0 (2020-04-29T09:44:25Z) BaseCommit: 3aa141c312b4abed935ca4d52ad9ac0bcdf72ac44aff049a35f79efee81a20cc GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4 LayeredPackages: ansible bzip2 cockpit cockpit-ostree cockpit-selinux cockpit-storaged containerd.io docker-ce docker-ce-cli docker-compose git nano openvpn python3-pip tpm2-pkcs11 tpm2-tss-engine tuned [test@localhost ~]$ rpm-ostree install pcp Checking out tree 3aa141c... done Enabled rpm-md repositories: fedora-cisco-openh264 fedora-modular updates docker-ce-stable fedora updates-modular rpm-md repo 'fedora-cisco-openh264' (cached); generated: 2020-03-17T20:10:45Z rpm-md repo 'fedora-modular' (cached); generated: 2020-04-24T09:32:34Z rpm-md repo 'updates' (cached); generated: 2020-04-30T01:55:47Z rpm-md repo 'docker-ce-stable' (cached); generated: 2020-03-11T17:51:39Z rpm-md repo 'fedora' (cached); generated: 2020-04-24T11:00:23Z rpm-md repo 'updates-modular' (cached); generated: 2020-04-30T05:36:18Z Importing rpm-md... done Resolving dependencies... done Will download: 6 packages (2.0?MB) Downloading from 'updates'... done Downloading from 'fedora'... done Importing packages... done Checking out packages... done Running pre scripts... done Running post scripts... done error: Running %post for pcp: Executing bwrap(/bin/sh): Child process killed by signal 1; run `journalctl -t 'rpm-ostree(pcp.post)'` for more information [test@localhost ~]$ journalctl -t 'rpm-ostree(pcp.post)' -- Logs begin at Thu 2020-04-30 11:18:37 PDT, end at Thu 2020-04-30 11:40:23 PDT. -- Apr 30 11:40:22 localhost.localdomain rpm-ostree(pcp.post)[7739]: touch: cannot touch '/var/lib/pcp/pmns/.NeedRebuild': No such file or directory Apr 30 11:40:22 localhost.localdomain rpm-ostree(pcp.post)[7740]: chmod: cannot access '/var/lib/pcp/pmns/.NeedRebuild': No such file or directory Apr 30 11:40:22 localhost.localdomain rpm-ostree(pcp.post)[7741]: rpm-ostree-systemctl: Ignored non-preset command: try-restart pmcd.service Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7742]: Created symlink /etc/systemd/system/multi-user.target.wants/pmcd.service → /usr/lib/systemd/system/pmcd.service. Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7743]: rpm-ostree-systemctl: Ignored non-preset command: try-restart pmlogger.service Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7744]: Created symlink /etc/systemd/system/multi-user.target.wants/pmlogger.service → /usr/lib/systemd/system/pmlogger.service. Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7745]: rpm-ostree-systemctl: Ignored non-preset command: try-restart pmie.service Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7746]: Created symlink /etc/systemd/system/multi-user.target.wants/pmie.service → /usr/lib/systemd/system/pmie.service. Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7733]: /usr/pcp.post: line 53: cd: /var/lib/pcp/pmns: No such file or directory Apr 30 11:40:23 localhost.localdomain rpm-ostree(pcp.post)[7733]: /usr/pcp.post: line 54: cd: HOME not set *** Bug 1702226 has been marked as a duplicate of this bug. *** I'm working on this, planned for the pcp-5.2.0 release. Numerous changes have been committed upstream now to allow PCP to function on Silverblue. Pull from the master branch here: https://github.com/performancecopilot/pcp/ ... and use the ./Makepkgs script to build RPMs. We anticipate this will be in pcp-5.2.0 but it'd be great to get some IoT / Silverblue users trying it out before then... thanks! FEDORA-2020-ee90ea0b98 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-ee90ea0b98 FEDORA-2020-dc0cc449b3 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-dc0cc449b3 FEDORA-2020-dc0cc449b3 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-dc0cc449b3` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-dc0cc449b3 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-ee90ea0b98 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-ee90ea0b98` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-ee90ea0b98 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-dc0cc449b3 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-ee90ea0b98 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |