55fc26
From 76168cd9244fc47193760a0401bf42f1a8b06db6 Mon Sep 17 00:00:00 2001
55fc26
From: Iain Lane <iainl@gnome.org>
55fc26
Date: Thu, 19 Apr 2018 12:41:27 +0100
55fc26
Subject: [PATCH 1/2] tests: Pass absolute path to targetcli_config.json
55fc26
55fc26
If the integration tests are run from a different directory, we will
55fc26
fail to find targetcli_config.json with an error like
55fc26
55fc26
Related: rhbz#1511986
55fc26
---
55fc26
 src/tests/integration-test | 5 ++++-
55fc26
 1 file changed, 4 insertions(+), 1 deletion(-)
55fc26
55fc26
diff --git a/src/tests/integration-test b/src/tests/integration-test
55fc26
index f863578..bca5239 100755
55fc26
--- a/src/tests/integration-test
55fc26
+++ b/src/tests/integration-test
55fc26
@@ -1649,9 +1649,12 @@ def setup_lio():
55fc26
                  re.match(r'sd[a-z]+$', dev)}
55fc26
 
55fc26
     # create fake SCSI hard drives
55fc26
+    our_path = os.path.abspath(__file__)
55fc26
+    our_dir = os.path.dirname(our_path)
55fc26
+    json_path = os.path.join(our_dir, 'dbus-tests', 'targetcli_config.json')
55fc26
     assert subprocess.call(
55fc26
         ["targetcli",
55fc26
-         "restoreconfig dbus-tests/targetcli_config.json"]) == 0
55fc26
+         "restoreconfig %s" % json_path]) == 0
55fc26
     time.sleep(0.1)
55fc26
 
