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

Plugin install renders read-only file system error #1034

Closed
olmoser opened this issue May 4, 2023 · 2 comments
Closed

Plugin install renders read-only file system error #1034

olmoser opened this issue May 4, 2023 · 2 comments
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on. v5 A v5 specifc issue/feature

Comments

@olmoser
Copy link

olmoser commented May 4, 2023

Describe the bug
When trying to install a plugin via

apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
  name: prometheus
  namespace: grafana
spec:
  instanceSelector:
    matchLabels:
      dashboards: "grafana"
  plugins:
    - name: googlecloud-logging-datasource
      version: 1.2.0

  datasource:
    name: prometheus
    type: prometheus
    access: proxy
    url: http://prometheus-k8s.monitoring.svc:9090
    isDefault: true
    jsonData:
      'tlsSkipVerify': true
      'timeInterval': "10s"
    editable: true

The Pod keeps crashing with the error message

Error: ✗ failed to create temporary file: open /tmp/2140794887.zip: read-only file system

Version
v5.0.0-rc2

To Reproduce
Using the deployment manifest from about will fail the plugin install. However, if you set TMPDIR explicitly as an env var in the Grafana deployment spec, you can work around the error message and the plugin gets installed:

apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
  name: grafana
  namespace: grafana
  labels:
    dashboards: "grafana"
spec:
  deployment:
    spec:
      template:
        spec:
          containers:
            - name: grafana
              env:
                - name: TMPDIR
                  value: /var/lib/grafana

Expected behavior
The plugin gets installed correclty without the need to set the TMPDIR env var.

Runtime (please complete the following information):

  • Grafana Operator Version [e.g. v5.0.0]
  • Environment: GKE v1.25.7-gke.1000

Additional context
Add any other context about the problem here.

@olmoser olmoser added bug Something isn't working needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 4, 2023
@NissesSenap NissesSenap added triage/accepted Indicates an issue or PR is ready to be actively worked on. v5 A v5 specifc issue/feature and removed needs triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 8, 2023
@NissesSenap
Copy link
Collaborator

Funny that we haven't gotten this error when trying out some of our other plugins.
Maybe it's something around how the GKE plugin works.

The easiest way forward is probably to just set this value as default for all deployments.
I don't want to remove the read-only filesystem.

@pb82
Copy link
Collaborator

pb82 commented May 10, 2023

This affects other plugins too, just tested with a panel plugin. Setting the TMPDIR sounds like an acceptable solution, it means the plugin gets downloaded and extracted in the same directory, but that should be ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage/accepted Indicates an issue or PR is ready to be actively worked on. v5 A v5 specifc issue/feature
Projects
None yet
Development

No branches or pull requests

3 participants