From 76d6f52bd4b7388708e0e8b8db3c752c0b6c5972 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 25 Sep 2024 09:53:35 +0200 Subject: [PATCH] qa/tasks/ceph_iscsi_client: don't use mpathconf ... since it's not available on Ubuntu. In this case mpathconf just sets a couple of default values and defines an empty blacklist section, so it's easy enough to replicate. Signed-off-by: Ilya Dryomov (cherry picked from commit 9022ef19a58155620b3626080ea58b3c60b6fa36) --- qa/tasks/ceph_iscsi_client.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qa/tasks/ceph_iscsi_client.py b/qa/tasks/ceph_iscsi_client.py index 189b7fa31fe..0b0a355f925 100644 --- a/qa/tasks/ceph_iscsi_client.py +++ b/qa/tasks/ceph_iscsi_client.py @@ -31,8 +31,15 @@ def task(ctx, config): remote.run(args=['sudo', 'systemctl', 'restart', 'iscsid']) remote.run(args=['sudo', 'modprobe', 'dm_multipath']) - remote.run(args=['sudo', 'mpathconf', '--enable']) conf = dedent(''' + defaults { + user_friendly_names yes + find_multipaths yes + } + + blacklist { + } + devices { device { vendor "LIO-ORG" @@ -50,7 +57,7 @@ def task(ctx, config): } ''') path = "/etc/multipath.conf" - remote.sudo_write_file(path, conf, append=True) + remote.sudo_write_file(path, conf) remote.run(args=['sudo', 'systemctl', 'start', 'multipathd']) yield -- 2.39.5