pmm agent is failing in openshift with temp folder permission issue

Description

With 2.39 we started getting following issue:

INFO[2023-10-03T17:35:57.168+00:00] Updating PMM Server address from "monitoring-service" to "monitoring-service:443". component=main INFO[2023-10-03T17:35:57.168+00:00] Starting local API server on http://0.0.0.0:7777/ ... component=local-server/JSON INFO[2023-10-03T17:35:57.169+00:00] Window check connection time is 1.00 hour(s) INFO[2023-10-03T17:35:57.169+00:00] Starting... component=client INFO[2023-10-03T17:35:57.169+00:00] Connecting to https://api_key:***@monitoring-service:443/ ... component=client INFO[2023-10-03T17:35:57.170+00:00] Started. component=local-server/JSON INFO[2023-10-03T17:35:57.176+00:00] Connected to monitoring-service:443. component=client INFO[2023-10-03T17:35:57.176+00:00] Establishing two-way communication channel ... component=client INFO[2023-10-03T17:35:57.182+00:00] Two-way communication channel established in 6.244631ms. Estimated clock drift: 1.965344ms. component=client INFO[2023-10-03T17:35:58.323+00:00] Starting 3, restarting 0, and stopping 0 agent processes. component=supervisor ERRO[2023-10-03T17:35:58.323+00:00] Failed to start Agent: mkdir /usr/local/percona/pmm2/tmp: permission denied. component=supervisor ERRO[2023-10-03T17:35:58.324+00:00] Failed to start Agent: mkdir /usr/local/percona/pmm2/tmp: permission denied. component=supervisor ERRO[2023-10-03T17:35:58.324+00:00] Failed to start Agent: mkdir /usr/local/percona/pmm2/tmp: permission denied. component=supervisor INFO[2023-10-03T17:35:58.324+00:00] Starting 1, restarting 0, and stopping 0 built-in agents. component=supervisor ERRO[2023-10-03T17:35:58.324+00:00] Failed to start Agent: mkdir /usr/local/percona/pmm2/tmp: permission denied. component=supervisor

The solution will be to set "PMM_AGENT_PATHS_TEMPDIR" to "/tmp" like it was used before.
It was done for PSMDB here: https://github.com/percona/percona-server-mongodb-operator/pull/1350

Environment

None

Activity

Done

Details

Assignee

Reporter

Found by Automation

Yes

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist

Created December 5, 2023 at 5:02 PM
Updated March 5, 2024 at 3:41 PM
Resolved December 11, 2023 at 5:24 PM

Flag notifications