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