Project

General

Profile

Actions

Bug #39139

open

Wrong order of Environment evaluation in systemd unit file

Added by Jacek S. about 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hello

In almost all systemd unit files (like ceph-mgr, ceph-osd...) there is an override for CLUSTER environment entry.
Example (https://github.com/ceph/ceph/blob/mimic/systemd/ceph-mgr@.service.in)

EnvironmentFile=-@SYSTEMD_ENV_FILE@
Environment=CLUSTER=ceph

So CLUSTER variable is always set to ceph and we are unable to use custom value in any configuration file.
The solution is to swap those two lines

Actions

Also available in: Atom PDF