From 233a6198836d7661b69973bc091491edf82922cc Mon Sep 17 00:00:00 2001 From: Meina Li Date: Fri, 11 Nov 2022 04:47:04 -0500 Subject: [PATCH] iscsi.py: add authentication=1 to set_chap_auth_target function Signed-off-by: Meina Li --- virttest/iscsi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virttest/iscsi.py b/virttest/iscsi.py index e6154a21c1..fce16fa6af 100644 --- a/virttest/iscsi.py +++ b/virttest/iscsi.py @@ -674,10 +674,11 @@ def set_chap_auth_target(self): for all Endpoints in a TPG """ auth_cmd = "targetcli /iscsi/%s/tpg1/ " % self.target - attr_cmd = ("set attribute %s %s %s" % + attr_cmd = ("set attribute %s %s %s %s" % ("demo_mode_write_protect=0", "generate_node_acls=1", - "cache_dynamic_acls=1")) + "cache_dynamic_acls=1", + "authentication=1")) process.system(auth_cmd + attr_cmd) # Set userid