Skip to content

Conversation

@BulaYoungR
Copy link

Add fallback parser for ethtool -l and guard against int(None) If utils_net.get_channel_info() returns empty, parse Combined from ethtool -l via regex (no header dependency). Use first Combined as max, second as current (fallback to first if only one). Explicitly error if Combined can’t be parsed.
Committer: Bolatbek Issakh [email protected]

…t or a number, not NoneType

Add fallback parser for ethtool -l and guard against int(None)
If utils_net.get_channel_info() returns empty, parse Combined from ethtool -l <iface> via regex (no header dependency).
Use first Combined as max, second as current (fallback to first if only one).
Explicitly error if Combined can’t be parsed.
Committer: Bolatbek Issakh <[email protected]>
@BulaYoungR BulaYoungR marked this pull request as draft August 29, 2025 10:38
@BulaYoungR
Copy link
Author

Before fix

2025-08-25 13:05:17,863 avocado.app human            L0136 DEBUG| ERROR: int() argument must be a string, a bytes-like object or a number, not 'NoneType' (269.75 s)
2025-08-25 13:05:17,864 avocado.job testlogs         L0138 INFO | type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value: ERROR
2025-08-25 13:05:17,864 avocado.job testlogs         L0139 INFO | More information in /var/log/avocado/job-results/job-2025-08-25T13.00-35d0232/test-results/1-type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value
2025-08-25 13:05:17,872 avocado.core.task.statemachine statemachine     L0146 DEBUG| Task "1-type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value" finished with status: RuntimeTaskStatus.FINISHED
2025-08-25 13:05:17,924 avocado.job job              L0659 INFO | Test results available in /var/log/avocado/job-results/job-2025-08-25T13.00-35d0232
2025-08-25 13:05:17,924 avocado.app human            L0146 INFO | RESULTS    : PASS 0 | ERROR 1 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
2025-08-25 13:05:18,149 avocado.sysinfo sysinfo          L0195 DEBUG| Not logging /sys/kernel/debug/sched_features (file not found)
2025-08-25 13:05:18,169 avocado.sysinfo sysinfo          L0195 DEBUG| Not logging /proc/pci (file not found)
2025-08-25 13:05:18,233 avocado.app __init__         L0258 INFO | JOB HTML   : /var/log/avocado/job-results/job-2025-08-25T13.00-35d0232/results.html
2025-08-25 13:05:18,243 avocado.app human            L0174 INFO | JOB TIME   : 271.40 s
2025-08-25 13:05:18,244 avocado.app testlogs         L0101 INFO |
2025-08-25 13:05:18,244 avocado.app testlogs         L0102 INFO | Test summary:
2025-08-25 13:05:18,244 avocado.app testlogs         L0104 ERROR| 1-type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value: ERROR

After fix

(.libvirt-ci-venv-ci-runtest-qw4iyr) [root@ampere-mtjade-altra-04 libvirt-ci-latest-venv]# bin/avocado run --vt-type libvirt --vt-omit-data-loss --vt-machine-type arm64-mmio virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value --job-timeout 1200 --vt-connect-uri qemu:///system
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.
JOB ID     : acd58858378ebc9742accda447e37eb3f002e8d9
JOB LOG    : /var/log/avocado/job-results/job-2025-08-29T05.56-acd5885/job.log
 (1/1) type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value: STARTED
 (1/1) type_specific.io-github-autotest-libvirt.virtual_network.iface_options.iface_driver.driver_rx_queue_size.start_success.left_boundary_value: PASS (270.82 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /var/log/avocado/job-results/job-2025-08-29T05.56-acd5885/results.html
JOB TIME   : 272.80 s

@dzhengfy
Copy link
Contributor

@BulaYoungR please double check this problem still exists. if not, let's close this PR.

@dzhengfy
Copy link
Contributor

@BulaYoungR how about this one?

@dzhengfy dzhengfy closed this Oct 9, 2025
@dzhengfy
Copy link
Contributor

dzhengfy commented Oct 9, 2025

It was already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants