-
Notifications
You must be signed in to change notification settings - Fork 169
lvmd: support lvm-command-prefix option in lvmd.conf #1045
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
Conversation
daac12f
to
ed7d6e9
Compare
87b25c3
to
e1efbb3
Compare
446f42b
to
a728203
Compare
a7b8f04
to
52e432b
Compare
8af1676
to
ed1cc96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the change from what I said before.
I think it would be better to deprecate lvm-path
in lvmd command option and create a new option to specify the whole prefix + lvm-path
in lvmd.conf
.
baefd35
to
7201212
Compare
7201212
to
b04458a
Compare
Implemented in the following commits:
|
In DaemonSet mode, LVMd currently executes every LVM command through /usr/bin/nsenter with hard-coded arguments. This prevents users from: - Changing the path to nsenter or its options - Wrapping the command in a logging program or other tool - Running LVM commands without nsenter (though this is risky) This commint introduces the lvm-command-prefix option in lvmd.conf to provide that flexibility. The value is a list of strings that will be prepended to every command invocation. For example, if it is set to X, LV creation will be invoked as `X /sbin/lvm lvcreate ...`. The default value of this option is equivalent to `/usr/bin/nsenter -m -u -i -n -p -t 1`, so the current behaviour will not break by default. Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
This commit adds the `lvmd.additionalLVMDYamlContent` key to values.yaml, enabling users to append extra settings to the generated lvmd.yaml file. Please note that this option is different from `lvmd.additionalConfigs`, which creates a separate lvmd.yaml ConfigMap instead of modifying the existing one. Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
We have two options to adapt LVM command invocation i.e., --lvm-path option and lvm-command-prefix setting. The lvm-command-prefix setting is more general than --lvm-path, so the --lvm-path option is not necessary anymore. This commit deprecates the option. Users should use lvm-command-prefix instead. Signed-off-by: Ryotaro Banno <ryotaro.banno@gmail.com>
b04458a
to
6f8f7f8
Compare
I'll merge this PR because there's no code change after the reviewers approved it: |
Fix #1042.
In DaemonSet mode, LVMd currently executes every LVM command through
/usr/bin/nsenter with hard-coded arguments. This prevents users from:
This commint introduces the lvm-command-prefix option in lvmd.conf to
provide that flexibility. The value is a list of strings that will be
prepended to every command invocation. For example, if it is set to X,
LV creation will be invoked as
X /sbin/lvm lvcreate ...
.The default value of this option is equivalent to
/usr/bin/nsenter -m -u -i -n -p -t 1
, so the current behaviour will not break bydefault.