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

Attach necessary information in journal log #418

Open
PriyangaRamasamy opened this issue Oct 15, 2024 · 0 comments
Open

Attach necessary information in journal log #418

PriyangaRamasamy opened this issue Oct 15, 2024 · 0 comments

Comments

@PriyangaRamasamy
Copy link

since we collect VPD for all FRUs parallelly, it's hard to find for which FRU the log is getting printed. So attach vpd file path in every journal log, so that it will add value to the message.

Eg:

Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/src/worker.cpp, Line: 1307, Func: vpd::Worker::collectFrusFromJson()::<lambda()>, Active threads = 33
Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/src/worker.cpp, Line: 1273, Func: void vpd::Worker::collectFrusFromJson(), Parsing triggered for FRU = /sys/bus/i2c/drivers/at24/26-0051/eeprom
Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/src/worker.cpp, Line: 1273, Func: void vpd::Worker::collectFrusFromJson(), Parsing triggered for FRU = /sys/bus/i2c/drivers/at24/27-0050/eeprom
Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/include/utility/json_utility.hpp, Line: 434, Func: bool vpd::jsonUtility::procesSetGpioTag(const nlohmann::json_abi_v3_11_3::json&, const std::string&, const std::string&, const std::string&), Setting GPIO: presence-cable-card10 to 1
Jan 22 09:25:44 ever8bmc vpd-manager[3955]: sh: line 1: echo: write error: No such device
Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/include/utility/json_utility.hpp, Line: 434, Func: bool vpd::jsonUtility::procesSetGpioTag(const nlohmann::json_abi_v3_11_3::json&, const std::string&, const std::string&, const std::string&), Setting GPIO: presence-cable-card9 to 1
Jan 22 09:25:44 ever8bmc vpd-manager[3877]: FileName: /usr/src/debug/openpower-fru-vpd/1.0+git/include/utility/json_utility.hpp, Line: 212, Func: bool vpd::jsonUtility::executePostFailAction(const nlohmann::json_abi_v3_11_3::json&, const std::string&, const std::string&), PostFailAction flag missing in config JSON. Abort processing

From the above log - it's hard to figure out for which FRU path we hit the below set of errors

sh: line 1: echo: write error: No such device

PostFailAction flag missing in config JSON. Abort processing

@PriyangaRamasamy PriyangaRamasamy changed the title Attach extra information in the journal log Attach necessary information in journal log Oct 15, 2024
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