-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd: allow for injecting extra env. variables via ConfigMap
This patch brings a mechanism to define arbitrary environment variables in OSD containers (both prepare and main ones). It bases on idea proposed by Sebastien Han to use an optional `ConfigMap` instance named `aook-ceph-daemon-env-override` as the source of these settings. The need for the patch comes from the fact that, although crimson finally exposes the same CLI interface as the classical OSD, the broadly used development builds have ASan built in. As ASan, by default, complains if it isn't the very first loaded DSO, we need a way to set the `ASAN_OPTIONS` environment variable to `verify_asan_link_order=0` to mitigate the early aborts. Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
- Loading branch information
1 parent
8fd1f1a
commit 17ca41f
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ############################################################################################################### | ||
# The `rook-ceph-osd-env-override` ConfigMap is a development feature | ||
# that allows to inject arbitrary environment variables to OSD-related | ||
# containers created by the operator. | ||
# ############################################################################################################### | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: rook-ceph-osd-env-override | ||
namespace: rook-ceph | ||
data: | ||
# Bypass the ASan's assertion that it is the very first loaded DSO. | ||
# This is necessary for crimson-osd as it's currently built with | ||
# the ASan sanitizer turned on which means the `libasan.so` must | ||
# the be the very first loaded dynamic library. Unfortunately, this | ||
# isn't fulfilled as the containers use `ld.preload`, so ASan was | ||
# aborting the entire OSD. | ||
ASAN_OPTIONS: verify_asan_link_order=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters