ceph-csi/internal
Niels de Vos 14ba1498bf util: reduce systemd related errors while mounting
There are regular reports that identify a non-error as the cause of
failures. The Kubernetes mount-utils package has detection for systemd
based environments, and if systemd is unavailable, the following error
is logged:

    Cannot run systemd-run, assuming non-systemd OS
    systemd-run output: System has not been booted with systemd as init
    system (PID 1). Can't operate.
    Failed to create bus connection: Host is down, failed with: exit status 1

Because of the `failed` and `exit status 1` error message, users might
assume that the mounting failed. This does not need to be the case. The
container-images that the Ceph-CSI projects provides, do not use
systemd, so the error will get logged with each mount attempt.

By using the newer MountSensitiveWithoutSystemd() function from the
mount-utils package where we can, the number of confusing logs get
reduced.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
2022-07-04 10:02:54 +00:00
..
cephfs cephfs: report detailed error message on clone failure 2022-06-30 19:33:41 +00:00
controller cleanup: ReconcilePersistentVolume consider passing it by pointer 2022-06-28 19:12:53 +00:00
csi-addons ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
csi-common ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
journal cephfs: added support for snapshot-backed volumes 2022-06-16 09:44:27 +00:00
kms rbd: create token and use it for vault SA 2022-06-17 11:37:59 +00:00
liveness cleanup: move log functions to new internal/util/log package 2021-08-26 09:34:05 +00:00
nfs ci: fix all linter errors found in golangci-lint 2022-06-03 12:55:54 +00:00
rbd util: reduce systemd related errors while mounting 2022-07-04 10:02:54 +00:00
util util: reduce systemd related errors while mounting 2022-07-04 10:02:54 +00:00