55fc26
     devs = {dev for dev in os.listdir("/dev") if
55fc26
-- 
55fc26
1.8.3.1
55fc26
55fc26
55fc26
From f8fef004a8ce9bc64bea1d89dcce0d7465e583ed Mon Sep 17 00:00:00 2001
55fc26
From: Vojtech Trefny <vtrefny@redhat.com>
55fc26
Date: Fri, 22 Jun 2018 12:37:17 +0200
55fc26
Subject: [PATCH 2/2] Fix failing MDRAID integration test
55fc26
55fc26
Test is failing because 'targetcli_config.json' is not included
55fc26
in the archive, so we need to add it manually using a patch.
55fc26
55fc26
Resolves: rhbz#1511986
55fc26
---
55fc26
 src/tests/integration-test      |   2 +-
55fc26
 src/tests/targetcli_config.json | 558 ++++++++++++++++++++++++++++++++++++++++
55fc26
 2 files changed, 559 insertions(+), 1 deletion(-)
55fc26
 create mode 100644 src/tests/targetcli_config.json
55fc26
55fc26
diff --git a/src/tests/integration-test b/src/tests/integration-test
55fc26
index bca5239..b6b1103 100755
55fc26
--- a/src/tests/integration-test
55fc26
+++ b/src/tests/integration-test
55fc26
@@ -1651,7 +1651,7 @@ def setup_lio():
55fc26
     # create fake SCSI hard drives
55fc26
     our_path = os.path.abspath(__file__)
55fc26
     our_dir = os.path.dirname(our_path)
55fc26
-    json_path = os.path.join(our_dir, 'dbus-tests', 'targetcli_config.json')
55fc26
+    json_path = os.path.join(our_dir, 'targetcli_config.json')
55fc26
     assert subprocess.call(
55fc26
         ["targetcli",
55fc26
          "restoreconfig %s" % json_path]) == 0
55fc26
diff --git a/src/tests/targetcli_config.json b/src/tests/targetcli_config.json
55fc26
new file mode 100644
55fc26
index 0000000..25d506b
55fc26
--- /dev/null
55fc26
+++ b/src/tests/targetcli_config.json
55fc26
@@ -0,0 +1,558 @@
55fc26
+{
55fc26
+  "fabric_modules": [],
55fc26
+  "storage_objects": [
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk4",
55fc26
+      "name": "udisks_test_disk4",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "65541bbc-0ffc-42cb-b639-6ce91a818511"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk3",
55fc26
+      "name": "udisks_test_disk3",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "5282611e-2e74-4019-8ca5-d8ceb09dfa15"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk2",
55fc26
+      "name": "udisks_test_disk2",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "dd927109-b9e7-462c-b95a-ae7878623713"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk1",
55fc26
+      "name": "udisks_test_disk1",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "0604a813-ce79-45fa-a9ff-eaf82188594e"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk_iscsi1",
55fc26
+      "name": "udisks_test_iscsi1",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "ee5473b7-93ce-4002-8141-2ef990f7ba04"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk_iscsi2",
55fc26
+      "name": "udisks_test_iscsi2",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "ee5473b7-93ce-4002-8141-2ef990f7ba04"
55fc26
+    },
55fc26
+    {
55fc26
+      "attributes": {
55fc26
+        "block_size": 512,
55fc26
+        "emulate_3pc": 1,
55fc26
+        "emulate_caw": 1,
55fc26
+        "emulate_fua_write": 1,
55fc26
+        "emulate_model_alias": 1,
55fc26
+        "emulate_rest_reord": 0,
55fc26
+        "emulate_tas": 1,
55fc26
+        "emulate_tpu": 0,
55fc26
+        "emulate_tpws": 0,
55fc26
+        "emulate_ua_intlck_ctrl": 0,
55fc26
+        "emulate_write_cache": 1,
55fc26
+        "enforce_pr_isids": 1,
55fc26
+        "force_pr_aptpl": 0,
55fc26
+        "is_nonrot": 0,
55fc26
+        "max_unmap_block_desc_count": 1,
55fc26
+        "max_unmap_lba_count": 8192,
55fc26
+        "max_write_same_len": 4096,
55fc26
+        "optimal_sectors": 2048,
55fc26
+        "pi_prot_format": 0,
55fc26
+        "pi_prot_type": 0,
55fc26
+        "queue_depth": 128,
55fc26
+        "unmap_granularity": 1,
55fc26
+        "unmap_granularity_alignment": 0
55fc26
+      },
55fc26
+      "dev": "/var/tmp/udisks_test_disk_iscsi3",
55fc26
+      "name": "udisks_test_iscsi3",
55fc26
+      "plugin": "fileio",
55fc26
+      "size": 524288000,
55fc26
+      "write_back": true,
55fc26
+      "wwn": "ee5473b7-93ce-4002-8141-2ef990f7ba04"
55fc26
+    }
55fc26
+  ],
55fc26
+  "targets": [
55fc26
+    {
55fc26
+      "fabric": "loopback",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "ea4c386be4",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_disk4"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [],
55fc26
+          "portals": [],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "naa.50014055ba294ff9"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "loopback",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "7a8a8952a0",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_disk3"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [],
55fc26
+          "portals": [],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "naa.5001405929853f55"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "loopback",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "d0173d579b",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_disk2"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [],
55fc26
+          "portals": [],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "naa.50014054a77f7fa2"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "loopback",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "d4a2f5275c",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_disk1"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [],
55fc26
+          "portals": [],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "naa.5001405cf0711e93"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "iscsi",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+            "authentication": 0,
55fc26
+            "cache_dynamic_acls": 1,
55fc26
+            "default_cmdsn_depth": 64,
55fc26
+            "default_erl": 0,
55fc26
+            "demo_mode_discovery": 1,
55fc26
+            "demo_mode_write_protect": 0,
55fc26
+            "generate_node_acls": 1,
55fc26
+            "login_timeout": 15,
55fc26
+            "netif_timeout": 2,
55fc26
+            "prod_mode_write_protect": 0,
55fc26
+            "t10_pi": 0,
55fc26
+            "tpg_enabled_sendtargets": 1
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "121c69c714",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_iscsi1"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [],
55fc26
+          "parameters": {
55fc26
+            "AuthMethod": "CHAP,None",
55fc26
+            "DataDigest": "CRC32C,None",
55fc26
+            "DataPDUInOrder": "Yes",
55fc26
+            "DataSequenceInOrder": "Yes",
55fc26
+            "DefaultTime2Retain": "20",
55fc26
+            "DefaultTime2Wait": "2",
55fc26
+            "ErrorRecoveryLevel": "0",
55fc26
+            "FirstBurstLength": "65536",
55fc26
+            "HeaderDigest": "CRC32C,None",
55fc26
+            "IFMarkInt": "Reject",
55fc26
+            "IFMarker": "No",
55fc26
+            "ImmediateData": "Yes",
55fc26
+            "InitialR2T": "Yes",
55fc26
+            "MaxBurstLength": "262144",
55fc26
+            "MaxConnections": "1",
55fc26
+            "MaxOutstandingR2T": "1",
55fc26
+            "MaxRecvDataSegmentLength": "8192",
55fc26
+            "MaxXmitDataSegmentLength": "262144",
55fc26
+            "OFMarkInt": "Reject",
55fc26
+            "OFMarker": "No",
55fc26
+            "TargetAlias": "LIO Target"
55fc26
+          },
55fc26
+          "portals": [
55fc26
+            {
55fc26
+              "ip_address": "0.0.0.0",
55fc26
+              "iser": false,
55fc26
+              "port": 3260
55fc26
+            }
55fc26
+          ],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "iqn.2003-01.udisks.test:iscsi-test-noauth"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "iscsi",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+            "authentication": 0,
55fc26
+            "cache_dynamic_acls": 0,
55fc26
+            "default_cmdsn_depth": 64,
55fc26
+            "default_erl": 0,
55fc26
+            "demo_mode_discovery": 1,
55fc26
+            "demo_mode_write_protect": 1,
55fc26
+            "generate_node_acls": 0,
55fc26
+            "login_timeout": 15,
55fc26
+            "netif_timeout": 2,
55fc26
+            "prod_mode_write_protect": 0,
55fc26
+            "t10_pi": 0,
55fc26
+            "tpg_enabled_sendtargets": 1
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "f466bcd8fb",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_iscsi2"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [
55fc26
+            {
55fc26
+              "attributes": {
55fc26
+                "dataout_timeout": 3,
55fc26
+                "dataout_timeout_retries": 5,
55fc26
+                "default_erl": 0,
55fc26
+                "nopin_response_timeout": 30,
55fc26
+                "nopin_timeout": 15,
55fc26
+                "random_datain_pdu_offsets": 0,
55fc26
+                "random_datain_seq_offsets": 0,
55fc26
+                "random_r2t_offsets": 0
55fc26
+              },
55fc26
+              "chap_password": "udisks",
55fc26
+              "chap_userid": "iqn.1994-05.com.redhat:iscsi-test",
55fc26
+              "mapped_luns": [
55fc26
+                {
55fc26
+                  "alias": "2387cf5a50",
55fc26
+                  "index": 0,
55fc26
+                  "tpg_lun": 0,
55fc26
+                  "write_protect": false
55fc26
+                }
55fc26
+              ],
55fc26
+              "node_wwn": "iqn.1994-05.com.redhat:iscsi-test"
55fc26
+            }
55fc26
+          ],
55fc26
+          "parameters": {
55fc26
+            "AuthMethod": "CHAP,None",
55fc26
+            "DataDigest": "CRC32C,None",
55fc26
+            "DataPDUInOrder": "Yes",
55fc26
+            "DataSequenceInOrder": "Yes",
55fc26
+            "DefaultTime2Retain": "20",
55fc26
+            "DefaultTime2Wait": "2",
55fc26
+            "ErrorRecoveryLevel": "0",
55fc26
+            "FirstBurstLength": "65536",
55fc26
+            "HeaderDigest": "CRC32C,None",
55fc26
+            "IFMarkInt": "Reject",
55fc26
+            "IFMarker": "No",
55fc26
+            "ImmediateData": "Yes",
55fc26
+            "InitialR2T": "Yes",
55fc26
+            "MaxBurstLength": "262144",
55fc26
+            "MaxConnections": "1",
55fc26
+            "MaxOutstandingR2T": "1",
55fc26
+            "MaxRecvDataSegmentLength": "8192",
55fc26
+            "MaxXmitDataSegmentLength": "262144",
55fc26
+            "OFMarkInt": "Reject",
55fc26
+            "OFMarker": "No",
55fc26
+            "TargetAlias": "LIO Target"
55fc26
+          },
55fc26
+          "portals": [
55fc26
+            {
55fc26
+              "ip_address": "0.0.0.0",
55fc26
+              "iser": false,
55fc26
+              "port": 3260
55fc26
+            }
55fc26
+          ],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "iqn.2003-01.udisks.test:iscsi-test-chap"
55fc26
+    },
55fc26
+    {
55fc26
+      "fabric": "iscsi",
55fc26
+      "tpgs": [
55fc26
+        {
55fc26
+          "attributes": {
55fc26
+            "authentication": 0,
55fc26
+            "cache_dynamic_acls": 0,
55fc26
+            "default_cmdsn_depth": 64,
55fc26
+            "default_erl": 0,
55fc26
+            "demo_mode_discovery": 1,
55fc26
+            "demo_mode_write_protect": 1,
55fc26
+            "generate_node_acls": 0,
55fc26
+            "login_timeout": 15,
55fc26
+            "netif_timeout": 2,
55fc26
+            "prod_mode_write_protect": 0,
55fc26
+            "t10_pi": 0,
55fc26
+            "tpg_enabled_sendtargets": 1
55fc26
+          },
55fc26
+          "enable": true,
55fc26
+          "luns": [
55fc26
+            {
55fc26
+              "alias": "f466bcd8fb",
55fc26
+              "index": 0,
55fc26
+              "storage_object": "/backstores/fileio/udisks_test_iscsi3"
55fc26
+            }
55fc26
+          ],
55fc26
+          "node_acls": [
55fc26
+            {
55fc26
+              "attributes": {
55fc26
+                "dataout_timeout": 3,
55fc26
+                "dataout_timeout_retries": 5,
55fc26
+                "default_erl": 0,
55fc26
+                "nopin_response_timeout": 30,
55fc26
+                "nopin_timeout": 15,
55fc26
+                "random_datain_pdu_offsets": 0,
55fc26
+                "random_datain_seq_offsets": 0,
55fc26
+                "random_r2t_offsets": 0
55fc26
+              },
55fc26
+              "chap_password": "udisks",
55fc26
+              "chap_userid": "iqn.1994-05.com.redhat:iscsi-test",
55fc26
+              "chap_mutual_password": "udisks-mutual",
55fc26
+              "chap_mutual_userid": "iqn.2003-01.udisks.test:iscsi-test-mutual",
55fc26
+              "mapped_luns": [
55fc26
+                {
55fc26
+                  "alias": "2387cf5a50",
55fc26
+                  "index": 0,
55fc26
+                  "tpg_lun": 0,
55fc26
+                  "write_protect": false
55fc26
+                }
55fc26
+              ],
55fc26
+              "node_wwn": "iqn.1994-05.com.redhat:iscsi-test"
55fc26
+            }
55fc26
+          ],
55fc26
+          "parameters": {
55fc26
+            "AuthMethod": "CHAP,None",
55fc26
+            "DataDigest": "CRC32C,None",
55fc26
+            "DataPDUInOrder": "Yes",
55fc26
+            "DataSequenceInOrder": "Yes",
55fc26
+            "DefaultTime2Retain": "20",
55fc26
+            "DefaultTime2Wait": "2",
55fc26
+            "ErrorRecoveryLevel": "0",
55fc26
+            "FirstBurstLength": "65536",
55fc26
+            "HeaderDigest": "CRC32C,None",
55fc26
+            "IFMarkInt": "Reject",
55fc26
+            "IFMarker": "No",
55fc26
+            "ImmediateData": "Yes",
55fc26
+            "InitialR2T": "Yes",
55fc26
+            "MaxBurstLength": "262144",
55fc26
+            "MaxConnections": "1",
55fc26
+            "MaxOutstandingR2T": "1",
55fc26
+            "MaxRecvDataSegmentLength": "8192",
55fc26
+            "MaxXmitDataSegmentLength": "262144",
55fc26
+            "OFMarkInt": "Reject",
55fc26
+            "OFMarker": "No",
55fc26
+            "TargetAlias": "LIO Target"
55fc26
+          },
55fc26
+          "portals": [
55fc26
+            {
55fc26
+              "ip_address": "0.0.0.0",
55fc26
+              "iser": false,
55fc26
+              "port": 3260
55fc26
+            }
55fc26
+          ],
55fc26
+          "tag": 1
55fc26
+        }
55fc26
+      ],
55fc26
+      "wwn": "iqn.2003-01.udisks.test:iscsi-test-mutual"
55fc26
+    }
55fc26
+  ]
55fc26
+}
55fc26
-- 
55fc26
1.8.3.1
55fc26