-
Bug
-
Resolution: Done
-
Undefined
-
None
-
rhel-10.0.beta
-
None
-
None
-
None
-
rhel-sst-kernel-ft
-
ssg_core_kernel
-
15
-
17
-
1
-
False
-
-
None
-
None
-
None
-
None
-
-
x86_64
-
None
What were you trying to do that didn't work?
If you save a config on a system where some attributes aren't present, and then attempt to load the saved config again it will fail to load the config. The json code doesn't check to see if it got an error when trying to read in a non-present attribute from the system, and puts the errno into the json code for the attributes value.
Upstream fix is:
ea015cc437e6 ("accel-config: Don't list attributes not present")
Please provide the package NVR for which bug is seen:
accel-config-4.1.6-2.el9 and earlier. I'll come up with the nvr for when it started looking for the potentially non-present attributes.
How reproducible:
100% on system like a birchstream-srf with iax devices enabled.
Steps to reproduce
- Reserve system with like mentioned above with iax devices.
- Install accel-config
- Install accel-config-test from buildroot
- cd /usr/libexec/accel-config/test
- disable all wqs and devices currently enabled (look at accel-config list output or run attached script).
- accel-config load-config -e -c configs/2g2q_user_2.conf
- accel-config save-config -s tmp.conf
- disable the wqs and devices again (in this case the attached script won't work, because their test config uses wq 1.1 and 1.4, and the script currently just cleans up the default workqueues that end with .0 that are configured during boot when iaa_crypto is loaded. I'll try to come up with another script that cleans up any that exist)
- accel-config load-config -c tmp.conf
Expected results
Config successfully loads
Actual results
[root@intel-birchstream-srf-sp-03 test]# accel-config load-config -c tmp.conf libaccfg: accfg_wq_set_max_batch_size: wq1.1: max_batch_size attribute write failed: No such file or directory wq set max_batch_size value failed Parse json and set device fail: -1
- clones
-
RHEL-36345 accel-config: Don't list attributes not present
- Closed