From mboxrd@z Thu Jan 1 00:00:00 1970 From: pradeep Subject: Re: [PATCH 16/18] KVM test: Improve vlan subtest Date: Thu, 30 Sep 2010 12:29:40 +0530 Message-ID: <20100930122940.45f80e5f@skywalker> References: <1285627444-2732-1-git-send-email-lmr@redhat.com> <1285627444-2732-17-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: autotest@test.kernel.org, kvm@vger.kernel.org, mst@redhat.com, akong@redhat.com, jasowang@redhat.com, mgoldish@redhat.com To: Lucas Meneghel Rodrigues Return-path: Received: from e6.ny.us.ibm.com ([32.97.182.146]:60736 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754483Ab0I3G7t (ORCPT ); Thu, 30 Sep 2010 02:59:49 -0400 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by e6.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o8U702JL001647 for ; Thu, 30 Sep 2010 03:00:02 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o8U6xmoM151872 for ; Thu, 30 Sep 2010 02:59:48 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o8U6xlLO016704 for ; Thu, 30 Sep 2010 03:59:48 -0300 In-Reply-To: <1285627444-2732-17-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 27 Sep 2010 18:44:02 -0400 Lucas Meneghel Rodrigues wrote: > From: Amos Kong > > This is an enhancement of existed vlan test. Rename the vlan_tag.py > to vlan.py, it is more reasonable. > . Setup arp from "/proc/sys/net/ipv4/conf/all/arp_ignore" > . Multiple vlans exist simultaneously > . Test ping between same and different vlans > . Test by TCP data transfer, floop ping between same vlan > . Maximal plumb/unplumb vlans > > + > + vm.append(kvm_test_utils.get_living_vm(env, > params.get("main_vm"))) > + vm.append(kvm_test_utils.get_living_vm(env, "vm2")) > + > + def add_vlan(session, id, iface="eth0"): > + if session.get_command_status("vconfig add %s %s" % (iface, > id)) != 0: > + raise error.TestError("Fail to add %s.%s" % (iface, id)) HI Lucas I got below error with my guests. With (2.6.32-71 kernel) guest 21:17:23 DEBUG| Sending command: vconfig add eth0 1 21:17:23 DEBUG| Command failed; status: 3, output: ERROR: trying to add VLAN #1 to IF -:eth0:- error: No such device 21:17:25 ERROR| Test failed: TestError: Fail to add eth0.1 > - subnet = 192.168.123 > - vlans = "10 20" > + subnet = "192.168" My guest has got DHCP ip as 10.168*. With RHEL 5.5 guest 02:30:39 DEBUG| PING 192.168.1.2 (192.168.1.2) from 192.168.1.1 eth0.1: 56(84) bytes of data. 02:30:42 DEBUG| From 192.168.1.1 icmp_seq=1 Destination Host Unreachable 02:30:42 DEBUG| From 192.168.1.1 icmp_seq=2 Destination Host Unreachable 02:30:45 INFO | rem eth0.5 02:30:45 ERROR| Test failed: TestFail: eth0.1 ping 192.168.1.2 unexpected 02:30:45 DEBUG| Postprocessing VM 'vm1'...