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

Fix hpssa parse error #12206

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Fix hpssa parse error #12206

merged 2 commits into from
Feb 22, 2022

Conversation

wooyey
Copy link
Contributor

@wooyey wooyey commented Feb 21, 2022

Summary

Fixes #12205. Line with Disk Partition Information generates parser error of the hpssa collector.
As such lines includes not useful information this patch simply excludes them.

Test Plan

Just tested manually by me on failing system, where it works.
On other HP servers where setup is very similar didn't found this issue (no problematic line in ssacli output).
So the issue might be quite unique...
Grepping through the repo show no tests of hpssa collector.

Additional Information

Line with `Disk Partition Information` generates parser error.
As such lines includes not used information this patch simply excludes them.
@wooyey wooyey requested a review from ilyam8 as a code owner February 21, 2022 19:20
@CLAassistant
Copy link

CLAassistant commented Feb 21, 2022

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added area/collectors Everything related to data collection area/external/python labels Feb 21, 2022
@wooyey
Copy link
Contributor Author

wooyey commented Feb 21, 2022

Sorry... was too fast with first commit ... :|

@ilyam8
Copy link
Member

ilyam8 commented Feb 21, 2022

Hi, @wooyey. Thanks for the contribution. Did you test the change on servers with and without that line?

@wooyey
Copy link
Contributor Author

wooyey commented Feb 21, 2022

Hey @ilyam8 :)

Code (the second commit) was tested on:

  • server with the issue
  • server without the issue

In both cases the collector is working correctly. In second case produced data is the same as for old version of code.

@ilyam8 ilyam8 requested a review from vlvkobal February 21, 2022 21:03
@ilyam8 ilyam8 merged commit 20dfab8 into netdata:master Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: HP Smart Storage Arrays collector is failing to parse ssacli output
5 participants