Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On latest build system-vpd.service is failing. #40

Open
ninadpalsule opened this issue Jun 6, 2023 · 1 comment
Open

On latest build system-vpd.service is failing. #40

ninadpalsule opened this issue Jun 6, 2023 · 1 comment

Comments

@ninadpalsule
Copy link

The service is failing with --driver option required. I am not sure why we need "--driver" option for system vpd as we are providing EEPROM file path.

root@p10bmc:~# systemctl status system-vpd.service -l
x system-vpd.service - System VPD Collection
Loaded: loaded (/usr/lib/systemd/system/system-vpd.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Tue 2023-06-06 19:47:22 UTC; 23s ago
Process: 1515 ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom (code=exited, status=106)
Main PID: 1515 (code=exited, status=106)
CPU: 382ms

Jun 06 19:47:21 p10bmc systemd[1]: Starting System VPD Collection...
Jun 06 19:47:22 p10bmc ibm-vpd-parser[1515]: --driver is required
Jun 06 19:47:22 p10bmc ibm-vpd-parser[1515]: Run with --help for more information.
Jun 06 19:47:22 p10bmc systemd[1]: system-vpd.service: Main process exited, code=exited, status=106/n/a
Jun 06 19:47:22 p10bmc systemd[1]: system-vpd.service: Failed with result 'exit-code'.
Jun 06 19:47:22 p10bmc systemd[1]: Failed to start System VPD Collection.

I am wondering if this is caused by this change.

f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1389) // Check if input file is not empty.
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1390) if ((file.empty()) || (driver.empty()))
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1391) {
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1392) std::cerr << "Encountered empty input parameter file [" << file
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1393) << "] driver [" << driver << "]" << std::endl;
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1394) return 0;
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1395) }
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1396)
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1397) // Check if currently supported driver or not
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1398) if ((driver != at24driver) && (driver != at25driver) &&
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1399) (driver != ee1004driver))
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1400) {
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1401) std::cerr << "The driver [" << driver << "] is not supported."
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1402) << std::endl;
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1403) return 0;
f457a3ef (jinuthomas 2023-04-13 12:22:48 -0500 1404) }

@ninadpalsule
Copy link
Author

ninadpalsule commented Jun 6, 2023

Also the service file does not pass any driver. also running ibm-read-vpd command gives the same error.

[Service]
ExecStart=/usr/bin/env ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom
SyslogIdentifier=ibm-vpd-parser

root@p10bmc:~# ibm-read-vpd --file /sys/bus/i2c/drivers/at24/8-0050/eeprom
--driver is required
Run with --help for more information.

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

No branches or pull requests

1 participant