Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1951067

Summary: Unable to install Grafana plugins using the rhel8/grafana image
Product: Red Hat Enterprise Linux 8 Reporter: Ondrej Gajdusek <ogajduse>
Component: grafana-containerAssignee: Andreas Gerstmayr <agerstmayr>
Status: CLOSED ERRATA QA Contact: Jan Kurik <jkurik>
Severity: unspecified Docs Contact: Apurva Bhide <abhide>
Priority: unspecified    
Version: 8.4CC: agerstmayr, jkurik, mgoodwin, nathans, patrickm
Target Milestone: betaKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: grafana-container-7-11 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 23:55:26 UTC Type: Feature Request
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
log produced by 'podman logs grafana' none

Description Ondrej Gajdusek 2021-04-19 14:26:33 UTC
Created attachment 1773296 [details]
log produced by 'podman logs grafana'

Description of problem:
The rhel8/grafana image does not take into account the "GF_INSTALL_PLUGINS" environmental variable. That blocks users from installing Grafana plugins. The official container page on catalog.redhat.com points to the official documentation which tells users to use this particular variable in order to install Grafana plugins.
https://grafana.com/docs/grafana/latest/installation/docker/#install-plugins-in-the-docker-container

Version-Release number of selected component (if applicable):
Container image release: 69.1618434418
Container image Id: sha256:fe92053646e04eb6833137d0704b2acc2321b60d6daa12e72103e5730c2d7542

How reproducible:
always

Steps to Reproduce:
1. podman run --name grafana -d --env GF_SECURITY_ADMIN_USER=admin --env GF_SECURITY_ADMIN_PASSWORD=changeme --env GF_LOG_LEVEL=debug --env GF_INSTALL_PLUGINS=sni-thruk-datasource --user 473 --restart=always registry.redhat.io/rhel8/grafana
2. podman logs grafana

Actual results:
Entering the environmental variable at the container start-up has no effect on Grafana. Grafana does not install the plugins.

Expected results:
Grafana installs plugins based on the "GF_INSTALL_PLUGINS" environmental variable.

Additional info:

Comment 1 Andreas Gerstmayr 2021-04-19 15:53:53 UTC
(In reply to Ondrej Gajdusek from comment #0)
> The official container page on catalog.redhat.com points to the official
> documentation which tells users to use this particular variable in order to
> install Grafana plugins.
> https://grafana.com/docs/grafana/latest/installation/docker/#install-plugins-
> in-the-docker-container

Sorry for the confusion here - the link to https://grafana.com/docs/grafana/ was intended to describe the Grafana software, not the Grafana container installation steps.
The upstream Grafana container and the rhel8/grafana container are different - the former is building Grafana from source, the latter is using the RHEL AppStream RPM (and using RHEL as a base image).

That said, the ability to install additional Grafana plugins is definitely a nice feature, and I'll add this feature to the next Grafana container rebase.

Comment 6 errata-xmlrpc 2021-11-09 23:55:26 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 (Updated rhel8/grafana container image), 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-2021:4545