From 22610b42dea26f17d9be3f5bd23fed0f32436932 Mon Sep 17 00:00:00 2001 From: Mike Christie Date: Fri, 19 Feb 2010 19:19:22 -0600 Subject: iscsi tools: use open-isns services This replaces the native isns code with open-isns's libisns. I included the open-isns code in the open-iscsi tarball to make distribution easier since some distros use different isns clients and may not want to carry open-isns. This is based on open-isns commit 5e09f36d3446e41de0b8361601ffec4cd140d513. Changes in iSNS behavior/use: - To do discovery you must pass the ip and optionally the port to iscsiadm: iscsiadm -m discovery -t st -p 10.15.0.9 This command accepts the same ops as sendtargets so you can add/remove/update the node records that are created. It also supports ifaces properly now. - isns.address and isns.port in iscsid.conf are no longer used. - ESI is temporarily not supported. This will be fixed in the next patch when SCNs support is added. - The iscsiadm isns discovery command is not marked as stable. Signed-off-by: Mike Christie --- .../tests/data/test02/15-dd-deregistration | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 utils/open-isns/tests/data/test02/15-dd-deregistration (limited to 'utils/open-isns/tests/data/test02/15-dd-deregistration') diff --git a/utils/open-isns/tests/data/test02/15-dd-deregistration b/utils/open-isns/tests/data/test02/15-dd-deregistration new file mode 100644 index 0000000..d9b420f --- /dev/null +++ b/utils/open-isns/tests/data/test02/15-dd-deregistration @@ -0,0 +1,76 @@ +Dumping database contents +Backend: /tmp/isns-test/test02/server0/database +Last EID: 1 +Last Index: 15 +-------------- +Object: index=1 type= state=mature PRIVATE + 0001 string : Entity identifier = "CONTROL" + 0007 uint32 : Entity index = 1 +-------------- +Object: index=2 type= state=mature parent=1 PRIVATE + 0601v string : Security Policy Index = "client1.isns-test.eu" + 0607v string : Policy allowed node name = "isns.client1" + 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01... +-------------- +Object: index=3 type= state=mature parent=1 PRIVATE + 0020 string : iSCSI name = "isns.control" + 0021 uint32 : iSCSI node type = + 0024 uint32 : iSCSI node index = 3 +-------------- +Object: index=4 type= state=mature parent=1 PRIVATE + 0601v string : Security Policy Index = "client2.isns-test.eu" + 0607v string : Policy allowed node name = "isns.client2" + 0603v opaque : DSA security key = <30 82 01 b6 30 82 01 2b 06 07 2a 86 48 ce 38 04 01 30 82 01... + 0608v uint32 : Policy allowed node type = Target +-------------- +Object: index=5 type= state=mature + 0001 string : Entity identifier = "client1.isns-test.eu" + 0002 uint32 : Entity protocol = iSCSI (2) + 0006 uint32 : Registration Period = 7200 + 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007 + 0007 uint32 : Entity index = 5 +-------------- +Object: index=6 type= state=mature parent=5 + 0020 string : iSCSI name = "isns.client1" + 0021 uint32 : iSCSI node type = Initiator + 0024 uint32 : iSCSI node index = 6 +-------------- +Object: index=7 type= state=mature parent=5 + 0010 ipaddr : Portal IP address = 127.1.0.1 + 0011 uint32 : Portal TCP/UDP port = 860/tcp + 0016 uint32 : Portal index = 7 +-------------- +Object: index=8 type= state=mature parent=5 + 0030 string : Portal group name = "isns.client1" + 0031 ipaddr : Portal group address = 127.1.0.1 + 0032 uint32 : Portal group port = 860/tcp + 0033 uint32 : Portal group tag = 1 + 0034 uint32 : Portal group index = 8 +-------------- +Object: index=9 type= state=mature + 0001 string : Entity identifier = "client2.isns-test.eu" + 0002 uint32 : Entity protocol = iSCSI (2) + 0006 uint32 : Registration Period = 7200 + 0004 uint64 : Timestamp = Fri Sep 14 13:24:04 2007 + 0007 uint32 : Entity index = 9 +-------------- +Object: index=10 type= state=mature parent=9 + 0020 string : iSCSI name = "isns.client2" + 0021 uint32 : iSCSI node type = Target + 0024 uint32 : iSCSI node index = 10 +-------------- +Object: index=11 type= state=mature parent=9 + 0010 ipaddr : Portal IP address = 127.1.0.2 + 0011 uint32 : Portal TCP/UDP port = 3260/tcp + 0016 uint32 : Portal index = 11 +-------------- +Object: index=12 type= state=mature parent=9 + 0030 string : Portal group name = "isns.client2" + 0031 ipaddr : Portal group address = 127.1.0.2 + 0032 uint32 : Portal group port = 3260/tcp + 0033 uint32 : Portal group tag = 1 + 0034 uint32 : Portal group index = 12 +-------------- +Object: index=14 type= state=limbo + 0020 string : iSCSI name = "iqn.com.foobar:disk1" + 0024 uint32 : iSCSI node index = 14 -- cgit v1.2.1