avocado-framework-tests / avocado-misc-tests

Community maintained Avocado tests repository
Other
22 stars 123 forks source link

After run bonding.py in Rhel8.2 with Avocado(version: 82.0), it shows "FAIL: bond name already exists on local machine" #1897

Open Gene-Lo opened 3 years ago

Gene-Lo commented 3 years ago

After run bonding.py in Rhel8.2 with Avocado(version: 82.0), it shows "FAIL: bond name already exists on local machine".

【Test Step】 Step 1. Prepare 2 terminals while each one is equipped with 1 Network-Card. Then connect the 2 Network-Cards with each other. ※Network-Card: Broadcom 5719 QP 1G (1G/100M/10M) Network Interface Card PCIe x4 LP →The Network-Card has 4 ports. We connect 2 of them with each one, like below: HW

Step 2. Edit yaml file in SUT5: /root/tests/tests/avocado-misc-tests/io/net/bonding.py.data/bonding.yaml image

Step 3. Run bonding.py in SUT5: SOL-log

【Test log】:job.log job.log

【Configuration】 《SUT5》 [Rhel8.2 Kernel] 4.18.0-193.19.1.el8_2.ppc64le

[FW config] BMC: op940.00.mih-5-0-g86f9791c2 PNOR: OP9-v2.4-4.37-prod

[HW config] CPU DD2.3 20core 2 Samsung (M393A8K40B22-CWD6Y) 64G 16 Samsung PM985 960GB 1 PSU ACBEL 2000w 2 Slot1: Broadcom 5719 QP 1G (1G/100M/10M) Network Interface Card PCIe x4 LP Slot5: Broadcom 9300-8i SAS/SATA HBA PCIe Gen3 x8 LP Slot10: Broadcom 9305-16i SAS/SATA HBA PCIe Gen3 x8 LP Seagate Skybolt_HDD 1200GB SAS *8

《SUT1》 [Rhel8.2 Kernel] 4.18.0-193.14.3.el8_2.ppc64le

[FW config] BMC: op940.00.mih-5-0-g86f9791c2 PNOR: OP9-v2.4-4.37-prod

[HW config] CPU DD2.3 20 core 2 Micron Technology(18ASF2G72PZ-2G9E1)16GiB x16 Samsung PM985 960GB 1 PSU ACBEL 2000w *2 Slot1: Broadcom 5719 QP 1G (1G/100M/10M) Network Interface Card PCIe x4 LP

cforno12-zz commented 3 years ago

Hi @Gene-Lo , I see that the interface is already created before running this test.

2020-09-23 09:34:58,446 process          L0416 DEBUG| [stdout] 10: bondtest: <NO-CARRIER,BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
2020-09-23 09:34:58,446 process          L0416 DEBUG| [stdout]     link/ether b0:26:28:e5:e0:40 brd ff:ff:ff:ff:ff:ff

The bond test already does this in the test_setup routine. Please remove the bonding device and try running the test again.

Good luck! --Cris

Gene-Lo commented 3 years ago

I. After we run bonding.py again with Network-Card, Broadcom_5719, the result is still FAIL: Result

【Test Step】

  1. Prepare 2 terminals while each one is equipped with 1 Network-Card. Then connect the 2 Network-Cards with each other.

  2. Change Network-Cards's setting via below SOP: SOP of Avocado Network-Card Settings.pdf

  3. Edit yaml file in SUT5: /root/tests/tests/avocado-misc-tests/io/net/bonding.py.data/bonding.yaml yaml

  4. Input "ip a" to check current status of interface: image

  5. Run bonding.py in SUT5

【Test log】

  1. job.log: Gererated by Avocado job.log

  2. SOL_log: Record the whole process about how we change Network-Cards' settings and run bonding.py 20201005-Broadcom_5719-Bonding-SOL_log.txt

  3. Manual_Test_log: We try to run bonding.py's commands by manual, but it shows "No such file or directory" 20201005-Broadcom_5719-Manual_Test_log.txt

  4. Configuration 20201005-Broadcom_5719-Bonding-Configuration.txt

==============================================

II. We tried to use the same method to run bonding.py but with different types of Network-Card, Marvell 2-PORT E'NET (2X10 10Gb), and the result is still FAIL: Result

【Test log】

  1. job.log: Gererated by Avocado job.log

  2. SOL_log: Record the whole process about how we change Network-Cards' settings and run bonding.py 20201006-Marvell 2-PORT E'NET (2X10 10Gb)-Bonding-SOL_log.txt

  3. Configuration 20201006-Marvell 2-PORT E'NET (2X10 10Gb)-Configuration.txt

Gene-Lo commented 3 years ago

Tag ssant@in.ibm.com Sachin, please kindly track issue.