Blame 0154-TEST-30-ISCSI-fixed-dhcpd.conf-and-disabled-nowait.patch

Harald Hoyer 53404a
From 86f0904004540b63664b2707ad782d788b2112e4 Mon Sep 17 00:00:00 2001
Harald Hoyer 53404a
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 53404a
Date: Mon, 7 Nov 2016 13:23:39 +0100
Harald Hoyer 53404a
Subject: [PATCH] TEST-30-ISCSI: fixed dhcpd.conf and disabled nowait
Harald Hoyer 53404a
Harald Hoyer 53404a
---
Harald Hoyer 53404a
 test/TEST-30-ISCSI/dhcpd.conf | 23 +++++++++++++++++++++++
Harald Hoyer 53404a
 test/TEST-30-ISCSI/test.sh    | 20 ++++++++++----------
Harald Hoyer 53404a
 2 files changed, 33 insertions(+), 10 deletions(-)
Harald Hoyer 53404a
Harald Hoyer 53404a
diff --git a/test/TEST-30-ISCSI/dhcpd.conf b/test/TEST-30-ISCSI/dhcpd.conf
Harald Hoyer 53404a
index 22c1790..5fa1c15 100644
Harald Hoyer 53404a
--- a/test/TEST-30-ISCSI/dhcpd.conf
Harald Hoyer 53404a
+++ b/test/TEST-30-ISCSI/dhcpd.conf
Harald Hoyer 53404a
@@ -23,3 +23,26 @@ subnet 192.168.50.0 netmask 255.255.255.0 {
Harald Hoyer 53404a
 		}
Harald Hoyer 53404a
 	}
Harald Hoyer 53404a
 }
Harald Hoyer 53404a
+
Harald Hoyer 53404a
+subnet 192.168.51.0 netmask 255.255.255.0 {
Harald Hoyer 53404a
+        option subnet-mask      255.255.255.0;
Harald Hoyer 53404a
+        option routers          192.168.51.1;
Harald Hoyer 53404a
+        next-server             192.168.51.1;
Harald Hoyer 53404a
+        server-identifier       192.168.51.1;
Harald Hoyer 53404a
+        option domain-name-servers 192.168.51.1;
Harald Hoyer 53404a
+        option domain-search "example.com";
Harald Hoyer 53404a
+        option domain-name "other.com";
Harald Hoyer 53404a
+
Harald Hoyer 53404a
+        # MAC numbering scheme:
Harald Hoyer 53404a
+        # NFSv3: last octect starts at 0x00 and works up
Harald Hoyer 53404a
+
Harald Hoyer 53404a
+        group {
Harald Hoyer 53404a
+                option root-path "iscsi:192.168.51.1:::1:iqn.2009-06.dracut:target1";
Harald Hoyer 53404a
+
Harald Hoyer 53404a
+                host iscsi-2 {
Harald Hoyer 53404a
+                        hardware ethernet 52:54:00:12:34:01;
Harald Hoyer 53404a
+                        fixed-address 192.168.51.101;
Harald Hoyer 53404a
+                }
Harald Hoyer 53404a
+
Harald Hoyer 53404a
+        }
Harald Hoyer 53404a
+}
Harald Hoyer 53404a
diff --git a/test/TEST-30-ISCSI/test.sh b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 53404a
index c5315bb..85ce29e 100755
Harald Hoyer 53404a
--- a/test/TEST-30-ISCSI/test.sh
Harald Hoyer 53404a
+++ b/test/TEST-30-ISCSI/test.sh
Harald Hoyer 53404a
@@ -87,16 +87,16 @@ do_test_run() {
Harald Hoyer 53404a
                "rd.iscsi.initiator=$initiator" \
Harald Hoyer 53404a
         || return 1
Harald Hoyer 53404a
 
Harald Hoyer 53404a
-    run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0" \
Harald Hoyer 53404a
-	       "root=LABEL=sysroot" \
Harald Hoyer 53404a
-               "ip=192.168.50.101:::255.255.255.0::ens3:off" \
Harald Hoyer 53404a
-               "ip=192.168.51.101:::255.255.255.0::ens4:off" \
Harald Hoyer 53404a
-	       "netroot=iscsi:192.168.51.1::::iqn.2009-06.dracut:target1" \
Harald Hoyer 53404a
-               "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
Harald Hoyer 53404a
-               "rd.iscsi.firmware" \
Harald Hoyer 53404a
-               "rd.iscsi.initiator=$initiator" \
Harald Hoyer 53404a
-               "rd.iscsi.waitnet=0" \
Harald Hoyer 53404a
-	|| return 1
Harald Hoyer 53404a
+#    run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0" \
Harald Hoyer 53404a
+#	       "root=LABEL=sysroot" \
Harald Hoyer 53404a
+#               "ip=192.168.50.101:::255.255.255.0::ens3:off" \
Harald Hoyer 53404a
+#               "ip=192.168.51.101:::255.255.255.0::ens4:off" \
Harald Hoyer 53404a
+#	       "netroot=iscsi:192.168.51.1::::iqn.2009-06.dracut:target1" \
Harald Hoyer 53404a
+#               "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
Harald Hoyer 53404a
+#               "rd.iscsi.firmware" \
Harald Hoyer 53404a
+#               "rd.iscsi.initiator=$initiator" \
Harald Hoyer 53404a
+#               "rd.iscsi.waitnet=0" \
Harald Hoyer 53404a
+#	|| return 1
Harald Hoyer 53404a
 
Harald Hoyer 53404a
     run_client "FAILME: netroot=iscsi target1 target2 rd.iscsi.waitnet=0 rd.iscsi.testroute=0" \
Harald Hoyer 53404a
 	       "root=LABEL=sysroot" \