Bug 2124991
| Summary: | insights-client collection, wrong version of running image reported to edge management console | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Micah Abbott <miabbott> | ||||
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 9.0 | CC: | ahitacat, cmarinea, fjansen, lvrabec, miabbott, mmalik, omaciel, zpytela | ||||
| Target Milestone: | rc | Keywords: | Triaged | ||||
| Target Release: | 9.2 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | SCRUB_20220926 | ||||||
| Fixed In Version: | Doc Type: | No Doc Update | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-05-09 08:16:34 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
Micah Abbott
2022-09-07 16:32:57 UTC
Also worth noting that the console is indicating that an update is available, but the device is already running the latest version. Can you share the insights-client logs and the SELinux denials: 1. Run insights-client >>>sudo insights-client Logs are found in /var/log/insights-client.log 2. Search for SELinux denials >>> ausearch -m AVC -ts today (In reply to Alba Hita from comment #3) > Can you share the insights-client logs and the SELinux denials: > > 1. Run insights-client > >>>sudo insights-client > > Logs are found in /var/log/insights-client.log > > 2. Search for SELinux denials > >>> ausearch -m AVC -ts today I no longer have the VM where this was observed at the ready. I'll have to try to recreate the error conditions. (In reply to Alba Hita from comment #3) > Can you share the insights-client logs and the SELinux denials: > > 1. Run insights-client > >>>sudo insights-client > > Logs are found in /var/log/insights-client.log ``` $ sudo insights-client Starting to collect Insights data for localhost.localdomain Uploading Insights data. Successfully uploaded report from localhost.localdomain to account 1460290. View details about this system on console.redhat.com: https://console.redhat.com/insights/inventory/f33fb461-3d45-4f70-8b84-6b58397b70fc ``` See attached `insights-client.log` After running the command, I checked the console and found that the device was properly updated to reflect it is running the most up-to-date version of the image https://console.redhat.com/edge/inventory/f33fb461-3d45-4f70-8b84-6b58397b70fc > > 2. Search for SELinux denials > >>> ausearch -m AVC -ts today Definitely some denials in there; see attached `ausearch.log` Perhaps in the original problem, the insights-client wasn't properly sending updates to the console.redhat.com backend? (In reply to Micah Abbott from comment #5) > (In reply to Alba Hita from comment #3) > > Can you share the insights-client logs and the SELinux denials: > > > > 1. Run insights-client > > >>>sudo insights-client > > > > Logs are found in /var/log/insights-client.log > > ``` > $ sudo insights-client > Starting to collect Insights data for localhost.localdomain > Uploading Insights data. > Successfully uploaded report from localhost.localdomain to account 1460290. > View details about this system on console.redhat.com: > https://console.redhat.com/insights/inventory/f33fb461-3d45-4f70-8b84- > 6b58397b70fc > ``` > > See attached `insights-client.log` > > After running the command, I checked the console and found that the device > was properly updated to reflect it is running the most up-to-date version of > the image > > https://console.redhat.com/edge/inventory/f33fb461-3d45-4f70-8b84- > 6b58397b70fc > > > > > 2. Search for SELinux denials > > >>> ausearch -m AVC -ts today > > Definitely some denials in there; see attached `ausearch.log` > > > > Perhaps in the original problem, the insights-client wasn't properly sending > updates to the console.redhat.com backend? Can you also paste here the version of the SELinux policies? Yes it seems that SELinux is preventing to upload the archive, you can see in insights-client logs. We are facing some issues with the new SELinux policies that makes insights-client not working as expected. I'm adding Zdenek and Milos as followers as they are working on SELinux fixes. Micah, What was the selinux-policy version? It is likely these issues have already been addressed with selinux-policy-3.14.3-103.el8. (In reply to Zdenek Pytela from comment #10) > It is likely these issues have already been addressed with > selinux-policy-3.14.3-103.el8. This was RHEL 8 version, in RHEL 9 it is selinux-policy-34.1.43-1, sorry for that. (In reply to Zdenek Pytela from comment #11) > (In reply to Zdenek Pytela from comment #10) > > It is likely these issues have already been addressed with > > selinux-policy-3.14.3-103.el8. > > This was RHEL 8 version, in RHEL 9 it is selinux-policy-34.1.43-1, sorry for > that. ``` $ rpm -q selinux-policy selinux-policy-34.1.29-1.el9_0.2.noarch ``` (In reply to Micah Abbott from comment #12) > (In reply to Zdenek Pytela from comment #11) > > (In reply to Zdenek Pytela from comment #10) > > > It is likely these issues have already been addressed with > > > selinux-policy-3.14.3-103.el8. > > > > This was RHEL 8 version, in RHEL 9 it is selinux-policy-34.1.43-1, sorry for > > that. > > ``` > $ rpm -q selinux-policy > selinux-policy-34.1.29-1.el9_0.2.noarch > ``` Can you confirm the issue is gone with the latest selinux-policy package available? It is selinux-policy-34.1.43-1 in RHEL 9.1 and selinux-policy-34.1.44-1 which is available for RHEL 9.2. (In reply to Zdenek Pytela from comment #13) > (In reply to Micah Abbott from comment #12) > > (In reply to Zdenek Pytela from comment #11) > > > (In reply to Zdenek Pytela from comment #10) > > > > It is likely these issues have already been addressed with > > > > selinux-policy-3.14.3-103.el8. > > > > > > This was RHEL 8 version, in RHEL 9 it is selinux-policy-34.1.43-1, sorry for > > > that. > > > > ``` > > $ rpm -q selinux-policy > > selinux-policy-34.1.29-1.el9_0.2.noarch > > ``` > > Can you confirm the issue is gone with the latest selinux-policy package > available? > It is selinux-policy-34.1.43-1 in RHEL 9.1 and selinux-policy-34.1.44-1 > which is available for RHEL 9.2. I was able to construct an ostree commit that includes `selinux-policy-34.1.43-1.el9.noarch` and other 9.1 content. But I had to do that using an on-prem Image Builder setup, since the 9.1 content isn't available on the IB instance on console.redhat.com (as far as I know). This presents a problem when `insights-client` reports about the version of the running image since it has no history or knowledge of the commit I created on the on-prem IB setup. Anyways, I still see some AVC denials. I'll attach an updated set of logs. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2483 |