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

Error processing from file #21

Closed
gabrieleiannetti opened this issue Apr 13, 2021 · 2 comments
Closed

Error processing from file #21

gabrieleiannetti opened this issue Apr 13, 2021 · 2 comments

Comments

@gabrieleiannetti
Copy link
Contributor

Hi,

I tried to run the exporter to process the input data from file, but it crashes.

Execute exporter:

$ ./infiniband-exporter.py --from-file ../ibqueryerrors_nohostnames.txt 2>exporter_errors.txt

It shows up error messages with Unknown link state on guid... and finally will crash with the following Python errors:

  File "./infiniband-exporter.py", line 346, in collect
    self.parse_switch(switch_name, item[0], item[1])
  File "./infiniband-exporter.py", line 222, in parse_switch
    guid = m_port.group(1)
AttributeError: 'NoneType' object has no attribute 'group'
^CTraceback (most recent call last):
  File "./infiniband-exporter.py", line 437, in <module>

Files:

Looks like objects are not generated because of the Unknown link state errors,
but objects were expected and then the exporter crashes accessing a NoneType object.

@gabrieleiannetti
Copy link
Contributor Author

I got the cause of the error...

The program ibqueryerrors needs to be executed with the following flags as it is called in the exporter:

--verbose --details --suppress-common --data --report-port --switch

@gabrieleiannetti
Copy link
Contributor Author

Probably it would be helpful to mention how to create an output file by ibqueryerrors,
so it can be processed by the exporter e.g.:

  • Add note to README.md
  • Update help message in the exporter for flag --from-file

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