RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2127038 - grafana pcp plugin is wiped from rpmostree /var during install in rhel edge
Summary: grafana pcp plugin is wiped from rpmostree /var during install in rhel edge
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: grafana-pcp
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Andreas Gerstmayr
QA Contact: Jan Kurik
Jacob Taylor Valdez
URL:
Whiteboard:
Depends On:
Blocks: 2116848
TreeView+ depends on / blocked
 
Reported: 2022-09-15 07:19 UTC by Ilkka Tengvall
Modified: 2023-05-09 08:16 UTC (History)
6 users (show)

Fixed In Version: grafana-pcp-5.0.0-4.el9
Doc Type: No Doc Update
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of:
Environment:
Last Closed: 2023-05-09 07:29:13 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-134019 0 None None None 2022-09-15 07:29:47 UTC
Red Hat Product Errata RHSA-2023:2177 0 None None None 2023-05-09 07:29:33 UTC

Description Ilkka Tengvall 2022-09-15 07:19:00 UTC
Description of problem:

It seems rpmostree in rhel9 edge doesn't install files under /var/lib/grafana/plugins directory. That's where grafana-pcp tries to drop the plugin. This causes that plugin won't work in grafana on rhel edge.

Version-Release number of selected component (if applicable):

grafana-pcp-3.2.0-2.el9_0.x86_64


How reproducible:

every time

Steps to Reproduce:
1. create edge image with grafana-pcp in it
2. find /var/lib/grafana/plugins -type f
3. rpm -V grafana-pcp

Actual results:

There are no files in place, rpm -V also shows them missing

Expected results:

plugin to work in grafana

Additional info:

grafana-pcp probably should install them elsewhere, and it should be made sure /etc/grafana/grafana.ini plugins= clause would point correct place. Like /usr/share/grafana/plugins or smth. It should be a place one can install grafana plugins from gui too, so grafana needs write access to directory. I don't see grafana.ini taking plugins= multiple times, that would also take care of it.

Comment 1 Ondřej Budai 2022-09-16 12:47:13 UTC
If I'm not mistaken, /usr is mounted read-only on edge images, so making /usr/share/grafana/plugins writeable is not possible.

Comment 2 Andreas Gerstmayr 2022-09-16 15:00:01 UTC
My current plan is to leave the plugin dir to the default of /var/lib/grafana/plugins, so that custom plugins can be installed with the GUI.
I'll install the grafana-pcp files in /usr/share/grafana-pcp, and use systemd-tmpfiles to create a symlink from /var/lib/grafana/plugins to that folder in /usr.

Comment 3 Colin Walters 2022-09-26 19:08:08 UTC
> If I'm not mistaken, /usr is mounted read-only on edge images, so making /usr/share/grafana/plugins writeable is not possible.

It's writable at image build time, that's where data that is shipped as part of the ostree commit (image) should go.

Comment 9 errata-xmlrpc 2023-05-09 07:29:13 UTC
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 (Moderate: grafana-pcp security 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/RHSA-2023:2177


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