]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-30-ISCSI: fixed dhcpd.conf and disabled nowait
authorHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 12:23:39 +0000 (13:23 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 7 Nov 2016 12:23:39 +0000 (13:23 +0100)
test/TEST-30-ISCSI/dhcpd.conf
test/TEST-30-ISCSI/test.sh

index 22c1790739bcbe563b4f4b7a835d5ace106a3e8c..5fa1c15062aa731ca3405a6a60befa8f8f593234 100644 (file)
@@ -23,3 +23,26 @@ subnet 192.168.50.0 netmask 255.255.255.0 {
                }
        }
 }
+
+subnet 192.168.51.0 netmask 255.255.255.0 {
+        option subnet-mask      255.255.255.0;
+        option routers          192.168.51.1;
+        next-server             192.168.51.1;
+        server-identifier       192.168.51.1;
+        option domain-name-servers 192.168.51.1;
+        option domain-search "example.com";
+        option domain-name "other.com";
+
+        # MAC numbering scheme:
+        # NFSv3: last octect starts at 0x00 and works up
+
+        group {
+                option root-path "iscsi:192.168.51.1:::1:iqn.2009-06.dracut:target1";
+
+                host iscsi-2 {
+                        hardware ethernet 52:54:00:12:34:01;
+                        fixed-address 192.168.51.101;
+                }
+
+        }
+}
index c5315bb6473dbd6a2fdad20db29dab9fe33c802d..85ce29e86cd6c7c91a4ad166ba13777942ec1840 100755 (executable)
@@ -87,16 +87,16 @@ do_test_run() {
                "rd.iscsi.initiator=$initiator" \
         || return 1
 
-    run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0" \
-              "root=LABEL=sysroot" \
-               "ip=192.168.50.101:::255.255.255.0::ens3:off" \
-               "ip=192.168.51.101:::255.255.255.0::ens4:off" \
-              "netroot=iscsi:192.168.51.1::::iqn.2009-06.dracut:target1" \
-               "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
-               "rd.iscsi.firmware" \
-               "rd.iscsi.initiator=$initiator" \
-               "rd.iscsi.waitnet=0" \
-       || return 1
+#    run_client "netroot=iscsi target1 target2 rd.iscsi.waitnet=0" \
+#             "root=LABEL=sysroot" \
+#               "ip=192.168.50.101:::255.255.255.0::ens3:off" \
+#               "ip=192.168.51.101:::255.255.255.0::ens4:off" \
+#             "netroot=iscsi:192.168.51.1::::iqn.2009-06.dracut:target1" \
+#               "netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target2" \
+#               "rd.iscsi.firmware" \
+#               "rd.iscsi.initiator=$initiator" \
+#               "rd.iscsi.waitnet=0" \
+#      || return 1
 
     run_client "FAILME: netroot=iscsi target1 target2 rd.iscsi.waitnet=0 rd.iscsi.testroute=0" \
               "root=LABEL=sysroot" \