stx-openstack: Wrong arg passed when sysinv calls query_pci_id script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Thales Elero Cervi |
Bug Description
Brief Description
-----------------
The was recent update on the query_pci_id script [1] that works fine, but the sysinv agent call to it is always receiving a return code 2. The arg syntax was wrongly written and needs to be fixed.
[1] https:/
Severity
--------
Minor: System/Feature is usable but DPDK support is not correctly verified
Steps to Reproduce
------------------
* Deploy an AIO-SX with vswitch_
* Check /var/log/sysinv.log for "query_pci_id_cmd" related errors
Expected Behavior
------------------
The script should return 0 for interfaces that support DPDK and 1 otherwise.
Actual Behavior
----------------
The script is returning 2 (due to the wrong argument syntax)
Reproducibility
---------------
Reproducible
System Configuration
-------
vswitch_
Branch/Pull Time/Commit
-------
StarlingX master
Last Pass
---------
* Final CentOS build.
Timestamp/Logs
--------------
>>> query_pci_id_cmd
['query_pci_id', '-v 0x1af4', '-d 0x1000', '--elfbinary /usr/bin/
>>> subprocess.
usage: query_pci_id [-h] -v HEX -d HEX [-p PMDINFO] [-e ELF]
query_pci_id: error: unrecognized arguments: --elfbinary /usr/bin/
CompletedProces
>>> query_pci_id_cmd
['query_pci_id', '-v 0x1af4', '-d 0x1000', '--elfbinary=
>>> subprocess.
Vendor ID: 0x1af4 Device ID: 0x1000 is supported
CompletedProces
>>> query_pci_id_cmd
['query_pci_id', '-v 0x1af4', '-d 0x1000', '-e /usr/bin/
>>> subprocess.
Vendor ID: 0x1af4 Device ID: 0x1000 is supported
CompletedProces
Test Activity
-------------
Developer Testing
Workaround
----------
None
Changed in starlingx: | |
assignee: | nobody → Thales Elero Cervi (tcervi) |
tags: | added: stx.distro.openstack |
Changed in starlingx: | |
importance: | Undecided → Low |
tags: | added: stx.9.0 |
Fix proposed to branch: master /review. opendev. org/c/starlingx /config/ +/876577
Review: https:/