testsuite: fixed network interface names
authorHarald Hoyer <harald@redhat.com>
Thu, 15 Aug 2013 08:25:19 +0000 (10:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 15 Aug 2013 08:25:19 +0000 (10:25 +0200)
test/TEST-10-RAID/test.sh
test/TEST-20-NFS/server-init.sh
test/TEST-20-NFS/test.sh
test/TEST-30-ISCSI/server-init.sh
test/TEST-40-NBD/server-init.sh
test/TEST-50-MULTINIC/server-init.sh

index a2226cd5db5046bab96c967ef68a399f9aba1862..b17e912c7bff4c0bd43c56878f6b8a2e9278e975 100755 (executable)
@@ -82,7 +82,7 @@ test_setup() {
        inst_hook emergency 000 ./hard-off.sh
        inst ./cryptroot-ask.sh /sbin/cryptroot-ask
         mkdir -p $initdir/etc
-        echo "luks-$ID_FS_UUID /dev/md0 /etc/key" > $initdir/etc/crypttab
+        echo "testluks UUID=$ID_FS_UUID /etc/key" > $initdir/etc/crypttab
         #echo "luks-$ID_FS_UUID /dev/md0 none" > $initdir/etc/crypttab
         echo -n "test" > $initdir/etc/key
        inst_simple ./99-idesymlinks.rules /etc/udev/rules.d/99-idesymlinks.rules
index ac07fc20b88fa2fd71c68f1ab520421b075d5f43..b569bba8b4ae75000f0fd9b33b4c15e8f31b14c2 100755 (executable)
@@ -10,10 +10,11 @@ echo "made it to the rootfs!"
 echo server > /proc/sys/kernel/hostname
 ip addr add 127.0.0.1/8 dev lo
 ip link set lo up
-ip addr add 192.168.50.1/24 dev eth0
-ip addr add 192.168.50.2/24 dev eth0
-ip addr add 192.168.50.3/24 dev eth0
-ip link set eth0 up
+ip link set dev eth0 name ens3
+ip addr add 192.168.50.1/24 dev ens3
+ip addr add 192.168.50.2/24 dev ens3
+ip addr add 192.168.50.3/24 dev ens3
+ip link set ens3 up
 echo > /dev/watchdog
 modprobe af_packet
 echo > /dev/watchdog
index bd3cd3f22b53c8fefb3d903f489809f0baaff095..4f21d4512f3b5364f4a6370969e98f220285b96c 100755 (executable)
@@ -8,7 +8,6 @@ KVERSION=${KVERSION-$(uname -r)}
 # Uncomment this to debug failures
 #DEBUGFAIL="rd.shell"
 #SERIAL="tcp:127.0.0.1:9999"
-SERIAL="null"
 
 run_server() {
     # Start server first
@@ -21,7 +20,7 @@ run_server() {
         -display none \
         -net nic,macaddr=52:54:00:12:34:56,model=e1000 \
         -net socket,listen=127.0.0.1:12320 \
-        -serial $SERIAL \
+        -serial ${SERIAL:-null} \
         -watchdog i6300esb -watchdog-action poweroff \
         -kernel /boot/vmlinuz-$KVERSION \
         -append "rd.debug loglevel=77 root=/dev/sda rootfstype=ext3 rw console=ttyS0,115200n81 selinux=0" \
@@ -152,7 +151,7 @@ test_nfsv3() {
         52:54:00:12:34:05 "root=dhcp" 192.168.50.1 wsize=4096 || return 1
 
     client_test "NFSv3 Bridge Customized root=dhcp DHCP path,options" \
-        52:54:00:12:34:05 "root=dhcp bridge=foobr0:eth0" 192.168.50.1 wsize=4096 || return 1
+        52:54:00:12:34:05 "root=dhcp bridge=foobr0:ens3" 192.168.50.1 wsize=4096 || return 1
 
     client_test "NFSv3 root=dhcp DHCP IP:path,options" \
         52:54:00:12:34:06 "root=dhcp" 192.168.50.2 wsize=4096 || return 1
index 091f4ee80afc2d37d9f83deadb395fe2f034b636..4bdd5e3c15579066666bbf4f40747363bcb5d32d 100755 (executable)
@@ -9,8 +9,9 @@ echo "made it to the rootfs!"
 echo server > /proc/sys/kernel/hostname
 ip addr add 127.0.0.1/8 dev lo
 ip link set lo up
-ip addr add 192.168.50.1/24 dev eth0
-ip link set eth0 up
+ip link set dev eth0 name ens3
+ip addr add 192.168.50.1/24 dev ens3
+ip link set ens3 up
 >/var/lib/dhcpd/dhcpd.leases
 chmod 777 /var/lib/dhcpd/dhcpd.leases
 dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases
index 5e8d56e87128c27d1000c72495fd59ec2ac190c6..56012d21505d76ec6d65b8e48b916c85a8ef06db 100755 (executable)
@@ -9,8 +9,9 @@ echo "made it to the rootfs!"
 echo server > /proc/sys/kernel/hostname
 ip addr add 127.0.0.1/8 dev lo
 ip link set lo up
-ip addr add 192.168.50.1/24 dev eth0
-ip link set eth0 up
+ip link set dev eth0 name ens3
+ip addr add 192.168.50.1/24 dev ens3
+ip link set ens3 up
 modprobe af_packet
 nbd-server 2000 /dev/sdb -C /dev/null
 nbd-server 2001 /dev/sdc -C /dev/null
index 5a8359bd701fcf59b6e9b11eba80d6795c2907f4..88ef2128e587287c6447e194eff679023f52a39a 100755 (executable)
@@ -52,8 +52,9 @@ linkup() {
 >/dev/watchdog
 ip addr add 127.0.0.1/8 dev lo
 linkup lo
-ip addr add 192.168.50.1/24 dev eth0
-linkup eth0
+ip link set dev eth0 name ens3
+ip addr add 192.168.50.1/24 dev ens3
+linkup ens3
 >/dev/watchdog
 modprobe af_packet
 > /dev/watchdog
@@ -86,7 +87,7 @@ chmod 777 /var/lib/dhcpd/dhcpd.leases
 dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases
 #echo -n 'V' > /dev/watchdog
 #sh -i
-#tcpdump -i eth0
+#tcpdump -i ens3
 # Wait forever for the VM to die
 echo "Serving NFS mounts"
 while :; do