From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0045.outbound.protection.outlook.com [104.47.40.45]) by dpdk.org (Postfix) with ESMTP id 967663772 for ; Wed, 29 Aug 2018 15:06:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iBagNv0vHjXAVio1l865GI1G5+f9h8sMWr913rPFEjo=; b=jTHCwy45iAXbpJD2/9vhtxQ192HW1EHBvwLuD/N3Tt6kvSHNVB4JtGKFhnainWt+KVWkjKhDsuZRphDph1/TPauzAyVLHoDdhSA9jFJ0ZXgRbWxgEvNcIzoha8OJfw4Is5ntg/9NQBow6x2OJWauerMNKDYVB8bfTOnTBgbjd5s= Received: from BYAPR07MB5141.namprd07.prod.outlook.com (20.176.254.206) by BYAPR07MB5014.namprd07.prod.outlook.com (52.135.238.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.14; Wed, 29 Aug 2018 13:06:09 +0000 Received: from BYAPR07MB5141.namprd07.prod.outlook.com ([fe80::74f3:8d55:b397:2a]) by BYAPR07MB5141.namprd07.prod.outlook.com ([fe80::74f3:8d55:b397:2a%4]) with mapi id 15.20.1080.015; Wed, 29 Aug 2018 13:06:09 +0000 From: "Sharma, Yash" To: "dts@dpdk.org" , "yong.liu@intel.com" Thread-Topic: DUT port map is showing port index as -1 Thread-Index: AdQ/mCfGTl/7q2cnSZqWjWanHWDVsw== Date: Wed, 29 Aug 2018 13:06:09 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Yash.Sharma@cavium.com; x-originating-ip: [114.143.185.87] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB5014; 6:JxddC4996B91t1S8UUWPjGNuRJs0UY2Zn8eq4e4KLhXxw3QPZmdK2fmOAt0u5PDWxft5CuHfu8tm9C/KlfxRzONZ30j/V+PxhY5afw2h8MGs0ptcvfqaBkQ/wHYffw4nvon5pA2GX8sunUC1Y7+qOzkvPCuwVemYxZHuXTn/oFmgZ6bKGFiLiaJRhN+/PU5dmrQvqOY6+vaTezzewoWTqtxwxatpHbPRWRZMYvNsmtZ3sQmlZPQzSndie9D9zNFcyWql0FecxxIGmhqiGP2YJGGt/52kfO4S97UQb3WIvS5EaT+1X21DzHppBZjWf+feSUeBR04ogvkEmCA0AltBhanHiWRG3lUb+GT7jGb0VC69qWICHRkYWcDRF8WDpo0pzeC5WJsX8oMh6sCjz3PF3czyBNLmXulgr/mwVC1pKypLikpUAczgkwX+eXHj5Z3qmavOB1fv7lr9joD3AE56/g==; 5:3xlyHFSEkMklhB9QklA7tS46hnaX+ryzh7ZpJaHZpgd/FH7u9RjycF9/Ai+F7hILMtahLYg7JsyH7wVkSwXiIJ/zTQFoNsqQBILCVVJ9bv49xEiyCBSqprCr7W+xMhKkVeBJjbPs8ULnGA7aCxg33LhIRzTiSiKP1P7FNIs+eYs=; 7:X2sllXw7l2YPhZkIwj/10odiFC6MvSruYFOuUAeHhpZzg1PSbNnYejz11hCzu3EMVJ6zuJVKAmSXbHMc9lhxYGOvxNCdJh9uDDH9g2VOMELS85zCtJbCxwPqGz6bPhmizdi/jGEVk0ehlalSRdY7HLC51L9SV2FLmDzPaXxqjZ5k1go7yOsOgg4rk61VhF0Xg501TzqQyvYwpupBym6m0s6/eDusRmwrWoEvlV3gwCqXzQZhF82wa9HHb8RrwpUH x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 73bbd2db-0ac8-4afc-44a9-08d60db03038 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB5014; x-ms-traffictypediagnostic: BYAPR07MB5014: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699016); SRVR:BYAPR07MB5014; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB5014; x-forefront-prvs: 077929D941 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(39850400004)(366004)(346002)(53754006)(199004)(189003)(7696005)(6506007)(99286004)(68736007)(25786009)(2900100001)(186003)(86362001)(102836004)(97736004)(53936002)(26005)(8936002)(316002)(5660300001)(6116002)(110136005)(3846002)(790700001)(66066001)(8676002)(81156014)(105586002)(81166006)(256004)(33656002)(74316002)(55016002)(2906002)(7736002)(476003)(486006)(478600001)(54896002)(6436002)(2501003)(9686003)(5250100002)(72206003)(6306002)(14454004)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB5014; H:BYAPR07MB5141.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Xl6X3wil8p2ePcDO3UCDaX+c8QcCpq+OzgH26q4ZQQrVe7w60CkpnOmRYE1gLcJOLeC0dEEtGSmeo7p8oOqflSzK1qhTAIEVQEeQgfpmMJ6gK2LjvpHNyLtso2thoDwXv9Xh8xIZ48Da9zAGQsyQy3syau/vjgHuk05HyV8wMaDuhh0PG2eVAYmRNLUHBOnkxBeqbphjp2qECgN10PSiKZnbDhYo8d++iAp2dhEWlSIFu4Uz0BeQpj9/5RLOMMXuj83reI/v0rb396NgwuhLEzwFh5uC0G7s0sxEudEdHwHgwPlq35a5s9m4ko6wMlwRyVRqNR40rHZlZpcBs6MoWuRANYDD9IxNbMZFOtohVNE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BYAPR07MB5141A40B8BA4611406CD09CB99090BYAPR07MB5141namp_" MIME-Version: 1.0 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73bbd2db-0ac8-4afc-44a9-08d60db03038 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Aug 2018 13:06:09.2772 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB5014 Subject: [dts] DUT port map is showing port index as -1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 13:06:12 -0000 --_000_BYAPR07MB5141A40B8BA4611406CD09CB99090BYAPR07MB5141namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, Hi can anyone explain me why in in DTS 18.02, dut_prerequisites(), it is ca= lling disable_tester_ipv6(). Why is there a need of disabling testers IPV6 support. While executing testcases it is showing me this: DUT PORT MAP: [-1, -1], a= nd there is a Index Error exception raised. File "/root/dts-18.02/framework/dut.py", line 984, in disable_tester_ipv6 if self.tester.ports_info[tester_port]['type'] !=3D 'ixia': IndexError: list index out of range However if I comment out the disable_tester_ipv6() function call, I am able= to run some test cases, while some test cases fail and raise ParameterInv= alidException, File "/root/dts-18.02/framework/tester.py", line 188, in get_interface raise ParameterInvalidException("local port should not be -1") ParameterInvalidException: local port should not be -1 dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/pci/devices/0000\:af\:00.0/= driver/unbind dut.172.28.12.218: dut.172.28.12.218: modprobe qede dut.172.28.12.218: dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/pci/drivers/qe= de/bind dut.172.28.12.218: dut.172.28.12.218: ifconfig eth0 up dut.172.28.12.218: dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci/devices/00= 00\:af\:00.1/driver/unbind dut.172.28.12.218: dut.172.28.12.218: modprobe qede dut.172.28.12.218: dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci/drivers/qe= de/bind dut.172.28.12.218: dut.172.28.12.218: ifconfig eth1 up dut.172.28.12.218: dut.172.28.12.218: ip link show eth0 dut.172.28.12.218: 33: eth0: = mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 link/ether 14:02:ec:ce:ee:24 brd ff:ff:ff:ff:ff:ff dut.172.28.12.218: ip -family inet6 address show dev eth0 | aw= k '/inet6/ { print $2 }' dut.172.28.12.218: fe80::1602:ecff:fece:ee24/64 dut.172.28.12.218: ip -family inet address show dev eth0 | awk= '/inet/ { print $2 }' dut.172.28.12.218: dut.172.28.12.218: ip link show eth1 dut.172.28.12.218: 34: eth1: = mtu 1500 qdisc mq state UNKNOWN mode DEFAULT qlen 1000 link/ether 14:02:ec:ce:ee:25 brd ff:ff:ff:ff:ff:ff dut.172.28.12.218: ip -family inet6 address show dev eth1 | aw= k '/inet6/ { print $2 }' dut.172.28.12.218: fe80::1602:ecff:fece:ee25/64 dut.172.28.12.218: ip -family inet address show dev eth1 | awk= '/inet/ { print $2 }' dut.172.28.12.218: dut.172.28.12.218: DUT PORT MAP: [-1, -1] dts: PREREQ EXCEPTION Traceback (m= ost recent call last): File "/root/dts-18.02/framework/dts.py", line 341, in dts_run_prerequisti= es dutobj.prerequisites() File "/root/dts-18.02/framework/project_dpdk.py", line 327, in prerequisi= tes self.dut_prerequisites() File "/root/dts-18.02/framework/dut.py", line 216, in dut_prerequisites self.disable_tester_ipv6() File "/root/dts-18.02/framework/dut.py", line 984, in disable_tester_ipv6 if self.tester.ports_info[tester_port]['type'] !=3D 'ixia': IndexError: list index out of range Regards, Yash --_000_BYAPR07MB5141A40B8BA4611406CD09CB99090BYAPR07MB5141namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

 

 

