Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GF_INSTALL_PLUGINS is being mis-interpreted #20242

Closed
nhti opened this issue Oct 16, 2023 · 3 comments · Fixed by bitnami/containers#51889
Closed

GF_INSTALL_PLUGINS is being mis-interpreted #20242

nhti opened this issue Oct 16, 2023 · 3 comments · Fixed by bitnami/containers#51889
Assignees
Labels
grafana-operator solved tech-issues The user has a technical issue about an application

Comments

@nhti
Copy link

nhti commented Oct 16, 2023

Name and Version

bitnami/grafana-operator

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Install the grafana-operator chart
  2. Leave configurations to be default
  3. Add a GrafanaDatasource type resource with plugins spec similar to
  plugins:
    - name: camptocamp-prometheus-alertmanager-datasource
      version: 1.0.0
  1. Deploy out the grafana-operator helm chart
  2. Observe the grafana-deployment created by the operator
    It has the following environment variable
       - name: GF_INSTALL_PLUGINS
          value: camptocamp-prometheus-alertmanager-datasource 1.0.0
  1. Observe the grafana-deployment logs
    It has the following logs message
grafana 04:10:21.48 
grafana 04:10:21.48 Welcome to the Bitnami grafana container
grafana 04:10:21.48 Subscribe to project updates by watching https://github.com/bitnami/containers
grafana 04:10:21.48 Submit issues and feature requests at https://github.com/bitnami/containers/issues
grafana 04:10:21.48 
grafana 04:10:21.49 INFO  ==> Ensuring /etc/grafana/grafana.ini points to /opt/bitnami/grafana/conf/grafana.ini
grafana 04:10:21.49 INFO  ==> Ensuring /var/lib/grafana points to /opt/bitnami/grafana/data
grafana 04:10:21.50 INFO  ==> Ensuring /var/log/grafana points to /opt/bitnami/grafana/logs
grafana 04:10:21.51 INFO  ==> Installing plugin camptocamp-prometheus-alertmanager-datasource
Deprecation warning: The standalone 'grafana-cli' program is deprecated and will be removed in the future. Please update all uses of 'grafana-cli' to 'grafana cli'
✔ Downloaded and extracted camptocamp-prometheus-alertmanager-datasource v1.2.1 zip successfully to /opt/bitnami/grafana/data/plugins/camptocamp-prometheus-alertmanager-datasource

Please restart Grafana after installing or removing plugins. Refer to Grafana documentation for instructions if necessary.

grafana 04:10:21.80 INFO  ==> Installing plugin 1.0.0
Deprecation warning: The standalone 'grafana-cli' program is deprecated and will be removed in the future. Please update all uses of 'grafana-cli' to 'grafana cli'
Error: ✗ 404: Plugin not found (Grafana v10.1.4 linux-amd64)

Are you using any custom parameters or values?

N/A

What is the expected behavior?

The expected behaviour is for grafana to install the camptocamp-prometheus-alertmanager-datasource plugin of version 1.0.0

What do you see instead?

Grafana is installing the camptocamp-prometheus-alertmanager-datasource plugin of version 1.2.1 (latest) and a "1.0.0" plugin

Additional information

I have tried manually setting the GF_INSTALL_PLUGINS value as camptocamp-prometheus-alertmanager-datasource:1.0.0 instead, and it would execute the expected behaviour

@nhti nhti added the tech-issues The user has a technical issue about an application label Oct 16, 2023
@github-actions github-actions bot added the triage Triage is needed label Oct 16, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels Oct 16, 2023
@bitnami-bot bitnami-bot assigned fevisera and unassigned carrodher Oct 16, 2023
@fevisera
Copy link
Contributor

Hi @nhti,

It seems another user implemented bitnami/containers#51889 mentioning it would solve your issue. Could you please confirm that is related to your issue? If so, does it make sense to you to wait for that PR review resolution to check if your issue is solved?

Thanks.

@nhti
Copy link
Author

nhti commented Oct 19, 2023 via email

@fevisera
Copy link
Contributor

Hi @nhti,

Thanks a lot for confirming both things! I will leave this issue open. Once that PR is successfully resolved, it should automatically close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grafana-operator solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants