summaryrefslogtreecommitdiffstats
path: root/qa/tasks/ceph_iscsi_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/ceph_iscsi_client.py')
-rw-r--r--qa/tasks/ceph_iscsi_client.py11
1 files 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