Hi can anyone explain me why in in DTS 18.02, dut_prerequisites(), it is calling disable_tester_ipv6().

Why is there a need of disabling testers IPV6 suppor= t.

 

While executing testcases it is showing me this: &nb= sp;DUT PORT MAP: [-1, -1], and there is a Index Error exception raised.

 

File "/root/dts-18.02/framework/dut.py", line 984, in disable_= tester_ipv6

    if self.tester.ports_info[tester_port]['type'] !=3D '= ixia':

IndexError: list index out of range



However if I comment out the disable_tester_ipv6() function call, I am able to run some test case= s, while some test cases  fail and raise ParameterInvalidException,

 

File "/root/dts-18.02/framework/tester.py", line 188, in get_i= nterface

    raise ParameterInvalidException("local port shou= ld not be -1")

ParameterInvalidException: local port should not be -1=

 

 

 

 

 

 

dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/p= ci/devices/0000\:af\:00.0/driver/unbind

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: modprobe qede

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: echo 0000:af:00.0 > /sys/bus/pci= /drivers/qede/bind

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: ifconfig eth0 up

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci= /devices/0000\:af\:00.1/driver/unbind

         &nb= sp;   dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: modprobe qede

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: echo 0000:af:00.1 > /sys/bus/pci= /drivers/qede/bind

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: ifconfig eth1 up

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: ip link show eth0

        &nbs= p;    dut.172.28.12.218: 33: eth0: <BROADCAST,MULTICAST,U= P,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000=

    link/ether 14:02:ec:ce:ee:24 brd = ff:ff:ff:ff:ff:ff

        &nbs= p;    dut.172.28.12.218: ip -family inet6 address show dev e= th0 | awk '/inet6/ { print $2 }'

        &nbs= p;    dut.172.28.12.218: fe80::1602:ecff:fece:ee24/64

        &nbs= p;    dut.172.28.12.218: ip -family inet address show dev et= h0 | awk '/inet/ { print $2 }'

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: ip link show eth1

        &nbs= p;    dut.172.28.12.218: 34: eth1: <BROADCAST,MULTICAST,U= P,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN mode DEFAULT qlen 1000<= /o:p>

    link/ether 14:02:ec:ce:ee:25 brd = ff:ff:ff:ff:ff:ff

        &nbs= p;    dut.172.28.12.218: ip -family inet6 address show dev e= th1 | awk '/inet6/ { print $2 }'

        &nbs= p;    dut.172.28.12.218: fe80::1602:ecff:fece:ee25/64

        &nbs= p;    dut.172.28.12.218: ip -family inet address show dev et= h1 | awk '/inet/ { print $2 }'

        &nbs= p;    dut.172.28.12.218:

        &nbs= p;    dut.172.28.12.218: DUT PORT MAP: [-1, -1]

        &nbs= p;             =             &nb= sp;     dts:  PREREQ EXCEPTION Traceback (mos= t recent call last):

  File "/root/dts-18.02/framework/dts.py", line 341, in d= ts_run_prerequisties

    dutobj.prerequisites()

  File "/root/dts-18.02/framework/project_dpdk.py", line = 327, in prerequisites

    self.dut_prerequisites()

  File "/root/dts-18.02/framework/dut.py", line 216, in d= ut_prerequisites

    self.disable_tester_ipv6()

  File "/root/dts-18.02/framework/dut.py", line 984, in d= isable_tester_ipv6

    if self.tester.ports_info[tester_port]['type'] !=3D '= ixia':

IndexError: list index out of range

 

Regards,

Yash

 

--_000_BYAPR07MB5141A40B8BA4611406CD09CB99090BYAPR07MB5141namp_--