-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
GPU not found for Radeon HD 3450 #6945
Comments
Can you post any lines from the output of |
I had included the output of lspci for the video card on my original post using the command that the salt grains use for parsing (lspci -vmm). lspci|grep -i vga shows:
|
D'oh! I overlooked that, sorry. Thanks, I'll take a look at this. |
Excellent. Thanks :D Let me know if you need anything else. |
@kohrar I was not able to reproduce this. To test, I copied the block of code that generates the gpu grains into it's own script, and replaced the lspci_out variable with the shell output from The odd thing is that this happened when I tested with 0.16.3, as well as with git develop. |
That's the weirdest thing. I did the exact same thing you did and pulled the code from _linux_gpu_data() from grains/core.py and it returned the correct result as you have reproduced:
But salt-call doesn't agree:
|
Yeah. I'll give it another look in the morning and see if something might be overwriting that value later on. |
@kohrar So, looking more at the grains info, the empty |
@kohrar Were you able to find anything in the minion log? |
Sorry, there are no tracebacks from the logs. Perhaps you can see something more from the logs here: http://pages.cpsc.ucalgary.ca/~leo/zone05ea.salt-call.log |
I am having the same problem except with an Nvidia GPU and saltstack 0.17.1. I have another box with an Intel GPU that works just fine however. But I think I have found the problem. I added a bunch of extra logging to core.py to see what is going on and found the problem is when the GPU is the last item in the lspci output. Basically the problem is how the lspci -vmm output is split into lines. Then the code looks for an empty line to denote separate devices except that splitlines() doesn't add blank lines to the end of the list it produces so the last entry it always stripped off. And therefore, if your GPU is the last PCI device in lspci it will be ignored. I am looking for a sane way to solve this right now. |
I don't think it's related to this issue but it's important to note that the new default for masters is not to gather GPU data unless enable_gpu_grains is set to True in the master config. The intention here is to avoid lag time on master startup that was happening on some servers with oddball video cards or bugs or distros that had buggy implementations of lspci. This code is brand new as of this week. If this is affecting the minions or not behaving as intended on the master, please let us know. Thanks! |
@zmarano This is good to know. Hopefully you'll find an easy fix. |
Fix for Linux gpus grain, issue #6945
salt-call grains.items is returning no GPUs on a system with a Radeon HD 3450 installed. I am currently on salt 0.16.3 running SL 6.4 x86_64.
Expected output should be:
I took a quick glance at the code, but didn't see anything obvious that was preventing it from parsing it properly...
The text was updated successfully, but these errors were encountered: