Whamcloud - gitweb
LU-16134 utils: adds lctl apply_yaml 19/48419/5
authorAlexander Boyko <alexander.boyko@hpe.com>
Fri, 2 Sep 2022 08:41:32 +0000 (04:41 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 28 Sep 2023 07:59:44 +0000 (07:59 +0000)
commit29cfdc2f1e7a17be7605338cd5d12abd0314fbe5
tree8209ecb0de3a816bb09c32005c04a2e03bbdce89
parenta2e997f0bed0ae4cfdcf6d73f8a79e3d23d28a2f
LU-16134 utils: adds lctl apply_yaml

Commnad set_param -F is used to parse yaml file with settings,
and makes set_param -P for it. Many type of settings are based
on a specific device and have conf_param type. When such settings
goes to set_param -P, all nodes tries to apply it and many errors
happen.
systemd-udevd[568906]: Process '/usr/sbin/lctl set_param
'osp.kjcf04-OST0003-osc-MDT0000.resend_count=43''
failed with exit code 2.

The patch adds functionality for conf_param event of YAML file,
and introduces lctl apply_yaml for both types of event.
YAML example
- {device: testfs-MDT0001, event: conf_param, index: 76, parameter:
   lod.qos_threshold_rr=100}
- { index: 17, event: set_param, device: general,
    parameter: jobid_var, value: procname_uid }

Test-Parameters: trivial
HPE-bug-id: LUS-11116
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: Iec3b1f14b9ddb85ef3e110bbc4467d0d6c80c136
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48419
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/tests/conf-sanity.sh
lustre/utils/lctl.c
lustre/utils/lustre_cfg.c
lustre/utils/obdctl.h