]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/ceph_iscsi_client: don't use mpathconf
authorIlya Dryomov <idryomov@gmail.com>
Wed, 25 Sep 2024 07:53:35 +0000 (09:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 2 Oct 2024 07:32:37 +0000 (09:32 +0200)
... 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 <idryomov@gmail.com>
(cherry picked from commit 9022ef19a58155620b3626080ea58b3c60b6fa36)

qa/tasks/ceph_iscsi_client.py

index 189b7fa31fef81ea875c1e79993bca42021580d3..0b0a355f925f5521752ff9c800c6d89b27250140 100644 (file)
@@ -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